CompuServe Thread

#FLI TIMING

5 messages in this thread
#54940From: Mark DickensonAug 26, 1993 10:49 AM
Does anyone know what the timing on flis is based on. It does not appear to be frames per second. We are using a player and tieing music and sound to them. We can get the sounds to sync. on all of our machines but we do not know what to time the music off of.
#54964From: MARTIN G FOSTERAug 26, 1993 1:13 PM
Mark, flics are timed in "jiffies". A "jiffie" is a 1/70th of a second pause between frames. Thus, a playback speed of 7 would be 7/70ths or 1/10 of second pause between frame updates. The variable here, as in any digital, delta-compressed animation is the time it takes to load the next frame – usually represented by the amount of change from the previous frame. Here's a POCO routine that will more closely give you 30 frames per second (courtesy of James Hyde). You may have to adjust the SetSpeed value in parentheses depending on your hardware. This one works for me pretty well to get close as possible to 30fps, providing the frame updates in my animation aren't too big. Type this into the POCO editor, save it, and run it. main() { int frame_count; frame_count=GetFrameCount() * 1000; SetSpeed(31); PlayFlic(frame_count); }
#55133From: Mark DickensonAug 27, 1993 2:22 PM
Thanks for the help Martin. Mark Dickenson Ybarra Productions
#55151From: MARTIN G FOSTERAug 27, 1993 6:36 PM
Mark, you're welcome.
#55000From: Ingo NeumannAug 26, 1993 4:21 PM
Mark, I think that's the wrong question, because in the flic file only saves the diffrences between the images and the (Animator)speed to play it. No time code. I depends on the flic-player how fast (frame per seconds) the flic is played. IF you have a SPEA Fire board, you can use their player. There you can ajust the playbackspeed in 1/10 seconds. Anyway, be carefull with soundsyncronisation, because flics with a great rate of pixelchanges per frame (on slow graphiccards) can't alway played with the same speed during playing. Ingo