Camera to Archive Workflow

From Pikes' Wiki
Revision as of 05:09, 17 February 2008 by DocGyver (talk | contribs) (New page: =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 ba...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

for fn in * ; do touch -r $fn -d "-1 hour +3 minutes -5 second" $fn ; done

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