I have a filter graph that decodes data from a source filter, scales the video and writes some graphics to the video Using a custom transform filter) and outputs the ARGB32 image to the renderer. I would like to in addition save the new video in h.264 compression to a file using an MP4 muxer and file writer.
To do this I added an infinite Tee filter before the renderer and tried to use the Intel Media SDK H.264 Encoder to do the compression. This fails as the encoder insists (for the encoding) on at least 11 frame buffers (while the infinite tee provides only 1 ). Does anyone have a suggestion on how to modify the encoder to get around this problem or some sample code that takes an ARGB32 input frame (that is output one frame at a time as the video is streamed) and then compresses it to an H.264 bitstream using QuickSync.
Thanks Mags