Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   HELP: ffmpeg-php (http://www.programmingforums.org/showthread.php?t=15613)

-IK- Apr 14th, 2008 8:55 AM

HELP: ffmpeg-php
 
PHP newb here...

ffmpeg-php is a PHP extension that adds functions for accessing and retrieving information from movies and audio files. ffmpeg-php provides access to the many audio and video formats supported by ffmpeg.

ffmpeg-php requires ffmpeg to be installed on the host system and here is my question.

I am going to buy web hosting services from a web host (probably one.com). Will I be able to install the ffmpeg application on their web server in order to install and use ffmpeg-php?

Thanks for any help.

lectricpharaoh Apr 14th, 2008 1:31 PM

Re: HELP: ffmpeg-php
 
This is a question you should ask your hosting service of choice. I'd expect the default answer is 'no', unless you're paying for a dedicated server. With shared hosting, they need to restrict things to prevent one user from buggering up things for the rest.

zipe May 11th, 2008 2:43 PM

Re: HELP: ffmpeg-php
 
I just call ffmpeg on command line with php's exec(). It's working fine and pretty fast, didn't want to mess with ffmpeg-php nor installing anything. If your host supports exec() etc. probably you can do it(php safe mode off?).

E.g.:
Put ffmpeg.exe to ".../apache/domain.com/ffmpeg.exe"
Then:
:

<?php
$fil="c:/videos/movie.mpg";
$command="\"C:\\Progra~1\\Apache~1\\Apache2\\htdocs\\domain.com\\ffmpeg.exe -y -i ".str_replace("/","\\"."\\",$fil)." -vframes 1 -ss 1 -an -vcodec png -f rawvideo -s 160x120 thumbnails\\thumbnail_".md5($fil).".png\"";
exec($command);
?>



All times are GMT -5. The time now is 4:11 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC