Resolution of remote WMV files

The place for "I can't figure out how to..." questions.
Post Reply
eggz
User
Posts: 1
Joined: Thu Jul 12, 2007 9:59 am
Location: Sweden

Resolution of remote WMV files

Post by eggz » Thu Jul 12, 2007 10:08 am

Hi. Just found getID3(), seems like a great class, good work.

I have searched the support forum for a while but couldn find enough information. I need to get the resolution of a remote WMV file to set the best width and height for my embedded mediaplayer.

In understand that I need to get a small part of the file and then analyze that. Would 32k be enough to get the resolution of a WMV file? Also, I need to write some code to fopen (i guess) the file and get it, and I'm not a very skilled php programmer.

If anyone has a sample code or could point me in the right direction I would be very thankfull.

eggz

James Heinrich
getID3() v1 developer
Posts: 1476
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Post by James Heinrich » Thu Jul 12, 2007 12:08 pm

32kB would probably be enough for WMV.

There are some other threads around here somewhere that contain sample code (this one for example) for you to copy from.

Post Reply