Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th February 2024, 16:47   #25141  |  Link
Siso
Soul Seeker
 
Siso's Avatar
 
Join Date: Sep 2013
Posts: 714
I was hoping for a dsp plugin or other audio compressors.
Siso is offline   Reply With Quote
Old 16th February 2024, 18:16   #25142  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,646
If voices are too soft compared to the other sounds, then the center mix level is a great solution when downmixing.

Loudness Equalization is a standard Windows sound enhancement setting. It is not specific to Realtek driver.

MPC-HC has a "Volume Normalization" setting in its audio switcher settings. That does audio compression.
__________________
MPC-HC 2.2.1
clsid is offline   Reply With Quote
Old 17th February 2024, 00:19   #25143  |  Link
Damien147
Registered User
 
Join Date: Mar 2011
Posts: 380
Now that you mentioned Realtek I found this the other day suggesting to put default format in 24 bits 48000hz.You agree or I am missing something?
Damien147 is offline   Reply With Quote
Old 17th February 2024, 05:56   #25144  |  Link
Sunspark
Registered User
 
Join Date: Nov 2015
Posts: 472
Yes, it is ideal because video is almost always that.
Sunspark is offline   Reply With Quote
Old 17th February 2024, 11:01   #25145  |  Link
Siso
Soul Seeker
 
Siso's Avatar
 
Join Date: Sep 2013
Posts: 714
MPC-HC's volume normalization adjust the volume in a noticable way, you can spot when the volume is adjusted, not what I'm looking for.
Siso is offline   Reply With Quote
Old 17th February 2024, 14:55   #25146  |  Link
Damien147
Registered User
 
Join Date: Mar 2011
Posts: 380
Quote:
Originally Posted by Sunspark View Post
Yes, it is ideal because video is almost always that.
Ok,thanks.
Damien147 is offline   Reply With Quote
Old 17th February 2024, 17:11   #25147  |  Link
Sunspark
Registered User
 
Join Date: Nov 2015
Posts: 472
In fairness to the normalization function, it's a hard problem it's trying to solve. If the whole video was pre-fed into it, then it would be easier because it would be able to calculate everything in advance, but what happens instead is that it has to do it in real time. That, plus there are other parameters that can be set how it functions. Everyone has a different algorithm, this is why I suggest trying additional ones like the ones in the soundcard like Realtek's loudness equalization to compare against.

Related, the default value of 400% might be too high, 200% might be a better value to use.
Sunspark is offline   Reply With Quote
Old 17th February 2024, 17:28   #25148  |  Link
Siso
Soul Seeker
 
Siso's Avatar
 
Join Date: Sep 2013
Posts: 714
Quote:
Originally Posted by Sunspark View Post
In fairness to the normalization function, it's a hard problem it's trying to solve. If the whole video was pre-fed into it, then it would be easier because it would be able to calculate everything in advance, but what happens instead is that it has to do it in real time. That, plus there are other parameters that can be set how it functions. Everyone has a different algorithm, this is why I suggest trying additional ones like the ones in the soundcard like Realtek's loudness equalization to compare against.

Related, the default value of 400% might be too high, 200% might be a better value to use.
Loudness equalization is kind of a silly feature, tried it last night didn't like it at all.
Siso is offline   Reply With Quote
Old 17th February 2024, 19:13   #25149  |  Link
Sunspark
Registered User
 
Join Date: Nov 2015
Posts: 472
It's a useful feature. It's needed for DTS 5.1>2.0 which will often be too quiet. Also for streaming video from various websites, haven't you noticed many are also quiet?

I was doing an listening test earlier in HC trying out different combinations. One suggestion I can make which will make a difference whether normalization is on or off, is to have "ignore system channel mixer" be checked. This is actually disable windows audio enhancements which you can also do manually in the sound control panel. I find that when it is unchecked (enabled), voices are quieter on this realtek. Also in LAV mixer output set to stereo, change mixing center level to 1.00 (default is 0.71).
Sunspark is offline   Reply With Quote
Old 19th February 2024, 11:34   #25150  |  Link
flossy_cake
Registered User
 
Join Date: Aug 2016
Posts: 609
Quote:
Originally Posted by Siso View Post
I was hoping for a dsp plugin or other audio compressors.
Save this as a .avs file and open it in your media player with LAV as the source filter for opening .avs files

Code:
file = "C:\YourVideoFile.mkv"

# Decode the source file using LWLibav decoders (most reliable imo)
video = LWLibavVideoSource(file)
audio = LWLibavAudioSource(file, stream_index=-1, av_sync=true)
AudioDub(video, audio)

# Apply audio peak normalization - scans the entire audio track prior to playback and raises
# peak volume until loudest sample touches 2% below clipping
Normalize(0.98)

If the loudness still isn't sufficient for your taste, you will have to use compression to boost the quiet sounds and lower the loud sounds relative to each other.

