[MEncoder-users] ac3 out of sync - x264 encode

Johannes Lindblom johanneslindblom at gmail.com
Sat Mar 17 21:42:45 CET 2007


>>>> pp=lb,filmdint=dint_thres=256

>>> That's backwards.

>> What do you mean with backwards?

>filmdint needs fields (interlaced) to work with, and can't do anything
>with progressive (deinterlaced) video.

Oh, I didn't know that So I should just put filmdint in front of my
deinterlace filter so it can run its magic and after that video gets
deinterlaced?

Well then, this is how my script looks like now.

#!/bin/bash
FILETITLE=`echo $3`
mencoder -sws 10 -ssf ls=15 -vf
filmdint=dint_thres=256,pp=ci,pp=ac,scale=1280:720,harddup -ovc x264
-x264encopts
bitrate=$2:threads=auto:pass=1:turbo=2:frameref=15:bframes=5:nob_pyramid:direct_pred=auto:partitions=all:8x8dct:subq=7:mixed_refs:nodct_decimate
-oac copy -ofps 24000/1001 -of rawvideo -o /dev/null $1
mencoder -sws 10 -ssf ls=15 -vf
filmdint=dint_thres=256,pp=ci,pp=ac,scale=1280:720,harddup -ovc x264
-x264encopts
bitrate=$2:threads=auto:pass=2:frameref=15:bframes=5:nob_pyramid:direct_pred=auto:partitions=all:8x8dct:subq=7:mixed_refs:nodct_decimate
-oac copy -ofps 24000/1001 -of rawvideo -o $FILETITLE.720p.HDTV.x264.264 $1
MP4Box -fps 23.976025 -add $FILETITLE.720p.HDTV.x264.264
$FILETITLE.720p.HDTV.x264.mp4
mplayer -dumpaudio -dumpfile $FILETITLE.ac3 $1
mkvmerge -o $FILETITLE.720p.HDTV.x264.mkv $FILETITLE.720p.HDTV.x264.mp4
$FILETITLE.ac3

I'd be very happy with any help I can get how to improove it. Thanks.



More information about the MEncoder-users mailing list