Log in

View Full Version : Combining .264 and .aac file into an AVI or MKV?


MikeBell
28th April 2010, 03:38
Hi guys,

I have an FLV file (video: avc, audio: aac) and I'd like to convert it to an AVI or MKV file.

I've used FLVextract and it produced two files: video .264 file and an audio .aac file. How do I combine those into an AVI or MKV file?

Thanks!

Blue_MiSfit
28th April 2010, 05:03
AVIMuxGUI or MKVMergeGUI.

thewebchat
28th April 2010, 05:15
You need to use avc2avi to mux the H.264 ES (.264) to an AVI file, since AVIMuxGUI won't handle it. After that, you can use AVIMuxGUI to add the raw AAC stream (.aac).

MikeBell
28th April 2010, 06:13
Thank you guys!! After I created an avi with avc2avi, it worked perfectly!

roozhou
28th April 2010, 06:15
Please use this ffmpeg build (http://forum.doom9.org/showthread.php?t=152419). You don't need to extract .264 and .aac.

flv -> mkv:
ffmpeg -i input.flv -vcodec copy -acodec copy output.mkv
flv -> avi:
ffmpeg -i input.flv -vcodec copy -acodec copy -vbsf h264_mp4toannexb=avihack output.avi

EmuAGR
28th April 2010, 15:32
Don't use AVI anymore, MKV is better. :rolleyes:

Blue_MiSfit
29th April 2010, 20:45
That's opening a huge container of worms and re-hashing discussions that have happened many times here on doom9.

It is generally a better idea to use a container that fully supports H.264, but AVI will work when you need it.

~MiSfit