Backup and restore metadata with MP4 files

Started by Zetorg, April 28, 2021, 02:11:32 AM

Previous topic - Next topic

Zetorg

I have 2 selfie videos taken with my Samsung Galaxy S10, both in MP4 format. Would like to merge/join/concatenate them, while keeping the metadata of the first. So if data is not preserved with ffmpeg, would like to do so with exiftool. Any idea how to backup then restore, if possible?

StarGeek

You can copy over everything that exiftool can copy with
exiftool -TagsFromFile OriginalFirst.mp4 -All:all NewFile.mp4

But, in all probability, you're going to lose data.  Odds are there's an EXIF block in the original video.  This is non-standard as the spec doesn't provide for inclusion of an EXIF block.  So this will be lost.  You can mitigate some of that by copying the data to XMP using the exif2xmp.args file.  This will copy most EXIF data to the equivalent XMP tag, though I don't know if there is an equivalent for every EXIF tag.

It's also likely that the original will include MakerNotes.  There's nothing equivalent for these tags as they are the proprietary tags that most camera companies include.  So these will also be lost.
"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

Zetorg