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 > General > Audio encoding

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 25th March 2010, 21:49   #9861  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by b66pak View Post
avisynth script for 5.1 to Stereo NO LFE:
sox remix line for 5.1 to Stereo NO LFE:
avisynth script for 5.1 to Stereo with LFE:
sox remix line for 5.1 to Stereo with LFE:
avisynth and sox seem to use the same matrixes? But is this a standard matrix? Or did just somebody say "this sounds ok" and everyone else is copying the parameters?

Quote:
Originally Posted by spork985 View Post
I redownloaded and tried it and it does the same thing. I hashed all the files with md5 and they match the hashes of the fiels on the computer that does work.
Hmmmm... Maybe your PC doesn't like the libFlac.dll version for whatever reason. You could try replacing the libFlac.dll with an older version. eac3to ships with libFlac 1.2.1. You can get older versions here in the "flac-win" section:

http://sourceforge.net/projects/flac/files/

You need to download the "flac-x.x.x-devel-win.zip" file. That's the only one where the libFlac.dll file is in.
madshi is offline  
Old 26th March 2010, 03:17   #9862  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by madshi View Post
avisynth and sox seem to use the same matrixes? But is this a standard matrix? Or did just somebody say "this sounds ok" and everyone else is copying the parameters?
Is the standard matrix:

fl' = FL + sqr(2)/2 x FC + BL
fr' = FR + 0.7071 x FC + BR

now we have the same acustic power for FC when add the part in FL and FR.

If all channels have a peak at same time we can have overflow reaching values until 2.7071, then we need divide the coefficients by 2.7071:
1/2.7071 = 0.3694
0.7071/2.7071 = 0.2612

fl' = 0.3694 x FL + 0.2612 x FC + 0.3694 x BL
fr' = 0.3694 x FR + 0.2612 x FC + 0.3694 x BR

Now the max value is:
0.3694 + 0.2612 + 0.3694 = 1
After the downmix is recommended a Normalize to avoid low volume.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 26th March 2010, 09:10   #9863  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by tebasuna51 View Post
Is the standard matrix:

fl' = FL + sqr(2)/2 x FC + BL
fr' = FR + 0.7071 x FC + BR

now we have the same acustic power for FC when add the part in FL and FR.
Ok, thanks, that makes a lot of sense.

Now the big question is: How should I make this available in eac3to? Right now "-down2" invokes Dolby ProLogic II. How should I name the options for Dolby ProLogic II and for this other downmixing matrix? Maybe I should use "-down2" for the normal matrix and "-downDpl2" for Dolby ProLogic II? Any other suggestions?

Quote:
Originally Posted by tebasuna51 View Post
If all channels have a peak at same time we can have overflow reaching values until 2.7071, then we need divide the coefficients by 2.7071:
1/2.7071 = 0.3694
0.7071/2.7071 = 0.2612

fl' = 0.3694 x FL + 0.2612 x FC + 0.3694 x BL
fr' = 0.3694 x FR + 0.2612 x FC + 0.3694 x BR

Now the max value is:
0.3694 + 0.2612 + 0.3694 = 1
After the downmix is recommended a Normalize to avoid low volume.
I'll simply skip the 2.7071 division. If there's overflow/clipping, eac3to will detect that automatically and fix it in a 2nd run, resulting in normalized audio.
madshi is offline  
Old 26th March 2010, 09:33   #9864  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
Hello.
Question about use. If i want to extract the raw video track from an .mts/.m2ts file, to get an untouched raw video data stream, to be able to use it later in authoring SW like Scenarist.
Is the following enough : eac3to file.mts -demux
or, is there others options to add ? (Maybe to extract only video if possible).
If i want the results file(s) to be put on another place than the source file, what the command line should be ?
Thanks.
jpsdr is offline  
Old 26th March 2010, 15:36   #9865  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by madshi View Post
Now the big question is: How should I make this available in eac3to? Right now "-down2" invokes Dolby ProLogic II. How should I name the options for Dolby ProLogic II and for this other downmixing matrix? Maybe I should use "-down2" for the normal matrix and "-downDpl2" for Dolby ProLogic II? Any other suggestions?
To be backward compatible I suggest use a new parameter "-downstereo" for the new mix and let "-down2" with the Dolby ProLogic II behaviour.

