You are here: Re: create video screen cap with PHP « PHP Programming Language « IT news, forums, messages
Re: create video screen cap with PHP

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация