Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 14th, 2008, 7:55 AM   #1
-IK-
Newbie
 
Join Date: Dec 2005
Posts: 11
Rep Power: 0 -IK- is on a distinguished road
Question 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.
-IK- is offline   Reply With Quote
Old Apr 14th, 2008, 12:31 PM   #2
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 925
Rep Power: 4 lectricpharaoh will become famous soon enough
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.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp
lectricpharaoh is online now   Reply With Quote
Old May 11th, 2008, 1:43 PM   #3
zipe
Newbie
 
zipe's Avatar
 
Join Date: May 2008
Posts: 2
Rep Power: 0 zipe is on a distinguished road
Thumbs up 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);
?>
zipe is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
installing php (beginners question) spekkio7 PHP 4 Jan 11th, 2008 10:06 AM
New PHP Based Forum-RPG dizdain Paid Job Offers 5 Dec 3rd, 2007 2:32 AM
Php with Sun Java System Application Server Platform lucifer PHP 0 Jun 7th, 2007 4:03 AM
Php Tutorial 3 bulio PHP 4 Jul 16th, 2006 4:00 AM
Php Tutorial 1 bulio PHP 17 May 29th, 2006 4:54 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:10 AM.

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