Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

decode IMFSample by SourceReader?

$
0
0

Hi,

I want to use the SourceReader to read frames from a URL (video file) - without using the decoding part. If I`m right, I have to set the output format with the type returned by GetNativeMediaType.

In the end I will receive an IMFSample object containing the encoded / compressed video frame. Is it possible to get the specific frame type (GOP: I, P, B frame)?

In a second step I want to decode this encoded video frame without loading it again from the source file. Could you tell me the simplest way to do that? Should I use a custom media source and the SourceReader API again - using MFCreateSourceReaderFromMediaSource? The custom media source will contain the encoded video frame. Or is there a much easier method to acchieve that?

best regards

saoirse


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>