Discussion:
[SoX-users] Concatenating MP3s Without Re-Encoding
Alex Durham
2017-03-16 20:20:18 UTC
Permalink
What is the command to concatenate a bunch of MP3s in a directory
without re-encoding? I tried a few things but SOX re-encodes to
128bits.
Eric Wong
2017-03-16 22:03:17 UTC
Permalink
Post by Alex Durham
What is the command to concatenate a bunch of MP3s in a directory
without re-encoding? I tried a few things but SOX re-encodes to
128bits.
It's not possible to do this with sox; the first thing sox does
is unencode/uncompress the audio to PCM before doing anything
further with the audio, including concatenation.

There might be other tools which can work natively with mp3s
without transocding, but I'm not knowledgeable of them.
Maybe others can help you, here.
Måns Rullgård
2017-03-17 01:46:54 UTC
Permalink
Post by Eric Wong
Post by Alex Durham
What is the command to concatenate a bunch of MP3s in a directory
without re-encoding? I tried a few things but SOX re-encodes to
128bits.
It's not possible to do this with sox; the first thing sox does
is unencode/uncompress the audio to PCM before doing anything
further with the audio, including concatenation.
There might be other tools which can work natively with mp3s
without transocding, but I'm not knowledgeable of them.
Maybe others can help you, here.
Plain old "cat" will do it if there are no ID3 tags.
--
Måns Rullgård
Loading...