A bump of StackOverflow post about Media Foundation design flaw related to video encoding. Set attributes via ICodecAPI for a H.264 IMFSinkWriter Encoder I am trying to tweak the attributes of the H.264 encoder created via ActivateObject() by retrieving the ICodecAPI interface to it. Although I do not get errors, my settings are not taken…