Log in

View Full Version : How to prepend and append BlankClips?


FredThompson
29th June 2003, 04:37
Is there a way to make this idea work?

AVISource(BlankClip(length=1,width=720,height=480),"DV Tape.avi",BlankClip(length=1,width=720,height=480))

GetParity() ? nop() : DoubleWeave().SelectOdd()

The idea is to add 1 blank frame at the beginning and end so the field conversion process for DV won't lose any fields. This is important for frame accurate editing and would remove the need to manually add padding. If the file is already TFF, the padding won't hurt because it's empty.

These settings are supposed to be for NTSC D1 resolution.

That's the idea anyhow.

Guest
29th June 2003, 04:43
Have you considered using Simon's reverse dominance filter, which doesn't lose a field? I have one for VirtualDub as well.

But what you ask for is very simple. What problem are you having?

It's strange to talk about frame accurate editing, when you are misaligning all the fields.

FredThompson
29th June 2003, 04:53
No, I didn't know about that filter. I'll take a look.

To explain, if there is no end padding and the fields are reversed using DoubleWeave().SelectOdd() I lose the last field, right? Sometimes there isn't a blank field between what I want and what I don't.

I was thinking about frame-accurate cuts of the DV source.

--

btw, I'm not sure if I should thank you or curse you for turning me on to AviSynth. I've been dreaming this syntax the past couple of nights :p

Guest
29th June 2003, 05:16
You lose the first field. The last field gets duplicated.

Here's how to add a blank frame at the beginning:

a=avisource("movie.avi")
blankclip(a,1)+a

If you use Simon's filter, you won't have to mess with this stuff.

You should thank me, or rather Ben.

FredThompson
29th June 2003, 05:29
Thanks for the clarification on both parts :)