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

SinkWriter->WriteSample() fails with MF_E_UNEXPECTED after 3rd sample when using hardware encoder

$
0
0

I have a sample application that creates an rgb24 sample, color converts it to nv12 using the ColorConvert transform, and then writes the sample 1000 times (same sample over and over) to a SinkWriter, to produce a valid h264 encoded mp4 file.

As long as I use a software encoder it works fine, when I enable hardware

swConf->SetUINT32(MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS, TRUE);

it processes to first 3 samples ok, but the 4th sinkWriter->WriteSample() returns MF_E_UNEXPECTED.

Are there any additional steps/flags I have to watch when using hardware transforms?

I have an Windows 7, i7 with Intel QuickSync MFT.



Viewing all articles
Browse latest Browse all 1079

Trending Articles



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