我需要用PHP获取.mov文件的宽度和高度。 我该怎么做?
我以前用过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']; ?>