All QTKit examples use seconds for making ranges. I, unfortunately, have frame numbers and need to be frame accurate. I suppose I could multiply up by the frame rate if I could figure out how to get that out of my movie.
All QTKit examples use seconds for making ranges. I, unfortunately, have frame numbers and
Share
You should be able to calculate the frame rate of a given video media by querying the following
mediaAttributesof aQTMedia:QTMediaDurationAttributeQTMediaSampleCountAttribute(they are described in the QTKit docs here)
and use the following formula for calculation:
Disclaimer:
Note that I have not tried if this works, but that it is how I expect it to work based on my experience the QuickTime C APIs and the QuickTime File Format.
Good Luck!