[LAD] new lossless/lossy audio compressor

2007-07-25 Thread Gregory Alan Hildstrom
Hello. I just finished writing and documenting a new lossless and lossy audio codec called j2kaudio. It uses the wavelet compression in JPEG 2000 to transcode audio wav data to and from j2a files. I have not written any sort of media player plugin yet; more testing and file format refinement are

Re: [LAD] new lossless/lossy audio compressor

2007-07-25 Thread Paul Winkler
Pretty cool. Does JPEG 2000 handle float data? I'd love to be able to write an archive script for Ardour sessions that compresses the audio data losslessly, but FLAC won't do it. -PW On Wed, Jul 25, 2007 at 12:47:16PM -0700, Gregory Alan Hildstrom wrote: > Hello. I just finished writing and do

Re: [LAD] new lossless/lossy audio compressor

2007-07-25 Thread Erik de Castro Lopo
Gregory Alan Hildstrom wrote: > I tested against flac, lpac, shorten, and monkey's audio for lossless > encoding. j2kaudio beat the nearest competition by over 10%. Nicely done. > If anyone is motivated to test some additional songs, provide me with > additional test data, or suggest another un

Re: [LAD] new lossless/lossy audio compressor

2007-07-25 Thread Erik de Castro Lopo
Gregory Alan Hildstrom wrote: > Can wav files store 32b float? Yes, there are at least 8 file formats supported by libsndfile that accept 32 bit float data. Most of these also accept 64 bit double precision float data, but I personally don't see the point in going beyond 32 bit float. Erik --

Re: [LAD] new lossless/lossy audio compressor

2007-07-25 Thread Ctirad Fertr
Dne středa 25 červenec 2007 21:47 Gregory Alan Hildstrom napsal(a): > http://geocities.com/hildstrom/projects/j2kaudio/index.html > > Let me know what you think. Thanks. -Greg Looks nice, though I would rather see some widely accepted multimedia container, than just another audio compression cod

Re: [LAD] new lossless/lossy audio compressor

2007-07-25 Thread Gregory Alan Hildstrom
The JasPer library documentation states that a single image component can be from 1 to 16 bits per sample, so not directly. 24-bit color images are actually treated as 3 8-bit components: like one red component, one green component, and one blue component. For lossless compression, we could easi

Re: [LAD] new lossless/lossy audio compressor

2007-07-26 Thread Thorsten Wilms
On Wed, Jul 25, 2007 at 12:47:16PM -0700, Gregory Alan Hildstrom wrote: > ... or suggest another untested codec ... http://www.true-audio.com/ http://www.musepack.net/ http://www.speex.org/ http://www.wavpack.com/ I'm most interested in the last. -- Thorsten Wilms Thorwil's Design for Free S

Re: [LAD] new lossless/lossy audio compressor

2007-07-26 Thread Erik de Castro Lopo
Thorsten Wilms wrote: > > - Have you thought of putting your codec data inside other standard > > container formats like WAV, Caf and Ogg? > > Or Matroska. Ogg and Matroska are not (yet?) supported by libsndfile, > though. Unfortunately, Ogg seems to be a surprisingly difficult. To fit ea

Re: [LAD] new lossless/lossy audio compressor

2007-07-26 Thread Thorsten Wilms
On Thu, Jul 26, 2007 at 07:04:18AM +1000, Erik de Castro Lopo wrote: > > - Do you have any thoughts/plans on adding metadata like song title, > artist, copyright info etc? Besides using an existing container format, there are the metadata standards id3, APE and Vorbis Comment. http://www.

Re: [LAD] new lossless/lossy audio compressor

2007-07-26 Thread Denis Sbragion
Hello Erik, On Thu, July 26, 2007 15:28, Erik de Castro Lopo wrote: > When it was explained to him how seriously huge the dynamic range of > 64 bits actually is, he dropped the idea. on another list someone did the math and found that 32 bit integers alredy need a pressure above the atmospheric p

Re: [LAD] new lossless/lossy audio compressor

2007-07-26 Thread Paul Winkler
On Thu, Jul 26, 2007 at 09:35:27AM +0200, Thorsten Wilms wrote: > On Wed, Jul 25, 2007 at 04:19:03PM -0400, Paul Winkler wrote: > > I'd love to be able to write an archive script for Ardour sessions > > that compresses the audio data losslessly, but FLAC won't do it. > > WavPack does it. > http://

