problem in executing FFMPEG using PHP script

Hi There,

I have successfully installed FFMPEG in my server. I can able to run FFMPEG via command prompt to convert video files to .flv. I have used the same command in php script, but it didn’t work. Following is my vidoe conversion script.

system("/usr/bin/ffmpeg -i /var/www/vhosts/realverdict.com/httpdocs/clock.avi -ar 22050 -ab 32 -f flv -s 320x240 /var/www/vhosts/realverdict.com/httpdocs/cader.flv",$output);

It returns error code 127.

Could any one please help me to fix this problem?

Many Thanks,

Abdul Cader.

could it be a permissions problem? Your php scripts are run as the apache id normally. Not root or your userid.

Sponsor our Newsletter | Privacy Policy | Terms of Service