How can I embed metadata into a custom XMP field with exiftool?

让人想犯罪 __ 提交于 2019-12-05 02:20:23

问题


Can someone please explain how to embed metadata into a custom metadata field in an MP4 file with exiftool? I've searched all the docs and it seems to be related to the config file that needs to be created. Here is what I'm working with. (I know this isnt even close, as its not doing XMP fields, but I havent found a single working example with XMP fields yet.

 %Image::ExifTool::UserDefined = (
'Image::ExifTool::Exif::Main' => {
    0xd001 => {
        Name => 'Show',
        Writable => 'string',
        WriteGroup => 'IFD0',    
},
);
1; #end

The command I'm trying to run is:

 exiftool -config exifToolConfig -show="Lightning" /reachengine/media/mezzanines/2015/02/13/13/CanyonFlight.mp4

Running this in a linux environment.

What is the properly way to set XMP metadata on custom metadata fields via ExifTool in linux on MP4 files?


回答1:


The sample exiftool config file contains a number of working examples of custom XMP tags.

Basically, it is done like this:

%Image::ExifTool::UserDefined = (
    'Image::ExifTool::XMP::Main' => {
        xxx => {
            SubDirectory => {
                TagTable => 'Image::ExifTool::UserDefined::xxx',
            },
        },
    },
);
%Image::ExifTool::UserDefined::xxx = (
    GROUPS => { 0 => 'XMP', 1 => 'XMP-xxx', 2 => 'Other' },
    NAMESPACE => { 'xxx' => 'http://ns.myname.com/xxx/1.0/' },
    WRITABLE => 'string',
    MyNewXMPTag => { },
);

Then the command is

exiftool -config myconfig -mynewxmptag="some value" myfile.mp4


来源:https://stackoverflow.com/questions/29779144/how-can-i-embed-metadata-into-a-custom-xmp-field-with-exiftool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!