Partager via


A small app to fix date/time on photos and videos

I find it frustrating to assemble photos from different devices - my wife's iPhone, my Windows Phone, our Sony Cybershot, my parents' Canon IXUS. That's because they all use different naming conventions for their photos and videos:

 

Even the windows explorer "Details" view doesn't help, because they all have different conventions on how to store "date taken" in metadata.

So in my first foray into codeplex, I wrote a small VB app to go through those photos and videos, walk the raw file format of the EXIF and MP4 headers, and make sense of the datestamps that it finds in the metadata:

https://fixcameradate.codeplex.com/

 

There were some interesting bugs along the way! Sony Cybershot seems to store local time rather than UTC time in its MP4 metadata, though this is probably by-design since the camera UI doesn't even let you specify your current timezone. Android phones seem to store UTC time since 1st Jan 1970, rather than 1st Jan 1904 as required by the MP4 spec. Windows phones don't store time at in metadata for their videos! On iPhone and Canon it worked best: I reverse-engineered (i.e. guessed by looking at the binaries) where they store the local time that a video was taken.

Comments

  • Anonymous
    March 16, 2014
    Lucian! Everytime I look at your blog to actually do some work, I find something more interesting, and be getting distracted! Stop doing that! ;-) Klaus

  • Anonymous
    April 25, 2014
    I'm with Klaus on this one!  But seriously awesome!  I love this!!

  • Anonymous
    November 30, 2016
    How do you use this App? when I try to open it in windows 10 it disappear as soon as make a click, and if I use it with a Command Prompt It does not give me a properties info just the name of the video,i do not know how to use all this commands like the ones for Exiftool so please help me