]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commit
flacenc - rice param search patch by (Justin Ruggles jruggle earthlink net
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 27 Jun 2006 21:01:21 +0000 (21:01 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 27 Jun 2006 21:01:21 +0000 (21:01 +0000)
commit27a6d778317cc483b83544e465734b5665ab2f82
tree05fd760e3810e6899d18f759e7ae5d78ca580b26
parentb484827fc6305a7db19df541912bbddb1c39db6b
flacenc - rice param search patch by (Justin Ruggles  jruggle earthlink net

1) search for optimal rice parameters and partition order. i also
modified the stereo method estimation to use this to calculate estimated
bit count instead of using just the pure sums.

2) search for the best fixed prediction order

3) constant subframe mode (good for encoding silence)

Note that the regression test for the decoded wav file also changed.
This is due to FFmpeg's FLAC decoder truncating the file, which it did
before anyway...just at a different cutoff point.  The generated FLAC
files are still 100% lossless.

With this update, FFmpeg's FLAC encoder has speed and compression
somewhere between "flac -1" and "flac -2".  On my machine, it's about
15% faster than "flac -2", and about 10% slower than "flac -1".  The
encoding parameters are identical to "flac -2" (fixed predictors, 1152
blocksize, partition order 0 to 3).

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5536 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
libavcodec/flacenc.c
tests/ffmpeg.regression.ref
tests/rotozoom.regression.ref