View Full Version : YV12 source & FixBrokenChromaUpsampling


greycortex
31st July 2003, 02:42
Hello doom9-ers!

I have a slightly buggy capture card that only the FixBrokenChromaUpsampling() command in Avisynth is able to fix. I'm trying to use YV12 capture formats (VBLE) but I can't use FixBrokenChromaUpsampling without convertint to YUY2 and then back to YV12 for the rest of my filter chain. That defeats the whole purpose of having a YV12 source now, doesn't it? Are there any plans to write a similar function that accepts YV12 as input, or does some work need to be done on this? I want my YV12, and I'm willing to put in plenty of effort to get it to work.

Best regards,

GC

sh0dan
1st August 2003, 12:26
Could you post a few raw frames?

Fixbrokenchromaupsampling doesn't make sense in YV12, as it is result of a wrong YV12 -> YUY2 conversion.

How does your output look, if you put converttoyuy2(interlaced=true) in the end of your script?

greycortex
8th August 2003, 07:53
What I'm trying to avoid is a strange rainbow effect that I think has to do with the way that my capture board treats chroma. I've got an Asus V7700 deluxe, so I think that means I've got a Chrontel 7007 video chipset, if that means anything to anyone. The vfw driver I'm using from Nvidia uses the UVUY (or is it UYUV? I dunno) colorspace, so there may be some problems when converting it over to HuffYUV.

Anyways, I have two ways to deal with this:

When capturing using huffyuv:

1) Use the FixBrokenChromaUpsampling() avs instruction
I use converttoyv12() just after this without any arguments.
-or-
2) Use converttoyv12(interlaced=true) just after avisource.

All of this would go just before the following:
Telecide(guide=1,gthresh=30)
Decimate(mode=1,threshold=1.0)
crop(4,0,704,478)
BicubicResize(640,480,0,0.75)


With the first option I have much less of the rainbow effect than the second. It's easier to explain if you can see the frames themselves. I can't post these here (it won't let me), and I have no webspace (poor me), so if you want to see them, they total up to about (sheesh) 162k if you'd like them mailed to ya. Or you could suggest someplace else to put these, and I'd gladly do so. Thanks again for your help!