![]() |
Scripting: Check size of a video file? (WMV/FLV) - PHP
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? |
You could install ffpmeg or mencoder on your server, exec it and then parse the output.
|
|
So, you want to get these numbers.. by osmosis?
|
you can use ffmpeg-php extension or you can look for a class called getid3
|
ffmpeg-php = win
|
|
if you are using ffmpeg-php check out
getduration getframewidth getframeheight |
Quote:
<? $movie = new ffmpeg_movie('trailer.flv'); $height = $movie->getframeheight(); $width = $movie->getframewidth(); echo "$width x $height"; ?> |
Quote:
|
All times are GMT -7. The time now is 12:44 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123