Discussion:
playing video data using onstreamsample from windows media sdk
(too old to reply)
30cents
2010-02-10 02:00:12 UTC
Permalink
Hi everyone,

As i need to extract embedded data extension units (DUE) from my
video, i had to use the onStreamSample callback. However i realised
that video sample data retrieved from onstreamsample is compressed.
Previously when using onSample, i managed to playback the video by
converting the uncompressed data to a bitmap.

Now that i have to use onStreamSample callback and the data is
compressed, does anyone have any ideas how this set of data can be
uncompressed before i can convert it to bitmap, or is there any other
way in which i can playback the video data?


Thanks for any help
Jeremy Noring
2010-02-15 23:32:42 UTC
Permalink
Post by 30cents
Hi everyone,
As i need to extract embedded data extension units (DUE) from my
video, i had to use the onStreamSample callback. However i realised
that video sample data retrieved from onstreamsample is compressed.
Previously when using onSample, i managed to playback the video by
converting the uncompressed data to a bitmap.
Now that i have to use onStreamSample callback and the data is
compressed, does anyone have any ideas how this set of data can be
uncompressed before i can convert it to bitmap, or is there any other
way in which i can playback the video data?
You can either wrap the code in a directshow filter, or somehow inject
the compressed samples into a dshow graph, which can then decode them
with the WM DMO decoder filters. (I'm assuming this is windows media
content?)

You could also use the DMO decoder outside of DirectShow and handle
rendering yourself.

Loading...