kiwijus
kiwijus

Reputation: 1237

Getting HBitmap from IGraphBuilder

I'm trying to encode a video from an IGraphBuilder, for this I would require a HBitmap is it possible for me to do this?

P.S. I know that IGraphBuilder already has a RenderFile function, however this is too slow for my use and I would also prefer to render in H264

Upvotes: 0

Views: 298

Answers (1)

Roman Ryltsov
Roman Ryltsov

Reputation: 69716

IGraphBuilder controls the pipeline, it does not have, own and even have a faintest notion of bitmaps or their handles.

The typical approach is to insert a Sample Grabber filter into the pipeline and grab video frames off there (there is a plenty of sample code around there on doing this). Still you have to provide more detail about your particular task to get reasonable advice.

Upvotes: 1

Related Questions