diff --git a/wiki/linux/flac_(package).md b/wiki/linux/flac_(package).md index 1ecff12..33ced9d 100644 --- a/wiki/linux/flac_(package).md +++ b/wiki/linux/flac_(package).md @@ -12,7 +12,41 @@ Another possible tagging software is [MusicBrainz Picard](../picard.md) ## Usage +This section addresses the usage of the flac package. + ### Splitting Flac file according to cue file `shnsplit` can be used to split flac files. In the [shnsplit article](/wiki/linux/shntool.md) an explanation on this is given. + +### Compress or Recompress `.wav` and `.flac` files + +`.flac` and `.wav` files can be compressed with the following command. +In this `` is the path to the music file but can also use wildcards (for example +`*.wav`). +`` is the compression rate. +The highest compression preset is `8`. + +```sh +flac - +``` + +When recompressing `.flac` files the file does not have to be decoded to encode it again but can be +recompressed in one command. + +According to a +[Reddit comment by berdmayne](https://www.reddit.com/r/foobar2000/comments1m3634l/best_way_to_reduce_flac_file_size_without_losing) +the compression rates of the different levels are the following. + +| Level | Saving to level 0 | Saving to previous level | +| ---------------- | ------------------- | ------------------------ | +| 0 (uncompressed) | 0.0% | | +| 1 | 0.5% | 0.5% | +| 2 | 0.9% | 0.4% | +| 3 | 5.3% | 4.4% | +| 4 | 6.0% | 0.7% | +| 5 | 6.4% | 0.4% | +| 6 | 6.7% | 0.4% | +| 7 | 6.9% | 0.2% | +| 8 | 7.0% | 0.1% | +