[Flac] Encoding and Compression --- where is the nitpick?
Josh Coalson
xflac at yahoo.com
Thu Mar 22 16:37:17 PDT 2007
there are several compression settings that can affect this,
but for almost all cases it is best to just set an overall
compression level. see the detailed description here for
encoder setup:
http://flac.sourceforge.net/api/group__flac__stream__encoder.html
Josh
--- Matthias Berndt <berndt.matthias at gmx.de> wrote:
> Greetings,
>
> I'm playing aroung with the library and try to encode some PCM
> samples
> out of a WAVE file.
>
> I recognized that my own encoding is bigger than the encoding with
> the
> command line tool and I can't figure out why it is so. I tried some
> API
> functions to get a better result but I missed.
>
> minimal test code:
> http://stinfwww.informatik.uni-leipzig.de/~mai02cal/test.c
>
> example wav:
> http://stinfwww.informatik.uni-leipzig.de/~mai02cal/test.wav
>
> FLAC generated by the minimal test code:
> http://stinfwww.informatik.uni-leipzig.de/~mai02cal/a.flac
>
> and the analysis file:
> http://stinfwww.informatik.uni-leipzig.de/~mai02cal/a.ana
>
> FLAC generated by the command line tool:
> $ flac test.w -o b.flac
> http://stinfwww.informatik.uni-leipzig.de/~mai02cal/b.flac
>
> and the analysis file:
> http://stinfwww.informatik.uni-leipzig.de/~mai02cal/b.ana
>
> I think it may depend on the blocksize in both FLAC files (1152 vs
> 4096)
> but I can't --- or better I'm not able --- to modify the blocksize
> with
> FLAC__stream_encoder_set_blocksize().
>
> I'm using the 1.1.4. How can I generate a better result (the same
> result
> as the command line tool)? How can I maximize the compression ratio
> ---
> what are the tricks?
>
> Thank you
> Matthias Berndt
>
> PS: ... and thank you for the probably best archiving format for
> music.
> > _______________________________________________
> Flac mailing list
> Flac at xiph.org
> http://lists.xiph.org/mailman/listinfo/flac
>
____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
More information about the Flac
mailing list