• 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

Background Music Compatible with Video Preview Audio?

Scheduled Pinned Locked Moved Help and Support
video previewsbackgroundmusic
24 Posts 6 Posters 4.3k 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.
  • J
    jurassicplayer @Highfoot
    last edited by 17 Jun 2020, 10:16

    @Highfoot
    Actually I added a cpu threshold for emulationstation into my script. Pretty much when ES goes over the cpu_threshold, it will assume that ES is playing a video and do the same fade out.

    The only downside is that it could still trigger if ES decides to spike up in CPU usage (shuffling through a list of games, etc.), but it's a customizable value so you can set it to whatever you see ES tend to hover at while playing a video. That and it's another package dependency.

    I'd still say to see if mitu's suggestion works, and if all else fails, then there is always my script as a workable backup.

    H 1 Reply Last reply 17 Jun 2020, 10:48 Reply Quote 0
    • H
      Highfoot @mitu
      last edited by 17 Jun 2020, 10:46

      @mitu I suppose you mean this? These two options makes both the video and sound go away. I don’t really know what to make out of it. If the result of these options is the same as the command manually wrote in the terminal it is really weird, right?

      This is my setup, if it is any use to you guys:

      Model: Raspberry pi 3b+ built into an Picade cabinet.
      Power Supply used: 5.1V 3A
      RetroPie Version Used: 4.6 rpi2
      Emultationstation 2.9.1RP
      Built From: image from Retropie’s official site.
      USB Devices connected: none
      Controller used: Picade stick and buttons

      omx1.jpg omx2.jpg

      1 Reply Last reply Reply Quote 0
      • H
        Highfoot @jurassicplayer
        last edited by 17 Jun 2020, 10:48

        @jurassicplayer Wow, sound nice. Really appreciate that! But as you say, let’s see if we can get omxplayer to runt properly. It should not be impossible. :)

        M 1 Reply Last reply 17 Jun 2020, 11:09 Reply Quote 0
        • M
          mitu Global Moderator @Highfoot
          last edited by 17 Jun 2020, 11:09

          @Highfoot said in Background Music Compatible with Video Preview Audio?:

          It should not be impossible. :)

          As I said, take look at the 1st stickied topic in the Help section.

          H 1 Reply Last reply 17 Jun 2020, 11:16 Reply Quote 0
          • H
            Highfoot @mitu
            last edited by 17 Jun 2020, 11:16

            @mitu thanks! I first did not get where you meant i should look, but i get it now. I will read this and try this out and get back to you if it was a success. :)

            1 Reply Last reply Reply Quote 0
            • H
              Highfoot
              last edited by Highfoot 17 Jun 2020, 12:10

              Hello again @mitu ,

              I followed the post and updated RetroPie-setup script (was that correct?) and Emulationstation. I know have the Alsa to choose from the sound options in ES. I also choose HDMI as Audio device but still no sound. I do notice that the volume slider indeed is stuck to 0% and seems to only work if i choose PCM as Audio device.

              When i quit out to the terminal i also saw the “lvl0: VolumeControl::init() - Failed to find mixer elements“ as mentioned in the post.

              Worth mentioning is that my audio goes through a speaker that is mounted inside the Picade cabinet. Is HDMI as audio device still correct is that case?

              Did i do something wrong/missed something? Sorry for being such a noob...

              M 1 Reply Last reply 17 Jun 2020, 12:22 Reply Quote 0
              • M
                mitu Global Moderator @Highfoot
                last edited by 17 Jun 2020, 12:22

                @Highfoot said in Background Music Compatible with Video Preview Audio?:

                Did i do something wrong/missed something? Sorry for being such a noob...

                Did you read the whole post ? It specifies what settings apply in each audio output situation.

                H 1 Reply Last reply 17 Jun 2020, 14:01 Reply Quote 0
                • H
                  Highfoot @mitu
                  last edited by 17 Jun 2020, 14:01

                  @mitu I think so, sorry. I tried both “audio output HDMI” and “Headphone” but none of them worked. I do not see any other options specified. I just noticed though that my screensaver that is set to use omxplayer do have sound, but still nothing on the video previews in the games selection area. Don’t know what to make of that...

                  I just realized that i mixed up that there is audio settings for both RetroPie and EmulationStation, but i only get “On-board audio disabled or not present” when i go into RetroPie setup.

                  M 1 Reply Last reply 17 Jun 2020, 14:45 Reply Quote 0
                  • M
                    mitu Global Moderator @Highfoot
                    last edited by 17 Jun 2020, 14:45

                    @Highfoot said in Background Music Compatible with Video Preview Audio?:

                    but i only get “On-board audio disabled or not present” when i go into RetroPie setup.

                    This usually means you disabled the on-board audio and you have an exernal audio card (I2s/USB).

                    1 Reply Last reply Reply Quote 0
                    • H
                      Highfoot
                      last edited by Highfoot 17 Jun 2020, 15:13

                      @mitu Yes, there is an HAT on the RP3b+ so i guess The onboard card disabled itself when i installed it with the script provided. On this HAT there is a two pin contact for the speaker that i use. What i now don’t understand is why the audio for the emulators and the screensaver (videos played with omxplayer) do work perfectly, but not the audio for the video previews when selecting games.

                      The screensaver working is a one step closer at least! :D

                      1 Reply Last reply Reply Quote 0
                      • M
                        mitu Global Moderator
                        last edited by 17 Jun 2020, 19:31

                        If you selected omxplayer as video player in EmulationStation, then it should be enough to have audio properly working for video previews. The instruction in the sticky post refer to the on-board audio, so they don't match 100% to your case. If you Audio Device doesn't work with any of the options present - HDMI/Headphone are for the on-board audio - you can edit EmulationStation's settings file ($HOME/.emulationstation/es_settings.cfg) and add the name there. I think more details are in the Audio documentation page.

                        H 2 Replies Last reply 17 Jun 2020, 19:48 Reply Quote 0
                        • H
                          Highfoot @mitu
                          last edited by 17 Jun 2020, 19:48

                          @mitu Thanks! I will look into this. :)

                          1 Reply Last reply Reply Quote 0
                          • H
                            Highfoot @mitu
                            last edited by 17 Jun 2020, 19:55

                            @mitu Ok, now i just heard that i did have sound on my previews, even when i select games! It is just veeeeery low. The screensaver sound is still on the right volume level, so do not know why they differ, but i vill try to investigate.

                            1 Reply Last reply Reply Quote 0
                            24 out of 24
                            • First post
                              24/24
                              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.

                              This community forum collects and processes your personal information.
                              consent.not_received