【发布时间】:2021-07-15 14:52:49
【问题描述】:
通过 1 为谁通过 ffmpeg 我需要合并 2 个音频并向其添加图片(专辑)
<---------> 1-audio
<--------------> 2-audio
<-------------------> output
https://superuser.com/questions/1509582/ffmpeg-merge-two-audio-file-with-defined-overlapping-time
我查看了这个链接,它结合了 2 个音频。 现在我需要给它添加一张图片(相册)
这是正在使用我的命令
ffmpeg -i 1.mp3 -i 2.mp3 -filter_complex "[1]adelay=Ns|Ns[a1];[0:a][a1]amix=inputs=2[a]" -map "[a]" output.mp3
多亏了这个,我才能将两个音频合二为一。
我是这样看的
ffmpeg -i 1.mp3 -i 2.mp3 -i 1.png -filter_complex "[1]adelay=5s|5s[a1];[0:a][a1]amix=inputs=2[a]" -map "[a]" -c:a copy -c:v copy -map 0:0 -map 1:0 -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" audio-out.mp3
1.mp3 - first audio (1:35 s)
2.mp3 - second audio (0:16 s)
1.png - picture (album) (170x170)
我收到了这个错误
Streamcopy requested for output stream 0:0, which is fed from a complex filtergraph. Filtering and streamcopy cannot be used together.
我需要什么?
我需要结合此命令将图片(专辑)添加到音频中
当我说图片(专辑)时,我就是这个意思。 这在图片中清楚地显示出来。 https://i.imgur.com/z64KhoS.png
【问题讨论】: