On Sat, 30 Oct 2004, Steven M. Schultz wrote:
I should try using mplayer to feed the mjpeg file to mpeg2enc and see if that yields a better mpeg2 stream. If that works, mpeg2enc could benefit from the MPlayer pp filters as well.
I did try it now. I took a photograph and fed it to a script that generates a png frame sequence from it. It gradually blends between a black frame at the start and the photograph at the last frame, 100 frames in total. Then I used png2yuv and yuv2lav ( -q 100 ) to encode the sequence to a mjpeg file. Next, I encoded the the mjpeg to mpeg2 using two different commands, one using lav2yuv and one using MPlayer:
lav2yuv test.avi | mpeg2enc -a 3 -f 8 -b 8000 -q 4 -o test_lav2yuv.m2v
and
mplayer test.avi -vf pp=hb/vb/dr -vo yuv4mpeg & cat stream.yuv | mpeg2enc -a 3 -f 8 -b 8000 -q 4 -o test_lav2yuv.m2v
The latter command resulted in a better looking mpeg stream, and the filesize of the mpeg was 10% smaller than when I just used lav2yuv.
So, I think I can say that mpeg2enc likes the post-processed output of MPlayer better.
Cheers,
Dik
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users