如何设置“已创建媒体"MPEG-4 文件上的日期 [英] How to set the "Media created" date on an MPEG-4 file

查看:64
本文介绍了如何设置“已创建媒体"MPEG-4 文件上的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有许多从各种数码相机格式转码的 MPEG-4 文件,文件系统修改日期正确.我想将媒体创建"标签设置为匹配.这可以通过属性"窗口的详细信息"选项卡在 Windows 资源管理器中手动完成.设置 Media Created 很有用,因为 Windows Live Photo Gallery 为其 Date Taken 属性关闭了此字段.不幸的是,文件的数量使得手动设置所有日期变得不切实际.

I have many MPEG-4 files transcoded from various digital camera formats for which the file system modified date is correct. I'd like to set the "Media Created" tag to match. This can be done manually in Windows Explorer via the Details tab of the Properties window. Setting Media Created is useful because Windows Live Photo Gallery keys off this field for its Date Taken property. Unfortunately, the number of files makes setting all their dates by hand impractical.

自动化的几个途径具有潜力.TagLib# 似乎支持所有 MP4 标签,但获取更多基本标签的 API 尚不清楚.另一个角度是 Windows 外壳.据推测,Windows 资源管理器正在使用它来编写标签.有一个阅读示例,但有似乎不是用于编写的 API.

A couple avenues for automation have potential. TagLib# seems to support all the MP4 tags, but the API to get at more than basic tags is unclear. Another angle is the Windows shell. Presumably, Windows Explorer is using it to write the tags. There is an example for reading via the shell, but there doesn't appear to be an API for writing.

推荐答案

使用 Windows 属性系统.请参阅属性编辑示例以开始使用.设置这些属性:

Use the Windows Property System. See the Property Edit Sample to get started. Set these properties:

  • System.DateImported
  • System.Media.DateEncoded
  • System.ItemDate

这篇关于如何设置“已创建媒体"MPEG-4 文件上的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