how to use sox to compress mp3?
Asked Answered
G

1

7

I'd like to reduce the file size of some mp3 audios with sox. I think I can reduce stereo to only 1 channel (i.e. mono), reduce the sample rate and reduce the bit-depth. I find it seems sox can do none of that. Is this true or did I have done it correctly?

$ sox -r 8000 -c 1 2008-12-28-2.MP3 foo.mp3
sox WARN formats: can't set sample rate 8000; using 44100
sox WARN formats: can't set 1 channels; using 2
Grannia answered 16/3, 2012 at 15:34 Comment(2)
Have you tried converting it to another format, like wav or au, before converting it back to mp3?Hylotheism
no. why converting to wav at first?Grannia
H
7

The arguments should go before the output file:

sox 2008-12-28-2.MP3 -r 8000 -c 1 foo.mp3

They can also be supplied as effects:

sox 2008-12-28-2.MP3 foo.mp3 remix 1 rate 8000
Helterskelter answered 7/9, 2012 at 13:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.