[MPlayer-users] Getting a lot of duplicate frame message

Marcos Iuato iuato at samurai.com.br
Tue Apr 17 00:30:58 CEST 2007


Hi,

I am using mencoder to capture the signal of tv, I am from Brazil so 
here we have PAL-M at 29.97fps, but as I can see it is not so regular, 
the fps oscillates from 24 fps to 29.97 fps.

When the signal is under 29.97 fps, I get a lot of "duplicate frame" and 
some "Skipping frame!" messages, and the video image seems to be freezing.

What could I do to minimize this messages and get a smooth image?

SO: Debian etch
Kernel: 2.6.18
Mplayer: 1.0~rc1-12etc

Command used:

mencoder -tv 
driver=v4l2:width=384:height=280:input=0:amode=1:normid=3:chanlist=us-bcast:adevice=/dev/dsp2:fps=29.97 
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=350:vhq:vqmax=31:keyint=300 
-oac mp3lame -lameopts cbr:br=48 -sws 1 -o $ENV{HOME}/.mplayer/tvfifo 
-vf crop=384:272,pp=lb tv://

Command output:

Simple mixer control 'Aux',0
   Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
   Capture exclusive group: 0
   Playback channels: Front Left - Front Right
   Capture channels: Front Left - Front Right
   Limits: Playback 0 - 31
   Front Left: Playback 30 [97%] [off] Capture [on]
   Front Right: Playback 30 [97%] [off] Capture [on]
MEncoder dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) M processor         1.20GHz (Family: 6, Model: 
13, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 9  data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
  name: Video 4 Linux 2 input
  author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
  comment: first try, more to come ;-)
Selected device: SIIG AVTuner-PVR/Prolink PlayTV
  Tuner cap:
  Tuner rxs:
  Capabilites:  video capture  tuner  audio  read/write  streaming
  supported norms: 0 = PAL-BG; 1 = PAL-DK; 2 = PAL-I; 3 = PAL-M;
  inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
  Current input: 0
  Current format: YUYV
v4l2: current audio mode is : STEREO
v4l2: ioctl query control failed: Invalid argument
[V] filefmt:9  fourcc:0x32595559  size:384x280  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [pp=lb]
Opening video filter: [crop w=384 h=272]
Crop: 384 x 272, -1 ; -1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 384 x 280 (preferred colorspace: Packed YUY2)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 5 -> 4
[swscaler @ 0x8411350]SwScaler: BILINEAR scaler, from yuyv422 to yuv420p 
using MMX2
[swscaler @ 0x8411350]SwScaler: using 4-tap MMX scaler for horizontal 
luminance scaling
[swscaler @ 0x8411350]SwScaler: using 4-tap MMX scaler for horizontal 
chrominance scaling
[swscaler @ 0x8411350]SwScaler: using 1-tap MMX "scaler" for vertical 
scaling (YV12 like)
[swscaler @ 0x8411350]SwScaler: 384x280 -> 384x280
videocodec: libavcodec (384x272 fourcc=34504d46 [FMP4])
[VE_LAVC] High quality encoding selected (non-realtime)!
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
MP3 audio selected.
Forcing audio preload to 0, max pts correction to 0.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
ODML: Aspect information not (yet?) available or unspecified, not 
writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not 
writing vprp header.
MPlayer 1.0rc1-4.1.2-DFSG-free (C) 2000-2006 MPlayer TeamV:0.000 [0:0]
CPU: Intel(R) Celeron(R) M processor         1.20GHz (Family: 6, Model: 
13, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not open config files /var/lib/sdm/.lircrc and 
/etc/lirc//lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.

Playing -.
Reading from stdin...
AVI file format detected.
Could not determine number of frames (for absolute seek).
VIDEO:  [FMP4]  384x272  24bpp  29.970 fps  -17179870.0 kbps (-2097152.0 
kbyte/s)
Clip info:
  Software: MEncoder dev-SVN-rUNKNOWN-4.1.2
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 48.0 kbit/3.40% (ratio: 6000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 384 x 272 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.41:1 - prescaling to correct movie aspect.
VO: [xv] 384x272 => 384x272 Planar YV12  [fs]
Skipping frame!
Pos:  34.0s    911f ( 0%) 26.45fps Trem:   0min   0mb  A-V:0.000 [336:48]
1 duplicate frame(s)!
Pos:  34.2s    915f ( 0%) 26.50fps Trem:   0min   0mb  A-V:0.000 [336:47]
1 duplicate frame(s)!
Pos:  34.2s    916f ( 0%) 26.51fps Trem:   0min   0mb  A-V:0.000 [335:48]
1 duplicate frame(s)!
Pos:  35.3s    946f ( 0%) 26.73fps Trem:   0min   0mb  A-V:0.000 [335:47]
1 duplicate frame(s)!
Pos:  35.4s    948f ( 0%) 26.73fps Trem:   0min   0mb  A-V:0.000 [334:47]
1 duplicate frame(s)!
Pos:  37.8s   1019f ( 0%) 26.49fps Trem:   0min   0mb  A-V:0.000 [333:47]

MPlayer interrupted by signal 2 in module: enable_cache


MPlayer interrupted by signal 2 in module: sleep_timer
Pos:  37.8s   1020f ( 0%) 26.36fps Trem:   0min   0mb  A-V:0.000 [333:47]
Flushing video frames.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not 
writing vprp header.

Video stream:  333.641 kbit/s  (41705 B/s)  size: 1576641 bytes  37.804 
secs  1020 frames

Audio stream:   48.000 kbit/s  (5999 B/s)  size: 226638 bytes  37.773 secs
v4l2: 1043 frames successfully processed, 117 frames dropped.

Thanks for any help.

Best regards,
Marcos Iuato



More information about the MPlayer-users mailing list