[MEncoder-users] Real to MPEG4: duplicated frames NO-SPAM

Mario Valle mvalle at cscs.ch
Fri Jan 21 16:06:50 CET 2005


I try to convert a RealVideo movie to MPEG4 for simpler distribution on Linux and PC.
I'm using pre6a on Linux.

The command used is:

vopts="vbitrate=40000:mbd=2:keyint=132:v4mv:vqmin=3:lumi_mask=0.07:dark_mask=0.2:scplx_mask=0.1:tcplx_mask=0.1:naq:trell"

mencoder -ovc lavc -lavcopts vcodec=mpeg4:$vopts:acodec=mp3:abitrate=32 -oac lavc
	 -o sevrstorm.avi sevrstorm.rm

mencoder shows a lot of duplicated frames and the resulting file playback is very jerky,
but audio is ok. The duplicated frames appear also if I don't encode the audio.

There is anything I can do to have a smooth playing movie?
Thanks for your help!

					mario


=== mencoder output (with a set of progress message removed) ============
MEncoder 1.0pre6-3.2.3 (C) 2000-2004 MPlayer Team
CPU: Intel  (Family: 8, Stepping: 10)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

File not found: 'frameno.avi'
Failed to open frameno.avi

success: format: 0  data: 0x0 - 0x1cba75
REAL file format detected.
======= WAVE Format =======
Format Tag: 28260 (0x6E64)
Channels: 1
Samplerate: 8000
avg byte/sec: 12062
Block align: 288
bits/sample: 16
cbSize: 0
===========================
VIDEO:  RV13 [10003000,0000000D]  352x240  (aspect 0.00)  15.00 fps
VIDEO:  [RV13]  352x240  24bpp  15.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:11  fourcc:0x33315652  size:352x240  fps:15.00  ftime:=0.0667
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 1.0 (mono)  8000 Hz  12.0 kbit/s
Using MMX optimized resampler
AUDIO: 8000 Hz, 2 ch, 16 bit (0x10), ratio: 1500->32000 (12.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffrv10] vfm:ffmpeg (FFmpeg RV10 decoder)
==========================================================================
Building audio filter chain for 8000Hz/2ch/16bit -> 8000Hz/2ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
VDec: vo config request - 352 x 240 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (352x240 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:   0.1s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] Pos:   0.1s      2f (
0%)   0fps Trem:   0min   0mb  A-V:0.007 [0:0]
1 duplicate frame(s)!
Pos:   0.3s      3f ( 0%)   0fps Trem:   0min   3mb  A-V:0.013 [0:0] Pos:   0.3s      4f (
0%)   0fps Trem:   0min   3mb  A-V:0.020 [0:0]
3 duplicate frame(s)!
Pos:   0.6s      5f ( 0%)   0fps Trem:   0min   3mb  A-V:0.027 [0:0] Pos:   0.7s      6f (
0%)   0fps Trem:   0min   3mb  A-V:0.033 [0:32]
3 duplicate frame(s)!
Pos:   0.9s      7f ( 0%)   0fps Trem:   0min   2mb  A-V:0.040 [0:32] Pos:   1.0s      8f
( 0%)   0fps Trem:   0min   2mb  A-V:0.047 [0:32]
1 duplicate frame(s)!

----- removed progress lines -----------------------------------

7 duplicate frame(s)!
Pos: 431.2s   1838f (100%)  79fps Trem:   0min   2mb  A-V:0.025 [21:32] Pos: 431.3s
1839f (100%)  79fps Trem:   0min   2mb  A-V:0.031 [21:32] Pos: 431.3s   1840f (100%)
79fps Trem:   0min   2mb  A-V:0.038 [21:32] Pos: 431.4s   1841f (100%)  79fps Trem:   0min
   2mb  A-V:0.045 [21:32] Pos: 431.5s   1842f (100%)  79fps Trem:   0min   2mb  A-V:0.051
[21:32] Pos: 431.5s   1843f (100%)  79fps Trem:   0min   2mb  A-V:0.058 [21:32]
5 duplicate frame(s)!
Pos: 431.9s   1844f (100%)  79fps Trem:   0min   2mb  A-V:0.065 [21:32] Pos: 432.0s
1845f (100%)  79fps Trem:   0min   2mb  A-V:0.071 [21:32] Pos: 432.1s   1846f (100%)
79fps Trem:   0min   2mb  A-V:0.011 [21:32] Pos: 432.1s   1847f (100%)  79fps Trem:   0min
   2mb  A-V:0.018 [21:32]
1 duplicate frame(s)!
Pos: 432.3s   1848f (100%)  79fps Trem:   0min   2mb  A-V:0.025 [21:32] Pos: 432.3s
1849f (100%)  79fps Trem:   0min   2mb  A-V:0.031 [21:32] Pos: 432.4s   1850f (100%)
79fps Trem:   0min   2mb  A-V:0.038 [21:32]
2 duplicate frame(s)!
Pos: 432.6s   1851f (100%)  79fps Trem:   0min   2mb  A-V:0.045 [21:32] Pos: 432.7s
1852f (100%)  79fps Trem:   0min   2mb  A-V:0.051 [21:32]
1 duplicate frame(s)!
Pos: 432.8s   1853f (100%)  79fps Trem:   0min   2mb  A-V:0.058 [21:32]
Flushing video frames

Writing AVI index...
Fixing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream:   21.123 kbit/s  (2640 bps)  size: 1142740 bytes  432.800 secs  1853 frames

Audio stream:   32.000 kbit/s  (4000 bps)  size: 1690560 bytes  422.640 secs

-- 
Ing. Mario Valle
Visualization Group                              | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82




More information about the MEncoder-users mailing list