ubuntu - No response from FFMPEG from inside php (works in command line)Get the solution ↓↓↓
So I have this executable working fine in a Windows 10 dev environment:
$cmd = 'C:/ffmpeg/bin/ffmpeg.exe -i video.mp4 -i audio.mp3 -c:v copy -c:a aac output.mp4'; exec($cmd, $output)
However when I move it into the Ubuntu staging environment and change the path to:
there is no response from it. The following works in the ubuntu terminal
ffmpeg -v, ffmpeg -i, php -v, ...
but there is no response from it from inside php. Am I missing something here?
I've also tried adding sudo to the above command which seems to make no difference. (Yes I know I should be developing in the same environment as the staging/prod servers but it's not an option in this specific case).
People are also looking for solutions of the problem: the metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.