![]() |
![]() |
#1 |
Member
Join Date: Oct 2005
Posts: 2
|
![]()
Once upon a time I got sick and tired of broken mp3 files floating around and wrote a small utility called mp3ck that just parsed MPEG frames and ID3 tags one by one to see if their stream was continuous. The utility made no attempt to actually decode the stream, but it proved to catch most defects that resulted from broken transfers over the net, buggy FTP and HTTP servers, etc.
With more and more files in Musepack format appearing around, I'd like to extend my little utility to verify such files, too, if possible at all. However, I failed to find a document on the format except for the source code. Is there any out there? Of course, I mean a rather cursory description allowing one just to parse the stream. Thanks! |
![]() |
![]() |
![]() |
#3 |
Procrastinator
Join Date: Jul 2004
Posts: 131
|
![]()
Well, you won't find much info in the doxygen doc. Instead, you must get libmpcdec and read the code which, IMO, is quite ok to understand (but yes, it can't replace real specs). The hard part will be to keep wanting to support musepack when you'll understand the bitstream layout
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Join Date: Oct 2005
Posts: 2
|
![]()
Dear Shy and Lefungus, your suggestions are much appreciated!
By the way, is MPCscan closed-source, or its author just didn't care to release the source code as well? |
![]() |
![]() |
![]() |
#5 |
Admin
Join Date: Jul 2004
Posts: 372
![]() |
![]()
The MPCscan source used to be available publicly but since Case closed his site it's not anymore. I'm not sure whether he'd be OK if we make it public, so I'll send it to you personally.
|
![]() |
![]() |
![]() |
#6 | |
Member
Join Date: May 2007
Posts: 1
|
![]() Quote:
Wikipedia (http://en.wikipedia.org/wiki/Musepack) says that Musepack format uses for audio data compression the Huffman coding 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. Is there any documentation (other than the source code itself) about the encoded stream format? Last edited by gurdiga; 16 May 2007 at 09:17 am. |
|
![]() |
![]() |
![]() |
#7 |
Procrastinator
Join Date: Jul 2004
Posts: 131
|
![]()
Some documentation is generated through doxygen
Code:
doxygen Doxyfile As for your specific question, even with working doxygen, that part wasn't documented so you will need to dig into the code. If you find it too complex to read, I advise taking a look at ffmpeg decoder as it contains another implementation. Having two different versions usually help. I can't give you an answer as I am as clueless as yourself about how frames are compressed. r2d should know though. If you do manage to implement your decoder, may I suggest sending back a small documentation or text that could be inserted into the sv7 specifications wiki ? |
![]() |
![]() |
![]() |
#8 | ||||
Musepack developer
Join Date: Sep 2006
Location: Villeurbanne - France
Posts: 36
|
![]() Quote:
Quote:
Quote:
Quote:
If you need any help I can answer your questions as it's a part of the code I know quite well. Nicolas |
||||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
mp3infp modified to support musepack files | kmart | MPC for Windows | 3 | 15 November 2011 01:03 pm |
Musepack magic(5) rules for file(1) | bucciarati | MPC for UNIX | 1 | 13 December 2005 04:43 am |
Xine now supports Musepack | quimbaya | MPC for UNIX | 3 | 24 January 2005 11:28 pm |
musepack support for prokyon3 | mkalkbrenner | MPC for UNIX | 3 | 07 September 2004 09:06 am |