Log in

View Full Version : Please, comment my AVISynth script.


shalow
6th September 2004, 01:20
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LoadPluginEx.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dustv5.dll")
AviSource("v:\capture (2004-08-28 at 02-02-41).avi")
Trim(299,25615) ++ Trim(25788,57068) ++ Trim(57209,60980) ++ Trim(61049,71552) ++ Trim(71674,78881) ++ Trim(79006,81770) ++ Trim(81827,86847) ++ Trim(86941,88917)
SeparateFields()
Letterbox(0, 8)
even = SelectEven(last).PixieDust(5)
odd = SelectOdd(last).PixieDust(5)
Interleave(even, odd)
Weave()


Questions:

Is the weaving and even/odding necessary when using pixiedust ?

Is letterbox 0 /8 any different from letterbox 8 / 8 when showing on a TV screen ? Will we notice that the video is not centered ?

This is a mild noisy video from a VHs capture. Going to DVD. There is no chrom and the acquire is correct.

stickboy
6th September 2004, 01:25
Originally posted by shalow
Is the weaving and even/odding necessary when using pixiedust ?Well, PixieDust is a spatial-temporal smoother, so if your source is interlaced, in theory you do need to do SeparateFields, SelectEven()/SelectOdd(), and then Weave().

However, in practice, you can't do this, because PixieDust doesn't allow itself to be used more than once in a script.

My JDL_UnfoldFieldsVertical/JDL_FoldFieldsVertical functions (http://www.avisynth.org/stickboy/) are designed to work around this:
JDL_UnfoldFieldsVertical(flip=true)
PixieDust(5)
JDL_FoldFieldsVertical(flip=true)

shalow
6th September 2004, 01:43
you mean if the source is interlaced (as captured) and the output is interlaced... There is no need for the weave and odd/even thing ?

I understood the other war around actually... cause the title of the article was "working with interlaced materials" (DVD's need an interlaced feed because they do the deinterlacing themselves... Powerdvd and Home DVD players on Tv's)

Video Dude
6th September 2004, 02:51
Your script is not correct, because as stickboy said, PixieDust can't be called twice. This means you can't use the SelectOdd / SelectEven method to deal with interlace. Instead you have to do what stickboy posted UnfoldFieldsVertical / FoldFieldsVertical.

Almost all other filters can be called twice, but the Dust filters can be used only once.

Two noise filters that can be applied directly to interlaced material are PeachSmoother and FluxSmoothT. With these filters you don't have to worry about separating fields. PeachSmoother works best if applied to field based clips as mentioned in the readme file. FluxSmoothT is the temporal only version of FluxSmooth (get version 1.1a). Temporal only filters are interlace safe. Spatial-temporal filters, like PixieDust, should only be applied to frame based clips (or separated fields).

stickboy
6th September 2004, 04:18
Originally posted by shalow
you mean if the source is interlaced (as captured) and the output is interlaced... There is no need for the weave and odd/even thing ?No, the other way around.

If your source material is progressive, then you don't need to do the SeparateFields/Weave fandango. If your source material is telecined, then you should do IVTC to output progressive frames.

If your source material is interlaced and you want to deinterlace to output progressive frames, then you don't need to do SeparateFields/Weave either; just run a deinterlacing filter.

If your source material is interlaced and you want to preserve the interlacing, however, then you do need to separate the fields, filter, and weave them back (and one method of doing so is by using JDL_UnfoldFieldsVertical/JDL_FoldFieldsVertical).
(DVD's need an interlaced feed because they do the deinterlacing themselves... Powerdvd and Home DVD players on Tv's)No... DVDs can be interlaced or progressive.