I wish to use the Frame Rate convertor DSP in my media foundation application. I'm using the 'SourceReader' to read the video file. Can anyone tell me where and how to integrate the DMO with MF to obtain frame rate conversion. I don't seem to understand what kind of samples (compressed/uncompressed) to feed to the DMO to obtain new frame rate. How does the DMO change the frame rate? Does it give a new time-stamp to the new samples? There are no code examples demonstrating its use. Please help, I'm stuck.
Thanks, Mots
It is an old question.
To do frame rate conversion with the SourceReader, we need to integrate the DMO manually.
The idea is to get compatible sample from the SourceReader, let say a video subtype handled by the DMO.
According to the Frame Rate Converter DSP :
.
The DMO changes sample time and sample duration. But if the duration of the video file is 1 minute, it will remain the same at the end.
For example, if your video file has 1800 frames, a duration of 1 minute and a frame rate of 30 frames/second. You want 60 frames/second, so you will have 3600 frames and the duration doesn't change (always 1 minute).