Quantcast
Channel: Intel® Software - Media
Viewing all articles
Browse latest Browse all 2185

Compressing ARGB32 to H.264

$
0
0

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


Viewing all articles
Browse latest Browse all 2185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>