在音频和视频文件中嵌入任意元数据
我在一个组织工作,我们从学术机构获取讲座的原始 MPEG-2 视频文件,并以各种格式在我们的网站上提供它们。 目前,将 MPEG-2 转换为音频 (MP3) 和视频 (MP4)、上传到 iTunes U、YouTube 等的工作流程极其繁琐。 我想自动化这个过程,但阻止我这样做的主要因素是与工作流程中每个步骤相关的所有标记。
基本上,我想这样做,这样我就可以只标记原始文件一次(标记原始 MPEG-2 文件并通过转码将元数据保留在其中可能要求过高,所以我们假设我会标记每对 MP3/MP4 文件),以及视频上传的每个位置所需的所有元数据 - 因此元数据必须包括 YouTube、iTunes U、我们的网站以及我们上传内容的每个其他位置的正确数据到。 由于元数据非常广泛,普通的 ID3 标签是不够的。 我想要某种完全可定制的元数据(可能基于 XML,但不一定)解决方案,用于以编程方式标记和读取 MP3 和 MP4 文件中的元数据字段。 这样的事情存在吗? 我可以为此编写自己的自定义客户端程序,并且语言选择并不重要,但我无法找到我正在寻找的规范。
I work for an organization where we take raw MPEG-2 video files of lectures from academic institutions and make them available on our website in a variety of formats. Right now the workflow for turning the MPEG-2 into audio (MP3) and video (MP4), uploading to iTunes U, YouTube, etc. is extremely tedious. I would like to automate this process, but the main thing keeping me from doing it is all the tagging that is associated with each step in the workflow.
Basically, I would like to make it so that I can just tag the original file once (tagging the raw MPEG-2 file and having the metadata stick with it through transcoding is probably too much to ask, so let's just assume I'd tag each pair of MP3/MP4 files), with all of the metadata needed for every place that the video is uploaded - so the metadata would have to include the proper data for YouTube, iTunes U, our website, and every other place we upload content to. Because of how extensive the metadata is, the normal ID3 tags won't be enough. I would like some sort of a fully customizable metadata (maybe XML-based, but not necessarily) solution for programmatically tagging and reading metadata fields from MP3 and MP4 files. Does such a thing exist? I'm ok with writing my own custom client programs for this, and the language choice isn't really important, but I haven't been able to find a specification for something like what I'm looking for.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
既然还没人回答,那我就以我最初的想法来回答吧。 我找到了一些 MP3 标记库,但没有一个可以同时用于 MP3 和 MP4 文件。 让每个媒体文件都关联一个 XML 文件会不会太“hacky”? 因此,如果我的音频文件夹中有 SomeSpeaker.mp3,那么我的元数据文件夹中也会有 SomeSpeaker.mp3.xml。 这可能是最简单的解决方案,唯一的问题是我需要确保 XML 文件与媒体文件一起上传,但这应该不是问题,因为我的客户端程序将执行上传。 对此有什么想法吗?
Since no one has answered yet, I'll answer with what my initial thoughts are. I've found a few MP3 tagging libraries, but nothing that can work with both MP3 and MP4 files. Would it be too "hacky" to have an XML file associated with each media file? So if I had SomeSpeaker.mp3 in my audio folder, I would also have SomeSpeaker.mp3.xml in my metadata folder. This is probably the easiest solution, the only problem being that I need to make sure the XML file is uploaded along with the media files, but that shouldn't be a problem because my client program would be doing the uploading. Any thoughts on this?
我知道 Adobe XMP 元数据经常作为“sidecar”文件存在,即与原始文件并存的 XML 文件。
我需要完全相同的功能并且正在研究。 我正在研究现有的 DAM 解决方案,看看它们创建和使用元数据的效果如何。
Adobe Bridge、Extensis Portfolio 和 CatDV 都在我要查看的列表中。
我在 Photoshop/Lightroom 中使用了 XMP 元数据,效果相当不错。
——卡梅伦
I know that Adobe XMP metadata frequently exists as a "sidecar" file, that is, an XML file alongside the original file.
I need the exact same capability and am researching. I'm looking into existing DAM solutions to see how well they create and use the metadata.
Adobe Bridge, Extensis Portfolio, and CatDV are on my list to check out.
I have used XMP metadata in Photoshop/Lightroom and it works reasonably well.
--Cameron