I have a custom video file which consists of a custom header followed by UYVY type YUV format. The header tags contain special information regarding the location of the picture, so I need to preserve them.
I am currently converting the UYVY to YUY2 in order to use Microsoft Media Foundation H.264 encoder to create mpeg-4 files, however I can not figure out how to preserve the metadata.
My question is how do I preserve the custom metadata into newly encoded mp4 file using the Microsoft Media Foundation? The IPropertyStore talks about using a custom XML file to describe how to handle the custom metadata, but I can't find any examples of how to do this.
Thanks!