title: Python - how to read Windows "Media Created" date (not file creation date)
body: <p>I have several old video files that I'm converting to save space. Since these files are personal videos, I want the new files to have the old files' creation time.</p>
  
  <p>Windows has an attribute called "Media created" which has the actual time recorded by the camera. The files' modification times are often incorrect so there are hundreds of files where this won't work. </p>
  
  <p>How can I access this "Media created" date in Python? I've been googling like crazy and can't find it. Here's a sample of the code that works if the creation date and modify date match:</p>
  
  <pre><code>files = []
  for file in glob.glob("*.AVI"):
     files.append(file)
  
  for orig in files:
      origmtime = os.path.getmtime(orig)
      origatime = os.path.getatime(orig)
      mark = (origatime, origmtime)
      for target in glob.glob("*.mp4"):
         firstroot = target.split(".mp4")[0]
         if firstroot in orig:
            os.utime(target, mark)
  </code></pre>