View Single Post
Old 05-09-2008, 01:47 PM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,430
Quote:
Originally Posted by Voodoo View Post
Does someone have a method for checking the dimensions of a video, not using meta data? Here's the thing... I have some videos that don't have metadata, FLV&WMV for the same video... In Windows, the size of the WMV shows up as 320x240, but not the FLV. It's safe to assume that each FLV is the same size as the corresponding WMV.

How do I read this size info that Windows sees in PHP?
As soon as you compile ffmpeg-php:

<?
$movie = new ffmpeg_movie('trailer.flv');
$height = $movie->getframeheight();
$width = $movie->getframewidth();
echo "$width x $height";
?>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote