如何简单地从 DV(如 DV 磁带)AVI 文件中检索录制时间戳?
我正在寻找一种从 DV AVI 文件检索或提取录制时间戳的方法。时间戳应该是 AVI 文件元数据的一部分。这些文件最初是从 DV 导入到 PC 并采用 AVI 包装的 DV 格式。
提供 API 的库或命令行工具就可以了。我将在 Mac 上使用它,但 Linux 的开源工具也可以。
I am looking for a way to retrieve or extract the timestamp of the recording from DV AVI files. The timestamp should be part of the AVI file's metadata. The files were originally imported from DV to PC and a DV format in an AVI wrapper.
A library providing an API - or a command-line tool would be ok. I am going to be using this on Mac, but open source tools for Linux is ok as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
经过进一步调查我发现 MediaInfo http://mediainfo.sourceforge.net/
他们还提供了一个命令行工具以及适用于 Windows、Mac 和 Linux 的库。然而,命令行版本和一些基本的 shell 脚本解决了我的问题。
After further investigation I found MediaInfo http://mediainfo.sourceforge.net/
They also provide a command-line tool and a library for both Windows, Mac and Linux. However, the command-line version together with some basic shell scripting solved my problem.
这对我有用。我安装了
mediainfo
并在bash
会话中执行此操作:cd
进入包含 AVI 文件的目录并运行:这会创建一个 ...
mediainfo.txt
文件以 AVI 源文件为前缀。如果可用,该文件包含一行“记录日期”和其他内容。
--
起初,我以为我可以通过将日期放入名称中来重命名文件,但这些文件链接到(旧的)电影项目中,这会破坏它们。
This worked for me. I installed
mediainfo
and did this in abash
session:cd
into the directory with AVI files and run:this creates a ...
mediainfo.txt
file prefixed with the AVI source file.If it is available, this file contains a line with "Recorded date" and other stuff.
--
At first I thought I would rename the files by putting the date into the name, but the files are linked into (old) movie projects and this would break them.
我不认为时间戳存储在文件的元数据中,因为在我的一些显示不同日期录制的视频中,它会发生变化。事实上,我认为,每一帧都有自己的时间戳。
I don't think the Timestamp is stored within the file's metadata because in some of my videos that show recordings from different days, it changes. In fact, I think, every frame has its own timestamp.