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 4th October 2012, 15:11   #12261  |  Link
ajp_anton
Registered User
 
ajp_anton's Avatar
 
Join Date: Aug 2006
Location: Stockholm/Helsinki
Posts: 805
Just so I got this right:
Clipping protection doesn't do any dynamic compression, it's just a "smart/automatic" static normalizer that updates its normalization factor if/when clipping occurs. (And it never increases volume, it only decreases when necessary (unless you count adding 5 channels without dividing by 5 as increasing the volume).)

Would it be possible to remember the normalization factor when seeking, so the volume doesn't suddenly go back to "normal" when you didn't hear a word and rewind by 5 seconds?
ajp_anton is offline   Reply With Quote
Old 4th October 2012, 15:53   #12262  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Quote:
Originally Posted by ajp_anton View Post
Just so I got this right:
Clipping protection doesn't do any dynamic compression, it's just a "smart/automatic" static normalizer that updates its normalization factor if/when clipping occurs. (And it never increases volume, it only decreases when necessary (unless you count adding 5 channels without dividing by 5 as increasing the volume).)
Thats right

Quote:
Originally Posted by ajp_anton View Post
Would it be possible to remember the normalization factor when seeking, so the volume doesn't suddenly go back to "normal" when you didn't hear a word and rewind by 5 seconds?
I was meaning to do that, as someone else also suggested it before, it'll be in the next version.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is online now   Reply With Quote
Old 4th October 2012, 16:00   #12263  |  Link
dansrfe
Registered User
 
Join Date: Jan 2009
Posts: 1,210
Is it better to have normalization on or off? And if on then with clipping protection or off?

Also, does "Don't mix stereo sources" have an effect on stereo sources going to stereo output?
dansrfe is offline   Reply With Quote
Old 4th October 2012, 16:03   #12264  |  Link
DragonQ
Registered User
 
Join Date: Mar 2007
Posts: 934
I use "don't mix stereo sources" and "clipping protection" only. All of my TV channels (SD, HD, 2.0, 5.1) are all the same volume (aside from natural minor discrepancies between channels).
__________________
TV Setup: LG OLED55B7V; Onkyo TX-NR515; ODroid N2+; CoreElec 9.2.7
DragonQ is offline   Reply With Quote
Old 4th October 2012, 16:28   #12265  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Quote:
Originally Posted by dansrfe View Post
Is it better to have normalization on or off? And if on then with clipping protection or off?
Matrix Normalization ensures that you have a constant volume within one file - however, the volume between different files may change drastically, which is in many cases much worse then anything else (who wants to change the volume of their TV all the time?)
Matrix Normalization off, with Clipping protection will usually give you a constant volume between different files, and only rarely does it have to lower the volume mid-playback to avoid clipping.

When matrix normalization is active, clipping protection does usually not do anything - because the normalization ensures nothing is clipped.

The default settings usually are what most people prefer, in this case clipping on, matrixnorm off.

Quote:
Originally Posted by dansrfe View Post
Also, does "Don't mix stereo sources" have an effect on stereo sources going to stereo output?
The mixer never does any mixing when input channels = output channels, so if you select stereo output, it would never mix stereo input.
The only case where this option comes in useful is if you select mixing to 5.1 output (downmix 6.1/7.1), and you play a stereo file. Without the option active, it would output 5.1, with stereo in the front channels, and everything else silent. With the option on, no mixing is performed, and stereo is output as-is (just two channels, no silent channels).
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 4th October 2012 at 22:09.
nevcairiel is online now   Reply With Quote
Old 5th October 2012, 08:45   #12266  |  Link
fastplayer
Registered User
 
