Camera to Archive Workflow: Difference between revisions

From Pikes' Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
=Workflow=
=Workflow=
*Copy pictures to working directory
*Copy folder with pictures to working directory (Y:\Pictures\ToFile\)
*Find difference between camera time and real time
*Find difference between camera time and real time
*Correct both EXIF times in JPG files and file times for all other files.
*Correct both EXIF times in JPG files and file times for all other files.

Revision as of 01:53, 25 August 2008

Workflow

  • Copy folder with pictures to working directory (Y:\Pictures\ToFile\)
  • 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

Tools

  • Exifer is a discontinued product but quite good. I am still evaluating other tools as recommended on his site as well as others.
  • Cygwin is a source for bash, touch, and stat commands.
  • Exiftool is a command line tool written in Perl but with command line versions. Any version should work but the one used writing these notes is this one.