[Flac] Question about residue and pdf

Brian Willoughby brianw at sounds.wa.com
Wed Jun 9 16:41:46 PDT 2010

On Jun 9, 2010, at 16:33, Fernando Alberto Marengo Rodriguez wrote:
> I wonder if the flac encoded file has a great amount of bits due to  
> the residue. I mean, what percentage of the flac file has  
> information of the residue? Is this sequence represented by more  
> than 80% of the flac file?
> On the other hand, which is the value typically adopted for the  
> parameter "n" in the Rice coder?
> I know these results depend on the input wav file, but I just want  
> to know some typical values for the cases already studied.

That's a very interesting question.  Do any of the existing tools  
report these factors?  Maybe there is an option for flac which will  
show some numbers during encoding, or maybe metaflac has an option  
for reporting some stats on an existing file.

If there isn't an existing option for either of the standard tools,  
then you might have to write some code using the flac library to scan  
through a stream and report statistics.

Brian Willoughby
Sound Consulting

More information about the Flac mailing list