How to transcode/convert existing Flacs to 16bit / 44100Hz while importing? #5401
-
Hi! In my collection I have some huge Flac files with different frequencies and sample rates. Now I'd like to convert (or transcode) these to 16bit / 44100Hz Flac files. The command:
does the job. But while the "beet convert" doesn't convert Flacs to Flacs... instead (so it says in the docs) it just copies the file. How can I change this behaviour to not ignore existing Flac files while importing? Ideally only ignoring Flac files that already are in the 16bit / 44100Hz fomat... Thanks for reading and maybe some help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
The convert plugin does exactly what you're asking! I'm not sure which part of the docs you read but you can definitely convert FLACs and use your own custom ffmpeg command. Here's an example configuration for the plugin. convert:
format: flac
max_bitrate: ????
formats:
flac:
command: ffmpeg -i $source -y -sample_fmt s16 -ar 44100 -dither_method triangular $dest
extension: flac The operative option here is
So set this to a number that you don't want songs to go above, and it will convert everything that goes above it with the given FLAC command. You can also run the FLAC command manually but this should do it automatically. As always, test this on a test library and group of files to make sure that it won't ruin your music and behaves how you'd like. |
Beta Was this translation helpful? Give feedback.
-
Be cautious. To reduce the chance of artifacts, people recommend downsampling to a common factor. 192 kHz or 96 kHz converts to 48 kHz SoX allegedly does not produce artifacts. I don't know if ffmpeg produces artifacts. https://sourceforge.net/projects/sox/ |
Beta Was this translation helpful? Give feedback.
The convert plugin does exactly what you're asking! I'm not sure which part of the docs you read but you can definitely convert FLACs and use your own custom ffmpeg command. Here's an example configuration for the plugin.
The operative option here is
max_bitrate
. Copying directly from the docs:max_bitrate: By default, the plugin does not transcode files that are already in the destination format. This option instead also transcodes files with high bitrates, even if they are already in the same format as the ou…