FORUMS: list search recent posts

Can you dynamically get a video file's frame size?

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Marco SolorioCan you dynamically get a video file's frame size?
by on Nov 17, 2006 at 6:36:49 am

As usual, I've searched the net with no results.

Is it possible to get the frame size of a video (both QuickTime and WMV formats) via PHP or any other means? I need to dynamically pass the width and height parameters into OBJECT and EMBED tags. Passing variables to those tags is a piece of cake... it's *acquiring* those variables from the file itself that poses the problem. I can do it with a JPEG/GIF image, but not with a video file. Sigh.

BTW (if you're reading this, Curtis) going the PHP route for this project has proven to work far better than I could have ever imagined!

Thanks,

Marco Solorio  |  OneRiver Media


Return to posts index

Marco SolorioRe: Can you dynamically get a video file's frame size?
by on Nov 17, 2006 at 6:54:41 am

I think I may have found it here...

http://us3.php.net/manual/en/function.getimagesize.php#47785

and

http://us3.php.net/manual/en/function.getimagesize.php#30060

With the latter post giving a little more info on the matter.

Marco Solorio  |  OneRiver Media


Return to posts index

Marco SolorioRe: Can you dynamically get a video file's frame size?
by on Nov 17, 2006 at 8:01:05 am

Holy crap, it worked! That getID3 library is something else!!! Get it here...

http://www.getid3.org/

I never knew PHP could be so friggin' powerful. Wow.

Marco Solorio  |  OneRiver Media


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]