|
Posted by Andy Jeffries on 08/16/06 11:56
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,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos
[Back to original message]
|