Camera to Archive Workflow: Difference between revisions
Jump to navigation
Jump to search
(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...) |
|||
| Line 15: | Line 15: | ||
==How to change the date of a file== |
==How to change the date of a file== |
||
<pre> |
<pre> |
||
touch -r somefile.avi -d "-1 hour +3 minutes -5 second" somefile.avi |
|||
</pre> |
</pre> |
||
==How to change the filename using EXIF tags== |
==How to change the filename using EXIF tags== |
||
exiftool -r "-FileName<DateTimeOriginal" -d %Y%m%d_%H%M%S%%-c.%%e . |
exiftool -r "-FileName<DateTimeOriginal" -d %Y%m%d_%H%M%S%%-c.%%e . |
||
Revision as of 23:40, 17 February 2008
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