Log in

View Full Version : How to tweak an Interlaced DV


Bordo32
31st October 2003, 23:01
My code:

AviSource("DV_type2.avi")
ReInterpolate411()
SeparateFields()
odd=SelectOdd.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
saturation = xx
cu = - (1-saturation)*256
ColorYUV(off_y=xx, gain_y=xx, cont_u=cu, cont_v = cu, opt="coring")
Weave()
ConvertToRGB()
Levels(0, 1, 255, 16, 235, coring=false) #it goes into RGB editor, from it into Procoder

I want to tweak my DV avi a little bit before it gets into the editor.
Did I put in the right place those lines to do the ColorYUV things on the interlaced material:

saturation = xx
cu = - (1-saturation)*256
ColorYUV(off_y=xx, gain_y=xx, cont_u=cu, cont_v = cu, opt="coring")


The other thing, after editing in RGB editor it goes into Procoder (old version) and the levels need to be tweaked (Procoder does not do 0-255 to 16-235 levels conversion for RGB). Is the Levels() function in the right place or should be placed between the SeparateFields() and Weave()? But now Levels only corrects the luma information, not the chroma, what to do?

Thanks for advise

Bordo32
3rd November 2003, 19:13
Soooooooo, no one may advise, any help on where to place ColorYUV() and Levels() on the Interlaced DV video?
Is it good place between SeparateFields() and Weave() after all filters applied?
Maybe this question is more appropriate in "Avisynth Usage" section than "DV".

I would appreciate for your inputs.

bb
3rd November 2003, 20:18
As far as I can see you did it perfectly right. The Levels command can be placed anywhere, because it doesn't need special interlaced treatment. You'll probably want to place it after the denoiser, but with a Gamma of 1 I'd prefer to process in YUV colorspace because of speed reasons, i.e. place it before the ConvertToRGB(). If you want to experiment with the Gamma, you need to stay in RGB colorspace, though.

ColorYUV depends on color sampling, so I'd put it after the SeparateFields() and before the Weave, too. You could also put it before the Interleave, that wouldn't change anything in my opinion.

bb