我有一个 mp3 文件目录,它看起来有点像这样:
Blue Elephant part 1.mp3
Blue Elephant part 2.mp3
Tale of Two Cities part 1.mp3
Tale of Two Cities part 2.mp3
Lookism part 1.mp3
Lookism part 2.mp3
总是有两个部分,并且它们的名称一致。我想要输出:
Blue Elephant.mp3
Tale of Two Cities.mp3
Lookism.mp3
... 因此每对文件都合并了。我如何在命令行上使用 ffmpeg 或 cat 执行此操作?
答案1
尝试这个:
ffmpeg -i "concat:Blue Elephant part 1.mp3|Blue Elephant part 2.mp3" -i "Blue Elephant part 2.mp3" -acodec copy Blue Elephant.mp3 -map_metadata 0:1