Camera to Archive Workflow

From Pikes' Wiki
Jump to navigation Jump to search

Workflow

  • Copy pictures to working directory
  • Find difference between camera time and real time
  • Correct both EXIF times in JPG files and file times for all other files.
  • Rename files based on creation time.
  • Use EXIFER to rotate images
  • Use EXIFER to tag images
  • Move to archive directory

Notes

How to change the EXIF dates in a file

Add 2 minutes 30 seconds: exiftool -r -Alldates+=0:2:30 .

How to change the date of a file

touch -r somefile.avi -d "-1 hour +3 minutes -5 second" somefile.avi

How to change the filename using EXIF tags

exiftool -r "-FileName<DateTimeOriginal" -d %Y%m%d_%H%M%S%%-c.%%e .

How to change the filename using stat(1) command

for fn in *.avi ; do nn=$(stat --printf=%y $fn | sed -e 's/\..*//' -e 's/ /_/
' -e 's/[-:]//g') ; echo mv $fn $nn.avi ; done