On Sat, 23 Apr 2005, sean wrote: > This used to work all the time:
No, it never worked. 'mpeg2enc' has never ever been able to encode 4:1:1 input to MPEG-2. > smil2yuv -i 2 dv/test.dv | Note the "-i 2" - that's the clue to smil2yuv to emit 4:1:1 data rather than converting to 4:2:0 (which is the only format the mpeg2enc has ever accepted). > mpeg2enc -f 8 -v 2 -F 4 -n n -a 2 -I 1 -o test -K kvcd -q 5 > -b 8500 -4 1 -2 1 mpeg2enc understands only 420mpeg2. Now by luck 4:1:1 and 4:2:0 frames are the same size but the output of the encoder will merit entry in a 'special effects contest' ;) > mjpegtools - cvs > smilutils-0.3.0 I think there's a slightly newer smilutils in cvs but the changes are minor (couple fixes for 64bit operation, etc). > Any help appreciated. Either 1) leave out the "-i 2" with smil2yuv and it will output a 420mpeg2 stream or 2) add, just before the encoder, a y4mscaler to resample the stream ('y4mscaler -O chromass=420mpeg2'). The 2nd choice is what I use since y4mscaler performs a higher quality resampling. The other benefit is that any intermediate filters work with the acquisition format (4:1:1) rather than a modified version of the data. That's possible because most of the filters work with any of the 3 plane formats. Try feeding 4:2:0 into the encoder and seeing if that works better. If not then there's a bug(let) in smilutils (which I've seen on occasion but not enough to reproduce at will) that might be worked around by creating a dummy .smil file referencing the entire DV clip. Cheers, Steven Schultz ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users