Re: MPEG1 encoding artifacts
[email protected] Sat, 25 Apr 2009 15:07:37 -0700 (PDT)
| Newsgroups | gmane.comp.video.mjpeg.devel |
|---|---|
| Message-ID | <[email protected]> |
>>The latest mpeg2enc seems to generate a lot of artifacts when I try to >>use it to make VideoCD-grade video. >> >>I have a 160k clip.yuv.bz2 file that can be used to reproduce the >>problem, plus the shell script that produced the clip. > >What encoding do you use ? I use that command: lav2yuv $i | mpeg2enc >-f 1 -4 1 -2 1 -N 1.5 -M 2 -o video.m1v > >I still encode to VCD, but don't use it afterwards. I have checked >several videos but never seen such extreme artifacts. Yeah, I kind of lucked into such an extreme example -- anyone that knows the mpeg2enc code should have no trouble tracking it down! Enclosed is the shell-script I used to generate the artifacting VideoCD. It's a cut-down version of a shell-script that I've used to generate dozens of videos. I'll attach the 160k clip.yuv.bz2 file on request. -Steve ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Mjpeg-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mjpeg-developer
makeclip.sh
(application/x-sh, 809 B)
#!/bin/bash rm -f fifo.yuv fifo2.yuv mkfifo fifo.yuv fifo2.yuv smil2yuv -i 2 clip.kino \ | yuvcorrect -v 0 -Y CONFORM \ -T TOP_FORWARD -T INTERLACED_TOP_FIRST \ | yuvkineco -F 1 -n 20 \ | y4mscaler -v0 -I matte=720x472+0+0 -O sar=src -O size=720x480 \ -O chromass=420_mpeg2 -S option=sinc:5 \ | y4mdenoise -p 3 -z 0 -t 4 -T 3 -m 30 -M 3 \ | y4mscaler -v 0 -O sar=src -O chromass=420_jpeg -S option=sinc:5 \ | yuvmedianfilter -f -r 1 -R 1 -w 2.667 \ | y4mscaler -v 0 -O preset=vcd -S option=sinc:5 \ | y4mdenoise -p 3 -z 0 -t 2 -m 30 -M 3 \ | yuvmedianfilter -f -r 1 -R 1 -w 8 \ | tee fifo.yuv \ | tee clip.yuv \ | mpeg2enc -v 0 -I 0 -n n -f 1 -S 9999 -K kvcd -4 1 -2 1 -s -r 16 -a 2 \ -F 1 -o clip.m1v & sleep 5 bzip2 -9 < fifo.yuv > clip.yuv.bz2 & sleep 5 rm -f fifo.yuv fifo2.yuv wait