[mythtv-users] Crop in Transcode?

Robert Current robert.current at gmail.com
Thu Apr 26 01:08:40 UTC 2007


On 4/25/07, Rod Smith <mythtv at rodsbooks.com> wrote:
>
> mencoder -vf kerndeint,softskip,crop=720:360:0:60,scale=720:480,hard
> dup -ofps 30000/1001 -aspect 1.7777 -ovc lavc -lavcopts
> vcodec=mpeg2video:vrc_bu
> f_size=1835:vrc_maxrate=9600:vbitrate=${vbitrate}:keyint=18:turbo:trell:dc=10:au
> toaspect=1 -oac lavc -lavcopts acodec=ac3:abitrate=192 -of mpeg
> -o ${dest} ${src}


Well I figured out my OTA HD recording of Simpsons episode was
1280x720, then I ran this command on the file:

mencoder -vf \
kerndeint,softskip,crop=960:720:160:0,scale=720:480,harddup \
-ofps 30000/1001 -aspect 1.7777 -ovc lavc -lavcopts \
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9600:\
vbitrate=4771000:keyint=18:turbo:trell:dc=10:autoaspect=1 \
-oac lavc -lavcopts acodec=ac3:abitrate=192 -of mpeg \
-o NEW-1111_20070424170000.mpg 1111_20070424170000.mpg

The output was exactly what I was looking for, it converted the
1280x720 file with black bars on the right and left to a nice small SD
like file at 720x480 that played back with ease.

I still haven't figured out how to get the file stats by command line
to see if it's a 1280x720 video to start with.  Once I can do that,
I'll try to make it a script file, so I can put it in my User Jobs...


More information about the mythtv-users mailing list