Log in

View Full Version : YV12 to YUY2 ( interlaced source )


freelock7
14th March 2005, 09:55
I 've installed a yv12 compressor & decompressor on my PC (HELIX codec). It works fine with CCE for progressive source but for interlaced source I have to correct chroma upsample (yv12--> yuy2).
If I place in the script "converttoyuy2(interlaced=true)", the codec will not work (the avisynth filter will do the job).


Avisynth doc says about that:

converttoyuy2(interlaced=true)

Note, the interlaced=true setting only does something if the conversion YV12 <-> YUY2/RGB is requested, otherwise it's simply ignored." (Avisynth-convert)

Using ONLY "interlaced=true" at the end of the script can correct chroma upsample through the Helix color space conversion or Avisynth will ignore this script until I use the converttoyuy2?

Wilbert
14th March 2005, 10:26
I 've installed a yv12 compressor & decompressor on my PC (HELIX codec). It works fine with CCE for progressive source but for interlaced source I have to correct chroma upsample (yv12--> yuy2).
If I place in the script "converttoyuy2(interlaced=true)", the codec will not work (the avisynth filter will do the job).
Ok, true.

I don't understand your second question completely, but the quote means that if you do a color conversion in AviSynth where your source is YV12 and target YUY2/RGB or vice versa then the setting "interlaced=true" does something differently as "interlaced=false".

if the conversion YV12 <-> YUY2/RGB is requested
Thus, (...) if the conversion YV12 <-> YUY2/RGB is done within AviSynth.

freelock7
14th March 2005, 11:10
No possibility to correct chroma upsample by adding only
"interlaced=true" at the end of the script?

sh0dan
14th March 2005, 11:48
No possibility to correct chroma upsample by adding only
"interlaced=true" at the end of the script?

No - because the conversion isn't done by AviSynth, but by a VFW codec (Helix codec here it would seem). For CCE end your script with ConvertToYUY2(interlaced=true).

freelock7
14th March 2005, 12:03
Thanks shodan & Wilbert for your help!

freelock7
19th March 2005, 18:25
Another question:
FixBrokenChromaUpsampling() from the plugin chromashift2.7 is another solution to correct it.
I used it but it's difficult to see the difference.
Is it really better?

freelock7
20th March 2005, 15:48
I found a solution to let the HELIX codec working with interlaced source:
ChromaShift(C=-2,L=2)
With this plugin the chromaupsample is corrected without any color conversion by avisynth.

A second solution can work too but I have to convert to yuy2 by avisynth before:
converttoyuy2()
FixBrokenChromaUpsampling()

Beautiful results in both cases.

Boulder
20th March 2005, 15:57
Why don't you simply use Convertto...(interlaced=true)? By the way, FixBrokenChromaUpsampling is related to MS DV codec according to the Avisynth docs, not necessarily to all cases of incorrect chroma upsampling.

freelock7
20th March 2005, 16:25
yes I know but the avisynth conversion blocks the work of the codec and I like to use it.
:) THX.