execute shell script from php

时间:2016-07-11 19:19:16

标签: php bash ffmpeg

when i use a ffmpeg command in shell_exec it works, but when i want to execute the shellscript with a given value it doesn't ...

 $cmd='ffmpeg -i /home/shorty/stormfall/'.$upld.' -filter_complex "[0:v]boxblur=10[bg];[0:v]crop=1280:625:00:45[fg];[bg][fg]overlay=00:45" -c:v libx264  -c:a copy /home/shorty/stormfall/swf/temp.flv';

works but;

 $cmd="./home/shorty/stormfall/members/moviefilters.sh /home/shorty/stormfall/$upld";

not,

i use

file=$1
ffmpeg -i $1 -filter_complex "[0:v]boxblur=10[bg];[0:v]crop=1280:625:00:45[fg];[bg][fg]overlay=00:45" -c:v libx264  -c:a copy /home/shorty/stormfall/swf/temp.flv

in script to get the value

any ideas to fix?

0 个答案:

没有答案
相关问题