title: How can I read & write "comments" metadata from .mp4 files with python?
body: <p>I'm trying to add comments to my video files based on the data they were created (e.g.: age of kids in the video) if they have no comments yet. I want to read the comments section in the file description of each file to make sure it's empty, then add a comment based on time of creation of the file. Simple enough to do manually in windows explorer (right-click->properties->Details->Description section->Comments).</p>
  
  <p>I know how to get some metadata from most files with stat() like the creation date but I have not managed to get to the comments sections of .mp4 files.</p>
  
  <pre><code>from pathlib import Path
  
  testDir = r"C:\temp\test"
  current_dir = Path(testDir)
  
  for current_file in current_dir.iterdir():
      info = current_file.stat()
      print(info.st_mtime)
      print(info.comments) # This just throws an 'os.stat_result' object has no attribute 'comments' error
  </code></pre>