从 x264 检索元数据?

发布于 2024-08-16 08:24:34 字数 195 浏览 2 评论 0原文

我正在尝试从 x264 编码的视频文件中提取元数据。第一要务是映射 IDR 帧结构。这项工作比预期的要困难,我正在尝试找到可以通过代码控制的命令行应用程序。

Mp4box 有一个选项“-dump-xml”或类似选项,但我不知道它是如何工作的。网络上对此选项没有太多帮助。

谁能给我一个关于这个或任何其他替代方案的提示?

谢谢。

I am trying to exctract the meta data from x264-encoded video files. First priority is to map the IDR-frames structure. The work seams to be harder than expected and I am trying to find command line applications that I can control from my code.

Mp4box has an option "-dump-xml" or similar but I can't figure out how it works. Not much help available on the net on this option.

Anyone who can give me a hint on this or any other alternative?

Thank you.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

街角卖回忆 2024-08-23 08:24:34

尝试调用mpeg4ip。该应用程序包含mp4dump、avidump、yuvdump...

在这里查看:http://mpeg4ip.sourceforge.net/documentation/index.php

Try something that calls mpeg4ip. This application contains mp4dump, avidump, yuvdump....

Check it out here: http://mpeg4ip.sourceforge.net/documentation/index.php

反目相谮 2024-08-23 08:24:34

您可以使用 MediaInfo 它是一个 CLI 软件,可以获取有关视频的元信息并将其导出到 HTML 或 XML 文件中;当然,它支持MP4。它适用于 Linux(deb 系列和 rpm 系列)、Mac OSX、Windows、BSD 等。

您可以使用如下命令:

mediainfo --Output=XML video.mp4 > file.xml

这会将 video.mp4 的元信息输出到 file.xml
文件中包含的元信息包括格式、编解码器、文件大小、持续时间、比特率、帧速率、宽度、高度、色彩空间、流大小等。

我希望这个答案有帮助;)=)

You can use MediaInfo It's a CLI software and can get the metainfo about videos and export them into an HTML or XML file; of course, it supports MP4. It's available for Linux (deb families and rpm ones), Mac OSX, Windows, BSD, etc.

You could use a command like this:

mediainfo --Output=XML video.mp4 > file.xml

This will output the metainfo of video.mp4 to file.xml
Metainfo included in the file includes format, codec, file size, duration, bit rate, frame rate, width, height, color space, stream size among others.

I hope this answer has been helful ;) =)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文