If implemented poorly like the Microsoft driver then you will hear volume pumping which sucks. Dolby compression profiles are a lot better imo and have less pumping. Here are the Dolby profiles implemented in Avisynth with Sox Filter (specifically pinterf's recently updated version here which supports realtime use without distorting audio).

In order from least compression to most compression:

Code:
# film light fast 
SoxFilter("compand 0.01,1.00 -90,-90,-70,-64,-53,-47,-41,-41,-21,-21,-10,-16,0,-15 0 0 0.054")

# film light slow
SoxFilter("compand 0.10,3.00 -90,-90,-70,-64,-53,-47,-41,-41,-21,-21,-10,-16,0,-15 0 0 0.054")

# music light fast
SoxFilter("compand 0.01,1.00 -90,-90,-70,-58,-65,-53,-41,-41,-21,-21,0,-11 0 0 0.054")

# music light slow
SoxFilter("compand 0.10,3.00 -90,-90,-70,-58,-65,-53,-41,-41,-21,-21,0,-11 0 0 0.054")

#film standard fast
SoxFilter("compand 0.01,1.00 -90,-90,-70,-64,-43,-37,-31,-31,-21,-21,0,-20 0 0 0.054")

#film standard slow
SoxFilter("compand 0.10,3.00 -90,-90,-70,-64,-43,-37,-31,-31,-21,-21,0,-20 0 0 0.054")

# music standard fast
SoxFilter("compand 0.01,1.00 -90,-90,-70,-58,-55,-43,-31,-31,-16,-21,0,-20 0 0 0.054")

# music standard slow
SoxFilter("compand 0.10,10.0 -90,-90,-70,-58,-55,-43,-31,-31,-16,-21,0,-20 0 0 0.054")

# speech fast
SoxFilter("compand 0.01,0.20 -90,-90,-70,-55,-50,-35,-31,-31,-16,-21,0,-20 0 0 0.054")

# speech slow
SoxFilter("compand 0.10,1.00 -90,-90,-70,-55,-50,-35,-31,-31,-16,-21,0,-20 0 0 0.054")


For maximum volume do it before the Normalize(0.98) however the loading time will be longer due to having to run the whole audio track through SoxFilter first.

Fast/slow refers to the attack & decay times specified by Dolby which control how fast the compressor reacts to increases & decreases in the source volume.

Thanks to tebasuna51 for linking me to the Dolby docs to make these profiles from

Last edited by flossy_cake; 19th February 2024 at 11:50.
flossy_cake is offline   Reply With Quote
Old 2nd March 2024, 17:39   #25151  |  Link
mzso
Registered User
 
Join Date: Oct 2009
Posts: 930
Hello!

Why is audio much lower volume with LAV then everything else on the system? The same file is also much louder if I play it with MPV. (players both at 100% of course)
mzso is offline   Reply With Quote
Old 2nd March 2024, 17:49   #25152  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,780
Channels, mixing.

Can't tell you more without knowing all the details about your audio track and the setup of the LAV audio decoder.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 2nd March 2024, 17:55   #25153  |  Link
Megalith
Registered User
 
Join Date: Mar 2011
Posts: 132
Sadly, the best solution is usually to just turn up the volume. The geniuses at Dolby/DTS know how to do 9,000-channel surround sound, but they never bothered to make a smarter way of folding down surround to stereo.
Megalith is offline   Reply With Quote
Old 2nd March 2024, 18:04   #25154  |  Link
mzso
Registered User
 
Join Date: Oct 2009
Posts: 930
Quote:
Originally Posted by LigH View Post
Channels, mixing.

Can't tell you more without knowing all the details about your audio track and the setup of the LAV audio decoder.
Can I at least increase the output volume or something?
mzso is offline   Reply With Quote
Old 2nd March 2024, 18:05   #25155  |  Link
mzso
Registered User
 
Join Date: Oct 2009
Posts: 930
Quote:
Originally Posted by Megalith View Post
Sadly, the best solution is usually to just turn up the volume. The geniuses at Dolby/DTS know how to do 9,000-channel surround sound, but they never bothered to make a smarter way of folding down surround to stereo.
I'm not sure if it's just Dolby and DTS. The DVB mpeg-2 streams seem rather low as well.
mzso is offline   Reply With Quote
Old 2nd March 2024, 19:31   #25156  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,921
if you play 5.1 om stereo it is well known that the mixer in lavaudio does not have the same volume level as the windows mixer. this is intentional.

with pcm audio out there are multiply parts where the audio volume is changed so it's not just one to point at.
huhn is offline   Reply With Quote
Old 3rd March 2024, 01:27   #25157  |  Link
mzso
Registered User
 
Join Date: Oct 2009
Posts: 930
Quote:
Originally Posted by huhn View Post
if you play 5.1 om stereo it is well known that the mixer in lavaudio does not have the same volume level as the windows mixer. this is intentional.

with pcm audio out there are multiply parts where the audio volume is changed so it's not just one to point at.
But with audio set to 100% in media players I can do little other than change the system volume or speaker/TV volume all the time. Which sucks.
And the media player (with LAV) seems to be the lowest volume by a decent margin out of every app.
mzso is offline   Reply With Quote
Old 3rd March 2024, 03:38   #25158  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,921
if you don't mix it should be the same. at that point lavfilter doesn't do anything anymore.

you can also bit stream where lavfilter can't touch audio yet again.
all other stuff is the windows mixer the windows general audio level and some player allow for more then 100 % volume.

there is also the audio switcher.

mpv and mpc-hc have 100% the same volume here as it should be. but mpv allows for more then 100%.
huhn is offline   Reply With Quote
Old 3rd March 2024, 12:08   #25159  |  Link
Siso
Soul Seeker
 
Siso's Avatar
 
Join Date: Sep 2013
Posts: 714
There are two sound normalisers in mpc-be, the first one doesn't work as it should, the second one is from ffmpeg and it is ok. As for mpc-hc the internal normaliser is not so good tho.
Siso is offline   Reply With Quote
Old 3rd March 2024, 13:24   #25160  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,921
i don't see what this has todo with lavfilter?

the only place where lavfilter is changing "volume" is in mixing and DRC. the rest is bit perfect and the problem of the player and OS.
huhn is offline   Reply With Quote
Reply

Tags
decoders, directshow, filters, splitter

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:45.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.