FFMPEG在exec中没有工作,但是在我们使用ssh时它正在工作 但其他命令适用于exec!
以下是代码:
exec("ffmpeg -i /home/setare/public_html/kanalmanager/wt/230307754.mp4 -i /home/setare/public_html/kanalmanager/wt/230307754_logo.png \
-filter_complex "[1]colorchannelmixer=aa=1,scale=iw*1.4:-1[wm];[0][wm]overlay=x=(W-w)/2:y=(H-h)/2" /home/setare/public_html/kanalmanager/wt/230307754_send.mp4 -y");
答案 0 :(得分:0)
正如Charlotte Dunois所说你有语法错误,这个应该有效:
exec("ffmpeg -i /home/setare/public_html/kanalmanager/wt/230307754.mp4 -i /home/setare/public_html/kanalmanager/wt/230307754_logo.png \
-filter_complex \"[1]colorchannelmixer=aa=1,scale=iw*1.4:-1[wm];[0][wm]overlay=x=(W-w)/2:y=(H-h)/2\" /home/setare/public_html/kanalmanager/wt/230307754_send.mp4 -y");