View Single Post
Old 16th April 2011, 00:38   #6  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by johnmeyer View Post
Code:
function filldropsI (clip c)
{
  ...
  Weave()
  AssumeFieldBased()
  AssumeBFF()
}
AssumeFieldBased() should not normally be used after Weave(), as it indicates a field-separated clip.
(I pointed this out the last two times you posted this function, and you corrected it, but it seems to have snuck in yet again. )
I don't think AssumeBFF should be in there either - what if the clip is TFF?

Quote:
It has been a long time since I've written a script that deletes an arbitrary number of frames, but I think in AVISynth that you have to do this in two passes: one pass to mark the duplicates (sending the list to a file) and a second pass where you read the file and actually delete the duplicates. Someone else can correct me on that, if there is a one-pass way of doing this.
Deleting arbitrary frames in one pass inside ScriptClip is possible (I'm sure I've posted several examples in the past), but it's a bit tricky, as you have to use a variable to keep track of how many have been deleted and the script must be rendered linearly. However, reading frames to be deleted from a file (with ConditionalReader) poses the same difficulties, I think.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote