I have ffmpeg installed on my macbook pro running sl 10.6.4 and I have enabled php on it. I am trying to use php on my machine to run ffmpeg commands to convert video. I have been attempting to use exec() command but it is not working. When I type the command directly into terminal it runs without a problem but when trying to do this through php nothing happens. I am attempting to convert about 600 short videos doing this and no programs that support bulk encodes will work. Heres my code does anyone see why this wouldn't work?
PHP:
exec('ffmpeg -i /Library/WebServer/Documents/video.avi -vcodec libx264 -vpre hq -vpre ipod640 -b 250k -bt 50k -acodec libfaac -ab 56k -ac 2 -s 480x320 /Library/WebServer/Documents/video.mp4');