|
Posted by Karl Groves on 08/16/06 12:15
Andy Jeffries <news@andyjeffries.co.uk> wrote in
news:pan.2006.08.16.11.56.56.932617@andyjeffries.co.uk:
> On Wed, 16 Aug 2006 11:55:35 +0000, Andy Jeffries wrote:
>> function movie_get_length_in_seconds($movie_filename) {
>> $cmd = "mplayer -identify -vo null -ao null -frames 1 ".
>> "$movie_filename 2>&1 | grep ID_LENGTH";
>> $output = exec($cmd);
>> list(,$length) = explode("=", $output); return $length;
>
> Somewhere along the posting route, it seems to have snipped some line
> endings, but I'm sure you can re-prettify my code :-)
>
> Cheers,
>
Thanks for this. I'll give it a shot.
--
Karl Groves
www.karlcore.com
[Back to original message]
|