[MPlayer-users] mencoder: problem with deinterlacing dv2 avi files.

Pawel null7 at wp.pl
Sat Apr 8 19:11:26 CEST 2006


I am guessing that the problem is with bad fields order produced by mencoder while deinterlacing. Is it possible to change it in lavc ?

Greetings

Pawel writes:
 > Hallo
 > The command below deinterlaces 25 fps mpeg-2 stream to 50 fps:
 > 
 > mencoder -oac copy -fps 50 -ofps 50 -vf tfields -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=8000:autoaspect mov.mpg -o mov.xvid.avi
 > 
 > mplayer replays such stream as 50 fps and all looks nice.
 > 
 > But when I do the same command, but as a source there is a miniDV dv2 file, mplayer is not fluent, it looks like it was 25 fps or even worse.
 > 
 > Below there is a trace of mencoder and mplayer.
 > 
 > Have you got any idea what might be the reason ?
 > 
 > 
 > prompt# mencoder -oac copy -fps 50 -ofps 50 -vf tfields -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=8000:autoaspect movie.avi -o movie.xvid.avi
 > 
 > MEncoder dev-Fedora-GS-CVS-051128-18:25-3.4.4 (C) 2000-2005 MPlayer Team
 > CPU: Intel Pentium 4/Celeron D Prescott; Xeon Nocona (Family: 15, Stepping: 3)
 > CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
 > Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
 > 
 > success: format: 0  data: 0x0 - 0x2d94a58
 > AVI file format detected.
 > VIDEO:  [dvsd]  720x576  24bpp  25.000 fps  28800.0 kbps (3515.6 kbyte/s)
 > [V] filefmt:3  fourcc:0x64737664  size:720x576  fps:25.00  ftime:=0.0400
 > input fps will be interpreted as 50.00 instead
 > Opening video filter: [expand osd=1]
 > Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
 > Opening video filter: [tfields]
 > ==========================================================================
 > Opening video decoder: [dshow] DirectShow video codecs
 > Decoder supports the following YUV formats: YUY2 UYVY 
 > Decoder is capable of YUV output (flags 0x9)
 > VDec: vo config request - 720 x 576 (preferred colorspace: Packed YUY2)
 > [PP] Using codec's postprocessing, max q = 4.
 > 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: BICUBIC scaler, from Packed YUY2 to Planar YV12 using MMX2
 > videocodec: libavcodec (720x288 fourcc=34504d46 [FMP4])
 > Selected video codec: [qdv] vfm: dshow (Sony Digital Video (DV))
 > ==========================================================================
 > Building audio filter chain for 0Hz/0ch/s16le -> 0Hz/0ch/??...
 > audiocodec: framecopy (format=1 chans=2 rate=48000 bits=16 B/s=192000 sample-4)
 > Writing AVI header...
 > ODML: vprp aspect is 16384:13107.
 > ODML: vprp aspect is 16384:13107.
 > Pos:  10.2s    256f (87%) 16.92fps Trem:   0min  13mb  A-V:0.040 [7958:1536]
 > Skipping frame!
 > Pos:  12.6s    315f (100%) 17.18fps Trem:   0min  14mb  A-V:0.000 [7997:1536]
 > Flushing video frames
 > 
 > Writing AVI index...
 > Fixing AVI header...
 > ODML: vprp aspect is 16384:13107.
 > 
 > Video stream: 7997.414 kbit/s  (999676 B/s)  size: 12555940 bytes  12.560 secs  315 frames
 > 
 > Audio stream: 1536.000 kbit/s  (191999 B/s)  size: 2419120 bytes  12.600 secs
 > prompt# mplayer movie.xvid.avi
 > MPlayer dev-Fedora-GS-CVS-051128-18:25-3.4.4 (C) 2000-2005 MPlayer Team
 > CPU: Intel Pentium 4/Celeron D Prescott; Xeon Nocona (Family: 15, Stepping: 3)
 > CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
 > Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
 > 
 > Playing movie.xvid.avi.
 > Cache fill: 15.04% (1261568 bytes)   
 > AVI file format detected.
 > VIDEO:  [FMP4]  720x288  24bpp  50.000 fps  7997.4 kbps (976.2 kbyte/s)
 > Clip info:
 >  Software: MEncoder dev-Fedora-GS-CVS-051128-18:25-3.4.4
 > ==========================================================================
 > Opening audio decoder: [pcm] Uncompressed PCM audio decoder
 > AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
 > Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
 > ==========================================================================
 > ==========================================================================
 > Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
 > Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
 > ==========================================================================
 > Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
 > AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
 > Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
 > Starting playback...
 > VDec: vo config request - 720 x 288 (preferred colorspace: Planar YV12)
 > VDec: using Planar YV12 as output csp (no 0)
 > Movie-Aspect is 1.25:1 - prescaling to correct movie aspect.
 > VO: [xv] 720x288 => 720x576 Planar YV12 
 > A:   3.8 V:   3.8 A-V: -0.001 ct:  0.001 191/191 22%  0%  0.2% 2 0 49%          
 > A:   4.9 V:   4.9 A-V: -0.009 ct:  0.008 245/245 21%  0%  0.2% 14 0 49%         
 > A:   8.7 V:   8.7 A-V: -0.001 ct:  0.001 434/434 22%  1%  0.2% 35 0 49%         
 > A:  10.4 V:  10.4 A-V: -0.001 ct:  0.001 520/520 22%  1%  0.2% 48 0 29%         
 > A:  12.4 V:  12.5 A-V: -0.124 ct: -0.016 628/628 22%  1%  0.3% 59 0 0%          
 > 
 > Exiting... (End of file)
 > prompt# 
 > 
 > _______________________________________________
 > MPlayer-users mailing list
 > MPlayer-users at mplayerhq.hu
 > http://mplayerhq.hu/mailman/listinfo/mplayer-users
 > 




More information about the MPlayer-users mailing list