Sidecar to video

Started by oozypal, October 05, 2023, 11:59:44 PM

Previous topic - Next topic

oozypal

Hello,
I use Lightroom to organize my photos and videos. LR is poor when it comes to video metadata, so I use Digikam which creates a sidecar (xmp) file.

My question can I use Exiftool to insert the sidecar metadata into the actual video?

Thx

StarGeek

For MP4/Mov videos, yes. If you have other video types (AVI, MKV), exiftool cannot edit them.

See Example #15 on the Metadata Sidecar Files.  You would use the -ext (-extension) option to specify MP4/Mov files, e.g. -ext mp4 -ext mov
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

oozypal

Hi
Thank you for the quick reply. However, I am not asking about copying the xmp file into the same location of the video. I want the content of the xmp file to be written to the actual video.
Thx

Phil Harvey

You could do this if the file has the same name as the XMP sidecar (eg. "name.mp4" and "name.xmp"):

exiftool "-xmp<=%d%f.xmp" -ext mov -ext mp4 DIR

or if the naming is like "name.mp4" and "name.mp4.xmp":

exiftool "-xmp<=%d%f.%e.xmp" -ext mov -ext mp4 DIR

Note that these will overwrite any xmp that currently exists in the files.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

oozypal