> > I've never come across a sample like this which is > > why I thought it wasn't useful to add that > > functionality to FLAC... maybe if this is a common > > practice I should put it in. > ... > I've > compressed around 50 albums with flac and found 1 > where the LSB is 0. Even > if it's 1 in 200, that's going to be lots of cases > where shorten out > performs it? > But, hey I program too and this seems like a pain > in the arse to code > just for these limited casesactually, it's pretty easy to code and not even a real speed penalty, but I would have to find a place in the stream header for the bitshift #, which is pretty tight right now. if I can I will probably add it. Josh __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
Mark Powell
2004-Sep-10 16:45 UTC
[Flac-dev] possible format change (was: flac can occasionally be worse than shorten)
On Tue, 20 Feb 2001, Josh Coalson wrote:> actually, it's pretty easy to code and not even a > real speed penalty, but I would have to find a place > in the stream header for the bitshift #, which is > pretty tight right now. if I can I will probably > add it.It could also be a time to add a space in the header for this? Cheers. Mark Powell - UNIX System Administrator - The University of Salford Academic Information Services, Clifford Whitworth Building, Salford University, Manchester, M5 4WT, UK. Tel: +44 161 295 5936 Fax: +44 161 295 5888 www.pgp.com for PGP key
Josh Coalson
2004-Sep-10 16:45 UTC
[Flac-dev] possible format change (was: flac can occasionally be worse than shorten)
> > actually, it's pretty easy to code and not even a > > real speed penalty, but I would have to find a place > > in the stream header for the bitshift #, which is > > pretty tight right now. if I can I will probably > > add it. > > It could also be a time to add a space in the header for this? >Yep, I didn't forget! It will be in 0.9. I still have the tracks you submitted for testing this out. Josh Interesting P.S. I think the reason it was is shorten in the first place is actually to make WAVE processing easier, since that spec says to right pad samples with zeroes since samples are stored on byte boundaries. In other words, a 12 bit sample is stored as a 16-bit sample with 4 LSB zeroes. It just happens to be useful in the tracks you ran across. __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/