Posts Tagged: rename

Rename AVCHD files using Exiftools

Posted by & filed under Linux, Windows.

Simple bash script to rename AVCHD/MTS/MOV files to match their recording date and time. #!/bin/bash if [ -z "$1" ]; then echo “Usage: ./rename_video.sh FILETYPE” 1>&2 echo “Example: ./rename_video.sh *.MTS” 1>&2 exit 1 fi for x in “$@” do exiftool ‘-FileName<DateTimeOriginal’ -d %Y%m%d_%H%M%S_%%f.%%e “$x” done The resulting files will be named like YYYYMMDD_HHMMSS.ext ie 20120703_005600.MTS [...]

Rename files by wildcard pattern and correct the EXIF timestamp metadata

Posted by & filed under Linux, Misc, Network, Photo etc, Scripting, Web.

This is a little script I’ve written to correct all my image files since the EXIF timestamp information is one hour out of sync. The filenames have been renamed to comply to the EXIF information and has to be renamed again because of the one hour scew. The filename can look something like this 20080102-1201_DSC_0910.JPG [...]