php - 获取 H.264 MP4 的尺寸

标签 php video mp4 h.264

有没有人知道在纯 PHP 中使用没有 ffmpeg 或类似扩展的 H.264 编解码器编码的 MP4 的现成可靠方法来判断尺寸(宽 x 高)?

Thanks for all the answers folks. The bounty is running out and I will not have time to check the offered solutions before it does. I will accept the solution that I feel has the greatest likelihood to work.

最佳答案

getID3是纯 PHP 并从各种媒体文件中提取大量信息。这将取决于首先对文件进行编码的内容,以及可用的元数据及其可靠性。 getID3 有一个不错的演示页面,其中包含许多不同的文件类型。我试图发布更多链接,但作为新手我只得到一个。

关于php - 获取 H.264 MP4 的尺寸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1718530/

相关文章:

php - 如何将查询的多个结果插入另一个表?

PHP curl 返回curl_errno 3

matlab - 如何在 MATLAB 中获取 GoPro 视频每一帧的时间戳?

javascript - 在视频上包裹一个 div

python - Python OpenCV cap.read()解压缩帧?

ffmpeg - ffmpeg 中的后处理以移动 MP4 文件中的 'moov atom' (qt-faststart)

php - Zend 框架查询 where 子句

php - 如何停止在另一个站点中镜像我的站点内容

mysql - 如何在我的 HTML5 应用程序中嵌入视频?

python-3.x - OpenCV 无法打开 *.mp4 文件