替代 php-mp4info 使用 php 读取 mp4 元数据

发布于 2024-12-28 19:57:29 字数 326 浏览 5 评论 0原文

我正在尝试在 Drupal 结构中使用 php 获取 mp4 文件的视频尺寸。

php-mp4info 类似乎尚未开发,尽管我能够使用其测试/演示文件读取一些 mp4 文件的尺寸,并根据类中发布的一些建议调整代码 问题页面,我无法在 Drupal .tpl.php 中的服务器上执行相同的操作文件。

有没有其他方法可以读取 mp4 元数据? php-mp4info 现在对我不起作用..

提前致谢,

Pedro

I'm trying to get video dimensions of mp4 files with php within the Drupal structure.

The php-mp4info class seems to be under-developed and although I was able to read the dimensions of some mp4 files using its test/demo file and tweaking the code according to some suggestions posted in the class issues page, I wasn't able to do the same thing on the server in a Drupal .tpl.php file.

Is there any alternative for mp4 metadata reading? php-mp4info is just not working for me right now..

Thanks in advance,

Pedro

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

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

发布评论

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

评论(1

谁的年少不轻狂 2025-01-04 19:57:29

如果你的服务器上有 ffmpeg,你可以通过 exec 使用它,或者有一个很好的 php warper:ffmpeg-php

If you have ffmpeg on your server you can use it via exec or there is nice php warper for it: ffmpeg-php

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