Antoniocrown on What is: doesn't support DPO or FUA?.goeszen on What is: doesn't support DPO or FUA?.Epson printer suddenly stops working on Ubuntu 20.04 Linux.Keyboard is obscuring button in Android apps.Largest floppy disk manufacturers world-wide.Fix a corrupted MP4, not with ffmpeg but untrunc.Voila! After all that, I could combine all files into one directory which now contains a unified photo stream. MP4s don't contain EXIF tags, so we use the File mtime here, first removed the time skew, then moved the date/time into the filename. The last two steps you see above were to handle Sony video files a bit differently while they resided in that same directory. $ exiftool '-FileName<$_Sony.mp4' -d %Y%m%d_%H%M%S -overwrite_original Photos_Sony/MAH* $ exiftool "-alldates-=00:09:36" "-SonyDateTime-=00:09:36" "-FileModifyDate-=00:09:36" -overwrite_original DSC03485.JPGĪlldates, as stated in the docs, "AllDates is a shortcut for 3 tag names: DateTimeOriginal, CreateDate and ModifyDate"Īlso, I here change the Sony specific Sony Date Time.Īlso note that I don't use something like "-FileModifyDate_Canon.jpg: To adjust the time skew in EXIF tags and the file's modification timestamp (mtime): Sed -e 's/\(.*\)/\L/' -e 's//_/g'Ĭurl -s0 -q -k "$')_contact.jpg"Īnd here I am, hopefully on the way to organizing my mess of a photo archive.In case you forgot to set the internal clock of your point-n-shoot or DSLR camera, use this command # Add a tag to the file with that file's filenameĮxiftool -P -overwrite_original_in_place '-XMP-xmpMM:PreservedFileName/dev/null | \ And, by the way, if you want to see the available tags in a file, use this command: exiftool -a -G1 -s Feel free to drop this step if the original filename is not something you care to remember. It should be noted, though, that adding a tag to a file requires rewriting the entire file, so it adds quite a bit of time to the renaming process. Having said that, I thought it might be a good idea to add the original filename as an Exif tag just for record-keeping purposes, but also so I can find it in the Lightroom catalog, should the need arise. The original filename contained no useful information, so I did not want it to be a part of the new filename. You don’t really want to make that filename too long. I thought including city, state, and country in the filename was sufficient for my needs. Here’s an example of my “perfect” filename for photos:Ģ0200822-1845-000-philadelphia_pa_us-xt3.jpg Now, since multiple photos could’ve been taken at roughly the same time, with the same camera, and at the same location, the filename would also need to contain some sort of numerical auto-incremental field. For my purposes, I only needed a small subset of the functionality offered by exiftool (which for some reason I keep misspelling as ‘exitfool’…)Īnyway, I needed the filename to contain the timestamp when the photo was originally taken, the camera model (as short as possible – just enough for me to identify the equipment I used), and the location where the photo was taken (provided the camera supported geotagging). The exiftool by Phil Harvey has been described as the Swiss Army knife for file metadata manipulation and it certainly is that. It would’ve been nice if the filename contained some useful information like date, camera model, maybe even location. Recently I exported a whole bunch of files from Lightroom to a NAS share and filenames like 2E570434-67B7E0489CA2-39354-000017CF24DD8ACD.jpg are not very informative.
0 Comments
Leave a Reply. |