View Single Post
Old 22 May 2007, 10:55 am   #8
r2d
Musepack developer
 
Join Date: Sep 2006
Location: Villeurbanne - France
Posts: 36
Default

Quote:
Originally Posted by gurdiga View Post
Next comes the encoded audio data but I could not find any documentation about it.
After the header and before each audio frame there is the frame size coded on 20bits (which is documented in the file you mentioned)

Quote:
Originally Posted by gurdiga View Post
Wikipedia (http://en.wikipedia.org/wiki/Musepack) says that Musepack format uses for audio data compression the Huffman coding
This is true.

Quote:
Originally Posted by gurdiga View Post
which as per Wikipedia (http://en.wikipedia.org/wiki/Huffman...ain_properties), should contain the Huffman Coding Tree with the compressed data. The problem now is that I cannot figure out how to identify the Huffman Coding Tree in the file.
Huffman tables are not stored in the bitstream. Musepack uses static huffman coding, the tables are in the decoder source code : http://trac.musepack.net/trac/browse.../src/huffsv7.c

Quote:
Originally Posted by gurdiga View Post
Is there any documentation (other than the source code itself) about the encoded stream format?
I fear there is no documentation on the bitstream. If you want to use the code to understand the bitstream, I suggest you start with mpc_decoder_read_bitstream_sv7() in http://trac.musepack.net/trac/browse.../mpc_decoder.c

If you need any help I can answer your questions as it's a part of the code I know quite well.

Nicolas
r2d is offline   Reply With Quote