hi all
i am writing a script for video uploads with conversion
just want to see if this is possible
PHP Code:
$flags = ' -i /home/httpd/vhosts/example.com/httpdocs/temp/' . $tempOrigVideo . ' -ar 22050 /home/httpd/vhosts/example.com/httpdocs/videos/' . $uploadedVideo;
$execVideo = '/usr/local/bin/ffmpeg ' . $flags;
exec($execVideo);
the script ends up looking like
"/usr/local/bin/ffmpeg -i /temp/video.avi -b 100 -vcodec mpeg4 -ar 22050 /final/video.mp4"
i can't seem to get that to work, i can run that command from the command line
i can run the php script from the command line and the file is output correctly
but when trying to run the command from a browser nothing happens
i can run a simple command like "ls" from the browser
i have tried chmodding everything to 777 but that didn't do anything
any ideas?
i've also tried chown, chgrp to apache for ffmpeg, but still nothing
safe_mode is off
[update]
nm, it was cos the original video file didn't have the permissions
thanks
dave