I am able to bind xmp metadat to AVI,MP3 and WAV file using C# XMP ToolKit. now, same way I am trying ot embbed the XMP metadata from .xmp file to MP4/WMV/WMA files. it is not working for MP4/WMV/WMA files. i am using following code for all of this file format let me know if i am doing anything worng.
Soruce Code Example:
string SourceFilePath = @"C:\test\Sample_wav.wav";
string xmpFilePath = @"C:\test\MyXmp.xmp";
if (XmpCore.Initialize() && XmpFiles.Initialize())
{
using (XmpFiles xmpFiles = new XmpFiles(SourceFilePath, FileFormat.Unknown, OpenFlags.OpenForUpdate))
{
Xmp x = Xmp.FromFile(xmpFilePath, XmpFileMode.ReadOnly);
if (xmpFiles.CanPutXmp(x.XmpCore))
{
xmpFiles.PutXmp(x.XmpCore);
}
xmpFiles.CloseFile(CloseFlags.None);
}
XmpFiles.Terminate();
XmpCore.Terminate();
}
In the sample app, in the function HandlerCapabilities(), it shows which file types are supported. Unfortunately, MP4, WMV, and WMA are all not supported.
Very disappointing, the C# wrapper works so great, but I need to support MP4 and WMV files as well.