I have set up a MFSinkWriter that takes a RGB MFMediaType in input and generates a H.264 MFMediaType as output.
I need to add SEI information for every MFSample that is encoded. using Windows Media Foundation it should be possible to do so using the attribute MF_MT_FORWARD_CUSTOM_SEI for the output MFMediaType.
When encoding, before passing the MFSample to the MFSinkWriter, I add the MFSampleExtension_Encryption_SEIData with a blob containing the custom info that I need. However, when inspecting the produced file the SEI field are empty.
There is no documentation/sample on how to use MF_MT_FORWARD_CUSTOM_SEI or MFSampleExtension_Encryption_SEIData. Any suggestion?