Frame Number Output

thetawav's icon

Hi

Is it possible to get an output of the current frame number of the quicktime movie playing? This is probably a really simple thing but I can't seem to figure it out.

Thanks

Rob Ramirez's icon

for now, getting the frame requires some math. you must send the gettime message, and divide that by timescale divided by FPS. this patch shows how to do this stuff (and some other tricks).

follow the logic carefully.

Max Patch
Copy patch and select New From Clipboard in Max.

seejayjames's icon

Nice patch, that helped me understand some things.

One thought--is there a reason why there couldn't be a "getframe" message? Does it have to do with how jitter handles the movies? Even if it only worked in "editmode frames" that would be fine, if it lost some time resolution or whatever. Seems like one should be able to query the current frame directly, or at least get a best approximation.

Liang's icon

really nice patch and that bring me lot of help
and im trying to [route] more qt.movie info