如何通过avconv合并视频? [英] How to merge videos by avconv?
本文介绍了如何通过avconv合并视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的文件夹中有几个块。
I have several chunks in folder.
0001.mp4
0002.mp4
0003.mp4
...
0112.mp4
我想将它们合并进入full.mp4
I would like to merge them into full.mp4
我尝试使用:
avconv -f concat -i <(printf "file '%s'\n" /root/chunk/*.mp4) -y \
-c copy /root/test/full.mp4
未知输入格式: concat
Unknown input format: 'concat'
avconv -f concat -i <(printf "%s|" /root/chunk/*.mp4) -y \
-c copy /root/test/full.mp4
未知输入格式: concat
Unknown input format: 'concat'
avconv -i concat:`ls -ltr /root/chunk/*.mp4 | awk 'BEGIN {ORS="|"} { print $9 }'` \
-c:v copy -c:a copy /root/test/full.mp4
在上一版中,仅捕获了一个输入文件。
In last edition only one input file was catched to output.
如何合并所有文件
我不想使用ffmpeg或其他格式。
I don't want to use ffmpeg or other. Avconv only.
推荐答案
avconv -i concat:file1.mp4\|file2.mp4 -c copy output.mp4
我不知道是否适用于任何容器类型我用 AVI
)。
I don't know if works with any container's type ( worked for me with AVI
).
这篇关于如何通过avconv合并视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文