0

I've got a directory of mp3 files, which look a little like this:

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

There's always two parts, and they are named consistently. I want to output:

Blue Elephant.mp3
Tale of Two Cities.mp3
Lookism.mp3

... so each pair of files is merged. How would I do this with ffmpeg or cat on the command line?

1 Answer 1

1

Try this:

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
1
  • thanks. how would I do this for the whole folder?
    – cannyboy
    Commented Dec 29, 2021 at 23:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .