mcjabberz
mcjabberz

Reputation: 9998

Custom DirectShow graph source filter

All I need to do is play an AVI video from memory. I can't write it to disk for security reasons. As far as I know, the built-in AVI playing graph you get from calling RenderFile will only play files.

Is there a DirectShow graph that will play an AVI from memory? If not, how can I modify or create a graph that will do so?

Upvotes: 2

Views: 1097

Answers (1)

Geraint Davies
Geraint Davies

Reputation: 2847

The graph has a source filter, demux and then decoders and renderers. The source filter is just a wrapper around the file access APIs. If you replace the stock source filter with a custom one, you can play from memory, or from whatever storage your custom filter accesses.

There is a sample source filter in the sdk which reads the whole file into memory and uses that.

G

Upvotes: 5

Related Questions