我试图使用MP4Box连接一个目录中的几个.mp4文件。简单形式的基本命令如下所示:
mp4box -cat 'Film.mp4' -cat 'Credits.mp4' -new Total.mp4我写了这个剧本,但不管用:
#!/bin/bash
files='*.mp4'; for i in $files; do MP4Box -cat "'"$i"'" -new Total.mp4; done它只给出:
Error appending '01_Introduction.mp4': Requested URL is not valid or cannot be found
Error - 2 input names specified, please check usage
Error - 2 input names specified, please check usage
Error - 2 input names specified, please check usage
Error - 2 input names specified, please check usage
Error - 2 input names specified, please check usage
Error - 2 input names specified, please check usage
... etc.我的表情怎么了?
我决定:
#!/bin/bash
rm Total.mp4; files='*.mp4'; for i in $files; do
echo " -cat " "'"$i"'" >>input.txt; done
file="input.txt"; name=$(cat "$file");
eval "MP4Box " $name " -new Total.mp4"; 发布于 2015-12-30 12:16:01
我决定:
#!/bin/bash
rm Total.mp4; files='*.mp4'; for i in $files; do
echo " -cat " "'"$i"'" >>input.txt; done
file="input.txt"; name=$(cat "$file");
eval "MP4Box " $name " -new Total.mp4";https://stackoverflow.com/questions/34522536
复制相似问题