2

I need to get the width and height of a .mov-file with php. How do I do that?

niton
  • 8,771
  • 21
  • 32
  • 52
Johan
  • 18,814
  • 30
  • 70
  • 88

1 Answers1

6

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
  • 464
  • 2
  • 5