View Full Version : BeSweet bsn.dll replacement to use AAC+v2 encoder
dimzon
6th September 2005, 16:17
WARNING!
This thread is obsolete! Use this thread.
Get it here (http://sr2.mytempdir.com/147516) ;)
BIG FAT WARNING:
this code based on "The Winamp Transcoder" plugin (http://www.srcf.ucam.org/~wdhf2/transcoder/)
1) Rename standart bsn.dll into bsn_std.dll first
2) Place provided bsn.dll into BeSweet directory
3) Place enc_aacplus.dll (from winamp\plugins) into BeSweet directory
4) To use enc_aacplus.dll instead on Nero you must use -aacprofile_he_ct or -aacprofile_he_ct2 switch!
5) enc_aacplus.dll produces raw aac stream, don't forget to set "aac" output file extension
Command line (when using -aacprofile_he_ct or -aacprofile_he_ct2 switch, otherwise use standart switches):
-bsn( -cbr <bitrate> -mode <channels> -<profile>)
<bitrate> - integer between 8-128, default is 48
<channels> - integer between 1-5, default is 4
1 - Mono (?)
2 - Stereo
3 - Stereo Independent
4 - Parametric (you MUST set aacprofile_he_ct2 and <bitrate> can't exeed 48)
5 - Dual Channel (?)
<profile> - must be -aacprofile_he_ct or -aacprofile_he_ct2
-aacprofile_he_ct - AACPlus v1 Encoder
-aacprofile_he_ct2 - AACPlus v2 Encoder
Warning! It's first beta version!
Kurtnoise
6th September 2005, 18:22
Heya,
1st question : do you know the difference between Stereo and Stereo Independent ? Is it just like Joint-Stereo vs Stereo ?
pcjco04
6th September 2005, 18:35
Tried to transcode from .ogg to .aac and it produces a playable AAC file at the good birate.
Good job ;)
Elias
6th September 2005, 21:36
Oh man, this is great news! I just want to say that you should keep up the great work! I'd like to try this, but I'm on Linux now, and cannot use BeSweet. Anyway, good luck!
ggab
7th September 2005, 06:09
yes, keep up the excellent work in AAC area! u rock man :)
thanks ;)
dimzon
7th September 2005, 11:03
http://img387.imageshack.us/img387/3844/beaac4ee.gif
Get it here (http://sr2.mytempdir.com/148462).
Note! It's just until new version of BeLight is out.
Note! Place it into BeSweet folder first!
dimzon
7th September 2005, 11:20
Perhaps that'll open the door to an faac plugin with MP4 output shortly?
It's very easy to add another Winamp encoding plugin support:
enc_aac.dll - RAW AAC (by Dolby?)
enc_mp4.dll - AAC in MP4 container (By Dolby?)
enc_wma.dll - WMA Encoder
Other (http://www.winamp.com/plugins/browse.php?ctype=P&category=12)
Does anybody really need this?
Kurtnoise
7th September 2005, 12:28
I vote for wma and flac... :D
dimzon
7th September 2005, 12:51
I vote for wma and flac... :D
Seems like enc_aac.dll (AAC-LC) is not FAAC-based (i found such strings in binary: "-I ..\DolbyCE0.1\code\iaopt\Headers").
Maybe it's better to make command-line tool for AAC-LC and compare enc_aac.dll with FAAC, Nero, iTunes @ 128 kbps ???
dimzon
7th September 2005, 14:49
Seems like enc_aac.dll (AAC-LC) is not FAAC-based (i found such strings in binary: "-I ..\DolbyCE0.1\code\iaopt\Headers").
Maybe it's better to make command-line tool for AAC-LC and compare enc_aac.dll with FAAC, Nero, iTunes @ 128 kbps ???
Get it here (http://sr2.mytempdir.com/148723)
Note! Seems like encoder produce samplerate downsampling to 32kHz for bitrate below 128 kbps :rolleyes:
dimzon
7th September 2005, 18:01
I have develop encoding plugin framework for easyest encoding plugin development. Look @ it here (http://forum.doom9.org/showthread.php?p=708717#post708717)!
Peter1234
8th September 2005, 01:43
When I use the following command line I get mpeg2 AAC instead of mpeg4 AAC. What do I have to change to get the command line to produce mpeg4 AAC?
"BeSweet/BeSweet.exe" -core( -input "input.ac3" -output "output.aac" -azid( -s stereo -n1 ) -bsn( -cbr 48 -mode 3 -aacprofile_he_ct2 )
dimzon
8th September 2005, 10:33
When I use the following command line I get mpeg2 AAC instead of mpeg4 AAC. What do I have to change to get the command line to produce mpeg4 AAC?
Nic's AAC patch (http://rarewares.org/aac.html)
Peter1234
8th September 2005, 16:00
Thanks.
DeathTheSheep
8th September 2005, 18:35
I've noticed that Winamp defaults to the aac+ version 1 encoder for 64kbps encodings. Why not default to version 2?
I then read on AAC+'s website that AAC+ version 2 was merely the manifestation of the super-new "Paremetric 2-channel" reproduction, a sort of synthesized stereo.
So if Version 2 was intended only to introduce PS, perhaps AAC+ version 1 can better encode standard SBR 48kbps+ content. However, I've never seen it in any recent evaluations. Why is that?
pcjco04
9th September 2005, 09:43
When I mux the AAC file that I obtained from this plugin into a .MP4 file with mp4box (0.4.1DEV) , I have this line when it starts to import the audio :
AAC import SBR (implicit) - sample rate 24000 - MPEG-4 audio - 2 channels
I used -bsn( -cbr 64 -mode 2 -aacprofile_he_ct2 ) with a 48000Hz input.
The output is also recognized at 48KHz from the AAC file or with muxed MP4.
Is it a bug from MP4Box ?
Raziel6969
9th September 2005, 12:09
Hello,
With my little experience i can tell that you can encode untill 48kbps
with PS, this sounds better than anything at that bitrate, i believe
that at higher bitrate PS doesn't help. A 64kbps (v1) sounds better
than 48kbps with PS (v2) of the same file. With the v2 i got less
stereo separation... All this appears to me.
I like the dimzon frontend to encode.
With at my test, i have 1 question, why the file size of the final .aac
is the same when i encode the original 44kHz version of a wav file,
while if that file is upsampled to 48kHz?
Bye
dimzon
9th September 2005, 12:15
With at my test, i have 1 question, why the file size of the final .aac
is the same when i encode the original 44kHz version of a wav file,
while if that file is upsampled to 48kHz?
Bcz both files has same playlength and bitrate :)
Rockaria
10th September 2005, 00:48
I vote for wma and flac... :DWinamp5.1 supports ds-show input enabling virtually any input sources.
The stand alone encoder (http://forum.doom9.org/showthread.php?p=706423#post706423) based on the winamp transcoder looks promising if it can take the input (multi) channels from the in_dshow.dll and put to any supported encoders(including the sout), before integrating to the besweet.
AcIDo-555
12th September 2005, 15:50
..Crash on my system > Windows 98SE
http://img161.imageshack.us/img161/4033/10nl.th.png (http://img161.imageshack.us/my.php?image=10nl.png)
http://img161.imageshack.us/img161/7761/27yc.th.png (http://img161.imageshack.us/my.php?image=27yc.png)
dimzon
12th September 2005, 15:53
..Crash on my system > Windows 98SE
http://img161.imageshack.us/img161/4033/10nl.th.png (http://img161.imageshack.us/my.php?image=10nl.png)
http://img161.imageshack.us/img161/7761/27yc.th.png (http://img161.imageshack.us/my.php?image=27yc.png)
Check this (http://forum.doom9.org/showthread.php?t=99930)version
AcIDo-555
12th September 2005, 16:13
Check this (http://forum.doom9.org/showthread.php?t=99930)version
umh same error using aacEncPlus.exe..
dimzon
12th September 2005, 16:15
umh same error using aacEncPlus.exe..
Can you post your command-line
+ post me your enviroment variables
movax
12th September 2005, 16:41
Maybe he needs the Unicode Layer for 9x if its an Unicode app. Also, dimzon, you have too many of these threads floating around the forum, all with similar titles which confuzzle me :P
dimzon
12th September 2005, 16:45
Maybe he needs the Unicode Layer for 9x if its an Unicode app. Also, dimzon, you have too many of these threads floating around the forum, all with similar titles which confuzzle me :P
Yes, I know!
Please use latest thread (http://forum.doom9.org/showthread.php?t=99930) for discussion
2Moderators
Please, close all other threads except latest one (http://forum.doom9.org/showthread.php?t=99930)
AcIDo-555
12th September 2005, 19:13
Can you post your command-line
+ post me your enviroment variables
Crash with every command line like aacenc.exe "input.mp3" "output.aac" "44100" "4" "48000" "1"
or standard preset
Emh, I don't know what's "environment variables" o_O
dimzon
13th September 2005, 08:52
Crash with every command line like aacenc.exe "input.mp3" "output.aac" "44100" "4" "48000" "1"
or standard preset
Emh, I don't know what's "environment variables" o_O
execute set > c:\set.txt and post here c:\set.txt content
AcIDo-555
13th September 2005, 11:00
execute set > c:\set.txt and post here c:\set.txt content
Ok thanks
TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
COMSPEC=C:\WINDOWS\COMMAND.COM
SBPCI=C:\SBPCI
windir=C:\WINDOWS
BLASTER=A220 I7 D1 H7 P330 T6
ak
13th September 2005, 14:17
..Crash on my system > Windows 98SE
Funny, exactly the same (up to same error window poping up) in wine on linux.
I compiled aacEncPlus with gcc and it goes a bit further then:
./aacEncPlus.exe bla.wav out.aac 128000 2 0
********************************************************************
AACPlus v2 Encoder (using WinAmp 5.1 enc_aacplus.dll)
BIG FAT WARNING:
this code based on "The Winamp Transcoder" plugin (http://www.srcf.ucam.org/~wdhf2/transcoder/)
********************************************************************
Input file: bla.wav
Output file: out.aac
Bitrate: 128000
Channel mode: 2
Use V2: 0
Attempting to open input file... PCM 16-bit NC=2 SR=48000
Attempting to initialize encoder... Done.
Attempting to encode...wine: Unhandled exception (thread 0009), starting debugger...
BlacKnighTTT
18th September 2005, 14:28
Sorry, moved my post
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.