Getting HBitmap from IGraphBuilder

299 views Asked by At

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

1

There are 1 answers

3
Roman Ryltsov On BEST ANSWER

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.