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

    Splash screen no audio.

    Scheduled Pinned Locked Moved Help and Support
    splashsceenaudio issueshelp me
    18 Posts 3 Posters 6.4k 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.
    • H3rmitPl4ysH
      H3rmitPl4ys
      last edited by

      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.

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @H3rmitPl4ys
        last edited by

        @h3rmitpl4ys Does playing the file from the command line with omxplayer work with audio ? Exit Emulationstation, then run from the command line

        omxplayer `path/to/file`
        

        and see if any audio comes out.

        1 Reply Last reply Reply Quote 0
        • H3rmitPl4ysH
          H3rmitPl4ys
          last edited by

          I would do this but I'm not sure what you mean. How do I run the file from the command line?

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @H3rmitPl4ys
            last edited by

            @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 ?

            1 Reply Last reply Reply Quote 0
            • H3rmitPl4ysH
              H3rmitPl4ys
              last edited by

              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?

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @H3rmitPl4ys
                last edited by mitu

                @h3rmitpl4ys You'll need to replace /path/to/file with 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 ?

                H3rmitPl4ysH 1 Reply Last reply Reply Quote 0
                • H3rmitPl4ysH
                  H3rmitPl4ys @mitu
                  last edited by

                  Ah, gotcha. Where did I copy my video file? Is that where I would have downloaded the file?

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @H3rmitPl4ys
                    last edited by

                    @h3rmitpl4ys said in Splash screen no audio.:

                    Is that where I would have downloaded the file?

                    Yes, the location on the Pi where the video file is located, you either downloaded it directly there or copied it from your PC/USB stick.

                    H3rmitPl4ysH 1 Reply Last reply Reply Quote 0
                    • H3rmitPl4ysH
                      H3rmitPl4ys @mitu
                      last edited by

                      @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.

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @H3rmitPl4ys
                        last edited by

                        @h3rmitpl4ys So the file should be in /home/pi/RetroPie/splashscreens. List the folder's contents with the command

                        ls /home/pi/RetroPie/splashscreens/
                        

                        note the filename and then run omxplayer with

                        omxplayer /home/pi/RetroPie/splashscreens/filename.mp4
                        

                        replacing filename.mp4 with the actual name of the file. Do you get any audio ?

                        1 Reply Last reply Reply Quote 0
                        • H3rmitPl4ysH
                          H3rmitPl4ys
                          last edited by

                          Just tried it, It pops up and plays the splash screen but there is no audio.

                          mituM 1 Reply Last reply Reply Quote 0
                          • mituM
                            mitu Global Moderator @H3rmitPl4ys
                            last edited by mitu

                            @h3rmitpl4ys OK, so that's the command run at the beginning. You need to pass to tell omxplayer which 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.

                            1 Reply Last reply Reply Quote 0
                            • H3rmitPl4ysH
                              H3rmitPl4ys
                              last edited by

                              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.

                              mituM 1 Reply Last reply Reply Quote 0
                              • mituM
                                mitu Global Moderator @H3rmitPl4ys
                                last edited by

                                @h3rmitpl4ys omxplayer can be directed to the correct audio device with the -o parameter

                                 -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 -l to 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 ?

                                1 Reply Last reply Reply Quote 0
                                • H3rmitPl4ysH
                                  H3rmitPl4ys
                                  last edited by

                                  @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!

                                  mituM 1 Reply Last reply Reply Quote 0
                                  • mituM
                                    mitu Global Moderator @H3rmitPl4ys
                                    last edited by

                                    @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.

                                    L 1 Reply Last reply Reply Quote 1
                                    • H3rmitPl4ysH
                                      H3rmitPl4ys
                                      last edited by

                                      @mitu Thanks so much!! It finally works! I get sound when I boot it up!

                                      1 Reply Last reply Reply Quote 0
                                      • L
                                        LionSquall @mitu
                                        last edited by

                                        @mitu I know you do not like to revive post but thanks for this help

                                        1 Reply Last reply Reply Quote 0
                                        • VirgoHV VirgoH referenced this topic on
                                        • 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.