The command is
ffmpeg -i path/to/video.avi path/to/video.mpg
and it works fine from the command line. However, when I call it with PHPs exec()
, the return value is 127, it doesn't seem to detect FFMPEG. What am I doing wrong? I'm in localhost and the safe mode is off, but I'm new to both FFMPEG and exec()
, so it may be a noob mistake. Thanks in advance.
Try
did you register your ffmpeg command as a PATH Environment variable in Linux / Windows ???? it seems that you did not set it as a PATH variable that's why you have to include full path to FFMPEG command so that it worked for you.