Having stuffed around for a bit with using h264 encoded movies in my latest processing experiment, I’ve decided to use some other format such as mpeg4.
The problem is that some methods in the quicktime Media class don’t return meaningful values or cause the applet to freeze when used with h264 encoded movies.
This would be OK if I was prepared to modify the PMovie class to not use the quicktime Media class for h264 encoded movies, or to provide alternate methods to be used with h264 movies. But I have also since found out that some methods of calculating movie positions as a time in seconds (and fractions of seconds) don’t seem to be accurate.
If some inaccuracy introduces a small error in tracking the position in a movie, and it keeps getting introduced then a small error becomes larger as time goes on, and then it can start causing slightly odd things to happen.
The upshot of all this and perhaps some other inaccuracies that I haven’t gotten to the bottom of is that I no longer trust a cumulative time-based method of going through a movie frame by frame. I need to either make it based solely upon the frame numbers retrieved from the quicktime Media object, or include some mechanism to recalibrate the time based upon the frame count. This second method should produce a more accurate time by simply setting the current position in the movie in seconds to the frame number / FPS.






