View Full Version : command-line frontend for WinAmp AAC+ v2 encoder (upd 2006-05-15)
dimzon
18th November 2005, 11:46
Winamp5.2 AAC+v2 encoder command-line frontend (new version)
http://img247.imageshack.us/img247/4605/dibujodd8ow.gif
Support for AAC-LC encoding via CT encoder
6ch support
support aacPlus HE-AAC High-Bitrate Encoder
Works fine with Winamp 5.2 Release Feb 23 2006 Full (Not Pro) - You does'nt need Winamp Pro in order to encode :cool:
new version contains some bugfix and new switches
********************************************************************
* AACPlus v2 Encoder (using Winamp 5.2 enc_aacplus.dll)
* Source timestamp Sun Feb 26 16:19:37 2006
* Build Feb 26 2006, 16:22:43
********************************************************************
* NOTE! enc_aacplus.dll must be into executable directory
* get it from Winamp 5.2 plugins directory
* tested on Winamp 5.2 Release Feb 23 2006 Full (Not Pro) version)
********************************************************************
Usage:
enc_aacPlus <wav_file> <bitstream_file> [options]
Options:
--cbr <bitrate> - Set bitrate (CBR) to <bitrate> bps. Default is 48000
--nops - Disable Parametric Stereo
--is - Prefer Independed Stereo
--dc - Prefer Dual Channels
--mpeg2aac - Produce MPEG2 AAC isntead of MPEG4 AAC
--lc - Encode LC-AAC instead AAC+ (bitrate up to 320000)
--high - use aacPlusHigh Encoder (bitrate up to 256000, multichannel is not supported)
--mp4box - Wrap result into MPEG4 container (MP4BOX.EXE must be into executable directory)
--rawpcm <rate> <cnt> <bp> - Signal RAW PCM input intead of WAV
<rate> - Samplerate in Hz (32000, 44100 or 48000)
<cnt> - Channels count (1 or 2 or 6)
<bp> - Bit's per sample (8 or 16)
WARNING: this encoder can read and encode data from stdin:
use - as input filename
Get it @ BeHappy Workspace (take look @ my signature)
raquete
18th November 2005, 11:56
dimzon,
this is fantastic. :cool:
thank you so much!
Jalavera
18th November 2005, 12:41
@dimzon: is 6 channel-wav supported as input like in Belight?
Jalavera
18th November 2005, 13:07
ok. Thanks. I understand.
gURuBoOleZ
19th November 2005, 18:07
That's great! I was hoping for it :)
I noticed a problem: the --mp4box command doesn't work on my side. MP4BOX is in the directory; I'm using foobar2000 0.83.
- %d --cbr 32000 --chmode 4 --mpeg4aac => OK
- %d --cbr 32000 --chmode 4 --mpeg4aac --mp4box => doesn't work
I changed the extension (mp4, m4a), but it didn't solve the problem. Any idea?
gURuBoOleZ
21st November 2005, 17:13
Perfect!
Thank you :)
dimzon
21st November 2005, 17:15
Perfect!
Thank you :)
I have found yet another bug - can't encode WAV with length >=7Gb :(
Unfortunally I can't solve this bug right now - my HDD is dead and I lost my source code :(
Shit Happens...
gURuBoOleZ
22nd November 2005, 04:25
I sympathize!
(I lost three HDD in the past)
dimzon
22nd November 2005, 15:31
I sympathize!
(I lost three HDD in the past)
Yesterday,
All those backups seemed a waste of pay.
Now my database has gone away.
Oh I believe in yesterday.
Suddenly,
There's not half the files there used to be,
And there's a deadline hanging over me
The system crashed so suddenly.
I pushed
something wrong
What it was, I could not say.
Now all my data's gone
Аnd I long for yesterday-ay-ay-ay.
WBTCPIP
29th November 2005, 00:45
Hi dimzon,
i hope your great work is not lost forever.
I was hoping to see your encoder with the addition of stdout support!
dimzon
29th November 2005, 11:35
Hi dimzon,
i hope your great work is not lost forever.
I was hoping to see your encoder with the addition of stdout support!
I plan to rewrite it from scratch (original source code is lost) in the future bcz I need 6ch support now ;)
hitbit
5th December 2005, 15:37
Er... how can I enable 6ch mode?
dimzon
5th December 2005, 15:39
Er... how can I enable 6ch mode?
- use supplied enc_aacplus.dll (newer one from latest winamp does'nt work with 6ch)
- use 6ch wav as input
hitbit
5th December 2005, 15:48
But it can OUTPUT 6ch AAC, or it only converts 6ch to Stereo?
dimzon
5th December 2005, 15:49
But it can OUTPUT 6ch AAC
Yes! If You supply 6ch WAV as input you will get 6ch AAC+
buzzqw
6th December 2005, 13:34
Hi Dimzon !
Thanks for you excellent work !
i have a question: what is the bitrate range allowed ?
i tryed several bitrate, but i think that bitrate range are only between 96000 and 128000
thanks for your tips !
BHH
dimzon
6th December 2005, 13:36
Hi Dimzon !
Thanks for you excellent work !
i have a question: what is the bitrate range allowed ?
i tryed several bitrate, but i think that bitrate range are only between 96000 and 128000
thanks for your tips !
BHH
96000-128000 for 6ch
16000-128000 for mono/stereo
buzzqw
6th December 2005, 16:37
YES ! true!
in my test i am using a 6ch wav !
My Kudos Dimzon !
BHH
P.S. While programming ... is possible to correct azid pipe ? (as written in readme.txt azid piping is broken...)
Daijoubu
6th December 2005, 19:04
This new CLI produce ifferent filesize, even with the same enc_aacplus.dll
New: 1946019
* Source timestamp Mon Dec 5 15:12:05 2005
* Build Dec 5 2005, 15:12:44
Old: 1947877
* Source timestamp Fri Nov 18 15:27:54 2005
* Build Nov 18 2005, 15:28:46
Anyhow, keep up the good spirit, love your app :)
Btw, if we don't need 6ch support, should we use the newest dll or stick to the old one? (why is it twice as big too)
Edit: Ah, I see, the dll was packed
dimzon
7th December 2005, 10:08
New: 1946019
Old: 1947877
did you shure you use same channel mode?
new version use PS for bitrates below 48kbps automatically
Daijoubu
8th December 2005, 03:47
Yes, same setting
WBTCPIP
12th December 2005, 23:05
Hi dimzon,
it is a hard work for you to add stdout support?
I need it to use encoded data in my custom application.
You'll make me happy if you can do it!
Thanks!
dimzon
13th December 2005, 09:27
Hi dimzon,
it is a hard work for you to add stdout support?
I need it to use encoded data in my custom application.
You'll make me happy if you can do it!
Thanks!
It's easy to add stdout support (unfortunally no MP4 contaner will be avaluable for stdout). But I'm really too busy now! If you are developer You can join to http://workspaces.gotdotnet.com/behappy and add stdout support yourself...
LoRd_MuldeR
27th December 2005, 16:19
This front-end works great. Thanks for good work, dimzon :)
One question: What about VBR encoding?
Would that be possible with enc_aacplus.dll ???
dimzon
27th December 2005, 16:36
One question: What about VBR encoding?
Would that be possible with enc_aacplus.dll ???
No, it's impossible
LoRd_MuldeR
27th December 2005, 17:39
No, it's impossible
It's a great pity :(
Then you could call the switch "--bitrate" or alike instead of "--cbr"
With "--cbr" I expect something like "--vbr" ...
dimzon
31st January 2006, 19:00
Winamp5.2 AAC+v2 encoder command-line frontend (new version)
http://img247.imageshack.us/img247/4605/dibujodd8ow.gif
Support for AAC-LC encoding via CT encoder
6ch support
enc_aacplus.dll from WinAmp 5.2 beta requed (tested on build 365)
Get it @ BeHappy Workspace (take look @ my signature)
DeathTheSheep
31st January 2006, 21:21
Are there any plans to support the aacPlus HE-AAC High-Bitrate Encoder? (Currently in Winamp 5.2 beta)
PS: I'm not talking about the LC-AAC or the standard HE-AAC, but actually the brand-new HE-AAC high-bitrate encoder.
Peter1234
1st February 2006, 04:59
dimzon,
Thanks for the new command line encoder. I have been able get most of it to work, but I have not figured out how to encode to LC profile. You mention "Support for AAC-LC encoding via CT encoder" but what is the CT encoder? Can you give an example for LC profile?
dimzon
1st February 2006, 11:06
dimzon,
Thanks for the new command line encoder. I have been able get most of it to work, but I have not figured out how to encode to LC profile. You mention "Support for AAC-LC encoding via CT encoder" but what is the CT encoder? Can you give an example for LC profile?
just add --lc option to your command line
Are there any plans to support the aacPlus HE-AAC High-Bitrate Encoder? (Currently in Winamp 5.2 beta)
Unfortunally I have no registered PRO version so I can't do it ...
dimzon
1st February 2006, 11:55
Are there any plans to support the aacPlus HE-AAC High-Bitrate Encoder? (Currently in Winamp 5.2 beta)
Done ;)
support aacPlus HE-AAC High-Bitrate Encoder
Enjoy ;)
shon3i
1st February 2006, 13:52
Can i use ac3 input instead wav
dimzon
1st February 2006, 13:55
Can i use ac3 input instead wav
Yes. You can use pipeline to sent decoded ac3 to utility stdin. You can use BePipe for AC3 decoding. Or just use BeHappy...
For BePipe/BeHappy reference take look @ my signature
shon3i
1st February 2006, 14:27
But how to use 6ch ac3 to covert to He-aac 6ch with 128kbs and mp4 container with accurate information. Comandline please
dimzon
1st February 2006, 14:38
But how to use 6ch ac3 to covert to He-aac 6ch with 128kbs and mp4 container with accurate information. Comandline please
BePipe --script "NicAc3Source(^c:\myfile.ac3^)" | enc_aacplus - c:\myresult.mp4 --cbr 128000 --mpeg4aac --mp4box
Note:
NicAudio.dll must be @ aviSynth plugins folder
mp4box.exe mus be @ enc_aacplus folder
shon3i
1st February 2006, 14:44
OK works thanks dimzon
Peter1234
1st February 2006, 18:22
dimzon,
I can't get LC encoding to work.
just add --lc option to your command line
I tried that but I get the following error message.
Encoder: ACC-LC
Can't create encoder!
My command line is
enc_aacPlus.exe 48KHz.wav out.aac --lc
The other options all seem to work.
dimzon
1st February 2006, 18:24
My command line is
I have not tested LC encoder @ this samplerate. Please, check it @ stereo 44100Hz
Peter1234
1st February 2006, 19:11
dimzon,
Using command line:
enc_aacPlus.exe 44kHz.wav out.aac
works and produces this output
Input file: 44kHz.wav
outputfile: out.aac
Sample Rate: 44100
ChannelCount: 2
Bitrate: 48000
ChannelMode: ParametricStereo
Encoder: AAC + v2 (HE-AAC 2)
Done
Using this command line:
enc_aacPlus.exe 44kHz.wav out.aac --lc
does not work and produces this output
Input file: 44kHz.wav
outputfile: out.aac
Sample Rate: 44100
ChannelCount: 2
Bitrate: 48000
ChannelMode: Stereo
Encoder: AAC-LC
Can't create encoder!
dimzon
1st February 2006, 19:20
Peter1234, wich DLL version does you use?
By the way - I have found some restrictins encoding 6ch 48KHz audio
aacPlus v2 - bitrate must be >=96000 and <=128000
LC - bitrate must be >=160000 and <=320000
aacPlus HE-AAC High-Bitrate Encoder doesn't support 6ch at all
DeathTheSheep
1st February 2006, 19:32
Wow, that was fast! This tool is really awesome. Thanks for coding it, dimzon :)
Is there any way to force PS on or off? On hydrogenaudio, it is said that PS can hurt some samples even at 32kbps but help some samples up to 48kbps! It would really help if there was a way to toggle this on/off for particular files. Thanks!
dimzon
1st February 2006, 19:34
Is there any way to force PS on or off?
I will add this a bit later
Peter1234
1st February 2006, 19:37
dimzon,
dll is from WinAmp 5.13 (just updated). Size is 274 KB (280,576 bytes).
My wav was encoded with Audacity and according to Foobar is
bitrate = 1411
samplerate = 44100
channels = 2
codec = PCM
bitspersample = 16
So I assume the problem is the bitrate of 1411 kbps.
shon3i
1st February 2006, 20:02
I have same problem with high bitrate encoder with behappy and 6ch ac3source. Can't create encoder message but with stereo input works
DeathTheSheep
1st February 2006, 21:59
dll is from WinAmp 5.13
That's probably the problem. You need the .dll from Winamp 5.20[.365] or later in order for it to work ;)
Peter1234
1st February 2006, 23:06
DeathTheSheep,
You need the .dll from Winamp 5.20[.365] or later in order for it to work
WinAmp version 5.13 is the newest free version (Jan. 31, 2006). I think the enc_aacplus.dll is the same in both the free and pro versions? But perhaps I do need the pro version. Does the --lc option work for you?
DeathTheSheep
1st February 2006, 23:09
It works fine fer me ;) ...maybe you haven't heard the latest underground info? *whisperhere (http://download.nullsoft.com/winamp/beta/winamp52_0393_beta_full.exe)whisper*
:D:D
Peter1234
1st February 2006, 23:41
DeathTheSheep,
I did a file compare on the free enc_aacplus.dll version and the pro enc_aacplus.dll version and they are different. When I tried the pro version the --lc option works. Thanks for your help.
dimzon
2nd February 2006, 11:34
I have same problem with high bitrate encoder with behappy and 6ch ac3source. Can't create encoder message but with stereo input works
http://forum.doom9.org/showthread.php?p=778734#post778734
shon3i
2nd February 2006, 17:58
http://forum.doom9.org/showthread.php?p=778734#post778734
I see. Thanks
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.