Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sox for converting flac file to 320 bit mp3

Tags:

bitrate

sox

lame

I have installed sox with support for both mp3 and flac.

The below command also successfully converts flac to mp3

sox /song_files/Daughter_of_Evil.flac /song_files/Daughter_of_Evil.mp3

My problem is that the "Daughter_of_Evil.mp3" is not 320 bit mp3. I tried to specify sampling rate of 44100. But that did not change the bit rate. It stays at 128kbps.

How can I directly generate 320 bit mp3 file for above flac file.

I can convert 128 bit mp3 to 320 bit mp3 using LAME. But the quality is already lost in 128 bit mp3 file generated above. Hence I want it done in single step.

Thanks

like image 538
user1058797 Avatar asked Aug 16 '13 06:08

user1058797


1 Answers

You are looking for the -C option to SoX:

sox input.flac -C 320 output.mp3
like image 138
chirlu Avatar answered Oct 22 '22 15:10

chirlu