View Full Version : Conditional shifting of one field problem
LogicDeLuxe
9th April 2005, 11:48
I have the problem that some scenes of my clip are interlaced incorrectly. In oder to correct this, I want to shift one field only to match the position of the other one. My script so far doesn't seem to do anything. What did I wrong?
SeparateFields
F2=SelectOdd
SelectEven
ScriptClip("Crop(0,shift,0,0).AddBorders(0, 0, 0, shift)")
Interleave(F2)
Weave
ConditionalReader("shift.txt", "shift", false)
I'm not a script wizard and I don't even know what ScriptClip does :o but I'd make sure you are explicity referencing the correct sources and not rely on what you think implict variable last to be is.
e.g use this sort of language
SF=SeparateFields()
F2=SelectOdd(SF)
F1=SelectEven(SF)
etc
It will make it much easier to debug.
regards
Simon
PS You might want to look at PFR (http://www.geocities.com/siwalters_uk/pfravs.html) :)
Guest
9th April 2005, 17:18
I can't visualize "incorrect interlacing" that would require this adjustment. Before you commit to it, can you post a short unprocessed source clip so that we may see if some alternate adjustment might be better and easier?
scharfis_brain
9th April 2005, 17:45
Maybe this was a similar problem:
http://forum.doom9.org/showthread.php?s=&threadid=85372&highlight=dynamic+fields%2A
LogicDeLuxe
10th April 2005, 14:13
Thanks for replies.
I could manage it to work this way:SeparateFields
F2=SelectOdd
SelectEven
Interleave(ScriptClip("Crop(0,shift,0,0).AddBorders(0, 0, 0, shift)"),F2)
Weave
ConditionalReader("shift.txt", "shift", false)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.