1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-19 06:07:44 +02:00
wiki/wiki/linux/flac_(package).md
2023-01-09 23:58:14 +01:00

31 lines
1.1 KiB
Markdown

# flac (Package)
This article describes the `flac` package on linux.
For the audio codec see the [flac entry](../flac_(codec).md)
`flac` is a package to work with the [flac codec](../flac_(codec).md).
## Setup
On most distributions it is bundled together with the command line tagging
software `metaflac` and other auxiliary tools in the `flac` package.
Another possible tagging software is [MusicBrainz Picard](../picard.md)
## Usage
### Splitting Flac file according to cue file
An easy way to split flac files according to a [cue file](../cue_sheet.md) is
using `cuebreakpoints` and `shnsplit`.
On most distributions they are in a package with the same name.
The following line of shell command splits a flac file according to a cue file.
The `-o` tag specifies the output file format.
If problems arise when splitting up the file it is recommended to convert the
file to the also lossless `.wav`, split the files and convert it back to
`.flac`.
```sh
cuebreakpoints '<cue file>' | shnsplit -o flac '<audio flac file>'
```
Omitting of the `-o` flag will result in output files with the `.wav` filetype.