Open

by damned truths

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

Given the list of following files. with file modifications date the date of copying (i.e. all in say 2005-02-23), How can we sort the files into the correct dated folder based on the metadata (Exif shooting time). I can get the photos sorted easily enough using DOPUS rename script, AMOK sorter, exiftool, or a python script. However, how do I move the videos into the correct folder? Metadata yields no information. Modification date is incorrect. The only clues I have are the exif dates of the photos before and after it (and/or looking at the files and determining by yourself).

IMG_2007.JPG
IMG_2008.JPG
IMG_2009.MOV
IMG_2011.JPG
IMG_2012.JPG
IMG_2013.JPG
IMG_2014.MP4

How can one go about and achieve the following result?

2004-10-02\IMG_2007.JPG
2004-10-02\IMG_2008.JPG
2004-10-02\IMG_2009.MOV
2004-10-03\IMG_2011.JPG
2004-10-03\IMG_2012.JPG
2004-10-04\IMG_2013.JPG
2004-10-04\IMG_2014.MP4

Using the tools mentioned above, I get the following result:

2004-10-02\IMG_2007.JPG
2004-10-02\IMG_2008.JPG
IMG_2009.MOV
2004-10-03\IMG_2011.JPG
2004-10-03\IMG_2012.JPG
2004-10-04\IMG_2013.JPG
IMG_2014.MP4

Maybe a tool can be written to get the IMG#, find the closest IMG# (within x numbers, e.g. 3) to it, and move it to that img's exif dated folder? I ask because there are many video clips like these, without correct date modification and metadata. I used to just use the file modification date to move them before.

tl;dr - if no metadata, and incorrect modification date, how to move a video file given information on it's neighbors?

share|improve this question

closed as off-topic by mattdm, AJ Henderson, John Cavan Mar 19 at 14:23

  • This question does not appear to be about photography within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

2  
This question appears to be off-topic because it is a scripting question with little relevance to photography. –  mattdm Mar 19 at 8:32

1 Answer 1

Video files also might contain capture date/time information that some files renamers don't see. You need to check another file renaming tools or try DAM systems that usually contain a built-in image/video importer and renamer in one:

enter image description here

Then your movies will be copied to a chronologically organized folders: enter image description here

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.