Sorting images

Fixing dates

When you forgot to change to summertime or you camera time is completely shifted in terms of dates, you might want to fix them afterwards. We are not talking about the dates on the files, but IN the file in the EXIF details.

If it possible to change them with exiftool, that can be installed like this on Fedora.

sudo dnf install -y perl-Image-ExifTool

Videos

List all dates saved inside a given video

exiftool -G1 -a -s -time:all yep.mp4

Add 2 hours to different dates inside a video file

exiftool -overwrite_original \
    -CreateDate+=2:0:0 \
    -ModifyDate+=2:0:0 \
    -DateTimeOriginal+=2:0:0 \
    -TrackCreateDate+=2:0:0 \
    -TrackModifyDate+=2:0:0 \
    -MediaCreateDate+=2:0:0 \
    -MediaModifyDate+=2:0:0 \
    yep.mp4

Raw images

Add 2 hours to most date inside a RAW file (here in the Panasonic format .RW2)

exiftool -AllDates+=2 -overwrite_original _2080184.RW2