I'm trying to use the exec() command to do some ffmpeg stuff.
When I do:
exec('ffmpeg -formats', $output);
It works, but when I try:
exec('ffmpeg -version', $output);
or anything with the -i flag the output returns nothing.
If I use the same commands in the shell it does work.
Also, when I do the command 'whoami' I get the same result both in the shell as in PHP.