3

I'm writing a simple C# app to organize my home photos & videos (they're a mess), and I'm using the original date to organize them.

I know how to pull the date taken from photo files using System.Drawing.Imaging.PropertyItem.

How can I do something similar w/ video files, or is this not trivial/possible with C#? The best I have is the FileInfo.CreationTime, but as we all know this isn't always accurate.

As a side note, I'm not concerned with the time, just the date, so the timecode at any point during the video would be sufficient.

csharpwinphonexaml
  • 3,659
  • 10
  • 32
  • 63
Jerad Rose
  • 15,235
  • 18
  • 82
  • 153
  • 1
    Hi, maybe this question and answer will be helpfull? http://stackoverflow.com/questions/8351713/how-can-i-extract-the-date-from-the-media-created-column-of-a-video-file – sara Aug 21 '13 at 13:34
  • 1
    Please tell me that you're not writing w/ instead of 'with'... and even in the title? This website is used by people from all over the world... how would they be able to decode your w/??? – Sheridan Aug 21 '13 at 13:46
  • @Sheridan If the SO community is going to be so critical of minor shorthand such as "w/", they should at the very least show the courtesy to point this out a little more constructively. – Jerad Rose Aug 21 '13 at 14:15
  • 1
    No no, that's just my opinion and I *did* give you a valid reason why it's not a good idea to do that. – Sheridan Aug 21 '13 at 14:46
  • @sara Thanks, but it appears that my videos don't have these file-level attributes. I need to somehow access the actual timecode on the video. For example, Media Created is always empty for my videos. – Jerad Rose Aug 22 '13 at 02:48
  • @JeradRose This 3rd party program should help you out (check source code): http://sourceforge.net/projects/mediainfo/ or use http://msdn.microsoft.com/en-us/library/windows/desktop/ff384862(v=vs.85).aspx – JuStDaN Aug 26 '13 at 01:28

0 Answers0