OpenELEC Testbuilds for RaspberryPi Part 2
(2013-11-30, 16:41)doveman2 Wrote:
(2013-11-26, 21:04)popcornmix Wrote:
(2013-11-26, 16:47)doveman2 Wrote: Is anyone finding that the audio amplification/compression gets messed up when jumping around in videos? I have it set to 18db and when I start watching something it's fine but when I jump forward or back, it seems to get a lot louder, like it's fixed itself to 18db and isn't adjusting in relation to the audio stream as it should.

That is expected.
The 18dB will be added to the volume when playback starts. To avoid clipping, there is an attenuation level that is calculated.
If (volume+amplification > max_level) then the attenuation is increased. The attenuation slowly decays when we are not in danger of clipping.
Overall this means that quiet parts of the movie are amplified by 18dB, but loud parts are left alone.

After a seek, the attenuation is reset to 0, and allowed to settle based on the current volume level in the file (exactly as if you'd started playback from there).
So, if you had just passed a loud part of movie, where attenuation had increased to 18dB, and you are now in a quiet part, the attenuation will be slowly decaying (e.g. it might be 15dB)
and you then seek to an equally quiet part, it will seem louder as the attenuation is reset to 0.
However it should be the same volume as you would have got just by waiting for the decay to take it to zero.

Of course I'd expect the volume to go louder briefly when skipping, as the attenuation has to reset and analyse the current volume to determine what it should be set to. The problem however is that it doesn't seem to kick in for a long time (30-60s), so that it's blaring loud for that time and I have to use the TV remote to reduce the volume and then increase it again once it's settled down. Often when I'm skipping, it's through the ads, which tend to be louder than the programme anyway, so it's not that I'm landing on quiet parts and it's boosting them to the max, I'm landing on loud parts and it's not attenuating them for a long while.

When I used ffdshow's volume boost/compression feature on the PC, I recall it would jump in volume when skipping but then adjust itself back down very quickly, so it wasn't really a problem.

Perhaps a possible solution would be to always set the attenuation to max when skipping (or starting, as we might be resuming a video at a loud point) and then let it analyse the volume and decay to the correct level?

I've also noticed there's a problem the other way. When watching TV, sometimes there's a glitch in the audio, probably caused by a glitch in the stream and the volume resets to minimum. At first I thought it was because the glitch was seen as loud and so it was adjusting and would come back up shortly but it appears to disable the amplification completely, as even going into the OSD settings and increasing/decreasing the amplification has no effect. I have to stop and restart the channel to get the volume back up to normal levels again.


Messages In This Thread
AW: RE: - by DieterLumpen - 2013-07-29, 20:50
include guires switch? - by hpbaxxter - 2013-08-01, 21:46
RE: dual audio?? - by pootler - 2013-08-03, 17:13
Help, watch 3D Film on Non 3D TV - by unix72 - 2013-08-09, 12:39
Remote Controllers - by tfft - 2013-08-14, 09:11
rbej repeatable crash - by RichG - 2013-08-19, 12:43
New Tester - by theneverstill - 2013-10-03, 17:16
RE: OpenELEC Testbuilds for RaspberryPi Part 2 - by doveman2 - 2013-12-04, 05:54
[split] missing subtitle stream - by Jönke - 2014-01-08, 21:03
3D Support - by michbeck100 - 2014-01-11, 01:01
No sound on Gotham builds - by URBANsUNITED - 2014-01-13, 15:19
Logout Mark Read Team Forum Stats Members Help
OpenELEC Testbuilds for RaspberryPi Part 223