时间戳中的FFMPEG Concat音频 [英] FFMPEG Concat Audio at timestamp
本文介绍了时间戳中的FFMPEG Concat音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在特定的时间戳记仅持续特定的持续时间连接两个mp3音频文件(fileA和fileB).这样,在上述持续时间内,文件A中的音频将被文件B中的音频替换.因此,最终结果应为:
I'm attempting to concat two mp3 audio files (fileA and fileB) at a specific timestamp for a specific duration only. Such that the audio in file A is replaced with that in file B for the aforementioned duration. Thus the end result should be:
FileA-FileB(持续时间)-FileA
FileA - FileB(for duration) - FileA
可以用FFMPEG吗?
Can this be done with FFMPEG?
推荐答案
是.假设两个文件都具有相同的采样率和频道数,您将创建一个像这样的文本文件,
Yes. Assuming both files have the same sampling rate and channel count, you would create a text file like this,
file a.mp3
outpoint 45
file b.mp3
inpoint 0
outpoint 23
file a.mp3
inpoint 68
然后运行
ffmpeg -f concat -i text -c copy out.mp3
输出顺序为A START-45 + B 0-23 + A 68-END
The sequence of the output will be A START-45 + B 0-23 + A 68-END
这篇关于时间戳中的FFMPEG Concat音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文