Hi there,
While I was travelling I made a lot of pictures/video's I want to sort.
Here are some details:
- I've used 11 different camera's
- 2 camera's were both of the same manufacturer & model (OLYMPUS IMAGING CORP. & TG-310)
- 2 other camera's were both of the same manufacturer & model (GoPro & HD2)
- 1 camera is used in 5 different timezones and the time was never adjusted on the camera
- the camera's aren't synchronized, and the date/time is wrong somewhere between 1,5 years and 1 minute
- I've got approximately 7500 pictures and 300 video's I want to sort (oldest first)
- I have to use the [ModifyDate] of the video's and [DateTimeOriginal] or [CreateDate] of all pictures
- I'd like to rename all the files My Pictures 00001 - My Pictures 07799 based on the date and time I took the picture/video
The way I started to try doing this was manually sorting all files by placing it in one of 11 folders of the camera used
Then I figured how much every file needed to be shifted in YY:MM:DD hh:mm
I corrected all the dates/times of the pictures (not the video's) and moved everything to the same folder, so I could rename everything
By doing this, Windows 7 renames all files of the same type, let's say: Pictures (1).jpg, Pictures (2).jpg, Pictures (3).jpg, Pictures (1).mp4, Pictures (1).png, Pictures (4).jpg, Pictures (5).jpg, Pictures (2).mp4, Pictures (6).jpg, Pictures (7).jpg, Pictures (8).jpg, Pictures (9).jpg, Pictures (10).jpg, Pictures (11).jpg.
Of course this isn't the right way, because if you sort by name it would be like: Pictures (1).jpg, Pictures (1).mp4, Pictures (1).png, Pictures (10).jpg, Pictures (100).jpg, Pictures (1000).jpg, Pictures (11).jpg, or something similar
Is there any easy way I can manage my pictures by using a few (simple) commands in a batch file?
Yes.
This can be done with a single exiftool command:
exiftool -fileorder datetimeoriginal -filename="My Pictures %7.nc.jpg" -ext jpg DIR
Where DIR is one or more directory and/or file names.
This will rename JPG files in the directories specified. You can add a -r to also rename files in sub-directories.
You can also move files in the same command by adding -directory="destination directory name".
If some images don't have DateTimeOriginal information, you may specify secondary (and tertiary, etc...) sort keys with additional -fileorder options.
- Phil