On Tue, 7 Sep 2004, Steven M. Schultz wrote: > You do not need or want to put black bars on. All you need to do > is resample (scale) the data to the correct SAR (Sample Aspect Ratio). > > To do that you want 'y4mscaler': > > http://www.mir.com/DMG/Software/y4mscaler.html > > if you are using the cvs version of mjpegtools you need y4mscaler > 0.7.1. if you are using the 1.6.2 release of mjpegtools you need > y4mscaler 0.6.2 > > Then for 768x576 input you would add: > > ... | y4mscaler -I sar=1:1 -O sar=PAL -O size=720x576 -S option=sinc:4 | ... > > immediately before the mpeg2enc program > > If you do the arithmetic you will see that 768 square pixels is > exactly the same as 720 59:54 pixels. > > For 384x288 (which I think is single field only and not interlaced) > something like this might work (but I have not tested it): > > ...| y4mscaler -I ilace=NONE -I sar=1:1 -O sar=PAL -O preset=352x288 -S > option=sinc:4 | ... > > That works because 384 1:1 pixels is equivalent to 352 59:54 pixels.
Thank You very much, but these two days I am trying to solve some problems I can't pipe lav2yuv | y4mscaler | mpeg2enc because mpeg2enc every time says that he can't manage interlaced video. So I make lav2yuv | yuvdenoise -F (for deinterlacing) then | y4mscaler then | mpeg2enc. But this is very very very slow solution. Can I deinterlace video with y4mscaler itself? I t\made some tests but unsuccessfully. Thanks ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users