[MEncoder-users] Encoded DVD video has motion flicker

Chris Capon ttabyss at gmail.com
Tue Nov 3 15:21:59 CET 2009


RC wrote:
> If your ATSC capture is interlaced video (most likely), you're
> destroying it with those -VF options for progressive video.  Scale has
> an "interlaced video" flag you can set, and pp would require the
> assistance of the il= filter to work right.

Hi.
Thanks for your reply.

With these video files, when I run mencoder with 'scale' as the first 
filter, it seg-faults.  My solution was to add 'pp' as the first filter. 
  I don't know what 'pp' contributes when no sub-filters are specified 
though.  Here is an example of a run without 'pp'.

----------------------
18613 Segmentation fault      ./mplayer/mencoder "recording.mpg"
  -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf
  -vf scale=interlaced=1:presize=ntsc,dsize=16/9,harddup -srate 48000
  -delay 0.2 -af lavcresample=48000
  -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800
:vstrict=0:keyint=15:vbitrate=5000:aspect=16/9:acodec=ac3:abitrate=384
  -ofps 30000/1001 -o "encoded.mpg"
----------------------
Note that in the SVN source, the 'scale' 'ilaced' option was renamed to 
'interlaced'.



Following your advice, I've tried these two alternatives:


----------------------
./mplayer/mencoder "cut.mpg" -oac lavc -ovc lavc -of mpeg -mpegopts 
format=dvd:tsaf -vf pp=li,scale=presize=ntsc,dsize=16/9,harddup -srate 
48000 -delay 0.2 -af lavcresample=48000 -lavcopts 
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vstrict=0:keyint=15:vbitrate=5000:aspect=16/9:acodec=ac3:abitrate=384 
-ofps 30000/1001 -o "encoded.mpg"
----------------------
Deinterlacing with pp removes the flicker but motion still jumps or hops 
rather than flowing smoothly.  Its possible this video may require 
interlacing to keep fluid motion.  By combining frames, it may take away 
the flow effect.



----------------------
./mplayer/mencoder "cut.mpg" -oac lavc -ovc lavc -of mpeg -mpegopts 
format=dvd:tsaf -vf il=d,scale=presize=ntsc,dsize=16/9,harddup,il=i 
-srate 48000 -delay 0.2 -af lavcresample=48000 -lavcopts 
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vstrict=0:keyint=15:vbitrate=5000:aspect=16/9:acodec=ac3:abitrate=384 
-ofps 30000/1001 -o "encoded.mpg"
----------------------
I may not be using the il filters correctly but the above was an attempt 
to deinterlace, scale, then reinterlace.  This results in more flicker 
and jump than before.



Cheers, and thanks for your help.
Chris.

p.s. In my reply to L Lee I will include a link to a video clip if you 
are interested.


More information about the MEncoder-users mailing list