MP4Box shell脚本无法正常工作

时间:2015-12-30 03:29:40

标签: shell mp4box

我正在尝试使用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"; 

1 个答案:

答案 0 :(得分:0)

我安定下来了:

@model IEnumerable<Trend>

<div class="container-fluid post-container">
    @if (Model != null)
    {
        foreach (var trend in @Model)
         {
             Html.RenderPartial("_Trend",trend);
             //button that calls Publish and passes it trend without refreshing the page.
         }
    }
</div>