Log in

View Full Version : Merge & Convert AAC files


Darkwhisperer
6th April 2006, 09:51
I recently extracted a MKV file, and 2 parts that I got were AAC files. Im assuming that they are 2 mono sound files for left & right channels. Is this correct?

Since Im trying to convert the file to an AVI, I need to merge the 2 sound files, & then convert it to MP3. Or perhaps convert them & then merge.

If you can suggest app's or guides that will help me achieve this, I would greatly appreciate it. Optimally, I would like command-line apps. Since I have a large number of files to convert, I am writing an app to automate the whole lot.

Thanks in Advance!

bond
6th April 2006, 18:33
first of all: are you sure you need to use .avi?
reencoding will make you loose quality, so try to avoid it

than i assume besweet can reencode aac to mp3

tebasuna51
7th April 2006, 02:57
I recently extracted a MKV file, and 2 parts that I got were AAC files. Im assuming that they are 2 mono sound files for left & right channels. Is this correct?
Not at all. Your MKV have two sound tracks (normally two languages)

If you can suggest app's or guides that will help me achieve this, I would greatly appreciate it. Optimally, I would like command-line apps.
BeSweet can't decode aac, then you need a intermediate wav file obtained with the faad2 (http://www.rarewares.org/aac.html) decoder. You can use:
faad -d -o out.wav in.aac
BeSweet -core( -input out.wav -output out.mp3 ) -lame( ... )

The -d switch for faad is necessary only if in.aac is 5.1 to downmix to stereo.

Without intermediate wav file you can try BeHappy (not command-line app)

Darkwhisperer
7th April 2006, 06:55
You are correct, its 2 language files. Since one is english, I wont need the subtitles. I wont be re-encoding to AVI, as the video is already an XVid AVI format. Now I simply need to convert the aac, & merge it with the AVI, and Im good:)

I managed to do it using Winamp Diskwriter to create a wav(Besweet didnt work, even with Nero aac files), converted that to VBR MP3, & then combine the audio & video. However, the sound is off-sync. Its probably not the conversion, but I'll only get to play with it again tomorrow morning(24 hours away). tebasuna51, thanks for faad2 :)

i can automate breaking up the MKV into its componenets, I can now automate the conversion of the sound to wav, & automate its compression as well. The only thing I have to do manually is merging the sound & video. Any ideas on automating that?

Cheers!

Darkwhisperer
11th April 2006, 07:49
VDub scripting rocks! So does AviSynth! I could create my own front-end app that does SO much just with scripting!

Thanks for all the help guys...

yaz
11th April 2006, 11:41
aac can be wrapped into avi perfectly (try avimuxgui). so, unless mp3 is a special requirement, u shouldn't transcode the audio.

the bests
y

JoaCHIP
12th April 2006, 10:53
If the aac audio is vbr, you're headed for trouble merging it into an .avi container. But if the file is only intended to work on one PC ofcourse, you might be lucky. ;)

Darkwhisperer
12th April 2006, 11:04
Hi,

I got no problems with this now. Sorted it out thanks to faad:) Im trying to automate the last step of my app, where Im trying to pass Nandub/VDM a Sylia script from the command-line. But it doesnt like it. gives me errors.

Thanks for all your help guys..

Darkwhisperer
12th April 2006, 11:06
Hi,

I got no problems with this now. Sorted it out thanks to faad:) Im trying to automate the last step of my app, where Im trying to pass Nandub/VDM a Sylia script from the command-line. But it doesnt like it. gives me errors.

Thanks for all your help guys..

yaz
12th April 2006, 12:37
If the aac audio is vbr, you're headed for trouble merging it into an .avi container. But if the file is only intended to work on one PC ofcourse, you might be lucky. ;)vbr aac isn't harder than vbr mp3. what u only need is the appropriate avi muxer. avimuxgui will do but vd(m) wont.
all of my aac streams are vbr and i've headed no problem w/them so far. all of my avis having vbr aac play fine w/mpc+ffdshow on all pcs i've just tried.

so ... what do u mean by this exactly ?

the bests
y

Darkwhisperer
12th April 2006, 12:43
Hi,

I've sorted out all issues regarding this, and its working well. Including the Sylia script issue.

Thanks for all the help :)