gpt4 book ai didi

shell - 带有 shell : oncat listed movies 的 ffmpeg

转载 作者:行者123 更新时间:2023-12-04 23:16:21 25 4
gpt4 key购买 nike

我是 shell 脚本的新手,试图将列出的电影连接到如下文件夹中:

filename="list.txt"
cat ${filename} | while read line;
do
ffmpeg -y -i sum.mov -i $line -filter_complex concat tmp.mov
cp tmp.mov sum.mov
done

但是,此循环只运行一次。
最佳做法是什么?

谢谢

最佳答案

解决了:

#list.txt
file 'movie1.mov'
file 'movie2.mov'
file 'movie3.mov'

不需要编写 shell 脚本。只是
ffmpeg -f concat -i list.txt -c copy output.mov

关于shell - 带有 shell : oncat listed movies 的 ffmpeg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35620434/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com