digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Audio Conversion (http://www.digitalfaq.com/archives/audio/)
-   -   Aften - a new CLI AC3 encoder (http://www.digitalfaq.com/archives/audio/14339-aften-cli-ac3.html)

incredible 08-05-2006 07:57 PM

aften - a new CLI AC3 encoder
 
A new AC3 CLI encoder is born :) :

http://sourceforge.net/projects/aften

Code:

usage: aften [options] <input.wav> <output.ac3>
options:
    [-h]          Print out list of commandline options
    [-v #]        Verbosity (controls output to console)
                      0 = quiet mode
                      1 = show average stats (default)
                      2 = show each frame's stats
    [-b #]        CBR bitrate in kbps (default: about 96kbps per channel)
    [-q #]        VBR quality [1 - 1023] (default: 220)
    [-w #]        Bandwidth
                      0 to 60 = fixed bandwidth (28%-99% of full bandwidth)
                      -1 = fixed adaptive bandwidth (default)
                      -2 = variable adaptive bandwidth
    [-m #]        Stereo rematrixing
                      0 = independent L+R channels
                      1 = mid/side rematrixing (default)
    [-s #]        Block switching
                      0 = use only 512-point MDCT (default)
                      1 = selectively use 256-point MDCT
    [-cmix #]      Center mix level
                      0 = -3.0 dB (default)
                      1 = -4.5 dB
                      2 = -6.0 dB
    [-smix #]      Surround mix level
                      0 = -3 dB (default)
                      1 = -6 dB
                      2 = 0
    [-dsur #]      Dolby Surround mode
                      0 = not indicated (default)
                      1 = not Dolby surround encoded
                      2 = Dolby surround encoded
    [-dnorm #]    Dialog normalization [0 - 31] (default: 31)
    [-acmod #]    Audio coding mode (overrides wav header)
                      0 = 1+1 (Ch1,Ch2)
                      1 = 1/0 (C)
                      2 = 2/0 (L,R)
                      3 = 3/0 (L,R,C)
                      4 = 2/1 (L,R,S)
                      5 = 3/1 (L,R,C,S)
                      6 = 2/2 (L,R,SL,SR)
                      7 = 3/2 (L,R,C,SL,SR)
    [-lfe #]      Specify use of LFE channel (overrides wav header)
                      0 = LFE channel is not present
                      1 = LFE channel is present
    [-bwfilter #]  Specify use of the bandwidth low-pass filter
                      0 = do not apply filter (default)
                      1 = apply filter
    [-dcfilter #]  Specify use of the DC high-pass filter
                      0 = do not apply filter (default)
                      1 = apply filter
    [-lfefilter #] Specify use of the LFE low-pass filter
                      0 = do not apply filter (default)
                      1 = apply filter
    [-xbsi1 #]    Specify use of extended bitstream info 1
                      0 = do not write xbsi1
                      1 = write xbsi1
    [-dmixmod #]  Preferred stereo downmix mode
                      0 = not indicated (default)
                      1 = Lt/Rt downmix preferred
                      2 = Lo/Ro downmix preferred
    [-ltrtcmix #]  Lt/Rt center mix level
    [-ltrtsmix #]  Lt/Rt surround mix level
    [-lorocmix #]  Lo/Ro center mix level
    [-lorosmix #]  Lo/Ro surround mix level
                      0 = +3.0 dB
                      1 = +1.5 dB
                      2 =  0.0 dB
                      3 = -1.5 dB
                      4 = -3.0 dB (default)
                      5 = -4.5 dB
                      6 = -6.0 dB
                      7 = -inf dB
    [-xbsi2 #]    Specify use of extended bitstream info 2
                      0 = do not write xbsi2
                      1 = write xbsi2
    [-dsurexmod #] Dolby Surround EX mode
                      0 = not indicated (default)
                      1 = Not Dolby Surround EX encoded
                      2 = Dolby Surround EX encoded
    [-dheadphon #] Dolby Headphone mode
                      0 = not indicated (default)
                      1 = Not Dolby Headphone encoded
                      2 = Dolby Headphone encoded
    [-adconvtyp #] A/D converter type
                      0 = Standard (default)
                      1 = HDCD


kwag 08-05-2006 08:55 PM

FFMpeg based :?: :roll:

-kwag

incredible 08-06-2006 03:43 AM

Even if it would be the case, the libavcodec AC3 core has been fixed since some month: http://forum.doom9.org/showthread.ph...133#post812133
:)

But imho that one above is libavcodec independant.

Dialhot 08-06-2006 05:49 AM

I'm not sure that this settings is smart :
Quote:

[-cmix #] Center mix level
0 = -3.0 dB (default)
1 = -4.5 dB
2 = -6.0 dB
I know that a lot of DVD are mixed with -3dB for the center channel, but I know also that this is a nightmare for Home-Theater system. That's strange that there is no possibility to choose 0 like for others chanels mix.

Note: release 0.04 8O Are you sure it is really born ? :lol:

incredible 08-06-2006 10:28 AM

Quote:

Are you sure it is really born ?
At least as "Information" in here :lol:


Isn't your dynamic issue more related to DRC or Dialognormalisation ? As both do affect the dynamic as a whole.

Dialhot 08-06-2006 11:36 AM

Quote:

Originally Posted by incredible
Isn't your dynamic issue more related to DRC or Dialognormalisation ? As both do affect the dynamic as a whole.

Are you talking about the -3dB on the center speaker I mentioned ?
DialogNormalisation, for sure not. DRC maybe. Whatever the result is the same : the center is too low and you have to change all the settings each time you change your DVD. Very boring.

incredible 08-06-2006 01:06 PM

Did you take a look at "BeHappy"?
Its very useful for Audioencoding.
When importing an audio file, it generates a temp. avisynthscript where NicAudio.dll's audio import functions are used to properly decode the source, even 5.1ch. Finally BeHappy pipes the avs resulting audiostream to the selected audio encoder binary internally via commandline where finally your desired target result will be on disk.

So, as it does generate a temp avs file maybe its possible to use avs commands for altering the amplitude of a specific channel. In your case the 'center' one.

Im not shure if BeHappy permits direct imports of avs scripts with the specific volume mods already done, but even if not, you can use BePipe.

Generate avs script -> use Bepipe to pipe to the desired target encoder binary (ffmpegAC3, NeroAAC, ffmpegMp2) -> target audio encoding will be on your HD.

As avs is capable to frameserve the 6 channels of a 5.1 ac3 source by using NicAudio.dll then such a workout would be no problem.


Hmmmmmm .... anyway ... I wanted to test the new binary stream piping capabilities of PureBasic v4, maybe its time to crack that nut on an audio transcoder, similair to BeHappy. It would use an embedded binary of ffmpeg for everything: AC3 (ac3enc, which is fixed since month), mp2 (mp2enc), aac (libFaac) etc., "aften" could be used as an optinal ac3 encoder and NeroAAC.exe as AAC alternative. (just thinking)

So do test BeHappy/BePipe and tell me what could be done better. But ... actually time is not my friend, so paaaaatience ;)

Edit: Not Needed as it seems that aften is supported by BeHappy and also a GUI is available:
http://forum.doom9.org/showthread.ph...ighlight=aften
http://forum.doom9.org/showthread.ph...ighlight=aften

Dialhot 08-15-2006 04:38 AM

Excuse me Inc, can you point a more direct link to Behappy ? I must be blind... :oops:

Edit: Ok, found the author's name (Dizon) and signature ;-)

incredible 08-16-2006 02:45 PM

And for all others: BeHappy can be found here:
http://forum.doom9.org/showthread.php?t=104686

;)

Dialhot 08-16-2006 04:09 PM

Quote:

Originally Posted by incredible
And for all others: BeHappy can be found here:
http://forum.doom9.org/showthread.php?t=104686

;)

Unfortunally current release has a bug and can't call correctly Aften. The bitrate parameter is given as "-b 448' for instance insteed of "-b 448000". Dizon said that he will see that quicly.

incredible 08-16-2006 04:19 PM

Is there a link to the sourcecode? I got on my Win2000 partition a VS2005 incl. beside c++ also c#, so maybe .....

Dialhot 08-16-2006 04:22 PM

The zip contains both binary and sources.

rds_correia 09-23-2006 01:31 PM

Hi guys :).
Just downloaded Aften.
BTW it is now at v0.05.
I was wondering.
I would like to have a CLI (or GUI with CLI/batch as optional) transcoder for those 2 movies DVDs that sometimes I still burn.
You know, if audio bitrate is not the same for both movies then Muxman will not work.
I know BeHappy but that _is not_ an easy tool to set up.
Aften doesn't seem to have that transcoding feature as it supports only wave as an input.
Is there anything out there easier than BeHappy for this transcoding purpose?
Cheers

rds_correia 09-24-2006 04:57 AM

Just forget it.
I just made BeHappy work easily at first try.
But I gotta use FFMpeg engine because if I try to use Aften as the engine it keeps hitting me with error messages.
Maybe I really can't transcode AC3 to AC3 with Aspen even inside BeHappy suite.
BTW, does someone know if I can control BeHappy from the command line (CLI)?
I can't find any readme.txt or proper documentation to BeHappy and I tried BeHappy.exe -h|-? and it didn't work as expected.
Any help is greatly apreciated.
Cheers

incredible 09-24-2006 10:12 AM

Quote:

Originally Posted by rds_correia
BTW, does someone know if I can control BeHappy from the command line (CLI)?
I can't find any readme.txt or proper documentation to BeHappy and I tried BeHappy.exe -h|-? and it didn't work as expected.
Any help is greatly apreciated.
Cheers

For CLI Access do use BePipe.exe

rds_correia 09-24-2006 11:17 AM

Hey Andrej :).
Thanks for the nice tip.
I'll look into it ;).
Cheers


All times are GMT -5. The time now is 08:49 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.