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

keyframe spacing / video GOP information

$
0
0

Hi,

how can I get the information if all video samples are independent (using the SourceReader API)? I tried MF_MT_ALL_SAMPLES_INDEPENDENT; but the return value is always that this attribute was not found. Using the MF_MT_MAX_KEYFRAME_SPACING attribute, I get the same behaviour.

          

PROPVARIANT var;
 hr = sourceReader->GetPresentationAttribute (MF_SOURCE_READER_FIRST_VIDEO_STREAM, MF_MT_VIDEO_CHROMA_SITING, &var);

LONGLONG chroma;
hr = PropVariantToInt64 (var, &chroma);
PropVariantClear (&var);

hr = sourceReader->GetPresentationAttribute (MF_SOURCE_READER_FIRST_VIDEO_STREAM, MF_MT_MAX_KEYFRAME_SPACING, &var);           

hr = sourceReader->GetPresentationAttribute (MF_SOURCE_READER_FIRST_VIDEO_STREAM, MF_MT_ALL_SAMPLES_INDEPENDENT, &var);

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>