From c28331964b9f5ad05a841615f7ce8ff68ca0547b Mon Sep 17 00:00:00 2001 From: AberDerBart Date: Tue, 9 Jan 2018 01:47:05 +0100 Subject: [PATCH 1/4] flac: add page --- pages/common/flac.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/flac.md diff --git a/pages/common/flac.md b/pages/common/flac.md new file mode 100644 index 000000000..3d1a8af7b --- /dev/null +++ b/pages/common/flac.md @@ -0,0 +1,16 @@ +# flac + +> Encodes, decodes and tests flac files. + + +- Encode a wav file to flac, writing to /path/to/file.flac: + +`flac {{/path/to/file.wav}}` + +- Decode a flac file to wav, specifying the output file: + +`flac -d --output-name {{/path/to/output.wav}} {{/path/to/input.flac}}` + +- Test a flac file: + +`flac -t {{/path/to/file.flac}}` From b4d2f582987449028906c0e304a4a599018aefaf Mon Sep 17 00:00:00 2001 From: AberDerBart Date: Tue, 9 Jan 2018 09:15:57 +0100 Subject: [PATCH 2/4] flac: introduce -o/--output-name with encode --- pages/common/flac.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/common/flac.md b/pages/common/flac.md index 3d1a8af7b..cd68dd569 100644 --- a/pages/common/flac.md +++ b/pages/common/flac.md @@ -2,15 +2,18 @@ > Encodes, decodes and tests flac files. - - Encode a wav file to flac, writing to /path/to/file.flac: `flac {{/path/to/file.wav}}` +- 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: -`flac -d --output-name {{/path/to/output.wav}} {{/path/to/input.flac}}` +`flac -d --output-name {{/path/to/output.wav}} {{/path/to/file.flac}}` -- Test a flac file: +- Test a flac file for correct encoding: `flac -t {{/path/to/file.flac}}` From 75ce4244d599ab6fb81fda50b42413ceffc0d9d7 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Tue, 9 Jan 2018 13:56:49 +0530 Subject: [PATCH 3/4] flac: match conventions - Removed preceding / from file paths - Made the output flag to be consistent on both examples -Clarified the output file location in the first example --- pages/common/flac.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/common/flac.md b/pages/common/flac.md index cd68dd569..b7aa4d399 100644 --- a/pages/common/flac.md +++ b/pages/common/flac.md @@ -2,18 +2,18 @@ > Encodes, decodes and tests flac files. -- Encode a wav file to flac, writing to /path/to/file.flac: +- Encode a wav file to flac (this will create a flac file in the same location as the wav file): -`flac {{/path/to/file.wav}}` +`flac {{path/to/file.wav}}` - Encode a wav file to flac, specifying the output file: -`flac -o {{/path/to/output.flac}} {{/path/to/file.wav}}` +`flac -o {{path/to/output.flac}} {{path/to/file.wav}}` - Decode a flac file to wav, specifying the output file: -`flac -d --output-name {{/path/to/output.wav}} {{/path/to/file.flac}}` +`flac -d -o {{path/to/output.wav}} {{path/to/file.flac}}` - Test a flac file for correct encoding: -`flac -t {{/path/to/file.flac}}` +`flac -t {{path/to/file.flac}}` From 5b9bafc4ac46748559f8b4b7796649c7e33e4205 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 9 Jan 2018 18:39:53 +0000 Subject: [PATCH 4/4] Fix teensy grammatical mistake --- pages/common/flac.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/flac.md b/pages/common/flac.md index b7aa4d399..9c6c99e75 100644 --- a/pages/common/flac.md +++ b/pages/common/flac.md @@ -14,6 +14,6 @@ `flac -d -o {{path/to/output.wav}} {{path/to/file.flac}}` -- Test a flac file for correct encoding: +- Test a flac file for the correct encoding: `flac -t {{path/to/file.flac}}`