mplayer -edlout S3E21.edl "The Office - S3E21 - Product Recall.ts" (manually mark commercial times) mencoder "The Office - S3E21 - Product Recall.ts" -edl S3E21.edl -oac copy -ovc copy -o S3E21.ts mencoder -nosound -ovc x264 -x264encopts bitrate=7000:subq=4:bframes=3:b_pyramid:weight_b:turbo=1:pass=1 -vf yadif=3,mcdeint=1,framestep=2,crop=1904:1072:10:4 -of rawvideo -o S3E21.264 S3E21.ts mencoder -nosound -ovc x264 -x264encopts bitrate=7000:subq=6:frameref=6:8x8dct:bframes=3:b_pyramid:weight_b:pass=2 -vf yadif=3,mcdeint=1,framestep=2,crop=1904:1072:10:4 -of rawvideo -o S3E21.264 S3E21.ts mplayer S3E21.ts -dumpaudio -dumpfile S3E21.ac3 mp4box -add S3E21.264 -fps 29.970 S3E21.mp4 mkvmerge S3E21.mp4 -D S3E21.ac3 -o S3E21.mkv