[Golist] Tweening frame numbers in an Mc

jon at shovemedia.com jon at shovemedia.com
Thu Oct 30 08:35:27 PDT 2008


It's largely because of how video is encoded and decoded.
It's meant to be read sequentially, in order, front to back.
You might try increasing the density of video keyframes
and re-importing the video, but my experiments in
this area suggest it won't help enough.

if your video is short enough (and has small dimensions)
you might be able to get away with bitmap caching individual
frames and displaying the correct one, but you're going
to eat up memory really fast.

If you can figure out a way the effect can be the same every
time (for a given video) you're best off doing something static
with aftereffects etc.

And you're still going to have sync problems if this effect
needs to transition back to normal speed due to the aforementioned
flash framerate vs video framerate.

If you absolutely must, I've seen this sort of thing in processing
once or twice. probably uses the technique in the 2nd paragraph.
:j



> On Oct 27, 2008, at 4:28 PM, pedr browne wrote:
>
>> Hi,
>>
>> Guess this question isn't specific to Go, but I figure this is a
>> good place to ask it...
>>
>> I'm experimenting with tweening an mc's frame numbers. It is an mc
>> containing 1000 frames of embedded video. Hooking the mc up to
>> different tweening engines and letting them tween an int (a var
>> called frame) between 0 and the total number of frames over a given
>> time.
>>
>> I then have an ENTER_FRAME event looking at this var every time it
>> is called and advancing to this frame. So the frame is only changing
>> 25 times a second, not every time frame is changed.
>>
>> This works ok, but what I have noticed is strange. When the jumps
>> between frames are small, the framerate is uneffected, but as the
>> jumps between the frames increases, the framerate drops lower and
>> lower.
>>
>> I have tried setting this up without a tween, incrementing frame by
>> a fixed amount every ENTER_FRAME and I've noticed the same behavior :-
>>
>> If i increment the frame by one every ENTER_FRAME, the framerate is
>> stable at 24 fps, but if I increase the increment to five, the
>> framerate drops to around 15 fps.
>>
>> I was wondering if anyone can tell me why this is? Is it something
>> to do with how the framedata is stored?
>>
>> Thanks a lot.
>>
>> --
>> +44 (0) 788 0600 363     |     +44 (0) 127 3208 079
>> _______________________________________________
>> GoList mailing list
>> GoList at goasap.org
>> http://goasap.org/mailman/listinfo/golist_goasap.org
>
> _______________________________________________
> GoList mailing list
> GoList at goasap.org
> http://goasap.org/mailman/listinfo/golist_goasap.org
>





More information about the GoList mailing list