我一直在尝试使用ffmpeg覆盖视频。
使用ProRes 4444(带有Alpha通道)非常简单。
当我重叠两个视频时,没有问题。
当我尝试覆盖两个以上时,它仅显示前两个条目。 FFMPEG只能叠加两个视频吗?
ffmpeg.exe -y \
-i test-transparent-03.mov \
-i test-transparent-04.mov \
-i test-transparent-02.mov \
-i test-transparent-01.mov \
-filter_complex overlay -c:v libx264 output.mp4
此命令运行正常:
ffmpeg.exe -y \
-i test-transparent-03.mov \
-i test-transparent-04.mov \
-filter_complex overlay -c:v libx264 output.mp4
答案 0 :(得分:0)
覆盖滤波器使用两个输入并生成一个输出。您必须链接多个叠加层过滤器,每个叠加层过滤器都将前一个叠加层过滤器的结果作为其基本输入
<div v-if="isDeepSearch" class="d-flex flex-column">
<div class="d-flex flex-column">...omitted for brevity; not relevant...</div>
<div class="d-flex justify-content-around">
<div class="d-flex flex-column text-center">
<label for="isRead">Read State</label>
<button id="isRead" type="button" class="btn btn-sm btn-danger">Unread</button>
</div>
<div class="d-flex flex-column text-center">
<label for="importance">Importance</label>
<div
id="importance"
class="btn-group mt-auto"
role="group"
aria-label="Importance buttons"
>
<button type="button" class="btn btn-sm btn-secondary">Low</button>
<button type="button" class="btn btn-sm btn-warning">Medium</button>
<button type="button" class="btn btn-sm btn-danger">High</button>
</div>
</div>
<div class="d-flex flex-column text-center">
<label for="isRead">Has Attachment</label>
<button id="isRead" type="button" class="btn btn-sm btn-success">Yes</button>
</div>
</div>
</div>
<div class="d-flex justify-content-center">
<button
class="my-3 btn btn-lg btn-success"
:disabled="isSearchDisabled"
@click.prevent="search()"
>
<div v-if="!searching">
<i class="fas fa-search"></i> Search
</div>
<div v-else>
<i class="fas fa-spinner fa-spin"></i> Searching...
</div>
</button>
</div>