-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Reduce Loud Sounds (aka Night Mode, aka Reduce Full Range Audio, etc..) #1492
Comments
What is the algorithm here? Since you mentioned terms which made me think about the EBU R128 loudness norm. For me simply sliding down the volume would solve the problem. But I suppose that 'Reduce Loud Sounds' option simply is trying to reduce the dynamic range which is relatively high for movie soundtracks so loud peaks are toned down while the soft whispers like vocals can use a little boost. |
Would love to see that in IINA. In the meantime, could you share your audio filter? Is it a FFmpeg filter? |
@jerkstore369 @berengerzyla However inserting the filter in IINA is quite difficult in
IINA immediately tries to add lavfi (Libavfilter input virtual device). At this stage, I am not even sure whether the Audio Filters GUI in IINA actually works. Maybe one of the IINA developers can show us how to insert FFmpeg filters within IINA. |
All digital releases of movies should have less dynamic audio, for sure. |
Oh man! I wish this was a feature. Im watching event horizon right now and hating the dynamism. Any updates on this? |
I was just going to see how far I could get trying to use some FFmpeg filter for this. But Rafael Prado seems to have done some very valuable work on this, but I think it is not available publicly. @pradorocchi -- do you mind sharing what you've done so far? I would love to see it, and help if I can.
|
The filter "dynaudnorm" does everything I need with its default setting. It intelligently keeps the volume fairly level. As @atomicsaiko mentioned, dealing with audio filters is a bit sketchy in iina. The current releases, 1.0.6 and 1.0.7 beta both have (different) bugs that make the following impossible -- but this should work in 1.0.7 whenever it comes out. Here's how to create and save a filter (dynaudnorm with default settings) that can be toggled on and off:
Now, it should be in the top pane, meaning it's audible/active, as well as in the bottom pane, which is a list of saved filters. These filters can be toggled, which inserts/removes them from the active filters list above. https://ffmpeg.org/ffmpeg-filters.html#dynaudnorm *I have noticed the name and value fields change position, maybe not in this particular window, but be aware. |
@ekstasis's dynaudnorm guidelines somehow worked for me with 1.0.6 |
Hi,
A lot of people watch movies at night, some newer device players like AppleTV have this "Reduce Loud Sounds" option for night play, today we depend on 3d party apps on Mac to have this kind of adjust (eg: Boom, where they call it 'night mode' [but it´s not a good calibration])..
So I thought it could be a good feature to have it on iina and I implemented [a very well calibrated] 'night feature' (still hardcoded on a local branch for testing) using iina's ffmpeg audio filters.
Although it´s possible to do it via Custom Audio Filter, it requires a very complex filter parametrization to meet quality standardization (i'm following ITU guidelines for 'momentary', 'short term', 'integrated' and 'peak' audio values) so I decided this could be a "ready to use" practical option for the user (instead of building a custom filter)
My feature is still hardcoded and I´m working now on the UI to add it as an option, here is a screenshot of it as of now.
My questions:
Are there any guidelines to follow for adding such kind of feature?
Are there any guidelines/rules about changing the UI to add such feature? (My reference is being the video deinterlace UI option style)
Is it a nice feature for iina and for others? :)
Waiting for your comments.
Regards,
Prado
The text was updated successfully, but these errors were encountered: