-
Notifications
You must be signed in to change notification settings - Fork 31
conversions
Bloated releases in 24bit FLAC may not be the ideal format to upload; a MP3 alternative
to an existing FLAC may also be desirable. Salmon commands to easily make these
conversions are transcode
and downconv
, which convert FLAC to MP3 320 or V0 and
downconvert and, if necessary, downsample 24bit FLAC to 16bit FLAC, respectively.
Downconversions will detect the sample rate and downsample the FLAC with a common
multiple. Sample rates in the 44.1kHz bracket will be downsampled to 44.1kHz, and those
in the 48kHz bracket will be downsampled to 48kHz.
Folder names will be manipulated so the resultant converted directory does not share a
folder name with the source directory. For downconversions, this means that 24bit FLAC
or similar variations will be replaced by FLAC
. For transcodes, FLAC
will be replaced
by MP3 and the bitrate/preset appended to the folder name. If any replacement values are
not present in the source folder name, they will be appended to the folder name.
If you wish to use the transcoding commands, you must have ffmpeg
installed.
You can also recompress FLAC with salmon using the compress
command.
320
or V0
must be specified with the --bitrate
/ -b
flag. Only FLAC files will be
transcoded to MP3. All other files will be copied. This command will error if lossy files
are found in the folder.
$ ./run.py transcode -b 320 dir-lossless Transcoding 01. Chaplan Candy.flac [5 left to transcode] Transcoding 02. A.I..flac [4 left to transcode] Transcoding 03. Lowline.flac [3 left to transcode] Transcoding 04. All I Want.flac [2 left to transcode] Transcoding 05. Let Go.flac [1 left to transcode] Transcoding 06. Outro.flac [0 left to transcode] Copied Cover.jpg
Only the 24bit FLACs in the folder will be downconverted. All other files, including 16bit FLACs, will be copied to the destination folder.
$ ./run.py downconv dir-24bit-lossless Copied Cover.jpg Converting 01. Chaplan Candy.flac [5 left to convert] Converting 02. A.I..flac [4 left to convert] Converting 03. Lowline.flac [3 left to convert] Converting 04. All I Want.flac [2 left to convert] Converting 05. Let Go.flac [1 left to convert] Converting 06. Outro.flac [0 left to convert]
This will recompress all FLAC files in the folder to FLAC level 8.
$ ./run.py compress Rising\ Appalachia\ -\ Wider\ Circles\ \(2015\)\ \{Self-Released\} Recompressing 01. Novels of Acquaintance.flac... Recompressing 02. Lean In.flac... Recompressing 03. Fall On My Knees.flac... Recompressing 04. Rivermouth.flac... Recompressing 05. Oh Death.flac... Recompressing 06. An Invitation.flac... Recompressing 07. Medicine.flac... Recompressing 08. Find Your Way.flac... Recompressing 09. Synchronicity.flac... Recompressing 10. Cripple Creek.flac... Recompressing 11. Condensation (Interlude).flac... Recompressing 12. Spirit's Cradle.flac... Recompressing 13. Wider Circles.flac... Recompressing 14. Bright Morning Stars _ Botawak.flac... Recompressing 15. Stromboli.flac...