[英]ffmpeg in not working in php exec()
FFMPEG is not working in exec but its working when using ssh on that us but other commands work with exec ! FFMPEG 不能在 exec 中工作,但是在我们使用 ssh 时它可以工作,但其他命令可以与 exec 一起工作!
Here is the code :这是代码:
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");
As Charlotte Dunois said you have syntax error, and this one should works:正如 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");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.