Join Date: Nov 2006
Posts: 799
Quote:
Originally Posted by nevcairiel View Post
The only case where this option comes in useful is if you select mixing to 5.1 output (downmix 6.1/7.1), and you play a stereo file.
I was beginning to question my sanity because you wrote "a 5.1 file" at first... *argh*
fastplayer is offline   Reply With Quote
Old 5th October 2012, 08:58   #12267  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Quote:
Originally Posted by fastplayer View Post
I was beginning to question my sanity because you wrote "a 5.1 file" at first... *argh*
Typos happen. :P
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is online now   Reply With Quote
Old 5th October 2012, 18:39   #12268  |  Link
Deim0s
Registered User
 
Join Date: Jul 2012
Posts: 20
May I once again ask them to fix incorrect display of the mixing coefficient LFE channel in the LAV Audio mixer.
Test file wav 5.1:
Link

When I mix this file in stereo (not LAV), from the matrix:
Lt = 100*L + 0.7071*C + 0.7071*LF + 100*SL
Rt = 100*R + 0.7071*C + 0.7071*LF + 100*SR
The correct result is as:
Image

If I select to LAV Audio mixer similar parameters:
Center Mix Level 0.7071
Surround Mix Level 1.0
LFE Mix Level 0.7071
in registry:
MixingCenterLevel 1b9f(7071)
MixingSurroundLevel 2710(10000)
MixingLFELevel 1b9f(7071)
I get the wrong result, level LFE channel too low:
Image

Correct result (0.7071) is obtained only when I put the level of LFE channel in LAV Audio mixer to 1.0:
Center Mix Level 0.7071
Surround Mix Level 1.0
LFE Mix Level 1.0
in registry:
MixingCenterLevel 1b9f(7071)
MixingSurroundLevel 2710(10000)
MixingLFELevel 2710(10000)
Image

Sorry, if my English is bad.
Deim0s is offline   Reply With Quote
Old 5th October 2012, 18:51   #12269  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
To make it more user-friendly i should instead change the Center value, so that 1.0 always means "original volume", and the channel duplication factor is calculated in afterwards. How would a normal user know that 0.7071 means "original volume"?
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is online now   Reply With Quote
Old 5th October 2012, 19:42   #12270  |  Link
Deim0s
Registered User
 
Join Date: Jul 2012
Posts: 20
Thanks for the explanation.
But still, for those who want to have an accurate value, it would be nice to have that ability (do not act at random).
And thank you for great work.
Deim0s is offline   Reply With Quote
Old 5th October 2012, 21:34   #12271  |  Link
Pat357
Registered User
 
Join Date: Jun 2006
Posts: 452
Quote:
Originally Posted by nevcairiel View Post
To make it more user-friendly i should instead change the Center value, so that 1.0 always means "original volume", and the channel duplication factor is calculated in afterwards. How would a normal user know that 0.7071 means "original volume"?
It's easy : 0.7071^2 + 0.7071^2 == 1 !
Pat357 is offline   Reply With Quote
Old 5th October 2012, 23:03   #12272  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
"normal user" = no algebra to calculate values

I like the idea of 1 = original volume, it seems intuitive.
Asmodian is offline   Reply With Quote
Old 6th October 2012, 00:45   #12273  |  Link
DragonQ
Registered User
 
Join Date: Mar 2007
Posts: 934
It's also wrong.

I said a while ago there should be a "default" button that'll return things to 0.7071 (or this should happen when changing the speaker output). Another issue with that dialogue box is that unticking "enable mixing" should grey out the other relevant controls but it doesn't right now.
__________________
TV Setup: LG OLED55B7V; Onkyo TX-NR515; ODroid N2+; CoreElec 9.2.7
DragonQ is offline   Reply With Quote
Old 6th October 2012, 07:23   #12274  |  Link
bugmen0t
Banned
 
Join Date: May 2012
Location: _Lies|Greed|Misery_
Posts: 114
To add some more confusion: Didn't someone said that particular testfile has channels with incorrect levels, lfe too low, maybe nev?

+1 for a default button
bugmen0t is offline   Reply With Quote
Old 6th October 2012, 13:53   #12275  |  Link
thomaz909
Registered User
 
Join Date: Jul 2004
Posts: 40
i also want "1" for original volume.