Quote:
I'll simply skip the 2.7071 division. If there's overflow/clipping, eac3to will detect that automatically and fix it in a 2nd run, resulting in normalized audio.
You are right, maybe you can use the same procedure for dpl2 with:

fl' = FL + 0.7071 x FC + 0.866 x BL + 0.5 x BR
fr' = FR + 0.7071 x FC - 0.5 x BL - 0.866 x BR
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 26th March 2010, 16:30   #9866  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Let's say, I create an MKV which contains DTS audio, encoded from 16-bit .WAVs. When I demux the MKV with eac3to, this always "patches" the demuxed DTS to "24-bits". What is the point of this behavior?

Last edited by Midzuki; 26th March 2010 at 16:57.
Midzuki is offline  
Old 26th March 2010, 17:03   #9867  |  Link
SomeJoe
Registered User
 
Join Date: Jan 2003
Posts: 315
Quote:
Originally Posted by Midzuki View Post
Let's say, I create an MKV which contains DTS audio, encoded from 16-bit .WAVs. When I demux the MKV with eac3to, this always "patches" the demuxed DTS to "24-bits". What is the point of this behavior?
DTS and Dolby Digital store audio information in the frequency domain. As such, they do not have a "bit depth". When PCM audio (time-domain) is recreated from them during decoding, the audio may in fact decode to values that have data into the 8 additional bits. Those bits may not be accurate with respect to the source, but are accurate with respect to the frequency-domain representation in the compressed audio.

Remember that a 16-bit PCM source is itself an approximation of an analog waveform, and as such is inaccurate because of the 16-bit quantization.
__________________
- SomeJoe

Last edited by SomeJoe; 26th March 2010 at 17:08.
SomeJoe is offline  
Old 26th March 2010, 17:12   #9868  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by Midzuki View Post
Let's say, I create an MKV which contains DTS audio, encoded from 16-bit .WAVs. When I demux the MKV with eac3to, this always "patches" the demuxed DTS to "24-bits". What is the point of this behavior?
This is because standard DTS isn't lossless. The internal precission of the samples, in frequency domain, is equivalent (not equal) to 24 bits in time domain (no matter what is the source bitdepth).

Then decode to 24 bits is always better than decode to 16 bits, BTW if you want only 16 bits you can add -down16.

edit: I don't see the SomeJoe post with, more or less, the same thing.
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 26th March 2010 at 17:15.
tebasuna51 is offline  
Old 26th March 2010, 18:07   #9869  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
@madshi in my opinion we should have:

Code:
-down2stereo
-down2dpl
-down2dpl2
-lfe
the present "-down2" will be equal to "-down2dpl2" for backward compatibility...

also for everybody to be happy i think you should also give full access to the mixer with something like:

Code:
-down2custom 1v0.3694,3v0.2612,5v0.3694 2v0.3694,3v0.2612,6v0.3694
this will also solve the present eac3to inability to downmix anything but 5.1...

for example a 3ch (FL,FR,FC) to stereo will luke like:

Code:
-down2custom 1v0.5858,3v0.4142 2v0.5858,3v0.4142
_
b66pak is offline  
Old 26th March 2010, 18:44   #9870  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by b66pak View Post
...
also for everybody to be happy i think you should also give full access to the mixer with something like:

Code:
-down2custom 1v0.3694,3v0.2612,5v0.3694 2v0.3694,3v0.2612,6v0.3694
...
That's could be interesting.

A 'Quadro' audio (2/2.0 : FL,FR,BL,BR) can be downmixed to Dpl2 with:
Code:
-down2custom 1v1.0000,3v0.8660,4v0.5000 2v1.000,3v-0.5000,4v-0.8660
(the sample is for remember accept the '-' sign)
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 26th March 2010, 19:28   #9871  |  Link
spork985
Registered User
 
Join Date: May 2008
Posts: 4
Quote:
Originally Posted by madshi View Post
Hmmmm... Maybe your PC doesn't like the libFlac.dll version for whatever reason. You could try replacing the libFlac.dll with an older version. eac3to ships with libFlac 1.2.1. You can get older versions here in the "flac-win" section:

http://sourceforge.net/projects/flac/files/

You need to download the "flac-x.x.x-devel-win.zip" file. That's the only one where the libFlac.dll file is in.
FLAC 1.1.4 worked, flac 1.2.0 would not. Thank you very much, I have been going crazy about this for a few days now!
spork985 is offline  
Old 26th March 2010, 21:56   #9872  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
tebasuna51 wrote:

