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

    Can I adjust volume when using OMXPlayer in EmulationStation?

    Scheduled Pinned Locked Moved Help and Support
    emulationstaionomxplayervideo snapsvolume
    21 Posts 8 Posters 6.0k 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
      joelkolb
      last edited by

      I am running RetroPie 4.2 on a Pi 3. I would like to enable OMXPlayer for video rendering in EmulationStation and keep the sound for video snaps turned on but the volume is soooooo loud using OMXPlayer. Is there a way to adjust the volume OMXPlayer is set at when playing video snaps in ES? I had the same problem with the volume on video splash screens and found in another thread that you can edit /etc/init.d/asplashscreen and add the --vol argument to the line for OMXPlayer to set its volume and that worked great. Is there maybe some other file with commands or configurations for OMXPlayer when it is used for video rendering in ES where the volume can be set? Or some other way perhaps?

      1 Reply Last reply Reply Quote 3
      • meleuM
        meleu
        last edited by

        I would like to know it too. Maybe @pjft has something to share on this subject.

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        1 Reply Last reply Reply Quote 1
        • darkniorD
          darknior
          last edited by

          If i'm real i see some one trying to add it to ES to have the same volume than emulators.
          But i read he has a problem to compile and i don't know if it is now ok to merge to master branch or not.
          I wish it will come too because when i come back to the menu the video sound is really so heavy :(

          Life is game, just play it !

          1 Reply Last reply Reply Quote 0
          • pjftP
            pjft
            last edited by

            Not at the moment. There was some work going on for that, but I wasn't able to pick it up because of the collections work.

            I just submitted it:

            https://github.com/RetroPie/EmulationStation/pull/220

            As soon as it's approved, it should respect the setting in the Sound Settings.

            Sorry for the trouble, and thanks for tagging me @meleu .

            darkniorD 1 Reply Last reply Reply Quote 2
            • J
              joelkolb
              last edited by

              Thanks! Glad to hear it's being worked on.

              1 Reply Last reply Reply Quote 1
              • darkniorD
                darknior @pjft
                last edited by

                @pjft Yes i see it and try it this morning, it is perfect :D
                Now i use ES during Night without risk of waking up the whole house when i quit a game lol
                Thanks

                Life is game, just play it !

                1 Reply Last reply Reply Quote 2
                • S
                  sub_atomic
                  last edited by

                  Will this allow me to decrease the volume of video previews without it affecting the in-game volume?

                  pjftP 1 Reply Last reply Reply Quote 0
                  • pjftP
                    pjft @sub_atomic
                    last edited by

                    @sub_atomic I believe so. I mean, the in game volume is not related to the ES volume setting right now, is it? I wouldn't expect it to be, but since I never really changed it I want to confirm that.

                    This only adds support for OMX player video audio to respect whatever was in place before. Hope that helps clarify.

                    BuZzB 1 Reply Last reply Reply Quote 0
                    • BuZzB
                      BuZz administrators @pjft
                      last edited by BuZz

                      @pjft I believe ES controller overall system volume - at least on the RPI. (not 100% on this - would have to check to confirm).

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      pjftP 1 Reply Last reply Reply Quote 0
                      • pjftP
                        pjft @BuZz
                        last edited by pjft

                        @buzz thanks. In that case, not only do I likely stand corrected, but that will certainly come in handy if that's the case, as I've been struggling to come up with an elegant solution to control the volume in a cabinet project I'm working on.

                        I'll try to test it when I have the chance.

                        EDIT: Tested and confirmed. Thanks for the pointer.

                        1 Reply Last reply Reply Quote 0
                        • W
                          Wombat
                          last edited by

                          I'm having the same issue as the OP but can't figure out how to solve the problem through pjft's post on github. (ES video previews much louder than in game sounds)

                          Which file am I looking to change within the retropie directory?

                          1 Reply Last reply Reply Quote 0
                          • pjftP
                            pjft
                            last edited by

                            For the original problem, in the latest versions of ES the volume slider should also affect OMX Player.

                            W 1 Reply Last reply Reply Quote 0
                            • W
                              Wombat @pjft
                              last edited by

                              @pjft
                              I'm on RetroPie 4.3 and ES V2.6.3RP. (Just updated ES, from source, through retropie's setup)
                              The only volume slider I see within ES is the system volume. When I move that up or down, it also affects the emulator volume. Turning the system volume down, so that the video previews are not blasting, makes the emulators nearly muted. What am I doing wrong?

                              pjftP 1 Reply Last reply Reply Quote 0
                              • pjftP
                                pjft @Wombat
                                last edited by

                                @wombat Sorry, correct. You're not doing anything wrong. The OP's problem was just changing the OMX Player volume with the ES slider. That's what's been implemented.

                                Your problem seems to be closer now to the more recent question of "how to make it so that changing ES volume won't affect the emulators' volume as well". This is not as much an OMX Player problem as it is a wider ES one - even though I can see why controlling video previews' volume has now made that difference more apparent.

                                That isn't something I have an immediate solution for, though I could speculate that there would be a way to work that out in runcommand if needed, resetting the alsamixer(or similar) volume before launching an emulator.

                                @cyperghost and @meleu : would you have any thoughts or considerations on this particular item?

                                At the moment, I - personally, in an extremely non-informed nor definite manner - feel that ES controlling the volume of the entire system makes sense, as it is useful for RetroPie when being used in cabinets or other devices for controlling everything, as well as keeping volume semi-consistent across the entire experience. That being said, if it is deemed that that isn't the intention, I'm positive it's easy to change that.

                                The only thing I can attempt to tackle, though, and for that I'd like your inputs on, is: is the volume with OMX Player louder or significantly louder to the one with VLC? If that's the case, I'm happy to tone down the OMX Player volume on its own, as that is certainly not the intention - ideally the volumes would be similar (bar any particular rounding/approximations).

                                If, however, the volume levels are similar enough across the different range of volumes - 1% to 100% - then that's down to the volume of the videos we're scraping. We could fictitiously tone down the overall video volume, but then I fear that people may end up commenting on the opposite - that videos are low and then the emulators are louder than they expect.

                                Let me know what your experience is, and thanks for flagging this.

                                1 Reply Last reply Reply Quote 1
                                • W
                                  Wombat
                                  last edited by Wombat

                                  Thanks for looking into that, pjft!

                                  I made a workaround for my issue. I ended up doing the following:

                                  Increased alsamixer from 42 to 85 - Found in this thread: https://retropie.org.uk/forum/topic/4777/very-low-volume-hdmi/3

                                  That automatically increased my ES system volume from 77 to 95.

                                  From there, I went into retroarch (select + "B" while in game) and changed that audio setting from 0.0 to 2.0. (This thread helped out: http://www.sudomod.com/forum/viewtopic.php?f=42&t=1919 )

                                  Success! Changing retroarch helped level out the volume with the video previews in the ES. Audio is even across the board. :)

                                  Although it would've been nice to turn down ES volume solely, the above gave me the same results. Just a little more tinkering.

                                  1 Reply Last reply Reply Quote 3
                                  • pjftP
                                    pjft
                                    last edited by

                                    @Wombat Thanks for sharing, that's interesting to know.

                                    If you still can check whether the volume of VLC and OMX Player are (significantly) different, do let me know, as that is not the intention.

                                    Thanks, and glad to hear you're sorted for the time being!

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      jwcbronski
                                      last edited by

                                      @pjft I can confirm that the OMX Players volume is much higher that that of the VLC. It's the reason why I don't use it.
                                      Would be great if you could lower the OMX Players volume on it's own so that it matches the VLC Players volume.

                                      pjftP W 2 Replies Last reply Reply Quote 1
                                      • pjftP
                                        pjft @jwcbronski
                                        last edited by

                                        @jwcbronski I see. Thanks for the heads up.

                                        In that case, I'll look into it on my own videos and then see what can/should be done about it, to match VLC. I'm sure it's something related to the manual conversion from ES 1-100% volume scale and OMX's volume scale.

                                        Thanks.

                                        1 Reply Last reply Reply Quote 0
                                        • W
                                          Wombat @jwcbronski
                                          last edited by

                                          @jwcbronski said in Can I adjust volume when using OMXPlayer in EmulationStation?:

                                          @pjft I can confirm that the OMX Players volume is much higher that that of the VLC. It's the reason why I don't use it.
                                          Would be great if you could lower the OMX Players volume on it's own so that it matches the VLC Players volume.

                                          JWC, glad to know you have the problem as well.

                                          Is there a way to use VLC to play the video previews rather than OMX? If so, will there be any issues with lag? If I run without using the OMX HW acceleration, my video previews are laggy/choppy.

                                          pjftP 1 Reply Last reply Reply Quote 0
                                          • pjftP
                                            pjft @Wombat
                                            last edited by

                                            @wombat when you disable OMX player hardware acceleration, you're effectively using VLC.

                                            1 Reply Last reply Reply Quote 0
                                            • 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.