Log in

View Full Version : deinterlace in yv12 for deshaking?


songohan
26th October 2007, 22:09
Hello, i'm relatively new to avisynth, dealing with quite complex things.. i took several days looking through this and other forums but can't sort it out


i have pure interlaced PAL DV material captured with a sony dv-cam
i use cedocida 0.2.0 and avisynth 2.5.7
i want to do heavy filtering (deshake in vdub, resize,...), so i have to go to RGB anyway
result will be saved as huffyuv RGB or YUY2 (not sure yet)


now my problem:
as a deinterlacer mcbob looks best for me, but works in yv12 only (at least for me)
my preferred way to do it is like this


AVISource("dv.avi",pixel_type="YV12")
#cedocida output set to PAL-DV 4:2:0

crop(...) #source is letterboxed

mcbob()

BleedingEdgeNoiseFilter()
..
ConvertToYUY2(sampling="DV-PAL") #i would need something like that


This would go into vdub for deshaking.

now my questions:


Should I deinterlace in PAL-DV4:2:0?
Is there a way to upsample croma to YUY2 with respect to PALDV-4:2:0 (like cedocida-internal)?
If not, what would be the best alternative (highest chroma quality) without leaving mcbob?


maybe the answer is already out there because the has to be a way out of PAL-DV4:2:0 (which is imho a great "hack" to keep the 4:2:2 resolution virtually)

thx in advance, songohan

yup
27th October 2007, 11:37
Hi songohan!

Instead use deshaker in VirtualDub You can use Depanstabilize and MVDepan in Avisynth script. Also IMO better way use first step stabilize and after deinterlacing.
yup.

songohan
29th October 2007, 08:01
i tried mvdepan but deshaker in vdub gives _much_ better results.. (the material is quite complex)

thank you anyway ;D

btw:
i wrote such a upscale funktion for myself using nnedi which gives me even less color blurring than cedocida-internal yuy2conversion but has a problem with the deinterlaced material resulting in stairsteps on some patterns