No splash screen video sound
-
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?
-
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
-
@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.
-
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.
-
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 :
-
it should be
-o hdmi
,-o local
or-o both
not all of them. -
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...
-
@SnipedintheHead thats because you removed the layer 10000 line
-
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!
-
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.
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.