[MPlayer-users] De-interlacing and YUV420 pixels

James Board jpboard2 at yahoo.com
Fri Nov 22 02:11:34 CET 2013


>Kerndeint supports yuy2, which is 422.
>Also, if you add -v then you'll see if there are additional conversions:
>Trying filter chain: kerndeint vo
>For example means no conversion, otherwise there would be a scale filter
>in there.
>In addition even without -v, the scaler should tell you what it does,
>-vf format=yuy2,kerndeint
>should probably work for 422 kerndeint.


I tried several combinations of yuy2 and the video filters, but I can't get it to
work when I also lossless-compress the output.  Here is an example command and
output:

> mencoder IN.avi -vf format=yuy2,kerndeint -oac copy -ovc lavc -lavcopts vcodec=ffvhuff -o OUT.avi
MEncoder SVN-r31628-4.4.5 (C) 2000-2010 MPlayer Team
success: format: 0  data: 0x0 - 0x16483314
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [UYVY]  1920x1080  16bpp  29.970 fps  994333.8 kbps (121378.6 kbyte/s)
[V] filefmt:3  fourcc:0x59565955  size:1920x1080  fps:29.970  ftime:=0.0334
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [kerndeint]
Opening video filter: [format fmt=yuy2]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
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
Selected video codec: [ffrawuyvy] vfm: ffmpeg (RAW UYVY)
==========================================================================
audiocodec: framecopy (format=1 chans=2 rate=48000 bits=16 B/s=192000 sample-4)
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.





However, I almost got it to work with raw output.  The following command
almost works.  The output pixels are indeed 422.  However, only the left
half of the video gets encoded.  The right half is completely blank.  And
there's no lossless compression.


> mencoder IN.avi -vf format=yuy2,kerndeint -oac copy -ovc raw -o OUT.avi
MEncoder SVN-r31628-4.4.5 (C) 2000-2010 MPlayer Team
success: format: 0  data: 0x0 - 0x16483314
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [UYVY]  1920x1080  16bpp  29.970 fps  994333.8 kbps (121378.6 kbyte/s)
[V] filefmt:3  fourcc:0x59565955  size:1920x1080  fps:29.970  ftime:=0.0334
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [kerndeint]
Opening video filter: [format fmt=yuy2]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x28eff60] BICUBIC scaler, from uyvy422 to yuyv422 using MMX2
Selected video codec: [rawuyvy] vfm: raw (RAW UYVY)
==========================================================================
audiocodec: framecopy (format=1 chans=2 rate=48000 bits=16 B/s=192000 sample-4)
Writing header...
ODML: vprp aspect is 16:9.
Writing header...
ODML: vprp aspect is 16:9.
Pos:   2.5s     75f (82%) 56.18fps Trem:   0min 361mb  A-V:0.033 [994333:1536]
Badly interleaved AVI file detected - switching to -ni mode...
Pos:   3.0s     90f (98%) 55.66fps Trem:   0min 360mb  A-V:0.033 [994333:1536]
Flushing video frames.
Writing header...
ODML: vprp aspect is 16:9.

Video stream: 994333.688 kbit/s  (124291708 B/s)  size: 373248000 bytes  3.003 secs  90 frames

Audio stream: 1536.000 kbit/s  (192000 B/s)  size: 576000 bytes  3.000 secs




So, both of the above two commands are giving me problems.  Any ideas
on how to get this to work?  Thank you.


More information about the MPlayer-users mailing list