I have installed ffmpeg on my VPS so I can encode movies to FLV on the fly. It runs fine from the command line, but not when calling from php. I have set the permissions on the file and folder to 777 but it still doesnt work. I have also tried setting the ffmpeg to 777 and that didnt change anything. The only output I can get from php about an error is "1". I am current using system() but tried exec() as well. Here is my code :
I have copied that whole command line to my SSH and replaced it with the actual numbers passed through and the command will run.
Thanks
PHP:
$vid2flv = system('ffmpeg -i /home/mctv/www/files/video/$uploadfile -acodec mp3 -ar $samprate -ab $bitrate -f flv -s 320x240 -aspect 4:3 -y /home/mctv/www/files/video/$flvFile', $err_msg);
I have copied that whole command line to my SSH and replaced it with the actual numbers passed through and the command will run.
Thanks






