Link to home
Start Free TrialLog in
Avatar of rbichon
rbichon

asked on

Detect FLV duration with PHP

Is there a way to detect the duration of an FLV file with PHP assuming that it contains the correct MetaData? Thanks.
ASKER CERTIFIED SOLUTION
Avatar of RobotWorx
RobotWorx

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RobotWorx
RobotWorx

By the way, PHP usually has a memory limit of 16MB. If you are using FLV files larger than that, you have to change the memory limit in the php.ini file. I set mine to memory_limit=32M which will allow for 32MB files. You will get an error if you try to use this function on a file that is larger than your memory limit.
Avatar of rbichon

ASKER

Thanks. I'll give it a try.
Avatar of rbichon

ASKER

Looks like it works! Thanks a lot for the code!