如何从视频文件中检索元数据

发布于 2024-12-22 00:34:09 字数 256 浏览 4 评论 0原文

我用手机录制了视频。现在,对于我的桌面应用程序,我需要检索开始录制视频的时间戳。 我想我必须访问元数据,所以我尝试使用 JMF(我用它在我的应用程序上播放视频),但我认为它不提供视频文件的元数据,或者直到现在我还没有找到它! 如果我使用类 java.util.Properties,使用列表方法它不会检索任何内容(返回空列表)。 如果我使用 java.io.File,我只能检索文件的最后修改时间,而不能检索视频的最后修改时间。

那么如何获取开始录制视频的时间呢? 请帮我! 渡渡鸟

I recorded a video using my phone. Now, for my desktop application, I need to retrieve the timestamp of when I start recording video.
I suppose I have to access metadata, so I tried using JMF (which I use to play video on my app), but I think it doesn't provide metadata of a video file, or until now I've not found it!
If I use the class java.util.Properties, using the list method it doesn't retrieve anything (returns an empty list).
If I use the java.io.File, I can only retrieve the last modified of the file, but not of the video.

So how can I retrieve the time of starting recording video?
Please help me!
Dodo

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文