View Full Version : Working with ranges within a clip
bwlonsdale
10th January 2005, 01:53
I have a 1080i transport stream source @ 29.97fps which I want to convert to 23.976 progressive. I'm applying pulldown(0,3) to the video which works up to a certain frame (50360 in my case) and then after that the transport stream sequence is disrupted because it was joined, so the 3:2 pattern is disrupted and the pulldown fails after that point.
Is there anyway to apply a range to the pulldown? Let's say frames 0-50360, apply 3:2, but then I want to start the offset at 50362 to re-establish the 3:2 pattern.
Any ideas how I can do this?
Thanks.
Guest
10th January 2005, 02:21
I don't understand your application. You say you are trying to take 30fps to 24fps. That would require inverse telecine, not pulldown. Pulldown adds fields to get (for example) from 24fps to 30fps.
In any case the built-in ApplyRange() filter should be your answer.
stickboy
10th January 2005, 02:39
neuron2:
I'm not sure if ApplyRange would work; one section of the clip would have a different frame-rate from the rest.
As for the terminology... blame AviSynth's Pulldown documentation.
Anyhow, the standard way to do this:
seg1 = Trim(0, 50360).DoubleWeave().Pulldown(0, 3)
seg2 = Trim(50362, 0).DoubleWeave().Pulldown(0, 1)But I find this to be a hassle, because:
I can never easily figure out what arguments to give to Pulldown.
Clearly each Pulldown call is measured relative from the start of that section, not from the beginning of the entire clip, which is inconvenient.For my own nefarious purposes, I use my JDL_IVTCPatternSegment function (http://www.avisynth.org/stickboy/) (part of jdl-telecine.avsi; also requires jdl-util.avsi), which makes all of this easier (for my workflow, at least).
See the comments to JDL_IVTCPattern and JDL_IVTCPatternSegment for details. The documentation needs work; I haven't thought of a good way to explain it yet other than by example. Let me know if you have any questions.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.