I am in the process of using shell_exec()
for the first time. I am trying to convert some video files on my server using the ffmpeg shell script.
When I the below code in the browser, it returns NULL:
var_dump(shell_exec("ffmpeg -i /var/www/html/sitedomain/httpdocs/tmp/ebev1177.mp4"));
However when I run the equivalent code in my terminal:
> ffmpeg -i /var/www/html/sitedomain/httpdocs/tmp/ebev1177.mp4
I get back a whole load of useful information which ends in an error "At least one output file must be specified"
Why is this info not being passed back to my PHP script so I can echo it out?