Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

Submitting raw H264 samples to SinkWriter

$
0
0

Hello,

I can successfully encode H264 to avi file, using a IMFSinkWriter, by submitting YUV420 frames.

Now, I would like to use the SinkWriter not as an encoder, but as a simple AVI writer. I encode the YUV420 frames with another encoder (Cuda NVENC), I get H264 samples, and I would like to send the H264 samples to SinkWriter so that the H264 stream is properly encapsulated in the AVI file.

But I fail at finding the way to configure the input and output media types of the sinkwriter. None of the configurations I tried worked.

Is it possible to use the sinkwriter that way ?

I also tried to write the H264 samples directly to the imfbytestream behind the sinkwriter, but the resulting file does not work.

Regards

Pierre Chatelier




Viewing all articles
Browse latest Browse all 1079

Trending Articles



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