Depends:
on exiftool or jhead
Examples:
IMG_2359.JPG to 20110421-211301.jpg MVI_1516.MOV to 20110421-211301.mov (takes exif info of thumnail MVI_1516.JPG)
Usage:
read the first line of code and see the options there
imgarch.py -r
imgarch.py -b does --beautify