PDA

View Full Version : FAAC encoding plugin for BeSweet


dimzon
8th September 2005, 14:11
WARNING!
This thread is obsolete! Use this thread.







Get it here (http://sr2.mytempdir.com/149932)!
Installation:
1) Install dimzon's BSN Framework (http://forum.doom9.org/showthread.php?t=99730) first
2) Place provided bsn_FAAC.dll into BeSweet directory
3) Place faac.exe (command-line aac-encoder) into BeSweet directory
(tested with FAAC 1.24.1 (May 17 2005) UNSTABLE, included into package)

Usage: -bsn( -dll bsn_FAAC.dll [options] )

You can use *.aac, *.mp4, *.m4a or *.m4b as file extension,
and the file format will be set automatically to ADTS or MP4.

Quality-related options:
-q <quality> Set default variable bitrate (VBR) quantizer quality in percent.
(default: 100, averages at approx. 120 kbps VBR for a normal
stereo input file with 16 bit and 44.1 kHz sample rate; max.
value 500, min. 10).
-b <bitrate> Set average bitrate (ABR) to approximately <bitrate> kbps.
(max. value 152 kbps/stereo with a 16 kHz cutoff, can be raised
with a higher -c setting).
-c <freq> Set the bandwidth in Hz (default: automatic, i.e. adapts
maximum value to input sample rate).

Expert options, only for testing purposes:
--tns Enable coding of TNS, temporal noise shaping.
--no-midside Don't use mid/side coding.
--mpeg-vers X Force AAC MPEG version, X can be 2 or 4
--obj-type X AAC object type. (LC (Low Complexity, default), Main or LTP
(Long Term Prediction)
--shortctl X Enforce block type (0 = both (default); 1 = no short; 2 = no
long).

Other options
-exe <file> Set encoder executable name. Defaut is FAAC.EXE.
You can specify another FAAC build if you wish :)

Please, post your feedback here!
Enjoy!

dimzon
8th September 2005, 14:34
Just very minor bugfix

Kurtnoise
8th September 2005, 15:15
Good...:) but approval needed...If you want you can send it to me the file (kurtnoise at free dot fr) and I'll take it in my webpage.


Are you succeed to create something with libfaac.dll ? Too much complicate ? do you have already checked winLAME sources ? There are some codes with libfaac. Hope this helps...;)

dimzon
8th September 2005, 15:50
Good...:) but approval needed...If you want you can send it to me the file (kurtnoise at free dot fr) and I'll take it in my webpage.
Here are latest bsn_FAAC and beta bsn_Speex (http://s4.yousendit.com/d.aspx?id=2O71Z723BQYI22YE0PF0E7L89P)


Are you succeed to create something with libfaac.dll ? Too much complicate ? do you have already checked winLAME sources ? There are some codes with libfaac. Hope this helps...;)
Seems like pipelining is much more easy and common way to integrate external encoders into BeSweet. I spent 2 hour creating bsn_FAAC (there are many Win32 API code for pipelining) and i spend only 20 minutes to create bsn_Speex (based on bsn_FAAC pipeline code) ;)

Maybe it's time to integrate with ffmpeg command-line encoder?

dimzon
8th September 2005, 16:04
Does anybody need OptimFROG or other losless support ?

Kurtnoise
8th September 2005, 17:48
Ok...here is the link : http://kurtnoise.free.fr/BeSweet_Plugins/


I know it's much more easy with command line. ;) So, no problem for me concerning lossless. Yes, I want them...;)

May I suggest you something ? Try to send a MP to DSPGuru to show him this thread. I think that he could create an new command line function, especially for you (just like -bswaplug( ) or anything else because -bsn() switch is dedicated to besweet nero encoder. And it will be more clearly for everybody to avoid some confusions by creating a new switch.

dimzon
8th September 2005, 17:58
Ok...here is the link : http://kurtnoise.free.fr/BeSweet_Plugins/
:thanks:

So, no problem for me concerning lossless. Yes, I want them...;)
Wich lossless encoder did You prefer? I looked for OptimFROG and FLAC, both of them can obtain RAW PCM data from stdin.

I think that he could create an new command line function, especially for you (just like -bswaplug( ) or anything else
It's good idea.

because -bsn() switch is dedicated to besweet nero encoder. And it will be more clearly for everybody to avoid some confusions by creating a new switch.
Don't forget, BSN framework still backward-compatible (if you do not specify -dll parameter it will redirect all calls to natve bsn.dll renamed to bsn_NeroAAC.dll)

Kurtnoise
8th September 2005, 18:02
Wich lossless encoder did You prefer? I looked for OptimFROG and FLAC, both of them can obtain RAW PCM data from stdin.
Monkeys Audio and Wavpack I would like but I dunno if we have raw pcm data from stdin.

dimzon
8th September 2005, 18:24
Monkeys Audio and Wavpack I would like but I dunno if we have raw pcm data from stdin.
I will try to make Wavpack encoder plugin during this week ;)

DSPguru
8th September 2005, 21:14
Ok...here is the link : I think that he could create an new command line function, especially for you.yes, that wasn't hard. luckily, i had the time to do it.

In v1.5b31 you now have a -dimzon( -dllname .... ) switch.

FredThompson
9th September 2005, 09:12
Monkeys Audio and Wavpack I would like but I dunno if we have raw pcm data from stdin.
FWIW, supposedly, Monkey's Audio adds some extra junk at the end of the files. It's also closed source, unlike FLAC.

Kurtnoise
9th September 2005, 10:21
It's also closed source, unlike FLAC.
not true...there is a SDK and some extras infos in developpers MAC forums.

dimzon
9th September 2005, 10:56
yes, that wasn't hard. luckily, i had the time to do it.

In v1.5b31 you now have a -dimzon( -dllname .... ) switch.
Great!
check Your PM

Elias
9th September 2005, 19:33
Wow! This is so great! No more need of using the Nero dlls. One question though: which is better suited for quality AAC encoding? Nero or FAAC?

dimzon
12th September 2005, 11:07
Nero or FAAC?
Nero now OWN FAAC code so Nero has better quality for AAC-LC than FAAC :mad:

Elias
12th September 2005, 12:11
Nero now OWN FAAC code so Nero has better quality for AAC-LC than FAAC :mad:What!? When did this happen?!

movax
12th September 2005, 20:32
Nero buys up the devs, and puts them to work as paid slaves :) Similar to the tale of FAAC source to Nero, the PsyTel guys were assimilated by Nero too.

Elias
12th September 2005, 21:00
Nero buys up the devs, and puts them to work as paid slaves :) Similar to the tale of FAAC source to Nero, the PsyTel guys were assimilated by Nero too.Micro$oft-style?