Hello,
QuickTime has functions like MediaDisplayTimeToSampleNum() and SampleNumToMediaDecodeTime(), that can be used to quickly convert a sample index to a media timestamp.
With the Media fonudation framework, I would like to know the sample count and the timestamp of each sample in a video file.
I could find no service or presentation attribute giving me access to such sample information.
The remaining solution is to preprocess a media source (without any decoder set) with multiple calls to ReadSamples() and fill myself a timestramp array. Is it the only solution ?
Moreover, ReadSample() does not accept a NULL [out]ppSample argument, which in this case makes me wonder about the performance, because I only need the timestamp, not the sample data. Is there a way to ensure maximal performance by skipping sample data ?
Regards,
Pierre Chatelier