Log in

View Full Version : Reference one clips properties into another one


Davinator
2nd March 2009, 19:02
Hello all,

I have a question about referencing one video clips properties, and applying it to a different one. For example:

ClipA=avisource("source01.avi")
ClipB=avisource("source02.avi").assumefps(ClipA)

I know the syntax of ClipB is not correct for assumefps, but I'd like the assumefps for ClipB to be equal to ClipA. Any suggestions on how to accomplish this?

Thanks!

FuPP
2nd March 2009, 19:32
From the doc :

AssumeFPS (clip1, clip2, bool "sync_audio")

In v2.55, if clip2 is present, the framerate of clip1 will be adjusted to match the one of clip2. This is useful when you want to add two clips with slightly different framerate.

Davinator
2nd March 2009, 19:47
Wow, thanks FuPP. I should read the documentation a little better next time...

Many apologies.

Gavino
2nd March 2009, 21:03
ClipA=avisource("source01.avi")
ClipB=avisource("source02.avi").assumefps(ClipA)

I know the syntax of ClipB is not correct for assumefps, but I'd like the assumefps for ClipB to be equal to ClipA.
Actually, it is correct!

What you wrote is just a shorter way of saying:
ClipA=avisource("source01.avi")
ClipB=avisource("source02.avi")
ClipB=assumefps(ClipB, ClipA)

Of course, you can add sync_audio with this form too.

stickboy
3rd March 2009, 10:33
Yeah, I'm confused. Davinator, why do you think it's not correct? Did you get some error? And if so, what was it?