From 34cc68f24abfab632ed211237a52aaa61270234a Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Fri, 22 Dec 2006 02:53:20 +0000 Subject: [PATCH] reorganize to be more novice-friendly, add more docs --- doc/html/Makefile.am | 9 +- doc/html/changelog.html | 43 +- doc/html/comparison.html | 7 +- doc/html/developers.html | 82 +- doc/html/documentation.html | 1491 +------------------ doc/html/documentation_bugs.html | 107 ++ doc/html/documentation_format_overview.html | 130 ++ doc/html/documentation_tasks.html | 222 +++ doc/html/documentation_tools.html | 92 ++ doc/html/documentation_tools_flac.html | 1039 +++++++++++++ doc/html/documentation_tools_metaflac.html | 570 +++++++ doc/html/documentation_tools_plugins.html | 94 ++ doc/html/download.html | 76 +- doc/html/faq.html | 28 +- doc/html/features.html | 32 +- doc/html/format.html | 8 +- doc/html/id.html | 6 +- doc/html/index.html | 117 +- doc/html/{goals.html => itunes.html} | 56 +- doc/html/license.html | 6 +- doc/html/links.html | 8 +- doc/html/news.html | 8 +- doc/html/ogg_mapping.html | 6 +- 23 files changed, 2486 insertions(+), 1751 deletions(-) create mode 100644 doc/html/documentation_bugs.html create mode 100644 doc/html/documentation_format_overview.html create mode 100644 doc/html/documentation_tasks.html create mode 100644 doc/html/documentation_tools.html create mode 100644 doc/html/documentation_tools_flac.html create mode 100644 doc/html/documentation_tools_metaflac.html create mode 100644 doc/html/documentation_tools_plugins.html rename doc/html/{goals.html => itunes.html} (60%) diff --git a/doc/html/Makefile.am b/doc/html/Makefile.am index c5f27574..adbcc30d 100644 --- a/doc/html/Makefile.am +++ b/doc/html/Makefile.am @@ -26,15 +26,22 @@ doc_DATA = \ comparison.html \ developers.html \ documentation.html \ + documentation_bugs.html \ + documentation_format_overview.html \ + documentation_tasks.html \ + documentation_tools.html \ + documentation_tools_flac.html \ + documentation_tools_metaflac.html \ + documentation_tools_plugins.html \ download.html \ faq.html \ favicon.ico \ features.html \ flac.css \ format.html \ - goals.html \ id.html \ index.html \ + itunes.html \ license.html \ links.html \ news.html \ diff --git a/doc/html/changelog.html b/doc/html/changelog.html index 961b096b..5d247637 100644 --- a/doc/html/changelog.html +++ b/doc/html/changelog.html @@ -29,12 +29,8 @@  faq  |  news  |  download  | -  features  | -  goals  | -  format  | -  id  | -  comparison  |  documentation  | +  comparison  |  changelog  |  links  |  developers  @@ -53,7 +49,7 @@
- This is an informal changelog, a summary of changes in each release. (See also known bugs.) Particulary important for developers is the precise description of changes to the library interfaces. See also the porting guide for specific instructions on porting to newer versions of FLAC.
+ This is an informal changelog, a summary of changes in each release. (See also known bugs.) Particulary important for developers is the precise description of changes to the library interfaces. See also the porting guide for specific instructions on porting to newer versions of FLAC.