Re: [LAD] new lossless/lossy audio compressor

2007-07-26 Thread Gregory Alan Hildstrom
I certainly appreciate everyone's comments. I have 16-bit, 8-bit, mono, and stereo tested at many differrent sample rates so far, but it should be able to handle any number of channels < 65536. I will work to make it flexible enough to handle 24-bit, 32-bit, and 64-bit, but no promises. =;) I h

Re: [LAD] new lossless/lossy audio compressor

2007-07-26 Thread Erik de Castro Lopo
Forest Bond wrote: > > "There is no reason why anyone would want a computer in their home" > > Ken Olson, DEC, 1977 > > Why is it ironic to see those statements right next to each other? ;) Err, because its not?:-) > (Not looking to open a can of worms; I know they are not equivalent due to th

Re: [LAD] new lossless/lossy audio compressor

2007-07-26 Thread Thorsten Wilms
On Thu, Jul 26, 2007 at 10:59:33AM +0800, Victor Roetman wrote: > Openoffice's .odt files and Microsoft's .docx files are merely zip > containers with directory structure and files inside. You could just do > something like that, and it would be very easy to take apart again. It > would also no

Re: [LAD] new lossless/lossy audio compressor

2007-07-26 Thread Thorsten Wilms
On Wed, Jul 25, 2007 at 04:19:03PM -0400, Paul Winkler wrote: > Pretty cool. Does JPEG 2000 handle float data? > > I'd love to be able to write an archive script for Ardour sessions > that compresses the audio data losslessly, but FLAC won't do it. WavPack does it. http://www.wavpack.com/ --

Re: [LAD] new lossless/lossy audio compressor

2007-07-26 Thread Gregory Alan Hildstrom
I just tested OptimFROG and LA, which both outcompressed Monkey's Audio on the song, but j2kaudio still beat LA by 8.4%. LA was slower than j2kaudio, but OptimFROG was faster. j2kaudio is still the compression leader on my small test set. The results are in the table on my page. --- Gregory Ala

Re: [LAD] new lossless/lossy audio compressor

2007-07-26 Thread Forest Bond
On Thu, Jul 26, 2007 at 07:08:29AM +1000, Erik de Castro Lopo wrote: > Yes, there are at least 8 file formats supported by libsndfile that > accept 32 bit float data. Most of these also accept 64 bit double > precision float data, but I personally don't see the point in going > beyond 32 bit float

Re: [LAD] new lossless/lossy audio compressor

2007-07-25 Thread Gregory Alan Hildstrom
It probably would suffer some, but it would still be better than raw. The MSBs should compress well, just as if it were reduced to 16-bit; the frequencies should not change. The LSBs would be pretty erratic though; like trying to compress noise. But you don't know unless you test. Can wav files

Re: [LAD] new lossless/lossy audio compressor

2007-07-25 Thread Paul Winkler
Could do that... I wonder if the compression ratio would suffer, though. Just a hunch. -PW On Wed, Jul 25, 2007 at 01:37:18PM -0700, Gregory Alan Hildstrom wrote: > The JasPer library documentation states that a single image component can be > from 1 to 16 bits per > sample, so not directly. 24

Re: [LAD] new lossless/lossy audio compressor

2007-07-25 Thread Victor Roetman
Ctirad Fertr wrote: > Currently I store my > albums into one flac file per CD plus separate CUE sheet. It's far from > perfect. I would like to have just one file per album with all the content > inside (eg. audio, pictures, lyrics, videoclips, bonuses, etc...) and player > with direct acces t

Re: [LAD] new lossless/lossy audio compressor

2007-07-31 Thread Gregory Alan Hildstrom
Hello again. I discovered a disappointing, to me, bug in j2kaudio/libjasper today while I was working on 32-bit audio support. My previous holy-grail-looking lossless audio compression test results were incorrect. I was passing rate=1 to the JasPer JPEG 2000 encoder, which was not performing lo

Re: [LAD] new lossless/lossy audio compressor

2007-08-14 Thread porl sheean
bad luck mate, it's always good to see people willing to give something a go though :) porl On 01/08/07, Gregory Alan Hildstrom <[EMAIL PROTECTED]> wrote: > > Hello again. I discovered a disappointing, to me, bug in > j2kaudio/libjasper today while I was > working on 32-bit audio support. > > My