Вопрос

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

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top