On Fri, 17 Mar 2006, Steven M. Schultz wrote: > You can also use 'y4mscaler' to crop the data. IF the data really > is "420jpeg" then something like this, placed just before the > encoder (mpeg2enc) is what you need - it will crop and convert > at the same time:
The command I gave was, from "finger memory" (force of habit ;)) not quite correct. >> on the top and bottom (ie "mplayer -vf crop=720:470" removes them). y4mscaler -I active=720x472+0+4 -O sar=src -O size=720x480 -O chromass=420mpeg2 will leave the black bars. Omit the "-O sar=src": y4mscaler -I active=720x472+0+4 -O size=720x480 -O chromass=420mpeg2 BUT that will corrupt the file. The black bars will be replaced with an incorrect aspect ratio since you're upscaling vertically from 472 to 480. True, it's only ~2% but that's enough to make circles into ovals. Until yuvdeinterlace is updated in cvs the better thing to do is just leave the stream interlaced. I guess it depends if oblateness is better/worse than interlacing :) Cheers, Steven Schultz ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users