Quote:
BTW if you want only 16 bits you can add -down16.
Doesn't work. MediaInfo says the demuxed DTS still "is" 24-bits. Fortunately, there are workarounds — namely, TSMuxer and AVI-Mux GUI.

SomeJoe wrote:

Quote:
Remember that a 16-bit PCM source is itself an approximation of an analog waveform, and as such is inaccurate because of the 16-bit quantization.
Even a 64-bit @ 768kHz PCM file will be "just an approximation". Remember, there is no such thing as a "perfect" Analog-To-Digital conversion.

Anyway, thanks for the accurate answers.
Actually, I was expecting to receive an answer from madshi himself, but it seems he really is "much busier" than I thought.
Midzuki is offline  
Old 26th March 2010, 22:26   #9873  |  Link
Snowknight26
Registered User
 
Join Date: Aug 2007
Posts: 1,430
It doesn't matter what MediaInfo says about lossy tracks regarding bitness. It's not 16-bit and it's not 24-bit.
Snowknight26 is offline  
Old 26th March 2010, 22:47   #9874  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
Quote:
Originally Posted by Snowknight26 View Post
It doesn't matter what MediaInfo says about lossy tracks regarding bitness. It's not 16-bit and it's not 24-bit.
all right, can be but...
i was sending pm to Midzuki telling that i have few dvds where olaying DTS from video_ts folder my receiver/decoder inform in the display: 24b..this info stay there until the dvd end!
others dvds don't inform and i don't know how to encode in 24b.
i need lessons and explanations about this informations. how and what program can be used to do that?!?
Porcupine Tree is one of my DVDs that give 24b info, i have others!

@ Midzuki
i could not resisit to post here too but i'm waiting yours infos too.
raquete is offline  
Old 26th March 2010, 22:48   #9875  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Quote:
Originally Posted by Snowknight26 View Post
It doesn't matter what MediaInfo says about lossy tracks regarding bitness. It's not 16-bit and it's not 24-bit.
I already knew that, since DTS "Digital Surround" is a lossy format. BUT, a binary file-comparison between a 16-bit DTS and a "patched-to-24-bits" DTS shows they are different beasts (on a "frame-by-frame" level, I think).
Midzuki is offline  
Old 27th March 2010, 00:13   #9876  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
4 raquete: lossy "24-bit DTS" requires 24-bit sources
@ 96kHz or higher.

Also, take a look at your PM inbox.
Midzuki is offline  
Old 27th March 2010, 01:18   #9877  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
Quote:
Originally Posted by Midzuki View Post
4 raquete: lossy "24-bit DTS" requires 24-bit sources
@ 96kHz or higher.

Also, take a look at your PM inbox.
great, i got the lesson Mid.

thanks so much!
raquete is offline  
Old 27th March 2010, 03:32   #9878  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
One more time, AC3/DTS standard (lossy) don't have bitdepth. The parameter quality for this files is the bitrate, forget the bitdepth.

Only DTS have a value in the header than say the bitdepth of the source wav files used to create the dts. And Surcode put always 24 bits also when source wavs is 16 bits, then is a useless info. I say to madshi don't put this info (sometimes wrong) with dts files because confuse the users, like you can see.

AC3/DTS files must be decoded to, at least, 24 bit to obtain the best aproach to the source, no matter the original bitdepth.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 27th March 2010, 04:43   #9879  |  Link
raquete
Registered User
 
Join Date: Nov 2004
Location: Brazil
Posts: 745
ok tebasuna,
i was curious based on some informations from my decoder like i posted here:
http://forum.doom9.org/showthread.ph...84#post1386384

to tell the true i was not only confused, i was really lost with that infos.

thanks so much!
raquete is offline  
Old 27th March 2010, 06:20   #9880  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Quote:
Originally Posted by tebasuna51 View Post
Only DTS have a value in the header than say the bitdepth of the source wav files used to create the dts. And Surcode put always 24 bits also when source wavs is 16 bits, then is a useless info.

AC3/DTS files must be decoded to, at least, 24 bit to obtain the best aproach to the source, no matter the original bitdepth.
So, let's just hope there don't exist too many
" 'dumb' DTS decoders ".
Midzuki is offline  
Closed Thread

Tags
eac3to

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 07:46.


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