How to add application specific metada ta into wmv file
-
Hi, I have a wmv file. Now I want to add a application specific data into wmv file. Is this possible and allowed? How can I achive this? Regards, Hemant.
-
Hi, I have a wmv file. Now I want to add a application specific data into wmv file. Is this possible and allowed? How can I achive this? Regards, Hemant.
With Windows Media Format SDK you can add metadata and/or custom streams to wmv files. Windows Media - Working with Metadata[^]
-
With Windows Media Format SDK you can add metadata and/or custom streams to wmv files. Windows Media - Working with Metadata[^]
Hi, Thanks for your reply. I am using Windows media format SDK. Can you just give some details(It will be great if you can post some code ) about how can I achive this. Regards, Hemant.
-
Hi, Thanks for your reply. I am using Windows media format SDK. Can you just give some details(It will be great if you can post some code ) about how can I achive this. Regards, Hemant.
To modify metadata in an existing wmv file use a metadata editor object, obtained with WMCreateEditor(). Use the returned IWMMetadataEditor interface IWMMetadataEditor::Open() method to open the wmv file. Use the IWMMetadataEditor interface to obtain an IWMHeaderInfo3 interface (using QueryInterface()). IWMHeaderInfo3 has member functions to get, add, modify, and delete attributes (individual metadata items). There's an extensive list of pre-defined attributes in the Media SDK and you can define your own as well :)
-
To modify metadata in an existing wmv file use a metadata editor object, obtained with WMCreateEditor(). Use the returned IWMMetadataEditor interface IWMMetadataEditor::Open() method to open the wmv file. Use the IWMMetadataEditor interface to obtain an IWMHeaderInfo3 interface (using QueryInterface()). IWMHeaderInfo3 has member functions to get, add, modify, and delete attributes (individual metadata items). There's an extensive list of pre-defined attributes in the Media SDK and you can define your own as well :)
Hi, Thanks for reply. I think this will solve my problem. Regards, Hemant