with "original" i mean that the same signal on all channels has the same db and maximum possible peak is 0db.

here is my selfmade test ac3 with same volume on all channels (all 5 wavs had same peak db and then encoded with encwavtoac3):
http://www15.zippyshare.com/v/54111956/file.html
http://ul.to/7pwd3gl4
http://www.share-online.biz/dl/ERF43HBMTP
http://www.load.to/l8Povkw3SF/SameVolumeOnAllChannels.ac3
http://netload.in/dateiKMtpOmrwqk/SameVolumeOnAllChannels.ac3.htm

Last edited by thomaz909; 6th October 2012 at 14:17.
thomaz909 is offline   Reply With Quote
Old 6th October 2012, 22:36   #12276  |  Link
mzso
Registered User
 
Join Date: Oct 2009
Posts: 930
Quote:
Originally Posted by nevcairiel View Post
I suppose it doesn't like that the video has a odd number of rows, which technically is invalid for 4:2:0 content.
madVR will also produce a green line, although at the bottom.

I guess i can try pad it with one extra line of blackness, but not sure how easy that will be.
Not a high priority, odd-numbered 4:2:0 content is invalid by definition (can't have half a row of chroma), and looks fine on nvidias scaler, or if you just use RGB output.
I think I might have ran into something like this, with video a file 693 rows. It's a bit weird though, because it doesn't matter if I switch madVR or LAV to something else the issue is fixed.
mzso is offline   Reply With Quote
Old 7th October 2012, 17:14   #12277  |  Link
sweatherly
Registered User
 
Join Date: Sep 2012
Posts: 2
Decode only the core

First of all, gotta say, I think LAV filters is excellent and has now replaced all my other splitters and decoders on my HTPC, so thank you!

Does anyone know, is there a way to set LAV up to decode only the 'core' when presented with a DTS-MA or True-HD audio track rather than the full HD audio?

Basically, by HTPC is underpowered and my main aim is for it to be quiet. When it goes above 30% CPU the fans kick in and it gets a little too noisy.

If I watch a 1080p source with AC3 audio then all is well, but when I watch a 1080p source with HD audio then this taxes my PC a little more (40-50% CPU) and the fans kick in.

As I only my HTPC connected to my TV I would like to set it up so that when presented with a HD audio stream, instead of downmixing the HD audio to 2 channel, it downmixes the 'core' DTS or 'interleaved' AC3 instead. Anyone know if this is possible with LAV?
sweatherly is offline   Reply With Quote
Old 7th October 2012, 18:28   #12278  |  Link
hoborg
Registered User
 
Join Date: Nov 2008
Posts: 454
Thanks!
__________________
Working machine: Win10x64 + Intel Skull Canyon
My HTPC.

How to start with Bitcoin
hoborg is offline   Reply With Quote
Old 7th October 2012, 19:56   #12279  |  Link
hoborg
Registered User
 
Join Date: Nov 2008
Posts: 454
Nev, i noticed that enabling YADIF will cause problems with DVD navigation menu :/
Butons fail to highlight.
Disabling YADIF fix it.
__________________
Working machine: Win10x64 + Intel Skull Canyon
My HTPC.

How to start with Bitcoin
hoborg is offline   Reply With Quote
Old 7th October 2012, 21:54   #12280  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Quote:
Originally Posted by hoborg View Post
Nev, i noticed that enabling YADIF will cause problems with DVD navigation menu :/
Butons fail to highlight.
Disabling YADIF fix it.
Try with this version:

x86: http://files.1f0.de/lavf/LAVFilters-...6-g1de6191.zip
x64: http://files.1f0.de/lavf/LAVFilters-...de6191-x64.zip

It seems to fix the issue for me, hopefully without crashing or causing other issues in the process.
As a bonus, during normal playback YADIF should no longer "eat" the last frame, either.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 7th October 2012 at 21:59.
nevcairiel is online now   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 12:03.


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