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 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

 

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

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