On a Linux system,
I have a bunch of MP4 files named like 20190228_155905.mp4
but with no metadata. I've previously had a similar problem with some jpg's which I solved manually with
exiv2 -M"set Exif.Photo.DateTimeOriginal 2018:09:18 20:11:04" 20180918_201104.jpg
but as far as I can see, the DateTimeOriginal
is only for images, not videos. Videos that do have metadata have a Xmp.video.MediaCreateDate
field that seems like what I want. I guess it contains a Unix timestamp, so I'd need a way to get the date from the filename, convert it to a Unix timestamp and set that value to Xmp.video.MediaCreateDate
. Is that all correct? Or am I overcomplicating things?
Edit: If I wasn't clear, I want to set creation date metadata on mp4 files using its filename that contains the date, so that programs can sort all my media files by their metadata