[FFmpeg-user] XMP metadata packet in a UUID box in an ISO Base Media File Format
Bryce Newman
bryce.newman at gettyimages.com
Wed Nov 1 20:04:32 EET 2023
Hello,
I am using FFmpeg 6.0.
I found a question asked, but not answered for “XMP:XMP-dc:MOV-XMP:Subject metadata tag - write to .MP4 file - how ?” in the FFmpeg user group, but my question – I think – is slightly different. I know there is an ability for FFmpeg to add metadata to mov and mp4 in Formats->Tags, but the value I can insert using i.e. “ -movflags use_metadata_tag -metadata xmp=”<…xml/xmp data/>“”, is only embedded in the format tag as plaintext. Tools like Exiftool, can embed the XMP metadata packet in a UUID box in an ISO Base Media File Format – see example below. Does ffmpeg support embedding XMP metadata packet in a UUID box in an ISO Base Media File Format? If so, what ffmpeg commands do I use to do that?
i.e. ` exiftool -v -XMP:all= -j=tmp.json 640_adpp_p1.mp4`
Contents of tmp.json.
{
"XMP-dc:rights": "bryce"
}
Then using ffprobe -show_streams -show_format -print_format json -export_xmp 1 -i 640_adpp_p1.mp4.
…
"format": {
"filename": "640_adpp_p1.mp4",
"nb_streams": 2,
"nb_programs": 0,
"format_name": "mov,mp4,m4a,3gp,3g2,mj2",
"format_long_name": "QuickTime / MOV",
"start_time": "0.000000",
"duration": "30.160000",
"size": "8094450",
"bit_rate": "2147068",
"probe_score": 100,
"tags": {
"major_brand": "isom",
"minor_version": "512",
"compatible_brands": "isomiso2avc1mp41",
"encoder": "Lavf60.3.100",
"copyright": "'I own this.'",
"xmp": "<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>\n<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 12.60'>\n<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>\n\n <rdf:Description rdf:about=''\n xmlns:dc='http://purl.org/dc/elements/1.1/'>\n <dc:rights>\n <rdf:Alt>\n <rdf:li xml:lang='x-default'>bryce</rdf:li>\n </rdf:Alt>\n </dc:rights>\n </rdf:Description>\n</rdf:RDF>\n</x:xmpmeta>\n
…
Bryce Chester Newman | Principal Developer
p: +12069255045 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0.png
Type: image/png
Size: 2684 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20231101/de24f430/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 2260 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20231101/de24f430/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.png
Type: image/png
Size: 1469 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20231101/de24f430/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3.jpg
Type: image/jpeg
Size: 19905 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20231101/de24f430/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4.png
Type: image/png
Size: 7110 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20231101/de24f430/attachment-0003.png>
More information about the ffmpeg-user
mailing list