Re: 24bit/96khz FLAC audio to MP3 320k
Reply #3 – 2018-06-27 16:13:45
I'm using b320 (the highest quality preset). 320 kbps CBR is an overkill. Go V0 (~256 kbps VBR) - not only guys above, but even HydrogenAudio wiki says it's better option.Do I need to tweak any setting when the source is Hi-Res audio? In LAME? Apart from changing that bitrate, no. But before feeding the audio to the LAME? I think yes. Not only sample rate is higher than LAME's maximum, but you should reduce the bit depth, too. LAME's internal resampler is known for having poor quality. SoX has perfect resampler and built-in dithering. When you feed the audio to LAME, there are some tweaks you can apply to all your audio, not only Hi-Res. This is technically correct command line that will retain the most quality from your audio. LAME settings from the second line are applicable to all audio, either CD or Hi-Res.sox input.wav -b 16 resampled.wav rate 44100 dither lame -m j --clipdetect -h -V 0 resampled.wav output.mp3 Explaination: I think that SoX line is self-explanatory. However, BE CAREFUL OF CLIPPING. If you get clipping warning, write gain -1 before rate effect. If audio still clips, reduce gain even more till you get no warnings. LAME line needs more explanation.-m j forces joint stereo (L/R or M/S, which is more efficient in particular MP3 frame).--clipdetect does accurate clipping check. If audio clips, write --scale 0.99 (or --gain -0.5 if you have LAME 3.100) and reduce the scale (or gain) till audio doesn't clip.-h means highest quality MP3 encoding.-V 0 = ~256 kbps VBR. Happy listening!