From: Josh Coalson
- flac will be invoked one of two ways, depending on whether you are encoding or decoding: + flac will be invoked one of three ways, depending on whether you are encoding, decoding, or testing:
- In either case, inputfile may be "-" for stdin, and "-" for stdout. The encoding options affect the compression ratio and encoding speed. The format options are used to tell flac the arrangement of samples if the input file (or output file when decoding) is a raw file. If it is a RIFF WAVE file the format options are not needed since they are read from the WAVE header. + In either case, inputfile may be "-" for stdin, and the outputfile "-" for stdout. The encoding options affect the compression ratio and encoding speed. The format options are used to tell flac the arrangement of samples if the input file (or output file when decoding) is a raw file. If it is a RIFF WAVE file the format options are not needed since they are read from the WAVE header. +
++ In test mode, flac acts just like in decode mode, except no output file is written. Both decode and test modes detect errors in the stream, but they also detect when the MD5 signature of the decoded audio does not match the stored MD5 signature, even when the bitstream is valid.
@@ -137,7 +143,15 @@ -d | - Decode (flac encodes by default). + Decode (flac encodes by default). flac will exit with an exit code of 1 (and print a message, even in silent mode) if there were any errors during decoding, including when the MD5 checksum does not match the decoded output. Otherwise the exit code will be 0. + | +
+ -t + | ++ Test (same as -d except no decoded file is written). The exit codes are the same as in decode mode. |
- Skip over the first # of samples of the input. This works for both encoding and decoding. + Skip over the first # of samples of the input. This works for both encoding and decoding, but not testing. |