[MEncoder-users] Encoded DVD video has motion flicker
Chris Capon
ttabyss at gmail.com
Sun Nov 1 18:42:35 CET 2009
Hi all.
I am using mencoder to process digital TV recordings, converting them to
DVD. The source is an HVR-1600 recording ATSC video using an
over-the-air antenna.
When playing the encoded video on a DVD player, scenes with horizontal
or vertical motion seem to hop, flicker or jump as they play rather than
flowing smoothly. I'm guessing the images are jumping a block at a
time, so maybe around 16 pixels.
Below is a dump of my command line along with the first few seconds of
mencoder's output. I'm using the current SVN version of mencoder.
If someone has some ideas of options I could try I'd appreciate it.
Here is a list of LAVC options I've tried which DO NOT seem to affect
the problem:
mbd=1 vb_strategy=1 mpeg_quant gmc lowdelay trell
mbd=2 ilme ildct dc=10 dia=-10 predia=-10 precmp=2
subcmp=2 cmp=2 cbp mv0 vqmin=1 lmin=1
I'm also having some audio sync issues but have been addressing them
using the -delay option.
Much thanks,
Chris.
./mplayer/mencoder "recording.mpg" -oac lavc -ovc lavc -of mpeg
-mpegopts format=dvd:tsaf -vf pp,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"
MEncoder SVN-r29796-4.3.4 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0xe3639000
TS file format detected.
VIDEO MPEG2(pid=65) AUDIO A52(pid=68) NO SUBS (yet)! PROGRAM N. 4
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 17500.0 kbps (2187.5
kbyte/s)
[V] filefmt:29 fourcc:0x10000002 size:1920x1080 fps:29.970 ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
PACKET SIZE: 2048 bytes, deltascr: 43885
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 0
Opening video filter: [harddup]
Opening video filter: [dsize=16/9]
Opening video filter: [scale presize=ntsc]
Opening video filter: [pp]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
[ac3 @ 0x2d75370]No channel layout specified. The encoder will guess the
layout, but it might be incorrect.
Limiting audio preload to 0.4s.
Increasing audio density to 4.
[PP] Using external postprocessing filter, max q = 6.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0x2f380b0]BICUBIC scaler, from yuv420p to yuv420p using MMX2
videocodec: libavcodec (720x480 fourcc=3267706d [mpg2])
Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...
INITV: 0.200, 0.167, fps: 29.970
Pos: 0.0s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.003 [0:0]
1 duplicate frame(s)!
INITV: 0.233, 0.200, fps: 29.970
Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.007 [0:0]
INITV: 0.267, 0.233, fps: 29.970
1 duplicate frame(s)!
Pos: 0.1s 4f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.010 [0:0]
Pos: 0.2s 5f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.013 [0:0]
Pos: 0.2s 6f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.017 [0:0]
Pos: 0.2s 7f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.020 [0:0]
Pos: 0.3s 8f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.023 [0:0]
Pos: 0.3s 9f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.027 [0:0]
Pos: 0.3s 10f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.030 [0:0]
...(output trimmed)...
Pos: 41.3s 1229f ( 0%) 46.86fps Trem: 131min 7878mb A-V:-0.028
[4823:384]
Pos: 41.4s 1230f ( 0%) 46.86fps Trem: 131min 7878mb A-V:-0.028
[4820:384]
Pos: 41.4s 1231f ( 0%) 46.86fps Trem: 131min 7878mb A-V:-0.027
[4818:384]
Pos: 41.4s 1232f ( 0%) 46.87fps Trem: 130min 7854mb A-V:-0.025
[4815:384]
Pos: 41.5s 1233f ( 0%) 46.87fps Trem: 131min 7854mb A-V:-0.024
[4812:384]
Pos: 41.5s 1234f ( 0%) 46.87fps Trem: 131min 7854mb A-V:-0.023
[4810:384]
...(ctrl-c)...
Flushing video frames.
Writing index...
Overhead: 2.179% (586807 / 26930121)
Writing header...
Video stream: 4810.329 kbit/s (601291 B/s) size: 24958473 bytes
41.508 secs 1234 frames
Audio stream: 384.000 kbit/s (48000 B/s) size: 2010624 bytes 41.888 secs
More information about the MEncoder-users
mailing list