View Full Version : AviSynth won't append clips (says bad framerate)
HymnToLife
3rd February 2008, 23:34
Greetings :)
As the title says, I'm having issues using the Splice functions to append two clips. Here's (a bit of) my script :
raw = DirectShowSource("G:\vids\01.wmv", fps=23.976, convertfps=true, audio=false)
c01 = raw.trim(0, 6963)
c02 = ConvertToYV12(ImageSource("G:\vids\01.bmp", end=48, fps=23.976))
return c01 + c02
However, AviSynth fails loading it, saying "Video framerate doesn't match", which puzzles me a bit since the framerate is explicitly specified on both clips' creation, and an Info() on them shows the right one (23.9760) for both. Obviously, same error with ++.
Any ideas ?
DarkT
3rd February 2008, 23:42
try entering:
23.976023976023976023976023976024
:) :) :) should work - but it's the dumb way of doing it, there's a way to use "assumefps()" or something like that which will automatically assume whatever fps there need be assumed /me thinks...
Though I prefer my dumb way...(since it doesn't require remembering the exact commant :)).
Sagekilla
4th February 2008, 00:33
The "right" way is actually fps=24/1.001
Adub
4th February 2008, 01:39
Edit: See foxyshadis' post 2 down. Believe him!!
Edit: 1000th post!!!
stickboy
4th February 2008, 04:43
Though I prefer my dumb way...(since it doesn't require remembering the exact commant :)).clip1.AssumeFPS(clip2)
DarkT
4th February 2008, 10:47
Does it matter if you write 24000/1001(or the 24/1.001) or the result of the calculation? (23.976023976023976023976023976024)?
By the way, thanks stickboy - I think you already told that to me before :) you are contributing to me maybe finally remembering how to use it :).
foxyshadis
4th February 2008, 19:04
Merlin, 24000/1001 = 23 in avisynth. You have to have a . on one of the digits. It doesn't really matter if you use the fraction or the result, since both are higher precision than what avisynth uses internally. By far better yet is assumefps(24000,1001), though the latest avisynth has a heuristic to detect the fraction.
Use stickboy's method unless you absolutely have to reset the fps, though.
Adub
5th February 2008, 07:27
Oh, really? I didn't know that it truncated. I just always assumed that it didn't because I saw such usage with assumefps and so on. My mistake. Editing ... now.
IanB
6th February 2008, 01:53
If ever in doubt use the Info() filter to see exactly what each clips properties are, then structure your script to suit.
HymnToLife
10th February 2008, 19:56
Thanks guys ! (and sorry for the late answer) assumefps() did the trick :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.