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 | 



_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to