Quantcast Aften - a New CLI AC3 Encoder - digitalFAQ.com Forums [Archives]
  #1  
08-05-2006, 07:57 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
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
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
08-05-2006, 08:55 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
FFMpeg based

-kwag
Reply With Quote
  #3  
08-06-2006, 03:43 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
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.
Reply With Quote
  #4  
08-06-2006, 05:49 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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 Are you sure it is really born ?
Reply With Quote
  #5  
08-06-2006, 10:28 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Are you sure it is really born ?
At least as "Information" in here


Isn't your dynamic issue more related to DRC or Dialognormalisation ? As both do affect the dynamic as a whole.
Reply With Quote
  #6  
08-06-2006, 11:36 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #7  
08-06-2006, 01:06 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
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
Reply With Quote
  #8  
08-15-2006, 04:38 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Excuse me Inc, can you point a more direct link to Behappy ? I must be blind...

Edit: Ok, found the author's name (Dizon) and signature
Reply With Quote
  #9  
08-16-2006, 02:45 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
And for all others: BeHappy can be found here:
http://forum.doom9.org/showthread.php?t=104686

Reply With Quote
  #10  
08-16-2006, 04:09 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #11  
08-16-2006, 04:19 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Is there a link to the sourcecode? I got on my Win2000 partition a VS2005 incl. beside c++ also c#, so maybe .....
Reply With Quote
  #12  
08-16-2006, 04:22 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
The zip contains both binary and sources.
Reply With Quote
  #13  
09-23-2006, 01:31 PM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
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
__________________
Rui
Reply With Quote
  #14  
09-24-2006, 04:57 AM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
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
__________________
Rui
Reply With Quote
  #15  
09-24-2006, 10:12 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
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
Reply With Quote
  #16  
09-24-2006, 11:17 AM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Hey Andrej .
Thanks for the nice tip.
I'll look into it .
Cheers
__________________
Rui
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
HCenc: K-Encoder-HC, Tool for DVD backups based in HC Encoder maurus Video Encoding and Conversion 3 04-05-2006 08:07 AM
¿HC Encoder 0.16? vitagin Convertir y Codificar Video (Español) 3 11-26-2005 08:44 PM
Matriz en HC Encoder el juli Convertir y Codificar Video (Español) 3 09-27-2005 06:28 AM
What's the best AAC/MP4/M4A Encoder? Encoder Master Audio Conversion 2 08-31-2005 03:06 PM
Andere Encoder? zaks Video Konvertierung und Encodieren (Deutsch) 8 07-13-2003 05:08 AM

Thread Tools



 
All times are GMT -5. The time now is 06:28 PM  —  vBulletin © Jelsoft Enterprises Ltd