[MEncoder-users] audio sync issues with 720p x.264 encode
Robert McNamara
iamlindoro at aol.com
Wed Nov 7 08:30:38 CET 2007
>
> Hi folks,
>
> I wonder if you could give me a hand with this issue. I am trying to
> script a decent h.264 encode from 1080i broadcast HD material. I have
> everything pretty much working the way I want it, but have been having
> trouble with audio sync. Everything starts ok, but ends up pretty bad. I
> am looking to ultimately end in a MKV or MP4 container. Here's the way I'm
> doing it (including some non-mencoder stuff, for completeness). I'm sure I
> am doing something wrong as I am a beginner at this. I thought I had it
> licked in searching old posts and trying harddup in my vf options, but that
> didn't help. For reference, this is coming from 29.97 fps material, and I
> notice many, many changes in frame rate, dropped frames, and duplicate
> frames. Please help me use the correct options to enforce audio sync.
>
> mencoder $original_name -nosound -ovc x264 -vf
> pullup,softskip,scale=1280:720,harddup -ofps 24000/1001 -x264encopts
> pass=1:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:threads=auto:bitrate=3600
> -o /dev/null
>
> mencoder $original_name -nosound -ovc x264 -vf
> pullup,softskip,scale=1280:720,harddup -ofps 24000/1001 -x264encopts
> pass=2:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:threads=auto:bitrate=3600
> -o $OUTDIR/$file_name.avi
>
> mplayer -dumpaudio -dumpfile "$OUTDIR/$file_name.ac3" "$original_name"
>
> mkvmerge -o "$OUTDIR/$file_name - $SUBTITLE.mkv" "$OUTDIR/$file_name.avi"
> "$OUTDIR/$file_name.ac3"
>
> Thanks,
>
> Robert
>
More information about the MEncoder-users
mailing list