Log in

View Full Version : Mux raw video & audio stream using FFMPEG


varunb
8th April 2007, 18:12
Can any1 guide me in this ? I just want to mux a raw h.264 stream(video.264) & aac audio file,both having frame rates of 23.976, to Quicktime compatible .mov file using ffmpeg ? Below is the command that I have been using:

ffmpeg -r 23.976 -i quicktime.264 -vcodec copy -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -flags2 -8x8dct-wpred -refs 1 -i aud.aac -acodec copy out.mov

Every time I run this command, the output mov file produced has a frame rate of 25 whereas I want to have 23.976 output mov file. Moreover, the output is jerky & I see a lot of blocky artifacts in it. Can any1 tell me the proper commands ? The source files were produced using meGUI.

Blue_MiSfit
9th April 2007, 00:53
Well, just a sanity check:

Your H.264 stream is QuickTime compliant, right? ;)

~MiSfit

varunb
9th April 2007, 03:53
Yeah it is 100% quicktime-compliant. I have checked it thoroughly.

bond
9th April 2007, 10:11
ffmpeg -r 23.976 -i quicktime.264 -vcodec copy -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -flags2 -8x8dct-wpred -refs 1 -i aud.aac -acodec copy out.mov this commandline doesnt make sense. you are muxing the raw stream (with vcodec copy), so you cant define all the encoding options, as you are not encoding

try the following:
ffmpeg -f h264 -i quicktime.264 -r 23.976 -vcodec copy -i aud.aac -acodec copy out.movmoved