Splashscreen Audio through Headphone Jack Problems
-
I built a pi arcade and it uses headphone jack to external speakers. I am using a pi3 board. I have updated to retropie 3.7 using binaries. I built a custom splash screen on my mac using imovie and saved as mp4. It will run when I enable custom splashscreens but sound goes to HDMI not headphone jack. I altered the /etc/init.d/asplashscreen and added -o local to omxplayer command. I rebooted and the movie would not even play.
I found this old guide http://blog.sheasilverman.com/2013/09/adding-a-startup-movie-to-your-raspberry-pi/#comment-31607 I then did
sudo chmod a+x /etc/init.d/asplashscreen
sudo insserv /etc/init.d/asplashscreen
It worked once. I was excited but when I rebooted again the movie does not even show. The video will not even load unless I remove -o local. Then it will load but the sound goes to HDMI. Very confusingI tried to go into audio settings and say only use headphone jack. This works but only after it boots, so the splashscreen sound still goes through HDMI. Here is what my asplashscreen currently looks like. Any help appreciated. This is a gift for my daughter and this is the last step.
#!/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 do_start () { local config="/etc/splashscreen.list" local line="$(head -1 "$config")" if $(echo "$line" | grep -q ".avi\|.mov\|.mp4\|.mkv\|.3gp\|.mpg\|.mp3\|.wav\|.m4a\|.aac\|.ogg\|.flac"); then wait for /tmp to become writable while ! touch /tmp/writable 2>/dev/null; do sleep 1 done rm -f /tmp/writable omxplayer -b --layer 10000 -o local "$line" else local count=$(wc -l <"$config") [ $count -eq 0 ] && count=1 [ $count -gt 20 ] && count=20 local delay=$((20/count)) fbi -T 2 -once -t $delay -noverbose -a -l "$config" >/dev/null 2>&1 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 :
-
Please place code in a code block - http://commonmark.org/help/ for large logs use an external site like pastebin.com or similar. thanks.
-
Did you ever solve this problem in the end? I had the opposite problem. My splashscreen sound was going through the headphone jack and I had to force it through HDMI. I think you got the order of the line wrong. Try using this:
omxplayer -b -o local --layer 10000 "$line"
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.