Problems with dshow and deinterlacing

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
andycap
New Cone
New Cone
Posts: 7
Joined: 17 May 2009 01:40

Problems with dshow and deinterlacing

Postby andycap » 15 Jul 2009 15:30

Hello.
I have a problem with deinterlacing a Hauppauge HVR-1110 (SAA 7133 chipset) compsosite video with Dshow. Firstly, i select chroma filter as UYVY because with the default I420 chroma filter i get wrong colors. Then i set the resolution to 720x480, because using dshow "device options" doesnt allow me to select anything higher than 320x240 (bug???).
Well, i get the video, everything is nice until there is some action, the video is interlaced and just looks really bad. So i try video-deinterlace-bob, but this just disables the video. I check messages and this is what I saw:
verbosity 0:

Code: Select all

main error: video output creation failed main error: failed to create video output
verbosity 2:

Code: Select all

main debug: control type=18 main warning: can't get output picture main debug: thread times: real 0m8.321475s, kernel 0m0.031200s, user 0m0.078000s main debug: removing module "rawvideo" main debug: killing decoder fourcc `UYVY', 0 PES in FIFO main debug: [0] 0 0 main debug: [1] 0 0 main debug: [2] 0 0 main debug: [3] 4 0 main debug: [4] 0 0 main debug: [5] 0 0 main debug: [6] 0 0 main debug: [7] 2 0 main debug: [8] 4 0 main debug: [9] 0 0 main debug: [10] 0 0 main debug: [11] 0 0 main debug: [12] 0 0 main debug: [13] 0 0 main debug: [14] 0 0 main debug: [15] 4 0 main debug: saving a free vout main debug: looking for decoder module: 35 candidates main debug: using decoder module "rawvideo" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:315) main debug: destroying useless vout main debug: removing module "swscale" direct3d debug: Direct3D scene released successfully direct3d debug: 1 Direct3D pictures released. qt4 debug: Qt: Entering Fullscreen main debug: thread started direct3d debug: DirectXEventThread terminating direct3d debug: DirectXCloseWindow direct3d debug: WinProc WM_DESTROY qt4 debug: releasing video... qt4 debug: Video is not needed anymore qt4 debug: Updating the geometry main debug: removing module "qt4" main debug: thread ended main debug: thread times: real 0m8.250471s, kernel 0m0.000000s, user 0m0.000000s main debug: removing module "direct3d" main debug: no usable vout present, spawning one main debug: looking for text renderer module: 2 candidates freetype debug: using fontsize: 2 main debug: using text renderer module "freetype" main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: looking for video filter2 module: 20 candidates swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: looking for video filter2 module: 20 candidates yuvp debug: YUVP to YUVA converter main debug: using video filter2 module "yuvp" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: window size: 720x540 main debug: looking for video filter module: 1 candidate deinterlace debug: using bob deinterlace mode deinterlace debug: using bob deinterlace method main debug: using video filter module "deinterlace" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: Deinterlacing available main error: video output creation failed main debug: removing module "deinterlace" main debug: removing module "freetype" main debug: removing module "yuvp" main debug: removing module "swscale" main error: failed to create video output main warning: can't get output picture
The interesting thing i saw in the log was that when i enable deinterlacing, it tries to use YUVA chroma filter, but this does not work for me. I tried setting YUVA filter manually in directshow options and it did not show the video (same symptoms when trying to enable deinterlacing).

I also noticed this in the log, when i started the dshow:

Code: Select all

dshow debug: EnumDeviceCaps: input pin accepts chroma: YUY2, width:320, height:240, fps:29.970000 dshow debug: EnumDeviceCaps: input pin media: unsupported format (video YUY2) dshow debug: EnumDeviceCaps: input pin accepts chroma: UYVY, width:320, height:240, fps:29.970000 dshow debug: EnumDeviceCaps: input pin accepts chroma: UYVY, width:320, height:240, fps:29.970000 dshow debug: EnumDeviceCaps: input pin accepts chroma: RV15, width:320, height:240, fps:29.970000 dshow debug: EnumDeviceCaps: input pin accepts chroma: RV24, width:320, height:240, fps:29.970000 dshow debug: EnumDeviceCaps: input pin accepts chroma: RV32, width:320, height:240, fps:29.970000
My card can do 720x480, why does it tell me only 320x240 is available?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Problems with dshow and deinterlacing

Postby VLC_help » 16 Jul 2009 17:58

VLC gets the info from device driver. If the driver says the device can only do 320x240, then there is nothing much to do.

andycap
New Cone
New Cone
Posts: 7
Joined: 17 May 2009 01:40

Re: Problems with dshow and deinterlacing

Postby andycap » 16 Jul 2009 18:26

VLC gets the info from device driver. If the driver says the device can only do 320x240, then there is nothing much to do.
What about the color space issue? It seems that the driver is once again only telling that it only supports UYVY, which also doesn't seem to support deinterlacing. So I'm stuck with interlaced video at 720x480, or 320x240 (this is not interlaced, but probably because im getting 1 field per frame anyway, since the resolution is so low?).
Would it be possible for vlc to support deinterlacing for UYVY? I searched google and found "VH Deinterlacing filter", which supports deinterlacing for YV12, IYUV, I420, YUY2, UYVY, RGB24, RGB32 color spaces. Maybe I could somehow implement this directshow filter into vlc?

I also noticed there is a ticket in your trac, which describes the same issue as i have: #2206


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 46 guests