PDA

View Full Version : Weave in YV12?


pekes
24th December 2002, 07:45
Is possible to weave video in new Avisynth 2.5? I tested some PAL interlaced videos but couldn't reach any results.

sh0dan
24th December 2002, 10:00
Weave should work nicely in YV12 - it isn't tested that well though. Try doing the same script in yuy2 and compare the result.

Otherwise - post the script.

pekes
24th December 2002, 11:34
I tested this script


v = MPEG2Source("VIDEO.d2v").SeparateFieldsYV12
v1 = v.SelectEven.Tiya3dd(0,8,8,20).ConvertToYUY2
v2 = v.SelectOdd.Tiya3dd(0,8,8,20).ConvertToYUY2
v = Interleave(v1,v2).Weave
v = AudioDub(v, WAVSource("NOTHING.wav"))
return v


and got the same result as in YV12, 50fps and half vertical resolution. I think I should return to Avisynth 2.0x to work with interlaced material.

sh0dan
25th December 2002, 01:34
Try playing with assumefieldbased()/assumeframebased() - you should be able to make it behave like 2.0x

Converttoyuy2 and Weave are influenced by this setting.

pekes
28th December 2002, 01:04
Thank you, sh0dan, I used AssumeFieldBase a had to change interleaving.

Here is the script which I used:

v = MPEG2Source("VIDEO.d2v").SeparateFieldsYV12
v1 = v.SelectEven
v2 = v.SelectOdd
v = Interleave(v2,v1).AssumeFieldBased.Weave
v = AudioDub(v, WAVSource("NOTHING.wav"))
return v