Video snaps playing at full volume.

Having trouble with your GBZ build? Ask your questions here!
Post Reply
username 123
Posts: 134
Joined: Thu Jun 09, 2016 5:45 pm
Has thanked: 33 times
Been thanked: 29 times

Video snaps playing at full volume.

Post by username 123 » Fri Aug 11, 2017 3:23 pm

All my video snaps are playing at full volume through hdmi audio and i cant adjust it or change output. I am currently using wermys custom mintypi image and OMX player HW accelerator on. Anyone know how to fix it?

User avatar
RxBrad
Posts: 278
Joined: Fri Jul 22, 2016 9:10 am
Has thanked: 125 times
Been thanked: 160 times
Contact:

Re: Video snaps playing at full volume.

Post by RxBrad » Tue Aug 15, 2017 7:03 am

I just turned off snapshot video sound in the RetroPie Start Menu. My ears bleed a lot less now.
Image
Image Image

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Video snaps playing at full volume.

Post by YaYa » Tue Aug 15, 2017 12:47 pm

Lol :lol: i love the bleeding ears image ;)
Follow me on instagram Image

username 123
Posts: 134
Joined: Thu Jun 09, 2016 5:45 pm
Has thanked: 33 times
Been thanked: 29 times

Re: Video snaps playing at full volume.

Post by username 123 » Thu Aug 17, 2017 9:07 pm

So the only solution I have is to turn off the video snap sound?

Viriiguy
Posts: 4
Joined: Thu Aug 31, 2017 11:06 am

Re: Video snaps playing at full volume.

Post by Viriiguy » Mon Oct 16, 2017 4:29 pm

There has to be a config file somewhere, that controls the volume.

User avatar
fraggle
Posts: 50
Joined: Mon Mar 06, 2017 2:28 pm
Has thanked: 18 times
Been thanked: 16 times

Re: Video snaps playing at full volume.

Post by fraggle » Tue Nov 14, 2017 10:40 am

I don't think there is a user editable config - you would need to change emulationstation source and compile it.

Actually it would be a fairly trivial change looking at it. The file is: /es-core/src/components/VideoPlayerComponent.cpp - line 113

Currently you have...

Code: Select all

113: int OMXVolume = (int)((percentVolume-98)*105);
As you can see the snapshot video volume is being calculated as a value based on the system volume...this seems really odd and looks like a bug the --vol param being passed to oxmplayer expects values in the range [-6000,0] - however as it is being calculated various values will give odd results...

(98-98)*105=0=full volume!
(99-98)*105=105=OOR so full volume!
(100-98)*105=210=OOR so full volume!

even setting the system vol to 0 produces
(0-98)*105=-10290=circa 80% volume!

To fix - either set the volume at a good level (say -4000, and hardcode it. You can play around with omxplayer using --vol flag to determine what the best level is...)

Code: Select all

113: int OMXVolume = -4000;
Or else, much better, refine the calculation so that it translates the range [0,100] to [-6000,0] correctly, i.e. in a logarithmic fashion.

Code: Select all

113: int OMXVolume = (int)(log(percentVolume/100)*2000);
So that the current ES system volume is used for the omxplayer in snapshots.

FWIW I patched this myself and put in a pull request for it to be fixed at source - https://github.com/RetroPie/EmulationStation/pull/305

Hope that helps.

:)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest