[MEncoder-users] Re: quicktime compatible mp4 using x264encopts?
Jon Drukman
jsd at cluttered.com
Thu Jul 13 19:34:02 CEST 2006
Jon Drukman wrote:
> Jon Drukman wrote:
>> here's what i have at the moment. one thing to note is that sometimes
>> it will still generate files that don't play in quicktime. (they will
>> play in other mp4/h.264 capable apps though)
>
> one of my colleagues informs me that muxing with mp4creator (from the
> mpeg4ip project) creates files that work in quicktime, although the
> audio and video lose sync over time.
actually i've solved the a/v sync issue by specifying -ofps 29.97 in the
mencoder command line. previously i specified 30000/1001 and that
caused the sync error.
so let's recap for the archives:
rm -f "$infile.264"
mencoder "$infile" -vf lavcdeint,scale=640:-10 -ovc x264 -x264encopts
bitrate=1750 -ofps 29.97-nosound -of rawvideo -o "$infile.264"
rm -f "$infile.aac"
ffmpeg -y -i "$infile" -vn -f aac -ar 48000 -ab 128 -coder 0 -ac 2
-acodec aac "$infile.aac"
rm -f "$infile.mp4"
mp4creator -c "$infile.aac" "$infile.mp4"
mp4creator -rate 29.97 -c "$infile.264" "$infile.mp4"
you can of course change the vf and x264encopts options to mencoder to
tradeoff picture quality/encoding time. it should work just fine with
no vf or x264encopts at all.
More information about the MEncoder-users
mailing list