Php system () function error sh: ffmpeg: command not found

1 ffmpeg is installed on the centos7.3 server and environment variables are added in etc/profile/. And the ffmpeg command can be used normally in the server

2.phpsystem()ffmpegroot

3.php

which boss can help with the answer? I am grateful.

Jan.24,2022

your ffmpeg is not installed under / bin or / usr/bin, so try calling through the absolute path:
system ('/ monchichkey/ffmpeg/bin/ffmpeg');


another possibility is that the lack of a corresponding extension in your ffmpeg may also lead to execution failure. Execute it on linux now. If it succeeds, use the code to execute

.
Menu