I am trying to run the following command in PHP (on Ubuntu):
<?php if (exec("/home/johnboy/ffmpeg/ffmpeg -i test1.mp4 -acodec aac -ab 128kb -vcodec mpeg4 -b 1220kb -mbd 1 -s 320x180 final_video.mov")) { echo "Success"; } else { echo "No good"; }
And I always get a "Bad" response, and the file is not created.
Interestingly, if I run the exact same command in Shell, it works, no problem.
Also, when I run the same code above, but instead of "fmmpeg" instead of "fmmpeg", it replaces "whoami". (He repeats "Success")
Any ideas on why this will not work? Thanks.
source share