@@ -86,7 +82,7 @@
  • @@ -154,7 +150,7 @@
  • Better multichannel support
  • Large file (>2GB) support everywhere
  • flac now supports FLAC and Ogg FLAC as input to the encoder (e.g. can re-encode FLAC to FLAC) and preserve all the metadata like tags, etc.
  • -
  • New PICTURE metadata block for storing things like cover art, new --picture option to flac and --import-picture-from option to metaflac for importing pictures, new --export-picture-to option to metaflac for exporting pictures, and metadata API additions for searching for suitable pictures based on type, size and color constraints.
  • +
  • New PICTURE metadata block for storing things like cover art, new --picture option to flac and --import-picture-from option to metaflac for importing pictures, new --export-picture-to option to metaflac for exporting pictures, and metadata API additions for searching for suitable pictures based on type, size and color constraints.
  • Support for new REPLAYGAIN_REFERENCE_LOUDNESS tag.
  • Fixed a bug in Ogg FLAC encoding where metadata was not being updated properly. Existing Ogg FLAC files should be recoded to fix up the metadata, e.g. flac -Vf -S 10s --ogg file.ogg
  • In the developer libraries, the interface has been simplfied by merging the three decoding layers into a single class; ditto for the encoders. Also, libOggFLAC has been merged into libFLAC and libOggFLAC++ has been merged into libFLAC++ so there is a single API supporting both native FLAC and Ogg FLAC.
  • @@ -177,14 +173,14 @@
  • flac:
      -
    • Improved the -F option to allow decoding of FLAC files whose metadata is corrupted, and other kinds of severe corruption.
    • +
    • Improved the -F option to allow decoding of FLAC files whose metadata is corrupted, and other kinds of severe corruption.
    • Encoder can now take FLAC and Ogg FLAC as input. The output FLAC file will have all the same metadata as the original unless overridden with options on the command line.
    • Encoder can now take WAVEFORMATEXTENSIBLE WAVE files as input; decoder will output WAVEFORMATEXTENSIBLE WAVE files when necessary to conform to the latest Microsoft specifications.
    • Now properly supports AIFF and WAVEFORMATEXTENSIBLE multichannel input, performing necessary channel reordering both for encoding and decoding. WAVEFORMATEXTENSIBLE channel mask is also saved to a tag on encoding and restored on decoding for situations when there is no natural mapping to FLAC channel assignments.
    • Expanded support for "odd" sample resolutions to WAVE and AIFF input; all resolutions from 4 to 24 bits-per-sample now supported for all input types.
    • -
    • Added a new option --tag-from-file for setting a tag from file (e.g. for importing a cuesheet as a tag).
    • -
    • Added a new option --picture for adding pictures.
    • -
    • Added a new option --apodization for specifying the window function(s) to be used in LPC analysis.
    • +
    • Added a new option --tag-from-file for setting a tag from file (e.g. for importing a cuesheet as a tag).
    • +
    • Added a new option --picture for adding pictures.
    • +
    • Added a new option --apodization for specifying the window function(s) to be used in LPC analysis.
    • Added support for encoding from non-compressed AIFF-C (SF #1090933).
    • Importing of non-CDDA-compliant cuesheets now only issues a warning, not an error (see here).
    • MD5 comparison failures on decoding are now an error instead of a warning and will also return a non-zero exit code (SF #1493725).
    • @@ -205,11 +201,11 @@ metaflac:
      • Added support for read-only operations on Ogg FLAC files.
      • -
      • Added a new option --set-tag-from-file for setting a tag from file (e.g. for importing a cuesheet as a tag).
      • -
      • Added a new option --import-picture-from for importing pictures.
      • -
      • Added a new option --export-picture-to for exporting pictures.
      • -
      • Added shorthand operation --remove-replay-gain for removing ReplayGain tags.
      • -
      • --export-cuesheet-to now properly specifies the FLAC file name (SF #1272825).
      • +
      • Added a new option --set-tag-from-file for setting a tag from file (e.g. for importing a cuesheet as a tag).
      • +
      • Added a new option --import-picture-from for importing pictures.
      • +
      • Added a new option --export-picture-to for exporting pictures.
      • +
      • Added shorthand operation --remove-replay-gain for removing ReplayGain tags.
      • +
      • --export-cuesheet-to now properly specifies the FLAC file name (SF #1272825).
      • Importing of non-CDDA-compliant cuesheets now issues a warning.
      • Removed the following deprecated tag editing options; you should use the new option names shown instead:
          @@ -329,7 +325,7 @@
        • Sped up decoding by a few percent overall.
        • Sped up encoding when not using LPC (i.e. when using flac options -0, -1, -2, or -l 0).
        • Fixed a decoding bug that could cause sync errors with some ID3v1-tagged FLAC files.
        • -
        • Added HTML documentation for metaflac.
        • +
        • Added HTML documentation for metaflac.
      • @@ -347,7 +343,7 @@
      • flac:
          -
        • New option --input-size to manually specify the input size when encoding raw samples from stdin.
        • +
        • New option --input-size to manually specify the input size when encoding raw samples from stdin.
      • @@ -454,16 +450,16 @@
      • Ogg FLAC format:
          -
        • First official FLAC->Ogg bitstream mapping standardized (see new FLAC-to-Ogg mapping specification). See the documentation for the --ogg switch about having to re-encode older Ogg FLAC files.
        • +
        • First official FLAC->Ogg bitstream mapping standardized (see new FLAC-to-Ogg mapping specification). See the documentation for the --ogg switch about having to re-encode older Ogg FLAC files.
      • flac:
        • Print an error when output file already exists instead of automatically overwriting.
        • -
        • New option -f (--force) to force overwriting if the output file already exists.
        • -
        • New option --cue to select a specific section to decode using cuesheet track/index points.
        • -
        • New option --totally-silent to suppress all output.
        • +
        • New option -f (--force) to force overwriting if the output file already exists.
        • +
        • New option --cue to select a specific section to decode using cuesheet track/index points.
        • +
        • New option --totally-silent to suppress all output.
        • New (but undocumented) option --apply-replaygain-which-is-not-lossless which applies ReplayGain to the decoded output. See this thread for usage and caveats.
        • When encoding to Ogg FLAC, use a random serial number (instead of 0 as was done before) when a serial number is not specified.
        • When encoding multiple Ogg FLAC streams, --serial-number or random serial number sets the first number, which is then incremented for subsequent streams (before, the same serial number was used for all streams).
        • @@ -628,6 +624,7 @@
  • + - - - -
    - -
    -
    - metaflac -
    -
    -
    - metaflac is the command-line .flac file metadata editor. You can use it to list the contents of metadata blocks, edit, delete or insert blocks, and manage padding.
    -
    - metaflac takes a set of "options" (though some are not optional) and a set of FLAC files to operate on. There are three kinds of "options": -
      -
    • - Major operations, which specify a mode of operation like listing blocks, removing blocks, etc. These will have sub-operations describing exactly what is to be done. -
    • -
    • - Shorthand operations, which are convenient synonyms for major operations. For example, there is a shorthand operation --show-sample-rate that shows just the sample rate field from the STREAMINFO metadata block. -
    • -
    • - Global options, which affect all the operations. -
    • -
    - All of these are described in the tables below. At least one shorthand or major operation must be supplied. You can use multiple shorthand operations to do more than one thing to a file or set of files. Most of the common things to do to metadata have shorthand operations. As an example, here is how to show the MD5 signatures for a set of three FLAC files:
    -
    - metaflac --show-md5sum file1.flac file2.flac file3.flac
    -
    - Another example; this removes all DESCRIPTION and COMMENT tags in a set of FLAC files, and uses the --preserve-modtime global option to keep the FLAC file modification times the same (usually when files are edited the modification time is set to the current time):
    -
    - metaflac --preserve-modtime --remove-tag=DESCRIPTION --remove-tag=COMMENT file1.flac file2.flac file3.flac
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    - Global Options -
    - - --preserve-modtime - - Preserve the original modification time in spite of edits. -
    - - --with-filename - - Prefix each output line with the FLAC file name (the default if more than one FLAC file is specified). -
    - - --no-filename - - Do not prefix each output line with the FLAC file name (the default if only one FLAC file is specified) -
    - - --no-utf8-convert - - Do not convert tags from UTF-8 to local charset, or vice versa. This is useful for scripts. -
    - - --dont-use-padding - - By default metaflac tries to use padding where possible to avoid rewriting the entire file if the metadata size changes. Use this option to tell metaflac to not take advantage of padding this way. -
    -
    - -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Shorthand Operations -
    - - --show-md5sum - - Show the MD5 signature from the STREAMINFO block. -
    - - --show-min-blocksize - - Show the minimum block size from the STREAMINFO block. -
    - - --show-max-blocksize - - Show the maximum block size from the STREAMINFO block. -
    - - --show-min-framesize - - Show the minimum frame size from the STREAMINFO block. -
    - - --show-max-framesize - - Show the maximum frame size from the STREAMINFO block. -
    - - --show-sample-rate - - Show the sample rate from the STREAMINFO block. -
    - - --show-channels - - Show the number of channels from the STREAMINFO block. -
    - - --show-bps - - Show the # of bits per sample from the STREAMINFO block. -
    - - --show-total-samples - - Show the total # of samples from the STREAMINFO block. -
    - - --show-vendor-tag - - Show the vendor string from the VORBIS_COMMENT block. -
    - - --show-tag=NAME - - Show all tags where the the field name matches NAME. -
    - - --remove-tag=NAME - - Remove all tags whose field name is NAME. -
    - - --remove-first-tag=NAME - - Remove first tag whose field name is NAME. -
    - - --remove-all-tags - - Remove all tags, leaving only the vendor string. -
    - - --set-tag=FIELD - - Add a tag. The FIELD must comply with the Vorbis comment spec, of the form NAME=VALUE. If there is currently no tag block, one will be created. -
    - - --set-tag-from-file=FIELD - - Like --set-tag, except the VALUE is a filename whose contents will be read verbatim to set the tag value. Unless --no-utf8-convert is specified, the contents will be converted to UTF-8 from the local charset. This can be used to store a cuesheet in a tag (e.g. --set-tag-from-file="CUESHEET=image.cue"). Do not try to store binary data in tag fields! Use APPLICATION blocks for that. -
    - - --import-tags-from=FILE - - Import tags from a file. Use - for stdin. Each line should be of the form NAME=VALUE. Multi-line comments are currently not supported. Specify --remove-all-tags and/or --no-utf8-convert before --import-tags-from if necessary. If FILE is - (stdin), only one FLAC file may be specified. -
    - - --export-tags-to=FILE - - Export tags to a file. Use - for stdin. Each line will be of the form NAME=VALUE. Specify --no-utf8-convert if necessary. -
    - - --import-cuesheet-from=FILE - - Import a cuesheet from a file. Use - for stdin. Only one FLAC file may be specified. A seekpoint will be added for each index point in the cuesheet to the SEEKTABLE unless --no-cued-seekpoints is specified. -
    - - --export-cuesheet-to=FILE - - Export CUESHEET block to a cuesheet file, suitable for use by CD authoring software. Use - for stdout. Only one FLAC file may be specified on the command line. -
    - - --import-picture-from=SPECIFICATION - - Import a picture and store it in a PICTURE metadata block. See the flac option --picture for an explanation of the SPECIFICATION syntax. -
    - - --export-picture-to=FILE - - Export PICTURE block to a file. Use - for stdout. Only one FLAC file may be specified on the command line. The first PICTURE block will be exported unless --export-picture-to is preceded by a --block-number=# option to specify the exact metadata block to extract. Note that the block number is the one shown by --list. -
    - - --add-replay-gain - - Calculates the title and album gains/peaks of the given FLAC files as if all the files were part of one album, then stores them in the VORBIS_COMMENT block. The tags are the same as those used by vorbisgain. Existing ReplayGain tags will be replaced. If only one FLAC file is given, the album and title gains will be the same. Since this operation requires two passes, it is always executed last, after all other operations have been completed and written to disk. All FLAC files specified must have the same resolution, sample rate, and number of channels. The sample rate must be one of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, or 48 kHz. -
    - - --remove-replay-gain - - Removes the ReplayGain tags. -
    - - --add-seekpoint={#|X|#x|#s} - - Add seek points to a SEEKTABLE block:
    -
      -
    • - : a specific sample number for a seek point -
    • -
    • - : a placeholder point (always goes at the end of the SEEKTABLE) -
    • -
    • - #x : # evenly spaced seekpoints, the first being at sample 0 -
    • -
    • - #s : a seekpoint every # seconds; # does not have to be a whole number, it can be, for example, 9.5, meaning a seekpoint every 9.5 seconds -
    • -
    - If no SEEKTABLE block exists, one will be created. If one already exists, points will be added to the existing table, and any duplicates will be turned into placeholder points.
    - You may use many --add-seekpoint options; the resulting SEEKTABLE will be the unique-ified union of all such values. Example: --add-seekpoint=100x --add-seekpoint=3.5s will add 100 evenly spaced seekpoints and a seekpoint every 3.5 seconds.
    -
    - - --add-padding=# - - Add a padding block of the given length (in bytes). The overall length of the new block will be 4 + length; the extra 4 bytes is for the metadata block header. -
    -
    - -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Major Operations -
    - - --version - - Show the metaflac version number. -
    - - --list - - List the contents of one or more metadata blocks to stdout. By default, all metadata blocks are listed in text format. Use the following options to change this behavior:
    -
    - - --block-number=#[,#[...]]
    - An optional comma-separated list of block numbers to display. The first block, the STREAMINFO block, is block 0.
    -
    - - --block-type=type[,type[...]]
    - --except-block-type=type[,type[...]]
    - An optional comma-separated list of block types to be included or ignored with this option. Use only one of --block-type or --except-block-type. The valid block types are: STREAMINFO, PADDING, APPLICATION, SEEKTABLE, VORBIS_COMMENT. You may narrow down the types of APPLICATION blocks displayed as follows:
    - - - - - - - - - -
    APPLICATION:abcdThe APPLICATION block(s) whose textual representation of the 4-byte ID is "abcd"
    APPLICATION:0xXXXXXXXXThe APPLICATION block(s) whose hexadecimal big- endian representation of the 4-byte ID is "0xXXXXXXXX". For the example "abcd" above the hexadecimal equivalalent is 0x61626364
    -
    - - NOTE: if both --block-number and --[except-]block-type are specified, the result is the logical AND of both arguments.
    -
    - - --application-data-format=hexdump|text
    - If the application block you are displaying contains binary data but your --data-format=text, you can display a hex dump of the application data contents instead using --application-data-format=hexdump. -
    - - --remove - - Remove one or more metadata blocks from the metadata. Unless --dont-use-padding is specified, the blocks will be replaced with padding. You may not remove the STREAMINFO block.
    -
    - - --block-number=#[,#[...]]
    - --block-type=type[,type[...]]
    - --except-block-type=type[,type[...]]
    - See --list above for usage.
    -
    - - NOTE: if both --block-number and --[except-]block-type are specified, the result is the logical AND of both arguments. -
    - - --remove-all - - Remove all metadata blocks (except the STREAMINFO block) from the metadata. Unless --dont-use-padding is specified, the blocks will be replaced with padding. -
    - - --merge-padding - - Merge adjacent PADDING blocks into single blocks. -
    - - --sort-padding - - Move all PADDING blocks to the end of the metadata and merge them into a single block. -
    -
    - -
    - -
    - -
    - -
    - -
    -
    - All that is necessary is to copy libxmms-flac.so to the directory where XMMS looks for input plugins (usually /usr/lib/xmms/Input or $HOME/.xmms/Input). There is nothing else to configure. Make sure to restart XMMS before trying to play any .flac files. -
    - -
    - -
    - -
    - -
    -
    - The Winamp plugin should work for both Winamp2 and Winamp5. If you are using Winamp 2.x, all that is necessary is to copy in_flac.dll to the Plugins/ directory of your Winamp installation. There is nothing else to configure. Make sure to restart Winamp before trying to play any .flac files. -
    - -
    - -
    - -
    - -
    -
    - Bug tracking is done on the Sourceforge project page here. If you submit a bug, make sure and provide an email contact or use the Monitor feature.
    -
    - The following are major known bugs in the current (1.1.3) release: -
      -
    • - If your locale does not use "." for the decimal point, there is a bug that causes the default compression settings to be sub-optimal. You should add -A "tukey(0,5)" to your flac command string (or however "0.5" should be formatted for your locale). -
    • -
    • - If a corrupted FLAC file is used as input in FLAC-to-FLAC encoding, the transcoded FLAC file will have the audio data truncated after the first error. -
    • -
    • - When encoding to Ogg FLAC, if there are too many seek points (>240), the seek table will not have the offsets written back properly after encoding. -
    • -
    - The following are major known bugs in the 1.1.0 release: -
      -
    • - If you change the FLAC configuration options in the XMMS plugin while a FLAC file is playing, it can cause a crash or other bad things to happen. -
    • -
    - The following are major known bugs in the 1.0.4 release: -
      -
    • - All decoders prior to and including 1.0.4 have a bug that prevents them from skipping unknown metadata blocks properly. A FLAC file created by flac 1.1.0 containing a CUESHEET metadata block will not decode in 1.0.x decoders. -
    • -
    • - metaflac has a bug where, if --import-vc-from is used on a FLAC file that has no Vorbis comment block, the FLAC file can be corrupted. All FLAC files generated by 1.0.4 have a Vorbis comment block added automatically but files from 1.0.3 and before do not. This is fixed in CVS. -
    • -
    • - There is an odd bug in metaflac such that you must always use the --dont-use-padding option with --add-padding or the padding block won't be written. This is fixed in CVS. -
    • -
    -
    - -
    - -
    - -
    -
    - monkey -
    -
    -
    - Monkey's Audio comes with a nice GUI that many people are familiar with. It supports some external encoders, but not FLAC. However, the FLAC Windows distribution comes with a utility that allows you to replace one the of the supported lossless external codecs with FLAC. Here's how: -
      -
    • Copy flac.exe and flac_ren.exe to the External/ directory of the Monkey's Audio installation.
    • -
    • - Choose a supported encoder to replace: -
        -
      • Shorten - copy flac_mac.exe on top of External/shortn32.exe
      • -
      • WavPack - copy flac_mac.exe on top of both External/wavpack.exe and External/wvunpack.exe
      • -
      • RKAU - copy flac_mac.exe on top of External/rkau.exe
      • -
      - If you choose WavPack you will also be able to use the WavPack Configuration menu to add flac options. -
    • -
    • Now you can encode FLAC files as if you were using the replaced encoder. The renamed flac_mac.exe utility will call flac.exe and afterwards, flac_ren.exe will rename the resulting file to have the .flac extension.
    • -
    - Other front-ends may be wedged in the same way; if you have one in mind, post it to the flac-dev mailing list. + Keep in mind that the online version of the documentation will always apply to the latest release. For older releases, check the documentation included with the release package.
    diff --git a/doc/html/documentation_bugs.html b/doc/html/documentation_bugs.html new file mode 100644 index 00000000..516350e5 --- /dev/null +++ b/doc/html/documentation_bugs.html @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + FLAC - documentation + + + + + + +
    + + + +
    +  english  | +  russian  +
    + +
    + +
    + +
    +
    + The following are major known bugs in the current (1.1.3) release: +
      +
    • + If your locale does not use "." for the decimal point, there is a bug that causes the default compression settings to be sub-optimal. You should add -A "tukey(0,5)" to your flac command string (or however "0.5" should be formatted for your locale). +
    • +
    • + If a corrupted FLAC file is used as input in FLAC-to-FLAC encoding, the transcoded FLAC file will have the audio data truncated after the first error. +
    • +
    • + When encoding to Ogg FLAC, if there are too many seek points (>240), the seek table will not have the offsets written back properly after encoding. +
    • +
    +
    + +
    + +
    + +
    + +
    +
    + To report a bug, please go to the FLAC bug tracker (or appropriately the feature request tracker, patch page, or support page).
    +
    + First check that there is not already an existing request. If you do submit a new request, make sure and provide an email contact and use the Monitor feature.
    +
    + Note that we get many false bug reports from people with faulty hardware or who overclock their machines that FLAC is not working. Please do due diligence if you are getting FLAC encoding or decoding errors that it is not the fault of the hardware. FLAC encoding tends to highlight problems with bad RAM, corrupted files, and excessive overclocking. +
    + +
    + + + + + + diff --git a/doc/html/documentation_format_overview.html b/doc/html/documentation_format_overview.html new file mode 100644 index 00000000..f8e000d6 --- /dev/null +++ b/doc/html/documentation_format_overview.html @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + FLAC - documentation + + + + + + +
    + + + +
    +  english  | +  russian  +
    + +
    + +
    +
    + format +
    +
    +
    + The basic structure of a FLAC stream is: +
      +
    • The four byte string "fLaC"
    • +
    • The STREAMINFO metadata block
    • +
    • Zero or more other metadata blocks
    • +
    • One or more audio frames
    • +
    + The first four bytes are to identify the FLAC stream. The metadata that follows contains all the information about the stream except for the audio data itself. After the metadata comes the encoded audio data.
    +
    + METADATA
    +
    + FLAC defines several types of metadata blocks (see the format page for the complete list). Metadata blocks can be any length and new ones can be defined. A decoder is allowed to skip any metadata types it does not understand. Only one is mandatory: the STREAMINFO block. This block has information like the sample rate, number of channels, etc., and data that can help the decoder manage its buffers, like the minimum and maximum data rate and minimum and maximum block size. Also included in the STREAMINFO block is the MD5 signature of the unencoded audio data. This is useful for checking an entire stream for transmission errors.
    +
    + Other blocks allow for padding, seek tables, tags, cuesheets, and application-specific data. There are flac options for adding PADDING blocks or specifying seek points. FLAC does not require seek points for seeking but they can speed up seeks, or be used for cueing in editing applications.
    +
    + Also, if you have a need of a custom metadata block, you can define your own and request an ID here. Then you can reserve a PADDING block of the correct size when encoding, and overwrite the padding block with your APPLICATION block after encoding. The resulting stream will be FLAC compatible; decoders that are aware of your metadata can use it and the rest will safely ignore it.
    +
    + AUDIO DATA
    +
    + After the metadata comes the encoded audio data. Audio data and metadata are not interleaved. Like most audio codecs, FLAC splits the unencoded audio data into blocks, and encodes each block separately. The encoded block is packed into a frame and appended to the stream. The reference encoder uses a single block size for the whole stream but the FLAC format does not require it.
    +
    + BLOCKING
    +
    + The block size is an important parameter to encoding. If it is too small, the frame overhead will lower the compression. If it is too large, the modeling stage of the compressor will not be able to generate an efficient model. Understanding FLAC's modeling will help you to improve compression for some kinds of input by varying the block size. In the most general case, using linear prediction on 44.1kHz audio, the optimal block size will be between 2-6 ksamples. flac defaults to a block size of 4608 in this case. Using the fast fixed predictors, a smaller block size is usually preferable because of the smaller frame header.
    +
    + INTER-CHANNEL DECORRELATION
    +
    + In the case of stereo input, once the data is blocked it is optionally passed through an inter-channel decorrelation stage. The left and right channels are converted to center and side channels through the following transformation: mid = (left + right) / 2, side = left - right. This is a lossless process, unlike joint stereo. For normal CD audio this can result in significant extra compression. flac has two options for this: -m always compresses both the left-right and mid-side versions of the block and takes the smallest frame, and -M, which adaptively switches between left-right and mid-side.
    +
    + MODELING
    +
    + In the next stage, the encoder tries to approximate the signal with a function in such a way that when the approximation is subracted, the result (called the residual, residue, or error) requires fewer bits-per-sample to encode. The function's parameters also have to be transmitted so they should not be so complex as to eat up the savings. FLAC has two methods of forming approximations: 1) fitting a simple polynomial to the signal; and 2) general linear predictive coding (LPC). I will not go into the details here, only some generalities that involve the encoding options.
    +
    + First, fixed polynomial prediction (specified with -l 0) is much faster, but less accurate than LPC. The higher the maximum LPC order, the slower, but more accurate, the model will be. However, there are diminishing returns with increasing orders. Also, at some point (usually around order 9) the part of the encoder that guesses what is the best order to use will start to get it wrong and the compression will actually decrease slightly; at that point you will have to you will have to use the exhaustive search option -e to overcome this, which is significantly slower.
    +
    + Second, the parameters for the fixed predictors can be transmitted in 3 bits whereas the parameters for the LPC model depend on the bits-per-sample and LPC order. This means the frame header length varies depending on the method and order you choose and can affect the optimal block size.
    +
    + RESIDUAL CODING
    +
    + Once the model is generated, the encoder subracts the approximation from the original signal to get the residual (error) signal. The error signal is then losslessly coded. To do this, FLAC takes advantage of the fact that the error signal generally has a Laplacian (two-sided geometric) distribution, and that there are a set of special Huffman codes called Rice codes that can be used to efficiently encode these kind of signals quickly and without needing a dictionary.
    +
    + Rice coding involves finding a single parameter that matches a signal's distribution, then using that parameter to generate the codes. As the distribution changes, the optimal parameter changes, so FLAC supports a method that allows the parameter to change as needed. The residual can be broken into several contexts or partitions, each with it's own Rice parameter. flac allows you to specify how the partitioning is done with the -r option. The residual can be broken into 2^n partitions, by using the option -r n,n. The parameter n is called the partition order. Furthermore, the encoder can be made to search through m to n partition orders, taking the best one, by specifying -r m,n. Generally, the choice of n does not affect encoding speed but m,n does. The larger the difference between m and n, the more time it will take the encoder to search for the best order. The block size will also affect the optimal order.
    +
    + FRAMING
    +
    + An audio frame is preceded by a frame header and trailed by a frame footer. The header starts with a sync code, and contains the minimum information necessary for a decoder to play the stream, like sample rate, bits per sample, etc. It also contains the block or sample number and an 8-bit CRC of the frame header. The sync code, frame header CRC, and block/sample number allow resynchronization and seeking even in the absence of seek points. The frame footer contains a 16-bit CRC of the entire encoded frame for error detection. If the reference decoder detects a CRC error it will generate a silent block.
    +
    + MISCELLANEOUS
    +
    + As a convenience, the reference decoder knows how to skip ID3v1 and ID3v2 tags. Note however that the FLAC specification does not require compliant implementations to support ID3 in any form and their use is strongly discouraged.
    +
    + flac has a verify option -V that verifies the output while encoding. With this option, a decoder is run in parallel to the encoder and its output is compared against the original input. If a difference is found flac will stop with an error. +
    + +
    + + + + + + diff --git a/doc/html/documentation_tasks.html b/doc/html/documentation_tasks.html new file mode 100644 index 00000000..bc8d8fbe --- /dev/null +++ b/doc/html/documentation_tasks.html @@ -0,0 +1,222 @@ + + + + + + + + + + + + + + + + FLAC - documentation + + + + + + +
    + + + +
    +  english  | +  russian  +
    + +
    + +
    +
    + using flac +
    +
    +
    + Since FLAC is supported by so many different programs, it can be a daunting task for the new user to choose a suitable program. This page will walk you through the steps. First, choose your operating system: + +
    + +
    + +
    + +
    +
    + windows +
    +
    +
    +
    + Using iTunes? Sorry, due to iTunes' design we can't add FLAC support; ask Apple to support FLAC!
    +
    + If you want to play FLAC files, here is how with some popular players: + + If you want to rip CDs to FLAC, here is a short list of the most popular programs. Experts generally prefer EAC for the most accurate ripping. dbPowerAMP also does a fine job and is easier to set up. + + If you want to burn FLAC files to CD, here is a short list of the most popular programs: +
      +
    • Windows Media Player (WMP) - Sorry, Microsoft has made it impossible to burn FLAC to CD in WMP; hopefully this will change eventually.
    • + +
    • dbPowerAMP CD Writer - Install the FLAC plugin.
    • +
    • Burrrn - Supports burning from FLAC out of the box.
    • +
    • (more)
    • +
    + If you want to convert audio files to/from FLAC, there are quite a few programs: + +
    + +
    + +
    + +
    +
    + mac os x +
    +
    +
    +
    + Using iTunes? Sorry, due to iTunes' design we can't add FLAC support; ask Apple to support FLAC!
    +
    + If you want to play FLAC files, here is how with some popular players: + + If you want to rip CDs to FLAC, there are a few options: + + If you want to burn FLAC files to CD: + + If you want to convert audio files to/from FLAC: + +
    + +
    + +
    + +
    +
    + *nix +
    +
    +
    + In the Unix world, FLAC support is quite widespread and it's usually only a matter of installing packages, so here are a few pointers. See the software links section for many more.
    +
    + To play FLAC files: + + To rip CDs to FLAC: +
      +
    • Grip is a great ripping and encoding front end and can be easily configured to use flac. See this message on how to configure Grip for FLAC.
    • +
    • xmcd is a CD ripper with CDDB support as well as a player.
    • +
    • (more)
    • +
    + To burn FLAC files to CD, here is a short list of the most popular programs: +
      +
    • Arson: KDE ripper/burner
    • +
    • K3B: CD/DVD creator for Linux
    • +
    • (more)
    • +
    + To convert audio files to/from FLAC, there are quite a few programs: + +
    + +
    + + + + + + diff --git a/doc/html/documentation_tools.html b/doc/html/documentation_tools.html new file mode 100644 index 00000000..bdedb673 --- /dev/null +++ b/doc/html/documentation_tools.html @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + FLAC - documentation + + + + + + +
    + + + +
    +  english  | +  russian  +
    + +
    + +
    +
    + tools +
    +
    +
    + FLAC is a general purpose audio format supported by many programs, but in this section we are concentrating on just the official tools provided by the FLAC project: +
      +
    • flac - The command-line encoder and decoder.
    • +
    • metaflac - The command-line metadata editor.
    • +
    • plugins - Setting up the Winamp and XMMS plugins.
    • +
    + Other resources: +
      +
    • Bugs - How to report bugs and request features, and a list of known bugs in the FLAC tools.
    • +
    • Request Support - Support for the official FLAC tools. For other programs, use hydrogenaudio.org +
    • FLAC Mailing List - General discussion about FLAC, tools, releases, etc.
    • +
    +
    + See Getting FLAC for instructions on downloading and installing the official FLAC tools, or Using FLAC for instructions and guides on playing FLAC files, ripping CDs to FLAC, etc. +
    + +
    + + + + + + diff --git a/doc/html/documentation_tools_flac.html b/doc/html/documentation_tools_flac.html new file mode 100644 index 00000000..b23ba11d --- /dev/null +++ b/doc/html/documentation_tools_flac.html @@ -0,0 +1,1039 @@ + + + + + + + + + + + + + + + + FLAC - documentation + + + + + + +
    + + + +
    +  english  | +  russian  +
    + +
    + +
    +
    + flac +
    +
    +
    + Table of Contents + + General Usage
    +
    + flac is the command-line file encoder/decoder. The encoder currently supports as input RIFF WAVE, AIFF, FLAC or Ogg FLAC format, or raw interleaved samples. The decoder currently can output to RIFF WAVE or AIFF format, or raw interleaved samples. flac only supports linear PCM samples (in other words, no A-LAW, uLAW, etc.), and the input must be between 4 and 24 bits per sample. This is not a limitation of the FLAC format, just the reference encoder/decoder.
    +
    + flac assumes that files ending in ".wav" or that have the RIFF WAVE header present are WAVE files, files ending in ".aif" or ".aiff" or have the AIFF header present are AIFF files, and files ending in ".flac" or have the FLAC header present are FLAC files. This assumption may be overridden with a command-line option. It also assumes that files ending in ".ogg" of have the Ogg FLAC header present are Ogg FLAC files. Other than this, flac makes no assumptions about file extensions, though the convention is that FLAC files have the extension ".flac" (or ".fla" on ancient "8.3" file systems like FAT-16).
    +
    + Before going into the full command-line description, a few other things help to sort it out: 1) flac encodes by default, so you must use -d to decode; 2) the options -0 .. -8 (or --fast and --best) that control the compression level actually are just synonyms for different groups of specific encoding options (described later) and you can get the same effect by using the same options; 3) flac behaves similarly to gzip in the way it handles input and output files.
    +
    + flac will be invoked one of four ways, depending on whether you are encoding, decoding, testing, or analyzing: + + In any case, if no inputfile is specified, stdin is assumed. If only one inputfile is specified, it may be "-" for stdin. When stdin is used as input, flac will write to stdout. Otherwise flac will perform the desired operation on each input file to similarly named output files (meaning for encoding, the extension will be replaced with ".flac", or appended with ".flac" if the input file has no extension, and for decoding, the extension will be ".wav" for WAVE output and ".raw" for raw output). The original file is not deleted unless --delete-input-file is specified.
    +
    + If you are encoding/decoding from stdin to a file, you should use the -o option like so: +
      +
    • + flac [options] -o outputfile +
    • +
    • + flac -d [options] -o outputfile +
    • +
    + which are better than: +
      +
    • + flac [options] > outputfile +
    • +
    • + flac -d [options] > outputfile +
    • +
    + since the former allows flac to seek backwards to write the STREAMINFO or RIFF WAVE header contents when necessary.
    +
    + Also, you can force output data to go to stdout using -c.
    +
    + To encode or decode files that start with a dash, use -- to signal the end of options, to keep the filenames themselves from being treated as options: +
      +
    • + flac -V -- -01-filename.wav +
    • +
    + 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 or AIFF file the format options are not needed since they are read from the AIFF/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.
    +
    + flac can also re-encode FLAC files. In other words, you can specify a FLAC or Ogg FLAC file as an input to the encoder and it will decoder it and re-encode it according to the options you specify. It will also preserve all the metadata unless you override it with other options (e.g. specifying new tags, seekpoints, cuesheet, padding, etc.).
    +
    + flac has been tuned so that the default settings yield a good speed vs. compression tradeoff for many kinds of input. However, if you are looking to maximize the compression rate or speed, or want to use the full power of FLAC's metadata system, see About the FLAC Format.
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + General Options +
    + + -v, --version + + Show the flac version number. +
    + + -h, --help + + Show basic usage and a list of all options. Running flac without arguments shows the short help screen by default. +
    + + -H, --explain + + Show detailed explanation of usage and all options. Running flac without arguments shows the short help screen by default. +
    + + -d, --decode + + 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 + + Test (same as -d except no decoded file is written). The exit codes are the same as in decode mode. +
    + + -a, --analyze + + Analyze (same as -d except an analysis file is written). The exit codes are the same as in decode mode. This option is mainly for developers; the output will be a text file that has data about each frame and subframe. +
    + + -c, --stdout + + Write output to stdout. +
    + + -s, --silent + + Silent: do not show encoding/decoding statistics. +
    + + --totally-silent + + Do not print anything of any kind, including warnings or errors. The exit code will be the only way to determine successful completion. +
    + + -f, --force + + Force overwriting of output files. By default, flac warns that the output file already exists and continues to the next file. +
    + + -o filename,
    --output-name=filename +
    + Force the output file name (usually flac just changes the extension). May only be used when encoding a single file. May not be used in conjunction with --output-prefix. +
    + + --output-prefix=string + + Prefix each output file name with the given string. This can be useful for encoding/decoding files to a different directory. Make sure if your string is a path name that it ends with a trailing '/' slash. +
    + + --delete-input-file + + Automatically delete the input file after a successful encode or decode. If there was an error (including a verify error) the input file is left intact. +
    + + --skip={#|mm:ss.ss} + + Skip over the first # of samples of the input. This works for both encoding and decoding, but not testing. The alternative form mm:ss.ss can be used to specify minutes, seconds, and fractions of a second.
    +
    + Examples:
    +
    + --skip=123 : skip the first 123 samples of the input
    + --skip=1:23.45 : skip the first 1 minute and 23.45 seconds of the input +
    + + --until={#|[+|-]mm:ss.ss} + + Stop at the given sample number for each input file. This works for both encoding and decoding, but not testing. The given sample number is not included in the decoded output. The alternative form mm:ss.ss can be used to specify minutes, seconds, and fractions of a second. If a + sign is at the beginning, the --until point is relative to the --skip point. If a - sign is at the beginning, the --until point is relative to end of the audio.
    +
    + Examples:
    +
    + --until=123 : decode only the first 123 samples of the input (samples 0-122, stopping at 123)
    + --until=1:23.45 : decode only the first 1 minute and 23.45 seconds of the input
    + --skip=1:00 --until=+1:23.45 : decode 1:00.00 to 2:23.45
    + --until=-1:23.45 : decode everything except the last 1 minute and 23.45 seconds
    + --until=-0:00 : decode until the end of the input (the same as not specifying --until) +
    + + --ogg + + When encoding, generate Ogg FLAC output instead of native FLAC. Ogg FLAC streams are FLAC streams wrapped in an Ogg transport layer. The resulting file should have an '.ogg' extension and will still be decodable by flac.
    +
    + When decoding, force the input to be treated as Ogg FLAC. This is useful when piping input from stdin or when the filename does not end in '.ogg'.
    +
    + NOTE: Ogg FLAC files created prior to flac 1.1.1 used an ad-hoc mapping and do not support seeking. They should be decoded and re-encoded with flac 1.1.1 or later. +
    + + --serial-number=# + + When used with --ogg, specifies the serial number to use for the first Ogg FLAC stream, which is then incremented for each additional stream. When encoding and no serial number is given, flac uses a random number for the first stream, then increments it for each additional stream. When decoding and no number is given, flac uses the serial number of the first page. +
    +
    + +
    + +
    + + + + + + + + + + + + +
    + Analysis Options +
    + + --residual-text + + Includes the residual signal in the analysis file. This will make the file very big, much larger than even the decoded file. +
    + + --residual-gnuplot + + Generates a gnuplot file for every subframe; each file will contain the residual distribution of the subframe. This will create a lot of files. +
    +
    + +
    + +
    + + + + + + + + + + + + + +
    + Decoding Options +
    + + --cue=[#.#][-[#.#]] + + Set the beginning and ending cuepoints to decode. The optional first #.# is the track and index point at which decoding will start; the default is the beginning of the stream. The optional second #.# is the track and index point at which decoding will end; the default is the end of the stream. If the cuepoint does not exist, the closest one before it (for the start point) or after it (for the end point) will be used. If those don't exist, the start of the stream (for the start point) or end of the stream (for the end point) will be used. The cuepoints are merely translated into sample numbers then used as --skip and --until.
    +
    + Examples:
    +
    + --cue=- : decode the entire stream
    + --cue=4.1 : decode from track 4, index 1 to the end of the stream
    + --cue=4.1- : decode from track 4, index 1 to the end of the stream
    + --cue=-4.1 : decode from the beginning of the stream up to, but not including, track 4, index 1
    + --cue=2.1-2.4 : decode from track 2, index 1, up to, but not including, track 2, index 4
    + --cue=9.1-10.1 : decode from track 9 the way it would be played on a CD player; this works even if the CD has no 10th track. +
    + + -F,
    --decode-through-errors +
    + By default flac stops decoding with an error and removes the partially decoded file if it encounters a bitstream error. With -F, errors are still printed but flac will continue decoding to completion. Note that errors may cause the decoded audio to be missing some samples or have silent sections. +
    +
    + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Encoding Options +
    + + -V, --verify + + Verify the encoding process. With this option, flac will create a parallel decoder that decodes the output of the encoder and compares the result against the original. It will abort immediately with an error if a mismatch occurs. -V increases the total encoding time but is guaranteed to catch any unforseen bug in the encoding process. +
    + + --lax + + Allow encoder to generate non-Subset files. The resulting FLAC file may not be streamable or might have trouble being played in all players (especially hardware devices), so you should only use this option in combination with custom encoding options meant for archival. +
    + + --replay-gain + + Calculate ReplayGain values and store them as FLAC tags, similar to VorbisGain. Title gains/peaks will be computed for each input file, and an album gain/peak will be computed for all files. All input files must have the same resolution, sample rate, and number of channels. Only mono and stereo files are allowed, and the sample rate must be one of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, or 48 kHz. Also note that this option may leave a few extra bytes in a PADDING block as the exact size of the tags is not known until all files are processed.
    +
    + Note that this option cannot be used when encoding to standard output (stdout). +
    + + --cuesheet=FILENAME + + Import the given cuesheet file and store it in a CUESHEET metadata block. This option may only be used when encoding a single file. A seekpoint will be added for each index point in the cuesheet to the SEEKTABLE unless --no-cued-seekpoints is specified.
    +
    + The cuesheet file must be of the sort written by CDRwin, CDRcue, EAC, etc. See also cuesheet syntax. +
    + + --picture=SPECIFICATION + + Import a picture and store it in a PICTURE metadata block. More than one --picture command can be specified. The SPECIFICATION is a string whose parts are separated by | (pipe) characters. Some parts may be left empty to invoke default values. The format of SPECIFICATION is
    +
    +   [TYPE]|MIME-TYPE|[DESCRIPTION]|[WIDTHxHEIGHTxDEPTH[/COLORS]]|FILE
    +
    + TYPE is optional; it is a number from one of:
    +
      +
    • 0: Other
    • +
    • 1: 32x32 pixels 'file icon' (PNG only)
    • +
    • 2: Other file icon
    • +
    • 3: Cover (front)
    • +
    • 4: Cover (back)
    • +
    • 5: Leaflet page
    • +
    • 6: Media (e.g. label side of CD)
    • +
    • 7: Lead artist/lead performer/soloist
    • +
    • 8: Artist/performer
    • +
    • 9: Conductor
    • +
    • 10: Band/Orchestra
    • +
    • 11: Composer
    • +
    • 12: Lyricist/text writer
    • +
    • 13: Recording Location
    • +
    • 14: During recording
    • +
    • 15: During performance
    • +
    • 16: Movie/video screen capture
    • +
    • 17: A bright coloured fish
    • +
    • 18: Illustration
    • +
    • 19: Band/artist logotype
    • +
    • 20: Publisher/Studio logotype
    • +
    + The default is 3 (front cover). There may only be one picture each of type 1 and 2 in a file.
    +
    + MIME-TYPE is mandatory; for best compatibility with players, use pictures with MIME type image/jpeg or image/png. The MIME type can also be --> to mean that FILE is actually a URL to an image, though this use is discouraged.
    +
    + DESCRIPTION is optional; the default is an empty string.
    +
    + The next part specfies the resolution and color information. If the MIME-TYPE is image/jpeg, image/png, or image/gif, you can usually leave this empty and they can be detected from the file. Otherwise, you must specify the width in pixels, height in pixels, and color depth in bits-per-pixel. If the image has indexed colors you should also specify the number of colors used. When manually specified, it is not checked against the file for accuracy.
    +
    + FILE is the path to the picture file to be imported, or the URL if MIME type is -->
    +
    + For example, the specification |image/jpeg|||../cover.jpg will embed the JPEG file at ../cover.jpg, defaulting to type 3 (front cover) and an empty description. The resolution and color info will be retrieved from the file itself.
    +
    + The specification 4|-->|CD|320x300x24/173|http://blah.blah/backcover.tiff will embed the given URL, with type 4 (back cover), description "CD", and a manually specified resolution of 320x300, 24 bits-per-pixel, and 173 colors. The file at the URL will not be fetched; the URL itself is stored in the PICTURE metadata block. +
    + + --sector-align + + Align encoding of multiple CD format files on sector boundaries. This option is only allowed when encoding files all of which have a 44.1kHz sample rate and 2 channels. With --sector-align, the encoder will align the resulting .flac streams so that their lengths are even multiples of a CD sector (1/75th of a second, or 588 samples). It does this by carrying over any partial sector at the end of each file to the next stream. The last stream will be padded to alignment with zeroes.
    +
    + This option will have no effect if the files are already aligned (as is the normally the case with WAVE files ripped from a CD). flac can only align a set of files given in one invocation of flac.
    +
    + WARNING: The ordering of files is important! If you give a command like 'flac --sector-align *.wav' the shell may not expand the wildcard to the order you expect. To be safe you should 'echo *.wav' first to confirm the order, or be explicit like 'flac --sector-align 8.wav 9.wav 10.wav'. +
    + + -S {#|X|#x|#s},
    --seekpoint={#|X|#x|#s} +
    + Include a point or points in a SEEKTABLE:
    +
      +
    • + : a specific sample number for a seek point +
    • +
    • + : a placeholder point (always goes at the end of the SEEKTABLE) +
    • +
    • + #x : # evenly spaced seekpoints, the first being at sample 0 +
    • +
    • + #s : a seekpoint every # seconds; # does not have to be a whole number, it can be, for example, 9.5, meaning a seekpoint every 9.5 seconds +
    • +
    + You may use many -S options; the resulting SEEKTABLE will be the unique-ified union of all such values.
    + With no -S options, flac defaults to '-S 10s'. Use --no-seektable for no SEEKTABLE.
    + NOTE: -S #x and -S #s will not work if the encoder can't determine the input size before starting.
    + NOTE: if you use -S # and # is >= samples in the input, there will be either no seek point entered (if the input size is determinable before encoding starts) or a placeholder point (if input size is not determinable).
    +
    + + -P #, --padding=# + + Tell the encoder to write a PADDING metadata block of the given length (in bytes) after the STREAMINFO block. This is useful if you plan to tag the file later with an APPLICATION block; instead of having to rewrite the entire file later just to insert your block, you can write directly over the PADDING block. Note that the total length of the PADDING block will be 4 bytes longer than the length given because of the 4 metadata block header bytes. You can force no PADDING block at all to be written with --no-padding. The encoder writes a PADDING block of 8192 bytes by default (or 65536 bytes if the input audio stream is more than 20 minutes long). +
    + + -T FIELD=VALUE,
    --tag=FIELD=VALUE +
    + Add a FLAC tag. The comment must adhere to the Vorbis comment spec (which FLAC tags implement), i.e. the FIELD must contain only legal characters, terminated by an 'equals' sign. Make sure to quote the comment if necessary. This option may appear more than once to add several comments. NOTE: all tags will be added to all encoded files. +
    + + --tag-from-file=FIELD=FILENAME + + Like --tag, except FILENAME is a file whose contents will be read verbatim to set the tag value. The contents will be converted to UTF-8 from the local charset. This can be used to store a cuesheet in a tag (e.g. --tag-from-file="CUESHEET=image.cue"). Do not try to store binary data in tag fields! Use APPLICATION blocks for that. +
    + + -b #, --blocksize=# + + Specify the block size in samples. Subset streams must use one of 192/576/1152/2304/4608/256/512/1024/2048/4096 (and 8192/16384 if the sample rate is >48kHz). The reference encoder uses the same block size for the entire stream. +
    + + -m, --mid-side + + Enable mid-side coding (only for stereo streams). Tends to increase compression by a few percent on average. For each block both the stereo pair and mid-side versions of the block will be encoded, and smallest resulting frame will be stored. +
    + + -M, --adaptive-mid-side + + Enable adaptive mid-side coding (only for stereo streams). Like -m but the encoder adaptively switches between independent and mid-side coding, which is faster but yields less compression than -m (which does an exhaustive search). +
    + + -0 .. -8 + + Fastest compression .. highest compression. The default is -5. +
    + + -0, --compression-level-0 + + Synonymous with -l 0 -b 1152 -r 2,2 +
    + + -1, --compression-level-1 + + Synonymous with -l 0 -b 1152 -M -r 2,2 +
    + + -2, --compression-level-2 + + Synonymous with -l 0 -b 1152 -m -r 3 +
    + + -3, --compression-level-3 + + Synonymous with -l 6 -b 4608 -r 3,3 +
    + + -4, --compression-level-4 + + Synonymous with -l 8 -b 4608 -M -r 3,3 +
    + + -5, --compression-level-5 + + Synonymous with -l 8 -b 4608 -m -r 3,3 +
    + + -6, --compression-level-6 + + Synonymous with -l 8 -b 4608 -m -r 4 +
    + + -7, --compression-level-7 + + Synonymous with -l 8 -b 4608 -m -e -r 6 +
    + + -8, --compression-level-8 + + Synonymous with -l 12 -b 4608 -m -e -r 6 +
    + + --fast + + Fastest compression. Currently synonymous with -0 +
    + + --best + + Highest compression. Currently synonymous with -8 +
    + + -e,
    --exhaustive-model-search +
    + Exhaustive model search (expensive!). Normally the encoder estimates the best model to use and encodes once based on the estimate. With an exhaustive model search, the encoder will generate subframes for every order and use the smallest. If the max LPC order is high this can significantly increase the encode time but can shave off another 0.5%. +
    + + -A "function", --apodization="function" + + Window audio data with given the apodization function. The functions are: bartlett, bartlett_hann, blackman, blackman_harris_4term_92db, connes, flattop, gauss(STDDEV), hamming, hann, kaiser_bessel, nuttall, rectangle, triangle, tukey(P), welch.
    + For gauss(STDDEV), STDDEV is the standard deviation (0<STDDEV<=0.5).
    + For tukey(P), P specifies the fraction of the window that is tapered (0<=P<=1; P=0 corresponds to "rectangle" and P=1 corresponds to "hann").
    + More than one -A option (up to 32) may be used. Any function that is specified erroneously is silently dropped. The encoder chooses suitable defaults in the absence of any -A options; any -A option specified replaces the default(s).
    + When more than one function is specified, then for every subframe the encoder will try each of them separately and choose the window that results in the smallest compressed subframe. Multiple functions can greatly increase the encoding time.
    +
    + + -l #, --max-lpc-order=# + + Specifies the maximum LPC order. This number must be <= 32. For Subset streams, it must be <=12 if the sample rate is <=48kHz. If 0, the encoder will not attempt generic linear prediction, and use only fixed predictors. Using fixed predictors is faster but usually results in files being 5-10% larger. +
    + + -q #,
    --qlp-coeff-precision=# +
    + Specifies the precision of the quantized LP coefficients, in bits. The default is -q 0, which means let the encoder decide based on the signal. Unless you really know your input file it's best to leave this up to the encoder. +
    + + -p,
    --qlp-coeff-precision-search +
    + Do exhaustive LP coefficient quantization optimization. This option overrides any -q option. It is expensive and typically will only improve the compression a tiny fraction of a percent. -q has no effect when -l 0 is used. +
    + + -r [#,]#,
    --rice-partition-order=[#,]# +
    + Set the [min,]max residual partition order. The min value defaults to 0 if unspecified.
    +
    + By default the encoder uses a single Rice parameter for the subframe's entire residual. With this option, the residual is iteratively partitioned into 2^min# .. 2^max# pieces, each with its own Rice parameter. Higher values of max# yield diminishing returns. The most bang for the buck is usually with -r 2,2 (more for higher block sizes). This usually shaves off about 1.5%. The technique tends to peak out about when blocksize/(2^n)=128. Use -r 0,16 to force the highest degree of optimization. +
    +
    + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Format Options +
    + + --endian={big|little} + + Specify big-endian or little-endian byte order in the raw file. +
    + + --channels=# + + Specify the number of channels in the raw file. +
    + + --bps=# + + Specify the number of bits per sample in the raw file. +
    + + --sample-rate=# + + Specify the sample rate of the raw file. +
    + + --sign={signed|unsigned} + + Specify that the samples in the raw file are signed or unsigned (the default is signed). +
    + + --input-size=# + + Specify the size of the raw input in bytes. If you are encoding raw samples from stdin, you must set this option in order to be able to use --skip, --until, --cue-sheet, or other options that need to know the size of the input beforehand. If the size given is greater than what is found in the input stream, the encoder will complain about an unexpected end-of-file. If the size given is less, samples will be truncated. +
    + + --force-aiff-format + + Force the decoder to output AIFF format. This option is not needed if the output filename (as set by -o) ends with .aiff. Also, this option has no effect when encoding since input AIFF is auto-detected. +
    + + --force-raw-format + + Treat the input file (or output file if decoding) as a raw file, regardless of the extension. +
    +
    + +
    + +
    + + + + + + + + +
    + Negative Options +
    + --no-adaptive-mid-side
    + --no-decode-through-errors
    + --no-delete-input-file
    + --no-escape-coding
    + --no-exhaustive-model-search
    + --no-lax
    + --no-mid-side
    + --no-ogg
    + --no-padding
    + --no-qlp-coeff-precision-search
    + --no-residual-gnuplot
    + --no-residual-text
    + --no-sector-align
    + --no-seektable
    + --no-silent
    + --no-verify +
    + Can all be used to turn off a particular option. +
    +
    + +
    + Option Index
    +
    + -0
    + -1
    + -2
    + -3
    + -4
    + -5
    + -6
    + -7
    + -8
    + -A
    + -a
    + --adaptive-mid-side
    + --analyze
    + --apodization
    + + -b
    + --best
    + --blocksize
    + --bps
    + -c
    + --channels
    + --compression-level-0
    + --compression-level-1
    + --compression-level-2
    + --compression-level-3
    + --compression-level-4
    + --compression-level-5
    + --compression-level-6
    + --compression-level-7
    + --compression-level-8
    + --cue
    + --cuesheet
    + -d
    + --decode
    + --decode-through-errors
    + --delete-input-file
    + -e
    + --endian
    + --exhaustive-model-search
    + --explain
    + -F
    + -f
    + --fast
    + --force-aiff-format
    + --force-raw-format
    + --force
    + -H
    + -h
    + --help
    + --input-size
    + -l
    + --lax
    + -M
    + -m
    + --max-lpc-order
    + --mid-side
    + --no-adaptive-mid-side
    + --no-decode-through-errors
    + --no-delete-input-file
    + --no-escape-coding
    + --no-exhaustive-model-search
    + --no-lax
    + --no-mid-side
    + --no-ogg
    + --no-padding
    + --no-qlp-coeff-precision-search
    + --no-residual-gnuplot
    + --no-residual-text
    + --no-sector-align
    + --no-seektable
    + --no-silent
    + --no-verify
    + -o
    + --ogg
    + --output-name
    + --output-prefix
    + -P
    + -p
    + --padding
    + --picture
    + -q
    + --qlp-coeff-precision
    + --qlp-coeff-precision-search
    + -r
    + --replay-gain
    + --residual-gnuplot
    + --residual-text
    + --rice-partition-order
    + -S
    + -s
    + --sample-rate
    + --sector-align
    + --seekpoint
    + --serial-number
    + --sign
    + --silent
    + --skip
    + --stdout
    + -T
    + -t
    + --tag
    + --tag-from-file
    + --test
    + --totally-silent
    + --until
    + -V
    + -v
    + --verify
    + --version
    + +
    + +
    + + + + + + diff --git a/doc/html/documentation_tools_metaflac.html b/doc/html/documentation_tools_metaflac.html new file mode 100644 index 00000000..376846a0 --- /dev/null +++ b/doc/html/documentation_tools_metaflac.html @@ -0,0 +1,570 @@ + + + + + + + + + + + + + + + + FLAC - documentation + + + + + + +
    + + + +
    +  english  | +  russian  +
    + +
    + +
    +
    + metaflac +
    +
    +
    + Table of Contents + + General Usage
    +
    + metaflac is the command-line .flac file metadata editor. You can use it to list the contents of metadata blocks, edit, delete or insert blocks, and manage padding.
    +
    + metaflac takes a set of "options" (though some are not optional) and a set of FLAC files to operate on. There are three kinds of "options": +
      +
    • + Major operations, which specify a mode of operation like listing blocks, removing blocks, etc. These will have sub-operations describing exactly what is to be done. +
    • +
    • + Shorthand operations, which are convenient synonyms for major operations. For example, there is a shorthand operation --show-sample-rate that shows just the sample rate field from the STREAMINFO metadata block. +
    • +
    • + Global options, which affect all the operations. +
    • +
    + All of these are described in the tables below. At least one shorthand or major operation must be supplied. You can use multiple shorthand operations to do more than one thing to a file or set of files. Most of the common things to do to metadata have shorthand operations. As an example, here is how to show the MD5 signatures for a set of three FLAC files:
    +
    + metaflac --show-md5sum file1.flac file2.flac file3.flac
    +
    + Another example; this removes all DESCRIPTION and COMMENT tags in a set of FLAC files, and uses the --preserve-modtime global option to keep the FLAC file modification times the same (usually when files are edited the modification time is set to the current time):
    +
    + metaflac --preserve-modtime --remove-tag=DESCRIPTION --remove-tag=COMMENT file1.flac file2.flac file3.flac
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    + Global Options +
    + + --preserve-modtime + + Preserve the original modification time in spite of edits. +
    + + --with-filename + + Prefix each output line with the FLAC file name (the default if more than one FLAC file is specified). +
    + + --no-filename + + Do not prefix each output line with the FLAC file name (the default if only one FLAC file is specified) +
    + + --no-utf8-convert + + Do not convert tags from UTF-8 to local charset, or vice versa. This is useful for scripts. +
    + + --dont-use-padding + + By default metaflac tries to use padding where possible to avoid rewriting the entire file if the metadata size changes. Use this option to tell metaflac to not take advantage of padding this way. +
    +
    + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Shorthand Operations +
    + + --show-md5sum + + Show the MD5 signature from the STREAMINFO block. +
    + + --show-min-blocksize + + Show the minimum block size from the STREAMINFO block. +
    + + --show-max-blocksize + + Show the maximum block size from the STREAMINFO block. +
    + + --show-min-framesize + + Show the minimum frame size from the STREAMINFO block. +
    + + --show-max-framesize + + Show the maximum frame size from the STREAMINFO block. +
    + + --show-sample-rate + + Show the sample rate from the STREAMINFO block. +
    + + --show-channels + + Show the number of channels from the STREAMINFO block. +
    + + --show-bps + + Show the # of bits per sample from the STREAMINFO block. +
    + + --show-total-samples + + Show the total # of samples from the STREAMINFO block. +
    + + --show-vendor-tag + + Show the vendor string from the VORBIS_COMMENT block. +
    + + --show-tag=NAME + + Show all tags where the the field name matches NAME. +
    + + --remove-tag=NAME + + Remove all tags whose field name is NAME. +
    + + --remove-first-tag=NAME + + Remove first tag whose field name is NAME. +
    + + --remove-all-tags + + Remove all tags, leaving only the vendor string. +
    + + --set-tag=FIELD + + Add a tag. The FIELD must comply with the Vorbis comment spec, of the form NAME=VALUE. If there is currently no tag block, one will be created. +
    + + --set-tag-from-file=FIELD + + Like --set-tag, except the VALUE is a filename whose contents will be read verbatim to set the tag value. Unless --no-utf8-convert is specified, the contents will be converted to UTF-8 from the local charset. This can be used to store a cuesheet in a tag (e.g. --set-tag-from-file="CUESHEET=image.cue"). Do not try to store binary data in tag fields! Use APPLICATION blocks for that. +
    + + --import-tags-from=FILE + + Import tags from a file. Use - for stdin. Each line should be of the form NAME=VALUE. Multi-line comments are currently not supported. Specify --remove-all-tags and/or --no-utf8-convert before --import-tags-from if necessary. If FILE is - (stdin), only one FLAC file may be specified. +
    + + --export-tags-to=FILE + + Export tags to a file. Use - for stdin. Each line will be of the form NAME=VALUE. Specify --no-utf8-convert if necessary. +
    + + --import-cuesheet-from=FILE + + Import a cuesheet from a file. Use - for stdin. Only one FLAC file may be specified. A seekpoint will be added for each index point in the cuesheet to the SEEKTABLE unless --no-cued-seekpoints is specified. +
    + + --export-cuesheet-to=FILE + + Export CUESHEET block to a cuesheet file, suitable for use by CD authoring software. Use - for stdout. Only one FLAC file may be specified on the command line. +
    + + --import-picture-from=SPECIFICATION + + Import a picture and store it in a PICTURE metadata block. See the flac option --picture for an explanation of the SPECIFICATION syntax. +
    + + --export-picture-to=FILE + + Export PICTURE block to a file. Use - for stdout. Only one FLAC file may be specified on the command line. The first PICTURE block will be exported unless --export-picture-to is preceded by a --block-number=# option to specify the exact metadata block to extract. Note that the block number is the one shown by --list. +
    + + --add-replay-gain + + Calculates the title and album gains/peaks of the given FLAC files as if all the files were part of one album, then stores them in the VORBIS_COMMENT block. The tags are the same as those used by vorbisgain. Existing ReplayGain tags will be replaced. If only one FLAC file is given, the album and title gains will be the same. Since this operation requires two passes, it is always executed last, after all other operations have been completed and written to disk. All FLAC files specified must have the same resolution, sample rate, and number of channels. The sample rate must be one of 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, or 48 kHz. +
    + + --remove-replay-gain + + Removes the ReplayGain tags. +
    + + --add-seekpoint={#|X|#x|#s} + + Add seek points to a SEEKTABLE block:
    +
      +
    • + : a specific sample number for a seek point +
    • +
    • + : a placeholder point (always goes at the end of the SEEKTABLE) +
    • +
    • + #x : # evenly spaced seekpoints, the first being at sample 0 +
    • +
    • + #s : a seekpoint every # seconds; # does not have to be a whole number, it can be, for example, 9.5, meaning a seekpoint every 9.5 seconds +
    • +
    + If no SEEKTABLE block exists, one will be created. If one already exists, points will be added to the existing table, and any duplicates will be turned into placeholder points.
    + You may use many --add-seekpoint options; the resulting SEEKTABLE will be the unique-ified union of all such values. Example: --add-seekpoint=100x --add-seekpoint=3.5s will add 100 evenly spaced seekpoints and a seekpoint every 3.5 seconds.
    +
    + + --add-padding=# + + Add a padding block of the given length (in bytes). The overall length of the new block will be 4 + length; the extra 4 bytes is for the metadata block header. +
    +
    + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Major Operations +
    + + --version + + Show the metaflac version number. +
    + + --list + + List the contents of one or more metadata blocks to stdout. By default, all metadata blocks are listed in text format. Use the following options to change this behavior:
    +
    + + --block-number=#[,#[...]]
    + An optional comma-separated list of block numbers to display. The first block, the STREAMINFO block, is block 0.
    +
    + + --block-type=type[,type[...]]
    + --except-block-type=type[,type[...]]
    + An optional comma-separated list of block types to be included or ignored with this option. Use only one of --block-type or --except-block-type. The valid block types are: STREAMINFO, PADDING, APPLICATION, SEEKTABLE, VORBIS_COMMENT. You may narrow down the types of APPLICATION blocks displayed as follows:
    + + + + + + + + + +
    APPLICATION:abcdThe APPLICATION block(s) whose textual representation of the 4-byte ID is "abcd"
    APPLICATION:0xXXXXXXXXThe APPLICATION block(s) whose hexadecimal big- endian representation of the 4-byte ID is "0xXXXXXXXX". For the example "abcd" above the hexadecimal equivalalent is 0x61626364
    +
    + + NOTE: if both --block-number and --[except-]block-type are specified, the result is the logical AND of both arguments.
    +
    + + --application-data-format=hexdump|text
    + If the application block you are displaying contains binary data but your --data-format=text, you can display a hex dump of the application data contents instead using --application-data-format=hexdump. +
    + + --remove + + Remove one or more metadata blocks from the metadata. Unless --dont-use-padding is specified, the blocks will be replaced with padding. You may not remove the STREAMINFO block.
    +
    + + --block-number=#[,#[...]]
    + --block-type=type[,type[...]]
    + --except-block-type=type[,type[...]]
    + See --list above for usage.
    +
    + + NOTE: if both --block-number and --[except-]block-type are specified, the result is the logical AND of both arguments. +
    + + --remove-all + + Remove all metadata blocks (except the STREAMINFO block) from the metadata. Unless --dont-use-padding is specified, the blocks will be replaced with padding. +
    + + --merge-padding + + Merge adjacent PADDING blocks into single blocks. +
    + + --sort-padding + + Move all PADDING blocks to the end of the metadata and merge them into a single block. +
    +
    + +
    + Option Index
    +
    + --add-padding
    + --add-replay-gain
    + --add-seekpoint
    + --dont-use-padding
    + --export-cuesheet-to
    + --export-picture-to
    + --export-tags-to
    + --import-cuesheet-from
    + --import-picture-from
    + --import-tags-from
    + --list
    + --merge-padding
    + --no-filename
    + --no-utf8-convert
    + --preserve-modtime
    + --remove-all-tags
    + --remove-all
    + --remove-first-tag
    + --remove-replay-gain
    + --remove-tag
    + --remove
    + --set-tag-from-file
    + --set-tag
    + --show-bps
    + --show-channels
    + --show-max-blocksize
    + --show-max-framesize
    + --show-md5sum
    + --show-min-blocksize
    + --show-min-framesize
    + --show-sample-rate
    + --show-tag
    + --show-total-samples
    + --show-vendor-tag
    + --sort-padding
    + --version
    + --with-filename
    + +
    + +
    + + + + + + diff --git a/doc/html/documentation_tools_plugins.html b/doc/html/documentation_tools_plugins.html new file mode 100644 index 00000000..d9c33a70 --- /dev/null +++ b/doc/html/documentation_tools_plugins.html @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + FLAC - documentation + + + + + + +
    + + + +
    +  english  | +  russian  +
    + +
    + +
    + +
    +
    + Normally the FLAC plugin for XMMS is installed with a package, but some of the binary builds have a compiled plugin. All that is necessary is to copy libxmms-flac.so to the directory where XMMS looks for input plugins (usually /usr/lib/xmms/Input or $HOME/.xmms/Input). There is nothing else to configure. Make sure to restart XMMS before trying to play any .flac files. +
    + +
    + +
    + +
    + +
    +
    + Since Winamp 5.31, Nullsoft has supplied a FLAC plugin with their Full install; nothing else is needed to get FLAC to play in Wnamp.
    +
    + Before Winamp 5.31 it was necessary to use our FLAC plugin. If you have an older version of Winamp, our plugin is still available in the FLAC Installer for Windows. The Winamp plugin should work for both Winamp2 and Winamp5. All that is necessary is to copy in_flac.dll to the Plugins/ directory of your Winamp installation. There is nothing else to configure. Make sure to restart Winamp before trying to play any .flac files. +
    + +
    + + + + + + diff --git a/doc/html/download.html b/doc/html/download.html index cf303a7d..4d4b0856 100644 --- a/doc/html/download.html +++ b/doc/html/download.html @@ -29,12 +29,8 @@  faq  |  news  |  download  | -  features  | -  goals  | -  format  | -  id  | -  comparison  |  documentation  | +  comparison  |  changelog  |  links  |  developers  @@ -53,6 +49,10 @@
    + Many different programs support FLAC. If you are not sure what to download, see Using FLAC for instructions and guides on playing FLAC files, ripping CDs to FLAC, etc.
    +
    + This section is for the official FLAC tools. See the extras section below for other third-party tools.
    +
    All source code and binaries are freely available and distributed under Open Source licenses. The codec libraries are distributed under Xiph.org's BSD license, and the plugins and command-line utilites (flac and metaflac) are distributed under the GPL. If you would like to redistribute parts or all of FLAC under different terms, contact Josh Coalson. (For more information, see the license page.)
    diff --git a/doc/html/format.html b/doc/html/format.html index 98531148..80b85c11 100644 --- a/doc/html/format.html +++ b/doc/html/format.html @@ -29,12 +29,8 @@  faq  |  news  |  download  | -  features  | -  goals  | -  format  | -  id  | -  comparison  |  documentation  | +  comparison  |  changelog  |  links  |  developers  @@ -55,6 +51,8 @@
    This is a detailed description of the FLAC format. There is also a companion document that describes FLAC-to-Ogg mapping.

    + For a user-oriented overview, see About the FLAC Format.
    +
    Table of Contents
    @@ -194,6 +120,7 @@ +