Erik de Castro Lopo
2013-Jul-16 10:52 UTC
[flac-dev] exhaustive-model-search issue results in multi-gigabyte FLAC file
Erik de Castro Lopo wrote:> > http://wootangent.net/~lsd/blah/snippet6.wav > > Great, thanks! Confirmed the problem here. Will look at it ASAP.Same problem with flac 1.2.1. Interesting! Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
Bastiaan Timmer
2013-Jul-16 13:26 UTC
[flac-dev] exhaustive-model-search issue results in multi-gigabyte FLAC file
Some more possibly interesting information: 1. With me, both flac 1.2.1 and 1.3.0 fail to produce a flac file at all. They both end with: snippet6.wav: 35% complete, ratio=0,781 snippet6.wav: ERROR during encoding ????????????? state = FLAC__STREAM_ENCODER_FRAMING_ERROR This is after my entire RAM is filled up (could that be the reason? my swap remains nearly unused though). 2. Flake has no problems with the file, but the file turns into 16 bit when doing that. The resulting flac file can be decoded and encoded by flac without issues.
Justin Ruggles
2013-Jul-16 14:59 UTC
[flac-dev] exhaustive-model-search issue results in multi-gigabyte FLAC file
On 07/16/2013 09:26 AM, Bastiaan Timmer wrote:> Some more possibly interesting information: > > 1. With me, both flac 1.2.1 and 1.3.0 fail to produce a flac file at all. They both end with: > > > snippet6.wav: 35% complete, ratio=0,781 > snippet6.wav: ERROR during encoding > state = FLAC__STREAM_ENCODER_FRAMING_ERROR > > This is after my entire RAM is filled up (could that be the reason? my swap remains nearly unused though). > > 2. Flake has no problems with the file, but the file turns into 16 bit when doing that. The resulting flac file can > > be decoded and encoded by flac without issues.FWIW, more recent Flake that supports 24-bit also encodes it properly, with 0.771 ratio. -Justin
Erik de Castro Lopo
2013-Jul-17 09:07 UTC
[flac-dev] exhaustive-model-search issue results in multi-gigabyte FLAC file
Erik de Castro Lopo wrote:> Erik de Castro Lopo wrote: > > > > http://wootangent.net/~lsd/blah/snippet6.wav > > > > Great, thanks! Confirmed the problem here. Will look at it ASAP. > > Same problem with flac 1.2.1. Interesting!I'm currently testing a fix for this. The problem was an arithmetic overflow of a FLAC_uint32. I have not been able to find an instance of this value overflowing for a 16 bit input file, but I now have two 24 bit files that cause this overflow. Oddly, only the one Leigh Dyer provided causes the output file to grow. I'm still working on coming up with something to add the test suite to test for this. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/