Last active
March 28, 2021 21:08
-
-
Save auermi/6baa370ea4cbf598cf3644e50a0b5a90 to your computer and use it in GitHub Desktop.
Copy one file's metadata to another with the same name in the current directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Works even if <datetimeoriginal does not exist on certain files | |
# Check tags of a file | |
exiftool -g1 -a -s video.MPG | |
# AVI to MP4 | |
exiftool -TagsFromFile %d%f.AVI "-FileModifyDate" -ext mp4 . | |
# MPG to MP4 | |
exiftool -TagsFromFile %d%f.MPG "-FileModifyDate" -ext mp4 . | |
# Oneoff change date | |
touch -mt 200711040000 2588.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment