RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    No splash screen video sound

    Scheduled Pinned Locked Moved Help and Support
    10 Posts 4 Posters 4.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SnipedintheHead
      last edited by BuZz

      So I have added a few videos to home/pi/RetroPie/splashscreens/video/yourvideo.mp4 per the wiki (I put each video in a different folder). The videos work fine, but there is no sound on startup.

      I even added -0 local and removed --layer 10000 from the asplashscreen file. Adding -0 local causes me to get a usbmount error, with no video playing and --layer causes the video to play, but still there is no sound.

      Both videos are mp4's.

      Any ideas?

      1 Reply Last reply Reply Quote 0
      • BuZzB
        BuZz administrators
        last edited by

        I formatted your post a bit - you can put single backticks around item to format them as inline code - makes things like commandline parameters more readable.

        To change the audio output the omxplayer commandline is -o hdmi/local/both not -0

        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

        S 1 Reply Last reply Reply Quote 0
        • S
          SnipedintheHead @BuZz
          last edited by SnipedintheHead

          @BuZz said in No splash screen video sound:

          I formatted your post a bit - you can put single backticks around item to format them as inline code - makes things like commandline parameters more readable.

          I'll be honest, I have no idea what that means :D

          I tried putting in -o hdmi/local/both and I'm getting a USB mount error and no video playing. I also don't know if it matters, but I want the video to play from my audio jack, not the HDMI, if possible. The actual error is:

          failed to start usbmount@dev-sda.service

          I know from other posts that that isn't a big deal, but it seems to be blocking the video from playing now.

          1 Reply Last reply Reply Quote 0
          • BuZzB
            BuZz administrators
            last edited by

            Regarding editing - edit your post and see the changes I made or read this - http://commonmark.org/help/

            Regarding the usbmount error - it is unrelated and can be ignored.

            I would need to see what you have changed to advise further - you can paste the file with formatting (use a code block) here or use an external pastebin site - please do not post it without formatting.

            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

            1 Reply Last reply Reply Quote 0
            • S
              SnipedintheHead
              last edited by

              No problem. Thanks for the help.

              Here is the file, I think. Hopefully it comes up properly.

              #!/bin/sh
              
              ### BEGIN INIT INFO
              # Provides:          asplashscreen
              # Required-Start:    mountdevsubfs
              # Required-Stop:
              # Default-Start:     S
              # X-Start-Before:    checkroot
              # Default-Stop:
              # Short-Description: Show custom splashscreen
              # Description:       Show custom splashscreen
              ### END INIT INFO
              
              ROOTDIR="/opt/retropie"
              DATADIR="/home/pi/RetroPie"
              RANDOMIZE="disabled"
              REGEX_VIDEO="\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac"
              REGEX_IMAGE="\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp"
              
              do_start () {
                  local config="/etc/splashscreen.list"
                  local line
                  if [ "$RANDOMIZE" = "disabled" ]; then
                      line="$(head -1 "$config")"
                  elif [ "$RANDOMIZE" = "retropie" ]; then
                      line="$(find "$ROOTDIR/supplementary/splashscreen" -type f ! -regex ".*/.git/.*" ! -regex ".*LICENSE" ! -regex ".*README.*" | shuf -n1)"
                  elif [ "$RANDOMIZE" = "custom" ]; then
                      line="$(find "$DATADIR/splashscreens" -type f ! -regex ".*README.*" | shuf -n1)"
                  elif [ "$RANDOMIZE" = "all" ]; then
                      line="$( (find "$ROOTDIR/supplementary/splashscreen" -type f ! -regex ".*/.git/.*" ! -regex ".*LICENSE" ! -regex ".*README.*" && find "$DATADIR/splashscreens" -type f ! -regex ".*README.*") | shuf -n1)"
                  elif [ "$RANDOMIZE" = "list" ]; then
                      line="$(cat "$config" | shuf -n1)"
                  fi
                  if $(echo "$line" | grep -q "$REGEX_VIDEO"); then
                      # wait for dbus
                      while ! pgrep "dbus" >/dev/null; do
                          sleep 1
                      done
                      omxplayer -b -o hdmi/local/both "$line"
                  elif $(echo "$line" | grep -q "$REGEX_IMAGE"); then
                      if [ "$RANDOMIZE" = "disabled" ]; then
                          local count=$(wc -l <"$config")
                      else
                          local count=1
                      fi
                      [ $count -eq 0 ] && count=1
                      [ $count -gt 20 ] && count=20
                      local delay=$((20/count))
                      if [ "$RANDOMIZE" = "disabled" ]; then
                          fbi -T 2 -once -t $delay -noverbose -a -l "$config" >/dev/null 2>&1
                      else
                          fbi -T 2 -once -t $delay -noverbose -a "$line" >/dev/null 2>&1
                      fi
                  fi
                  exit 0
              }
              
              case "$1" in
                start|"")
                  do_start &
                  ;;
                restart|reload|force-reload)
                  echo "Error: argument '$1' not supported" >&2
                  exit 3
                  ;;
                stop)
                  # No-op
                  ;;
                status)
                  exit 0
                  ;;
                *)
                  echo "Usage: asplashscreen [start|stop]" >&2
                  exit 3
                  ;;
              esac
              
              :
              
              1 Reply Last reply Reply Quote 0
              • BuZzB
                BuZz administrators
                last edited by BuZz

                it should be -o hdmi, -o local or -o both not all of them.

                To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                1 Reply Last reply Reply Quote 0
                • S
                  SnipedintheHead
                  last edited by

                  Changing it to -o local worked great, thank you.

                  Although now, the Emulation Station Splash Screen overlays the video, so that about 10 seconds into the video I get the ES Screen instead of the rest of the video...

                  herb_fargusH 1 Reply Last reply Reply Quote 0
                  • herb_fargusH
                    herb_fargus administrators @SnipedintheHead
                    last edited by herb_fargus

                    @SnipedintheHead thats because you removed the layer 10000 line

                    If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                    Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      SnipedintheHead @herb_fargus
                      last edited by SnipedintheHead

                      @herb_fargus

                      Yup, putting it back (correctly, which sadly took me far too long) and it's up and working. Thanks! I love the helpfulness of these forums!

                      1 Reply Last reply Reply Quote 0
                      • BriganeB
                        Brigane
                        last edited by Brigane

                        I'm having this problem as well. I tried what was suggested a couple of months ago by @BuZz
                        It might have something to do with my USB Soundcard which is this one: USB Soundcard
                        It works with games in both Attract Mode and Emulationstation though.

                        Systems: Raspberry Pi 0/2/3 Model B+
                        Os: RetroPie 4.5
                        Frontend: Emulationstation & Attract Mode

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.