Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
GetNetWise: You
e One Click Away

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 60 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       flac [ OPTION ] infile ...


       This manual page documents briefly the flac command.

       This manual page was written for the Debian GNU/Linux dis­
       tribution because the original program  does  not  have  a
       manual  page.   Instead, it has documentation in HTML for­
       mat; see below.


       A summary of options is included below.   For  a  complete
       description, see the HTML documentation.

       -v, --version
              Show the flac version number

       -h, --help
              Show basic usage and a list of all options

       -H, --explain
              Show detailed explanation of usage and all options

       -d, --decode
              Decode (the default behavior is to encode)

       -t, --test
              Test  a  flac  encoded  file  (same as -d except no
              decoded file is written)

       -a, --analyze
              Analyze a flac encoded file (same as -d  except  an
              analysis file is written)

       -c, --stdout
              Write output to stdout

       -s, --silent
              Silent  mode  (do  not  write runtime encode/decode
              statistics to stderr)

       -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  con­
              junction with --output-prefix.

              Prefix each output file name with the given string.
              testing.  The alternative form mm:ss.ss can be used
              to  specify  minutes,  seconds,  and fractions of a

              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,  sec­
              onds,  and  fractions of a second.  If a `+' (plus)
              sign is at the beginning, the --until point is rel­
              ative  to  the --skip point.  If a `-' (minus) sign
              is at the beginning, the --until point is  relative
              to end of the audio.

       --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'.

              When used with --ogg, specifies the  serial  number
              to  use  for the FLAC stream.  When encoding and no
              serial number is given, flac uses '0'.  When decod­
              ing  and  no  number is given, flac uses the serial
              number of the first page.

              Includes the residual signal in the analysis  file.
              This  will make the file very big, much larger than
              even the decoded file.

              Generates a gnuplot file for every  subframe;  each
              file  will contain the residual distribution of the
              subframe.  This will create a lot of files.

       -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 comple­
              tion.  Note that errors may cause the decoded audio
              to be missing some samples or have silent sections.
              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 pro­
              cessed.  Note that this option cannot be used  when
              encoding to standard output (stdout).

              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 speci­

              Align encoding of multiple CD format WAVE files  on
              sector  boundaries.  See the HTML documentation for
              more information.

       -S {#|X|#x|#s}, --seekpoint={#|X|#x|#s}
              Include a point or points in a SEEKTABLE.  Using #,
              a seek point at that sample number is added.  Using
              X, a placeholder point is added at the end of a the
              table.   Using #x, # evenly spaced seek points will
              be added, the first being at sample 0.  Using #s, a
              seekpoint will be added 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  deter­
              mine  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 deter­

       -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

       -b #, --blocksize=#
              Specify  the block size in samples.  The default is
              1152 for -l 0, else 4608; must be one of 192,  576,
              1152, 2304, 4608, 256, 512, 1024, 2048, 4096, 8192,
              16384, or 32768 (unless --lax is used)

       -m, --mid-side
              Try mid-side coding for each  frame  (stereo  input

       -M, --adaptive-mid-side
              Adaptive  mid-side  coding  for  all frames (stereo
              input only)

       -0..-8, --compression-level-0..--compression-level-8
              Fastest compression..highest  compression  (default
              is -5).  These are synonyms for other options:

              -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
              Do exhaustive model search (expensive!)

       -r [#,]#, --rice-partition-order=[#,]#
              Set the [min,]max residual partition order (0..16).
              min  defaults  to  0 if unspecified.  Default is -r

              Set the byte order for samples

              Set number of channels.

              Set bits per sample.

              Set sample rate (in Hz).

              Set the sign of samples (the default is signed).

              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-

              Force input (when encoding) or output (when  decod­
              ing) to be treated as raw samples (even if filename
              ends in .wav).












       The  programs are documented fully by HTML format documen­
       tation, available in  /usr/share/doc/flac/html  on  Debian
       GNU/Linux systems.


       This   manual   page   was   written   by  Matt  Zimmerman
       <mdz@debian.org> for the Debian GNU/Linux system (but  may
       be used by others).

                         10 January 2003                  FLAC(1)

An undefined database error occurred. SELECT distinct pages.pagepath,pages.pageid FROM pages, page2command WHERE pages.pageid = page2command.pageid AND commandid =


There are several different ways to navigate the tutorial.



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
The Linux Tutorial welcomes your suggestions and ideas.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.10 Seconds