Commit e0112b69 authored by Josh Coalson's avatar Josh Coalson
Browse files

initial import

parent 032613ff
# FLAC - Free Lossless Audio Codec
# Copyright (C) 2001 Josh Coalson
#
# This program is part of FLAC; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
EXTRA_DIST = \
authors.html \
comparison.html \
developers.html \
documentation.html \
download.html \
features.html \
format.html \
goals.html \
id.html \
index.html \
links.html \
news.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//RU">
<!-- Copyright (c) 2001 Josh Coalson -->
<!-- Permission is granted to copy, distribute and/or modify this document -->
<!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
<!-- or any later version published by the Free Software Foundation; -->
<!-- with no invariant sections. -->
<!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->
<HTML>
<HEAD>
<META CHARSET="windows-1251">
<TITLE>FLAC: </TITLE>
</HEAD>
<BODY>
<CENTER><TABLE cellpadding=0 cellspacing=0 border=0>
<TR>
<TD align=center>|</TD>
<TD height=22 align=center nowrap>
&nbsp;<A HREF="index.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="news.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="download.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="features.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="goals.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="format.html"></A>&nbsp;</TD>
<TD align=center>|</TD></TR>
<TR>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="id.html">id</A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="comparison.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="developers.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="documentation.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="links.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;&nbsp;</TD>
<TD align=center>|</TD></TR>
</TR></TABLE></CENTER>
<CENTER><H2>FLAC: </H2></CENTER>
<P>FLAC <A HREF="http://flac.sourceforge.net/">(http://flac.sourceforge.net/)</A> - , , <A HREF="mailto:jcoalson@users.sourceforge.net"> </A>.</P>
<P> :</P>
<BLOCKQUOTE>
<P><A HREF="mirator@upcase.inf.upol.cz"> </A> (Miroslav Lichvar)</A>
<BLOCKQUOTE>
<LI> <B><TT>libFLAC</TT></B> IA-32.</LI>
</BLOCKQUOTE></P>
<P><A HREF="mdz@debian.org"> </A> (Matt Zimmerman)</A>
<BLOCKQUOTE>
<LI> libtool/autoconf/automake.</LI>
</BLOCKQUOTE></P>
<P><A HREF="andrei@tvcell.ru"> </A> (Andrey Astafiev)</A>
<BLOCKQUOTE>
<LI> .</LI>
</BLOCKQUOTE></P>
</BLOCKQUOTE>
<P>&nbsp;Copyright (c) 2001 Josh Coalson</P>
</BODY>
</HTML>
This diff is collapsed.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//RU">
<!-- Copyright (c) 2001 Josh Coalson -->
<!-- Permission is granted to copy, distribute and/or modify this document -->
<!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
<!-- or any later version published by the Free Software Foundation; -->
<!-- with no invariant sections. -->
<!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->
<HTML>
<HEAD>
<META CHARSET="windows-1251">
<TITLE>FLAC: </TITLE>
</HEAD>
<BODY>
<CENTER><TABLE cellpadding=0 cellspacing=0 border=0>
<TR>
<TD align=center>|</TD>
<TD height=22 align=center nowrap>
&nbsp;<A HREF="index.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="news.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="download.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="features.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="goals.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="format.html"></A>&nbsp;</TD>
<TD align=center>|</TD></TR>
<TR>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="id.html">id</A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="comparison.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="documentation.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="links.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="authors.html"></A>&nbsp;</TD>
<TD align=center>|</TD></TR>
</TR></TABLE></CENTER>
<CENTER><H2>FLAC: </H2></CENTER>
<H3> FLAC</H3>
<P>FLAC - , - . <A HREF="http://sourceforge.net/mail/?group_id=13478"> </A>, , <A HREF="http://sourceforge.net/project/memberlist.php?group_id=13478"></A>. , <A HREF="goals.html"> </A>, , , , .</P>
<P> :</P>
<P><BLOCKQUOTE>
<LI>. , , . , , . , .</LI>
<LI> . Winamp XMMS. !</LI>
</BLOCKQUOTE></P>
<P> :</P>
<P><BLOCKQUOTE>
<LI> .</LI>
<LI> MSVC, <TT>libFLAC.lib</TT> <TT>libFLAC.dll</TT>.</LI>
<LI> ID3v1 ID3v2 .</LI>
<LI>C ( WAVE raw).</LI>
<LI> !</LI>
</BLOCKQUOTE></P>
<H3> </H3>
<P>FLAC , FLAC . <B><TT>libFLAC</TT></B>, LGPL. :</P>
<UL>
<LI><A HREF="documentation.html#libFLAC">API libFLAC</A></LI>
<LI><A HREF="format.html"> </A> FLAC.</LI>
<LI><A HREF="id.html"> id</A> .</LI>
</UL>
<P> <B><TT>libFLAC</TT></B>. <A HREF="download.html"></A> , .</P>
<P>&nbsp;Copyright (c) 2001 Josh Coalson</P>
</BODY>
</HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//RU">
<!-- Copyright (c) 2001 Josh Coalson -->
<!-- Permission is granted to copy, distribute and/or modify this document -->
<!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
<!-- or any later version published by the Free Software Foundation; -->
<!-- with no invariant sections. -->
<!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->
<HTML>
<HEAD>
<META CHARSET="windows-1251">
<TITLE>FLAC: </TITLE>
</HEAD>
<BODY>
<CENTER><TABLE cellpadding=0 cellspacing=0 border=0>
<TR>
<TD align=center>|</TD>
<TD height=22 align=center nowrap>
&nbsp;<A HREF="index.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="news.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="download.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="features.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="goals.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="format.html"></A>&nbsp;</TD>
<TD align=center>|</TD></TR>
<TR>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="id.html">id</A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="comparison.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="developers.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="links.html"></A>&nbsp;</TD>
<TD align=center>|</TD>
<TD align=center nowrap>
&nbsp;<A HREF="authors.html"></A>&nbsp;</TD>
<TD align=center>|</TD></TR>
</TR></TABLE></CENTER>
<CENTER><H2>FLAC: </H2></CENTER>
<H3></H3>
<P> :</P>
<B><TT>flac</TT></B>, <B><TT>metaflac</TT></B> <A HREF="documentation.html#plugins"></A> .</P>
<UL>
<LI><A HREF="#format"></A> - FLAC ( <A HREF="format.html"></A> ).</LI>
<LI><A HREF="#flac"><B><TT>flac</TT></B></A> - c <B><TT>flac</TT></B>, .</LI>
<LI><A HREF="#metaflac"><B><TT>metaflac</TT></B></A> - <B><TT>metaflac</TT></B>, .</LI>
<LI><A HREF="#plugins"></A> - .</LI>
<LI><A HREF="#libflac">API <B><TT>libFLAC</TT></B></A> - , FLAC .</LI>
<LI><A HREF="#bugs"></A> - .</LI>
</UL>
<P>, ( ) .</P>
<A NAME="format">
<H3></H3>
<P> <B><TT>flac</TT></B> / . .</P>
<P> :</P>
<P><BLOCKQUOTE><UL>
<LI> &quot;fLaC&quot;.</LI>
<LI> <A HREF="format.html#def_STREAMINFO">STREAMINFO</A>.</LI>
<LI> .</LI>
<LI> .</LI>
</UL></BLOCKQUOTE></P>
<P> FLAC. , .</P>
<A NAME="metaflac">
<H4></H4>
<P>FLAC ( <A HREF="format.html"></A>). , . . STREAMINFO. , .., . MD5 <I></I> . .</P>
<P> , , . PADDING . FLAC , , .</P>
<P> , <A HREF="id.html"></A>. PADDING . FLAC, , .</P>
<H4></H4>
<P> . . FLAC . . , .</P>
<H4> </H4>
<P> - . , , . , . . 44.1 2-6 . - 4608. , , .</P>
<H4> </H4>
<P> , . : <TT> = ( + )/2</TT>, <TT> = - </TT>. joint stereo . - . <B><TT>flac</TT></B> : <TT>-m</TT> <TT>-M</TT>, .</P>
<H4></H4>
<P> , ( , , ) . , . FLAC : 1) 2) (LPC).</P>
<P>-, (<TT>-l 0</TT>) , , LPC. LPC, , . . ( 9) , , . , ( <TT>-e</TT>), .</P>
<P>-, , LPC LPC. , .</P>
<H4> </H4>
<P> , , () , . , , , .</P>
<P> , , . , . <I></I> <I></I>, . <B><TT>flac</TT></B> , , <TT>-r</TT>. <I>2^n</I> , <TT>-r n,n</TT>. <I>n</I> . <I>m</I> <I>n</I> , , <TT>-r m,n</TT>. <I>n</I> . <I>m</I> <I>n</I> , , . .</P>
<H4> </H4>
<P> , , . . , CRC / . . , .</P>
<H4></H4>
<P> , ID3V1 ID3V2, . ID3V2 &quot;fLaC&quot;, ID3V1 - .</P>
<P> <B><TT>flac</TT></B> (<TT>-V</TT>) . . , <B><TT>flac</TT></B> .</P>
<A NAME="flac">
<H3><B><TT>flac</TT></B></H3>
<P><B><TT>flac</TT></B> - , . RIFF WAVE, . <B><TT>flac</TT></B> PCM ( , A-LAW, uLAW, .. ). , 8, 16 24-. , .</P>
<P><B><TT>flac</TT></B> , RIFF WAVE ".wav"; . , , <B><TT>flac</TT></B> , . <B><TT>flac</TT></B> , FLAC ".flac" ( ".fla" FAT-16).</P>
<P> , <B><TT>flac</TT></B>, : 1) <B><TT>flac</TT></B> ( <TT>-d</TT>); 2) <TT>-0..-9</TT>, , . , ; 3) <B><TT>flac</TT></B> <B><TT>gzip</TT></B>.</P>
<P><B><TT>flac</TT></B> :</P>
<BLOCKQUOTE><UL>
<LI>:<BR><TT>flac [-s] [--skip #] [<I><A HREF="#format_options">&lt;_&gt;</A></I>] [<I><A HREF="#encoding_options">&lt;_&gt;</A></I>] [_ [...]]</TT></LI>
<LI>:<BR><TT>flac -d [-s] [--skip #] [<I><A HREF="#format_options">&lt;_&gt;</A></I>] [<I><A HREF="#encoding_options">&lt;_&gt;</A></I>] [_ [...]]</TT></LI>
<LI>:<BR><TT>flac -t [-s] [_ [...]]</TT></LI>
<LI>:<BR><TT>flac -a [-s] [--skip #] [<I><A HREF="#analysis_options">&lt;_&gt;</A></I>] [_ [...]]</TT></LI>
</UL></BLOCKQUOTE></P>
<P> , , . , "-" (stdin). , <B><TT>flac</TT></B> (stdout). <B><TT>flac</TT></B> ( ".flac" , , ; .) , <TT>--delete-input-file</TT>.</P>
<P> / .</P>
<P><BLOCKQUOTE>
<UL>
<LI><TT>flac [] - _</TT></LI>
<LI><TT>flac -d [] - _</TT></LI>
</UL>
<P> </P>
<UL>
<LI><TT>flac [] &gt; _</TT></LI>
<LI><TT>flac -d [] &gt; _</TT></LI>
</UL>
</BLOCKQUOTE></P>
<P> , <TT>RIFF WAVE</TT> <TT>STREAMINFO</TT>.</P>
<P> <TT>-c</TT>.</P>
<P> . , . <TT>RIFF WAVE</TT>, , .</P>
<P> <B><TT>flac</TT></B> , . , MD5 , .</P>
<H4><a name="general_options"> </A></H4>
<TABLE border=1>
<TR><TD width=25%><TT>-d</TT></TD>
<TD width=75%> ( <B><TT>flac</TT></B> ). <B><TT>flac</TT></B> <TT>1</TT>, MD5 . , <TT>0</TT>.</TD></TR>
<TR><TD><TT>-t</TT></TD>
<TD> ( , , ). .</TD></TR>
<TR><TD><TT>-a</TT></TD>
<TD> ( , , ). . . .</TD></TR>
<TR><TD><TT>-c</TT></TD>
<TD> (stdout).</TD></TR>
<TR><TD><TT>-s</TT></TD>
<TD> /.</TD></TR>
<TR><TD><TT>-o </TT></TD>
<TD> , <B><TT>flac</TT></B> .</TD></TR>
<TR><TD><TT>--output-prefix </TT></TD>
<TD> . / . , , '/'.</TD></TR>
<TR><TD><TT>--delete-input-file</TT></TD>
<TD> / . , .</TD></TR>
<TR><TD><TT>--skip #</TT></TD>
<TD> <TT>#</TT> . , .</TD></TR>
</TABLE>
<H4><a name="analysis_options"> </H4>
<TABLE border=1>
<TR><TD width=15%><TT>--a-rtext</TT></TD>
<TD width=85%> . <B> </B>.</TD></TR>
<TR><TD width=10%><TT>--a-rgp</TT></TD>
<TD width=90%> - . . <B> </B> .</TD></TR>
</TABLE>
<H4><a name="encoding_options"> </A></H4>
<TABLE border=1>
<TR><TD width=15%><TT>--lax</TT></TD>
<TD width=85%> , FLAC. , . .</TD></TR>
<TR><TD><TT>--sector-align</TT></TD>
<TD>
<P> WAVE CD-Audio . WAVE , 44.1 . .flac ,
CD-Audio ( 1/75 588 ). WAVE . .</P>
<P> , (, -CD). <TT><B>flac</B></TT> .</P>
<P><B></B>: ! '<TT>flac --sector-align *.wav</TT>', , . , , , '<TT>flac --sector-align 8.wav 9.wav 10.wav</TT>'.
</TD></TR>
<TR><TD><TT>-S {#|X|#x}</TT></TD>
<TD width=90%> <TT>SEEKTABLE</TT>.
<UL>
<LI><TT>#&nbsp;</TT> : .</LI>
<LI><TT>X&nbsp;</TT> : ( <TT>SEEKTABLE</TT>).</LI>
<LI><TT>#x</TT> : # , 0 .</LI>
</UL>
<P> <TT>-S</TT> . , .<BR>
<B><TT>flac</TT></B> <TT>-S 100x</TT>. , <TT>-S-</TT>.<BR>
<B></B>: <TT>-S #x</TT> , .<BR>
<B></B>: <I>#</I> , , , .</P>
</TD></TR>
<TR><TD><TT>-P #</TT></TD>
<TD>E <TT>PADDING</TT>, ( ), <TT>STREAMINFO</TT>. <TT>-P 0</TT> , <TT>PADDING</TT> ( ). , . , , <TT>PADDING</TT>.</TD></TR>
<TR><TD><TT>-b #</TT></TD>
<TD> . <TT>1152</TT> <TT>-l 0</TT>, <TT>4608</TT>. : <TT>192/576/1152/2304/4608/256/512/1024/2048/4096/8192/16384/32768</TT>. .</TD></TR>
<TR><TD><TT>-m</TT></TD>
<TD> ( ). . , . , 16 .</TD></TR>
<TR><TD><TT>-M</TT></TD>
<TD> ( ). <TT>-m</TT>, . , , <TT>-m</TT> .</TD></TR>
<TR><TD><TT>-0..-9</TT></TD>
<TD> ... . <TT>-5</TT>.</TD></TR>
<TR><TD><TT>-0</TT></TD>
<TD> <TT>-l 0 -b 1152 -r 2,2</TT>.</TD></TR>
<TR><TD><TT>-1</TT></TD>
<TD> <TT>-l 0 -b 1152 -r 2,2 -M</TT>.</TD></TR>
<TR><TD><TT>-2</TT></TD>
<TD> <TT>-l 0 -b 1152 -r 3 -m</TT>.</TD></TR>
<TR><TD><TT>-3</TT></TD>
<TD> <TT>-l 6 -b 4608 -r 3,3</TD></TR>
<TR><TD><TT>-4</TT></TD>
<TD> <TT>-l 8 -b 4608 -r 3,3 -M</TT>.</TD></TR>
<TR><TD><TT>-5</TT></TD>
<TD> <TT>-l 8 -b 4608 -r 3,3 -m</TT>.</TD></TR>
<TR><TD><TT>-6</TT></TD>
<TD> <TT>-l 8 -b 4608 -r 4 -m</TT>.</TD></TR>
<TR><TD><TT>-7</TT></TD>
<TD> <TT>-l 8 -b 4608 -r 6 -m -e</TT>.</TD></TR>
<TR><TD><TT>-8</TT></TD>
<TD> <TT>-l 12 -b 4608 -r 6 -m -e</TT>.</TD></TR>
<TR><TD><TT>-9</TT></TD>
<TD> <TT>-l 32 -b 4608 -r 16 -m -e -p</TT>. , .</TD></TR>
<TR><TD><TT>-e</TT></TD>
<TD> ( !). . . LPC , . 0.5%.</TD></TR>
<TR><TD><TT>-l #</TT></TD>
<TD> LPC ( ). <TT>32</TT>. <TT>0</TT>, . , 5-10% .</TD></TR>
<TR><TD><TT>-q #</TT></TD>
<TD> . <TT>-q 0</TT>, . .</TD></TR>
<TR><TD><TT>-p</TT></TD>
<TD> LPC. <TT>-q</TT>. , . <TT>-q</TT> , <TT>-l 0</TT>.</TD></TR>
<TR><TD><TT>-r [#,]#</TT></TD>
<TD> <I>[min,]max</I> . , 0. . , <I>2^min#</I> ... <I>2^max</I> , . <I>max</I> . <TT>-r 2,2</TT> ( ). 1.5%. <TT>_/(2^n)=128</TT>. <TT>-r 0,16</TT>.</TD></TR>
<TR><TD><TT>-R #</TT></TD>
<TD> . 0. . , . , <TT>-0</TT> ... <TT>-9</TT> .</TD></TR>
<TR><TD><TT>-V</TT></TD>
<TD> . <B><TT>flac</TT></B> , . , . , , , .</TD></TR>
<TR><TD>&nbsp;</TD>
<TD><TT>-S-, -m-, -V-, -e-, -p-, --lax-, --delete-input-file-</TT> .</TD></TR>
</TABLE>
<H4> </H4>
<TABLE border=1>
<TR><TD width=15%><TT>-fb | -fl</TT></TD>
<TD width=90%> big-endian | little-endian.</TD></TR>
<TR><TD><TT>-fc n</TT></TD>
<TD> .</TD></TR>
<TR><TD><TT>-fp n</TT></TD>
<TD> .</TD></TR>
<TR><TD><TT>-fs n</TT></TD>
<TD> .</TD></TR>
<TR><TD><TT>-fu</TT></TD>
<TD>, ( ).</TD></TR>
<TR><TD><TT>-fr</TT></TD>
<TD> ( ) raw .</TD></TR>
<TR><TD><TT>-fw</TT></TD>
<TD> ( ) RIFF WAVE .</TD></TR>
</TABLE>
<A NAME="metaflac">
<H3><B><TT>metaflac</TT></B></H3>
<P><B><TT>metaflac</TT></B> - , . .flac , , .</P>
<P>C <B><TT>metaflac</TT></B> :</P>
<P><TT>metaflac [-v] _</TT></P>
<P>_ "-" (stdin). <TT>-v</TT>, .</P>
<A NAME="plugins"><A NAME="xmms_plugin">
<H3> XMMS</H3>
<P> <TT>libxmms-flac.so</TT> , XMMS ( <TT>/usr/lib/xmms/Input</TT>). . .flac XMMS.</P>
<A NAME="winamp_plugin">
<H3> Winamp</H3>
<P> <TT>in_flac.dll</TT> , Winamp ( <TT>/Plugins</TT>). . .flac Winamp.</P>
<A NAME="libflac">
<H3><B><TT>libFLAC</TT></B></H3>