• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • H
    H3rmitPl4ys
    last edited by 26 Apr 2018, 22:59

    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.

    M 1 Reply Last reply 27 Apr 2018, 03:12 Reply Quote 0
    • M
      mitu Global Moderator @H3rmitPl4ys
      last edited by 27 Apr 2018, 03:12

      @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
      • H
        H3rmitPl4ys
        last edited by 27 Apr 2018, 04:07

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

        M 1 Reply Last reply 27 Apr 2018, 04:09 Reply Quote 0
        • M
          mitu Global Moderator @H3rmitPl4ys
          last edited by 27 Apr 2018, 04:09

          @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
          • H
            H3rmitPl4ys
            last edited by 27 Apr 2018, 04:16

            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?

            M 1 Reply Last reply 27 Apr 2018, 04:22 Reply Quote 0
            • M
              mitu Global Moderator @H3rmitPl4ys
              last edited by mitu 27 Apr 2018, 04:22

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

              H 1 Reply Last reply 27 Apr 2018, 04:26 Reply Quote 0
              • H
                H3rmitPl4ys @mitu
                last edited by 27 Apr 2018, 04:26

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

                M 1 Reply Last reply 27 Apr 2018, 04:27 Reply Quote 0
                • M
                  mitu Global Moderator @H3rmitPl4ys
                  last edited by 27 Apr 2018, 04:27

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

                  H 1 Reply Last reply 27 Apr 2018, 04:30 Reply Quote 0
                  • H
                    H3rmitPl4ys @mitu
                    last edited by 27 Apr 2018, 04:30

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

                    M 1 Reply Last reply 27 Apr 2018, 04:40 Reply Quote 0
                    • M
                      mitu Global Moderator @H3rmitPl4ys
                      last edited by 27 Apr 2018, 04:40

                      @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
                      • H
                        H3rmitPl4ys
                        last edited by 27 Apr 2018, 04:47

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

                        M 1 Reply Last reply 27 Apr 2018, 06:12 Reply Quote 0
                        • M
                          mitu Global Moderator @H3rmitPl4ys
                          last edited by mitu 27 Apr 2018, 06:12

                          @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
                          • H
                            H3rmitPl4ys
                            last edited by 27 Apr 2018, 19:38

                            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.

                            M 1 Reply Last reply 28 Apr 2018, 04:41 Reply Quote 0
                            • M
                              mitu Global Moderator @H3rmitPl4ys
                              last edited by 28 Apr 2018, 04:41

                              @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
                              • H
                                H3rmitPl4ys
                                last edited by 28 Apr 2018, 05:19

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

                                M 1 Reply Last reply 28 Apr 2018, 09:26 Reply Quote 0
                                • M
                                  mitu Global Moderator @H3rmitPl4ys
                                  last edited by 28 Apr 2018, 09:26

                                  @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 3 Feb 2021, 02:03 Reply Quote 1
                                  • H
                                    H3rmitPl4ys
                                    last edited by 29 Apr 2018, 01:11

                                    @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 3 Feb 2021, 02:03

                                      @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 1 Feb 2022, 04:02
                                      • 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.

                                        [[user:consent.lead]]
                                        [[user:consent.not_received]]