Log in

View Full Version : Rant: ImageSource, framerate not the same


DarkT
8th April 2007, 16:07
Here's how I tried to do it:



Function Episode1
{
Fitlers, video source, etc...
}

Function NoteFromHell
{
ImageSource("note.png", start=1, end=555,fps=23.9760).Converttoyv12()
}

Return NoteFromHell+Episode1



Did it work? No, it didn't... It gave an error which is something like: "Splice : framerate not the same" - well, not in those words, but anyway...

I tried researching the issue, I tried many many things.

In the end I did a comparison of frame rates, info() showed that both have the same frame rate... 23.9760, YET, something was weird, the 1st had this thingy: 24000/1001 (1% down I suppose, as needed), yet the other had completly bogus info there.

Anyway, after lots and lots of time, I went to the calculator and divided 24000/10001.

You guys know which line made it work?

ImageSource("note.png", start=1, end=555,fps=23.976023976023976023976023976024).Converttoyv12()

Yeah, it wanted the FULL fps :), why? Why isn't it documented? Meow...

Being noob ain't easy :(.

Leak
8th April 2007, 16:27
Here's how I tried to do it:Yeah, it wanted the FULL fps :), why?
Because the float values really have much more precision than what is displayed - so 23.9760 as displayed still doesn't have to be the same as another 23.9760, if the actual difference is somewhere beyond the fourth decimal.

To solve this, just use

return NoteFromHell.AssumeFPS(Episode1) + Episode1
or
NoteFromHell=ImageSource("note.png", start=1, end=555,fps=Episode1.Framerate)
to adjust the FPS of your note to exactly that of Episode1...

np: Radiohead - The Tourist (OK Computer)

DarkT
8th April 2007, 16:43
Thanks ;).

Maybe next time instead of thinking for an hour I should just post here... Thing is, if I did that each time... *shudders*

Anyway, thanks ;).