MP3 and FLAC audio formats Part 4

Does the encoder setting affect the sound quality when compressing in FLAC? What compression ratio should I choose?

The FLAC encoder settings do not affect the sound quality at all. Only the size of the resulting files and the time spent on compression can depend on them, and even that is negligible. So most of the time I don’t bother and code in FLAC with the default settings, which I advise you to do as well. In rare cases, when you need to get files of the minimum size and have to save every byte, it makes sense to increase the compression ratio to the maximum value.
Does the cable box affect the sound quality when listening to FLAC material? What is the best way to play FLAC on your PC?
In the case of FLAC and other lossless formats, the decoder does not affect the sound quality, the original audio data is restored with bit precision during playback. Therefore, to listen to FLAC, you can use any player that supports this format and you personally like it. However, I will once again recommend foobar2000 as a time-tested all-in-one solution for playing music on Windows.
MP3 encoding and decoding with LAME
As mentioned above, in the case of MP3, the sound quality of the resulting files is directly dependent on the choice of the encoder and its settings during compression. To date, the LAME encoder provides the best results for this format. The original project site seems a bit confusing, so I’ll immediately give a link to the files. From the archive, we need the lame.exe file. We open the command line.
For a quick reference on using LAME, type lame –help (the information will be displayed) or lame –help> usage.txt (the information will be displayed in the uses.txt file). For detailed help, replace –help with –longhelp.
Let’s get straight to the compression functionality. Should bit rate and other compression settings be specified separately? No, this is completely optional, the developers did most of the work for us, making it as easy as possible to use the encoder. LAME has a set of presets (presets) that allow the user to obtain excellent results with a minimum of technical knowledge. Almost all presets use VBR (Variable Bit Rate) mode, which provides an optimal balance between sound quality and file size. The command invokes help for the lame presets –preset help. Let’s consider the most relevant presets.
The preset standard. Description of built-in help:
This preset should be “transparent” to most people in most music, with a fairly high quality.
The average bit rate when using the standard is 170-210 kbps, the HF cutoff starts at about 18.7 kHz. I recommend using this preset as the default mode, it is the most balanced in terms of combination of features.
Encode WAV to MP3 with this preset:
lame –preset standard infile.wav outfile.mp3, where infile.wav is the name of the source WAV file, outfile.mp3 is the name of the resulting MP3 file (the latter can be omitted).
Extreme preset. Description of built-in help:
If you have extremely good hearing and the same equipment, this preset will give you slightly higher-than-standard quality.
The average bit rate when extreme is used is 220-260 kbps, the high pass filter is not used. I recommend using this preset when you want to get MP3 with very high sound quality. When listening to music on an average computer, this preset, compared to the standard, generally does nothing more than increase the file size.
Encode WAV to MP3 with this preset:
lame –preset extreme infile.wav outfile.mp3