Splash screen no audio.
So I have set a mp4 splash screen as my splash screen for retropie but I am getting no audio. I'm using USB speakers because my monitor has no speakers . I can't use HDMI or anything else. I already bought USB speakers for my Raspberry pi B+ and I set them up and I get audio out of them in emulation station. However, I get no audio when the splashcreen plays. I get video but no audio. I have heard that omxplayer doesn't support USB devices. But I just wasn't sure if there is a way I can get around that.
Any ideas? Thanks.
@h3rmitpl4ys Does playing the file from the command line with
omxplayerwork with audio ? Exit Emulationstation, then run from the command line
and see if any audio comes out.
I would do this but I'm not sure what you mean. How do I run the file from the command line?
@h3rmitpl4ys As I sais, exit Emulationstation and you'd be exiting to the command prompt, where you can type the command I mentioned - do you have a keyboard attached to the Pi ?
Yes I have a keyboard hooked up to the Pi. When I type in this command It says: File "/path/to/file" not found. I have tried Sudo Nano before this also but It pops up blank. Am I doing something wrong?
@h3rmitpl4ys You'll need to replace
/path/to/filewith the actual path to the video file, that's meant to be a placeholder so you can see how the command works.Where did you copy your video file ?
Ah, gotcha. Where did I copy my video file? Is that where I would have downloaded the file?
@mitu I used my PC and got the Mp4 file off a website and I connected through LAN so I used the IP from My PI and placed the Mp4 file into the splash screen folder.
@h3rmitpl4ys So the file should be in
/home/pi/RetroPie/splashscreens. List the folder's contents with the command
note the filename and then run
filename.mp4with the actual name of the file. Do you get any audio ?
Just tried it, It pops up and plays the splash screen but there is no audio.
@h3rmitpl4ys OK, so that's the command run at the beginning. You need to pass to tell
omxplayerwhich audio device to use, so run the command like
omxplayer -o local /home/pi/RetroPie/splashscreens/filename.mp4
If you get audio, it means the USB soundcard is detected and working. Try to apply the advice in https://www.woltersadvertising.com/how-to-set-default-raspberry-pi-sound-output-to-usb-device-on-raspbian-jessie-and-retropie/ to change the default audio output from the built-in HDMI audio to the USB soundcard.
I'm still not getting audio even when adding the -o local. It's weird because I get audio when playing games and in the menu. yet I don't on the splash screen.
omxplayercan be directed to the correct audio device with the
-o --adev device Audio out device : e.g. hdmi/local/both/alsa[:device]
Check which Audio device you have set in Emulationstation and try to specify it in the command line to test if it work. Alternatively you can run
aplay -lto see the available devices in the system to determine which one is the USB.
Once you find the right parameter value, then you can modify the splashscreen command and add it there also.
But have you checked the link I posted for making the USB soudcard the default ?
@mitu I just did something by accident. I did the first command you told me to do but instead of local I changed it to asla. And what do you know I get sound! Now all I gotta do is figure out how to get the actual splashcreen working!
@h3rmitpl4ys The splashscreen is started from
/opt/retropie/supplementary/splashscreen/asplashscreen.sh, you could edit the script and modify line 35 so instead of
omxplayer -o both
it's started with
omxplayer -o alsa
It's not the most elegant solution, but give it a try.
@mitu Thanks so much!! It finally works! I get sound when I boot it up!
LionSquall last edited by
@mitu I know you do not like to revive post but thanks for this help