检索用户上传的视频规格

发布于 2024-12-15 13:02:44 字数 193 浏览 1 评论 0原文

我正在开发的网络应用程序允许用户上传视频。视频必须符合我们客户规定的特定标准(格式、帧大小、帧速率等),否则将被拒绝。我通过谷歌搜索找到了 ffmpeg-php 库。但是,我注意到它似乎没有得到积极维护。

  1. 目前通过 PHP 访问视频数据的标准库是什么?
  2. 如果从视频的元数据中检索此数据,可以相信此信息是准确的吗?

The web app I'm working on allows a user to upload videos. The videos must meet specific criteria as outlined by our client (format, frame size, frame rate, etc) or they will be rejected. I found the ffmpeg-php library from some googling. However, I noticed that it doesn't appear to be actively maintained.

  1. What's the current standard library for accessing video data via PHP?
  2. If this data is retrieved from the video's metadata, can this information be trusted to be accurate?

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

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

发布评论

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

评论(1

你没皮卡萌 2024-12-22 13:02:44

ffmpeg 是一个不错的选择: http://ffmpeg-php.sourceforge.net/ doc/api/ffmpeg_movie.php

或者您可以使用 PHP 类,这是我发现的一个类,其中写着“在不使用 ffmpeg-php 库的情况下访问媒体元数据。”: http://www.phpclasses.org /package/3747-PHP-Manipulate-and-convert-videos-with-ffmpeg-program.html

与大多数元数据一样,它们可能很容易编辑且不值得信任。

ffmpeg is a good option at: http://ffmpeg-php.sourceforge.net/doc/api/ffmpeg_movie.php

Or you could use a PHP class, here is one i have found which says "Access media metadata without using the ffmpeg-php library.": http://www.phpclasses.org/package/3747-PHP-Manipulate-and-convert-videos-with-ffmpeg-program.html

Like most meta datas, they are likely easily editable and untrustworthy.

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