I need to get the width and height of a .mov-file with php. How do I do that?
+2
A:
I have used getid3 in the past to achieve this you can grab it from http://www.getid3.org/ I am not sure how well maintained it is anymore
You could knock up some code to look similar to this
<?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'];
?>
houmam
2009-12-11 15:21:00
It was updated in March of 2009 and still works great
jnunn
2009-12-11 17:32:30