PDA

View Full Version : Joining two clips that don't match


Coqrogue
17th January 2009, 19:59
I'm trying to join two clips that don't have matching framerates by using "assumefps (25,1,true)" on each clip, and it works fine with the video alone, but the audio between the clips don't match and therefore the script won't load.
I've tried with SSCR but it fails.
How can I get the audio between these two clips to also match?
One of the clips have framerate 25,002 and the other 25,004.

Here's the script:

---
a=avisource("clip1.avi").assumefps(25,1,true).SSCR(48000)
b=avisource("clip2.avi").assumefps(25,1,true).SSCR(48000)
unalignedsplice(a,b)
---

Thanks
C

IanB
17th January 2009, 23:15
The function is called SSRC(), and it has restrictions on the input/output ratio.

ResampleAudio() is similar and does not have any restrictions.

Also TimeStretch() might be useful.

Coqrogue
18th January 2009, 14:05
Thank you, I'm gonna try that.

Comatose
18th January 2009, 19:31
You might have known to check the documentation if you read the error message :\