IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
[dev.] Does -8 use rice coding 3? That’s not compliant, so what to do?, [TOS #6: was “FLAC Compression level 8?”]
filoe
post Sep 10 2012, 17:32
Post #1





Group: Members
Posts: 13
Joined: 7-April 12
Member No.: 98516



I am writing a flac decoder and for creating test files I am using AudaCity.
If I choose compression level 8 I sometimes get RICE_CODING_METHOD of 3.
But if I am correct Flac only supports 0 (RICE) and 2 (RICE2).
And if you read here: http://flac.sourceforge.net/format.html#residual
You can see that the value of 11b is reserved. And 3 equals 11b.
But Winamp is able to play the file and I would say winamp uses libflac.
So what to do now?
Go to the top of the page
+Quote Post
Justin Ruggles
post Sep 10 2012, 17:52
Post #2





Group: Developer
Posts: 165
Joined: 3-June 06
From: Raleigh, NC
Member No.: 31393



My guess is that you have a bug elsewhere in your decoder that throws off your bit position.
Go to the top of the page
+Quote Post
tuffy
post Sep 10 2012, 17:53
Post #3





Group: Members
Posts: 111
Joined: 20-August 07
Member No.: 46367



Unless your file has more than 16bps, the reference encoder should always use a coding method of 0 (RESIDUAL_CODING_METHOD_PARTITIONED_RICE) for all the partitions. Anything else is a good indicator that you're reading too many residuals, not enough, or ones with the wrong value. The reference decoder's analysis option can help you here ("flac -a --residual-text <file.flac>") by allowing you to compare the values the reference decoder sees with what your own decoder sees.
Go to the top of the page
+Quote Post
filoe
post Sep 10 2012, 21:37
Post #4





Group: Members
Posts: 13
Joined: 7-April 12
Member No.: 98516



ok thanks i will check that. But I its nice that I was right that 11 is impossible.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd April 2014 - 20:02