在一个shell_exec中有没有缩短这个命令的方法?
shell_exec("$ffmpegPath -i $inputPath -i $watermark -filter_complex overlay=10:10 $outPathOGG");
shell_exec("$ffmpegPath -i $inputPath -i $watermark -filter_complex overlay=10:10 $outPathMP4");
shell_exec("$ffmpegPath -i $inputPath -i $watermark -filter_complex overlay=10:10 $outPathWEBM"); 就像这样:
shell_exec("$ffmpegPath -i $inputPath -i $watermark -filter_complex overlay=10:10 $outPathWEBM,$outPathMP4,$outPathWEBM");另外,在这个工作中使用shell_exec或exec更好吗?
发布于 2015-01-16 14:06:58
你可以试试
shell_exec("$ffmpegPath -i $inputPath -i $watermark -filter_complex overlay=10:10 $outPathOGG & $ffmpegPath -i $inputPath -i $watermark -filter_complex overlay=10:10 $outPathMP4 & $ffmpegPath -i $inputPath -i $watermark -filter_complex overlay=10:10 $outPathWEBM");这只是将shell_execs与命令之间的&登录组合在一起。应该管用的。
https://stackoverflow.com/questions/27984511
复制相似问题