我过去使用过getid3来实现这个目的,你可以从http://www.getid3.org/获取它.我不知道它是如何保持它已经不再
您可以将一些代码看起来与此类似
<?php
include_once('getid3.php');
$getID3 = new getID3;
$file = './file.mov';
$file_analysis = $getID3->analyze($file);
echo 'Video Resolution = '.$file_analysis['video']['resolution_x'].' X '.$file_analysis['video']['resolution_y'];
?>
Run Code Online (Sandbox Code Playgroud)