[MPlayer-users] Comparison of different deinterlace and denoise filters
Matthias Wieser
mwieser at gmx.de
Thu Oct 16 13:36:55 CEST 2003
Am Mittwoch, 15. Oktober 2003 22:53 schrieb D Richard Felker III:
> In the second test frame, I saw some incorrect colors left over where
> median deinterlace got rid of combing... This shouldn't happen.
You mean the brown box which shows a brown "shadow"?
http://home.knuut.de/MWieser_/vf_raw_ntv_8/raw_ntv_8_pp-md.jpg
> > > If you use bttv, you MUST capture
> > > interlaced content in yuy2 mode; the yv12 is broken and throws away
> > > the odd field of chroma! :(
Maybe the saa7134 driver has the same problem.
> All. Apparently the bt8x8 chipset gives 4:2:2 planar video, and bttv
> "converts" it to 4:2:0 by doubling the chroma stride. This of course
> does not work with interlaced video (which TV inherently is), since
> you end up with only the even field of chroma... In fact, the only way
> to capture 4:2:0 video from bttv with mencoder is a command line like:
>
> mencoder -tv outfmt=yuy2 -vf il=d:d,scale,format=yv12,il=i:i ...
I tried this with my saa card. (see below)
mplayer -v [...] gives:
[...]
Format GREY ( 8 bits, 8 bpp gray): Planar Y800
Format RGB555 (16 bits, 15 bpp RGB, le): RGB 15-bit
Format RGB555X (16 bits, 15 bpp RGB, be): Unknown
Format RGB565 (16 bits, 16 bpp RGB, le): RGB 16-bit
Format RGB565X (16 bits, 16 bpp RGB, be): Unknown
Format BGR24 (24 bits, 24 bpp RGB, le): BGR 24-bit
Format BGR32 (32 bits, 32 bpp RGB, le): BGR 32-bit
Format RGB32 (32 bits, 32 bpp RGB, be): RGB 32-bit
Format YUYV (16 bits, 4:2:2 packed, YUYV): Packed YUY2
Format UYVY (16 bits, 4:2:2 packed, UYVY): Packed UYVY
Format YUV422P (16 bits, 4:2:2 planar, Y-Cb-Cr): Planar 422P
Format YUV420 (12 bits, 4:2:0 planar, Y-Cb-Cr): Planar I420
Current format: BGR24
[...]
It looks like my car doesn't support yuv2. Any recommendation which format
to use?
Mplayer choosed YUYV (Packed YUY2) is that ok?
v4l2: set format: YUYV
v4l2: set input: 0
v4l2: set width: 720
v4l2: set height: 576
Selected channel list: europe-east (including 133 channels)
Current frequency: 5236 (327,250)
==> Found video stream: 0
v4l2: get format: YUYV
v4l2: get fps: 25,000000
v4l2: get width: 720
v4l2: get height: 576
First I did capture one raw video with
mencoder tv:// -tv driver=v4l2:width=720:hei[...]:outfmt=yuy2 -ovc copy
and another without outfmt=yuy2.
Then I used my skript to do those deinterlacer tests:
The video captured without "-outfmt=yuy2" showed those strange artifacts
(http://home.knuut.de/MWieser_/Video-16.10.-1230Uhr_8_pp-md.png)
But the video captured with "-outfmt=yuy2" showed never those artifacts
independent of either using "-vf il=d:d,scale,format=yv12,il=i:i" or not
(http://home.knuut.de/MWieser_/Video-16.10.-1229Uhr-yuv2_5_pp-md.png).
So is it right to say: If you have a bttv card, you have to record tv with
"mencoder -tv outfmt=yuy2 -vf il=d:d,scale,format=yv12,il=i:i", but if
you have a saa7134 card, you only need "mencoder -tv outfmt=yuy2"?
Regards,
Matthias
More information about the MPlayer-users
mailing list