![]() |
Producing a correct 5.1 ac3 stream using free tools? (part2)
as for low volume in ac3 output from besweet, I have noticed this is a problem when encoding in 5.1 channels, but NOT with 2 channels. I can't remember how I ended up getting this fixed with 5.1 channels, but I think sometimes BeSweet likes to force some odd parameters into azid that screws up the volume... If I encounter another 5.1 source that needs converting maybe I'll figure out again how I fixed this. :P
|
Quote:
AC3-5.1 give good volume ONLY in dolby surround receiver cos that receivers have 5 or 6(depend of the model) separeted amplifiers for EACH channel. then using the same dolby surround as setereo and as 5.1 decoder, ALWAYS the 5.1 have better volume cos in stereo only 2 of the reminders is working. i really will that everybody understand what i wrote thousands times: in stereo,we have 2 channels working with the whole signal but in dolby surround we have MORE 4 speakers working :arrow: using the same source ac3-5.1 and the SAME volume. my hobby is audio for 44 years and my work is eletronic for 32 years. i know what i posted and IF someone do tests following exactly what i wrote,will see ..or better, listen the strong differences in quality and in the volume. if nobody understood what i wrote....the only way is....a single calculator show that 1 source for 2 targets give less power that for 6 targets... is so hard to understand?...i can' t trust! example: 2 * 10 Watts always give less potence that 6 * 10 Watts using the same source and the same volume for 2 or 6 channels... if nobody understood....excuse me..i'm really sorry! ac3 5-1 when you encode to mp2 or stereo loose lots of details....do tests putting and removing the surround.....in ac3 they increase...in stereo they sometimes loose no matter if you're using besweet,headac3.....etc. only tests can show and proove for you, not my poor english! :wink: @ who care... i will that post stay alive now! :wink: like wroted somewhere.."use your judgement" but judge with equality and not as dictator as i was called and delete only my opinion if you want but not my informations about the audio. one more time i write here....don' t be coward and don't do exact what you accuse me...you still need to change to be a man..delete only this part cos i'm right that you read before delete!...thanks! :roll: |
Quote:
If you take anb ac3 file demuxed from a DVD and you convert it with besweet or ac3 machine in an otehr ac3 file (let say that you do not modify anything, just for doing a test) and then you listen both file on your pc the volume of the new file will be lower than the original one ! |
Back from vacations .....
Back from vacations ..... If going with an 5.1 DVD into a SAP where a "Simple Stereo Amplifier" is connected, the SAP can be settet up to output a downmixed 5.1 to Stereo Signal out of the SAP "just stereo out" to that 2 channel Stereo amplifier. And here it counts how good the quality of that downmixing of the SAP is given. If a surround-matrix 2.0ch encoded DVD is played back by a 5.1 capable DDdecoder connetcted and set to 5.1 Speakers then the surroundmatrix of that 2.0ch audio is used to split the 2.0ch to descrambled 5.1 sound components which will be delivered to the 5 internal "amplifiers" of that DDdecoder, the LFE chanel often (depends on the DDdecoder model) is provided as a low voltage output signal (unamplified) so an active Subwoofer can be feeded by that one. Quote:
Just generate a bat file from the commandline contend shown in besweet and so in that bat file you easely can set the right parameters to azid etc. You are right that theres a bug that if you go in further seetings, it can happen that the azid part of the final commandline is resettet in a wrong way. AC3machine is also a nice choice but the latest options of these used dlls are not fully supported or even up to date ;-) Maybe thats why phil gots everytime still that less volume output?? But I do think that you (phil) are aware of that besweet bug. |
Quote:
Quote:
|
Well AFAIK (IMHO) the latest azid.dll is newer! Do check that as diff. parameter names for ds downmixing/outputting are used now. :-)
Just get my latest "Packshot with everything" package, in there you get the latest modules of all types. btw: in the case of the latest azid.exe compile you could be defenitely right ... but lets check that. (PS: You just copied my last passage of the previous post? Did your purpose was something diff.? ;-) ) And the newest beta of headac3he "should" also come with the most recent versions? |
Quote:
Quote:
Quote:
Note : I wonder now what we focus in the azid.dll. the problem is in ac3enc.dll, isn't it ? |
Quote:
But practize is better than theory .... and thats why I wanted to figure out all options !in commandline mode! (so nothing "could" be messed up by possible buggy GUIs) ... and also beside that, that workout via 3pass and .exe modules and finally LGPL compiled ffmpeg.exe as wav in and liba52 AC3 output. ;-) .... ähhhhm I just recognised we are again in the wrong topic for that *lol |
Is there any program that would give any detailed information about the ac3 file? It might be useful to know what level the dialog normalization and dynamic range compression are set. Also the different mix parameters are unknown with ac3enc.
|
Quote:
Quote:
Do you mean azid ? As ac3enc just encodes what has been feeded with. Quote:
Quote:
|
Quote:
I don't know how much detailed it information is. |
Inc,
I know those azid parameters, but doesn't the ac3 stream itself also contain the DRC and dialnorm settings (not to mention the BSI section which seems to be very important)? At least you can set those two in SoftEncode. |
I think thats the point of that "free" ac3enc that you cant tweak those settings as it "could" be that the internal routines of ac3enc do implementate these factor as default and for this using internal default values? It could be? Im not really shure.
|
@ Phil ...
could you "try" this commandline via bat file for reencoding an ac3: Code:
"C:\PATH_TO_BeSweet.exe" -core( -input "X:\PATH_TO_YOUR_INPUT.ac3" -output "X:\PATH_TO_YOUR_OUTPUT.ac3" ) -azid( -g max) -ota( -hybridgain ) -ac3enc( -b 384 -6ch ) In case of overflows ...: Quote:
Latest Besweet files where taken for the workouts above. |
@ Boulder ...
for parsing out AC3 related informations, do get azid.exe from here ... http://www.digital-digest.com/dvd/downloads/azid.html and use this commandline in a bat file: Code:
azid.exe -N -Q -z off "X:\PATH_TO_THE.ac3" Just interesting .... : when parsing a) an orig ac3 and b) a reencoded ac3 using directly besweetGUIs parameters with a bad volume bug ... these are the results: a) orig one: Code:
[00:00:00.000] +------------------------------+ b) a reencoded one (with NOTICABLE less volume) Code:
[00:00:00.000] +------------------------------+ So I dont know ... could it be that a ac3decoding unit (or also ac3filter etc.) does readout the BSI Infos from an ac3 and therefore such low "flags" do cause a lower volume playback BY THE PLAYBACK UNIT where the audio stream data itself is full ok????? Hmmmm ... |
I had similar results:
Code:
Original Code:
BeSweet The funny thing is that when I decode the original AC3 track into six mono wave files, I get downmix overflows so the audio is too high and thus the gain is actually zero! And this might be the reason why the BeSweet encoded AC3 is also more silent than the original one as the same happened when I encoded directly from AC3 to AC3. The gain for this track was about 5.5dB when I downmixed to a stereo WAV..and I feel that this 5.5dB was the amount missing from the BeSweet encoded AC3. The track was not ultra silent, but as the 5.1 tracks usually need a gain of more than 10dB, I wouldn't be surprised if they sounded very silent when re-encoded without any gain. When the original AC3 track was encoded to a 2ch AC3 track in BeSweet, there were no downmix overflows whatsoever. If anyone's up to the task, 1) decode an AC3 track to six mono channels without any gain added 2) open them in an audio editor, determine the lowest gain needed from the six tracks, 3) use that value for amplifying every track 4) feed these six tracks to BeSweet (it should work via an .lst file, right?) 5) encode to a 5.1 AC3 track 6) check the volume. I don't have the time right now..I've got to clean the whole apartment :roll: Unemployment sucks :x |
Quote:
And thats why I again added that quote related to downmix overflows. To mee it "seems" clear that a 1:1 reencode from 5.1 to 2.0 would mean overflows as you by this would just mix orig separated volumes together and that wuld be the mess. So thats why a correct downmixing incl. dynCompression solves that, thats why AC3 2.0 dwonmixed ones do result better. Now as we do a 1:1 port of 6 channels to an again 6ch Ac3 encode, we shouldnt worry about that (as explained in the quote from azid.exe) I did many tests yesterday on a very loud orig AC3 from KillBill1, the one which peaks in its center channel up to 3.5db!! in original state1 *wow* And that orig volume is very difficult to keep when using azid/ac3enc. So I eneded up to now with the line I quoted above: Code:
"C:\PATH_TO_BeSweet.exe" -core( -input "X:\PATH_TO_YOUR_INPUT.ac3" -output "X:\PATH_TO_YOUR_OUTPUT.ac3"* ) -azid( -g max) -ota( -hybridgain ) -ac3enc( -b 384 -6ch ) The volume resulted up to the same level in the re-encode! (a minimal less, almost not noticable) It "could" be that the "hybridgain" does add a value or changes the value of a flag to the reencoded ac3??? I dont know. I dint recognised any distrotions in the duplicated center 3.5db parts, but I'll make a comparison in a waveform previewer this Weekend. Quote:
The point is that for instance the KillBill ac3 comes with peaks up to 3.5db! and that means no matter whats used for a 0db max changing :arrow: a pre-processing from 3.5db to 0db does end up more silent :wink: :wink: So we should try to a) keep the origs db peaks and doing a direct 1:1 volume copy to the reencode (with overflows). Or doing that reencoding using the line above with "... azid( -g max) -ota( -hybridgain ) ..." ... testing testing testing :) |
Quote:
Some reading :) : http://forum.doom9.org/showthread.ph...threadid=56020 http://www.dolby.com/pro/digaudio/pa...tandards.S.pdf http://www.dolby.com/tech/L.mn.0002.DDPEG1.pdf If I did understand it, the stream itself is OK but some metadata is added to tell the decoder how much to attenuate, how much to compress, the mix level of each channel etc., as you suspected. The Dialog Normalization works as follows (as I understood it): You want the stream to be normalized so that you use full scale at the highest peak and you have better S/N. That's what the -azid( -g max) -ota( -hybridgain ) does. But, if you do this for a couple of movies, you notice some movies will seem louder and some will seem quieter, because you normalized the loudest peak of the movies, not the average level. The idea of Dialog Normalization is to correct this so that you shouldn't need to tweak the volume knob in your amp everytime you change a disc. There's a specified target of -31dB (relative to full scale) for dialogs. This means you want the dialogs for every movie to be -31dB. If you're dealing with music, then passages that should have the same loudness as a dialog should be at -31 dB. So in the studio they pick the maximized wav and measure the loudness of a dialog. Let's say it's -27dB. When encoding to ac3 they set the dialnorm to -27dB. That's louder than the target (-27dB is 4 dB above -31dB) so the decoder will attenuate it by 4dB so that the dialogs will sound at -31dB. If you want the ac3 to sound as loud as the input wav, you have to set the dialnorm to -31 dB, so that the decoder will not need to attenuate anything. If it is like this, then one could tweak the loudness, surround levels etc. of an ac3 file by just editing the metadata, like mp3gain does for mp3. That would be an useful application :) Ac3_patch or something like that. When transcoding an ac3 you could try the following: in azid, use the command line switches to override BSI info and decode all channels to "full range" wavs. Then apply the necessary gain/attenuation to each channel so that the fixed BSI in ac3enc.dll are compensated and the end result matches the original file. This could be problably automated in a batch file or gui. |
Inc wrote:
Code:
Code: But using Softencode the volume is the same as the original. -Anerboda |
@ GFR
Thanks for that very informative Post. :) In Azid you only can override BSI Informations when decoding to 2/x channels, means IF a downmixing process is choosen. I noticed the following: When decoding an AC3, some DVDs got AC3s which do exceed a lot the 0db mark! Like mentioned above in case of KillBill where the center peaks up to 3.5db! So no matter if -g max in azid used or a normalize to 100% (=0db) in an external Audio Utility, the volume by this will be decreased anyway. So, to keep the orig volume we should also try to rise the gain, even over the 0db mark, as 3db seems still non distorting. |
Site design, images and content © 2002-2023 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2023 Jelsoft Enterprises Ltd.