tldr/pages/common/flac.md

21 lines
531 B
Markdown
Raw Permalink Normal View History

2018-01-09 00:47:05 +00:00
# flac
> Encodes, decodes and tests FLAC files.
2019-06-07 11:58:14 +01:00
> More information: <https://xiph.org/flac>.
2018-01-09 00:47:05 +00:00
- Encode a WAV file to FLAC (this will create a FLAC file in the same location as the WAV file):
2018-01-09 00:47:05 +00:00
`flac {{path/to/file.wav}}`
2018-01-09 00:47:05 +00:00
- Encode a WAV file to FLAC, specifying the output file:
`flac -o {{path/to/output.flac}} {{path/to/file.wav}}`
- Decode a FLAC file to WAV, specifying the output file:
2018-01-09 00:47:05 +00:00
`flac -d -o {{path/to/output.wav}} {{path/to/file.flac}}`
2018-01-09 00:47:05 +00:00
- Test a FLAC file for the correct encoding:
2018-01-09 00:47:05 +00:00
`flac -t {{path/to/file.flac}}`