[MEncoder-users] Re: Corrupt H264 Files with Mencoder
Jon Drukman
jsd at cluttered.com
Fri Sep 15 21:16:39 CEST 2006
andreil1 at starlett.lv wrote:
> Anyone please could help to change my script so it will work with
> QuickTime Player (H264/AAC), and preferably convert any audio/video
> supported by mencoder into high-quality H264/AAC, may be even without
> extracting audio first.
i have been unable to get mencoder to reliably generate an H264 that
will play in quicktime. the problem appears to be in the lavf muxer. i
use mencoder to generate a raw h264 video file, ffmpeg to create the aac
audio file, and then mux them together with mp4creator:
mencoder "$infile" -vf scale=640:-10 -ovc x264 -x264encopts bitrate=1750
-ofps 29.97 -nosound -of rawvideo -o "$infile.264"
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 -r 29.97 -c "$infile.264" "$infile.mp4"
More information about the MEncoder-users
mailing list