Residual Partition aka Rice option, -r |
![]() ![]() |
Residual Partition aka Rice option, -r |
Dec 1 2012, 18:51
Post
#1
|
|
|
Group: Members Posts: 178 Joined: 22-July 12 Member No.: 101637 |
I'm interested in getting the maximum possible compression with FLAC, regardless of encode time. According to the documentation, a setting of up to -r 16 is possible. Yet anything over -r 8 results in an error code for me. Am I missing something?
|
|
|
|
Dec 1 2012, 18:55
Post
#2
|
|
![]() Group: Members Posts: 1150 Joined: 4-May 04 From: France Member No.: 13875 |
Add --lax to your command line.
QUOTE The encoding parameters specified do not conform to the FLAC Subset and may not be streamable or playable in hardware devices. If you really understand the consequences, you can add --lax to the command-line options to encode with these parameters anyway. See http://flac.sourceforge.net/format.html#subset
This post has been edited by skamp: Dec 1 2012, 18:57 -------------------- caudec -c lossyTAK -q S *.flac
|
|
|
|
Dec 1 2012, 19:52
Post
#3
|
|
|
Group: Members Posts: 312 Joined: 19-April 08 From: LA Member No.: 52914 |
I'm interested in getting the maximum possible compression with FLAC, regardless of encode time. According to the documentation, a setting of up to -r 16 is possible. Yet anything over -r 8 results in an error code for me. Am I missing something? Why waste the time to do this? Save a few KBytes on a disc? Last week I bought a 3 TB USB3 drive for $99. That's 3.3 CENTS per gigabyte. Each KByte you save will save you 3.3 MILLIONTHS of a penny. Given the way files are stored on the disc you may reap _zero_ savings - same number of clusters used. Obsessive compulsive behavior...... I'm just saying... |
|
|
|
Dec 1 2012, 21:31
Post
#4
|
|
![]() Group: Members Posts: 1516 Joined: 30-November 06 Member No.: 38207 |
Why waste the time to do this? Because of a portable player that is almost full? -------------------- geocities.com/hydrogenaudio: http://goo.gl/tqYZj
|
|
|
|
Dec 1 2012, 21:43
Post
#5
|
|
![]() Group: Members Posts: 1150 Joined: 4-May 04 From: France Member No.: 13875 |
-------------------- caudec -c lossyTAK -q S *.flac
|
|
|
|
Dec 1 2012, 22:55
Post
#6
|
|
![]() Group: Members Posts: 1063 Joined: 16-February 08 From: NL Member No.: 51347 |
|
|
|
|
Dec 2 2012, 01:43
Post
#7
|
|
|
Group: Members Posts: 178 Joined: 22-July 12 Member No.: 101637 |
|
|
|
|
Jun 4 2013, 01:13
Post
#8
|
|
|
Group: Members Posts: 20 Joined: 20-May 13 Member No.: 108227 |
It seems it's not always the case that higher values of -r give better compression.
I used the following commands for my test: flac.exe -V --best -f Closer.wav -> 46333044 bytes flac.exe -V --best -r 6 -f Closer.wav -> 46333044 bytes (this was to confirm the default) flac.exe -V --best -r 7 -f Closer.wav -> 46333405 bytes flac.exe -V --best -r 8 -f Closer.wav -> 46333613 bytes So maybe different files may give different results, but it's not always the case. I finally did test -r 15 with --lax: flac.exe -V --best -r 9 --lax -f Closer.wav -> 46331566 bytes flac.exe -V --best -r 10 --lax -f Closer.wav -> 46298363 bytes flac.exe -V --best -r 11 --lax -f Closer.wav -> 46253224 bytes ... same results for 11-15 flac.exe -V --best -r 15 --lax -f Closer.wav -> 46253224 bytes These did show an increase in compression with each value, I'm curious why 7 and 8 would not do the same. This post has been edited by Makaki: Jun 4 2013, 01:14 |
|
|
|
Jun 4 2013, 05:21
Post
#9
|
|
|
Group: Members Posts: 178 Joined: 22-July 12 Member No.: 101637 |
Interesting results. I would suspect - though haven't tested - that varying the LPC order (-l), block size (-b) and LP coefficient search (-p or -q) would further affect the results.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th June 2013 - 01:34 |