wow, this is pretty cool, but I may not get to play with it for
a little while. trying to have 0.9 out this weekend. but this
is a good proof of concept. do you have any numbers as to how
much the file size increases on average?
Josh
--- Matt Zimmerman <mdz@debian.org> wrote:> On Mon, Mar 26, 2001 at 11:34:04AM -0800, Josh Coalson wrote:
>
> > --- "smoerk@gmx.de" <smoerk@gmx.de> wrote:
> > > hi,
> > >
> > > would it be possible to use ogg as container for flac? so you
> could use all
> > > the features of the ogg format.
> > >
> > A long time back I looked into that but couldn't find a detailed
> enough spec.
> > I plan on taking a look again when I get a chance.
> >
> > Monty has plans to revive Squish but he's a busy guy and may not
> get around
> > to it for a while. Also, almost all codecs I tested beat Squish
> '98 so the
> > bar is a little higher nowadays.
> >
> > If FLAC fits into Ogg and the Ogg group is willing, I'm all for
it.
>
> As a sort of proof of concept (and an excuse to mess around with Ogg
> a little),
> I hacked up the command-line encoder/decoder to output a FLAC stream
> inside an
> Ogg bitstream. Notes:
>
> - I had to disable the metadata callback, because it would seek back
> and
> overwrite the (correct) stream that had already been written.
> Don't ask me
> how much time I spent debugging before I discovered this. It's not
> clear to
> me whether there is a way to make this work without seekable
> output.
>
> - The Ogg library's memory allocation model isn't entirely clear to
> me yet.
> This code may leak memory like a sieve. Since if this were ever
> implemented
> for real, it would be in the library and not in this code, I don't
> consider
> this worth messing with.
>
> - Using this code, I was able to successfully encode and decode (I
> tried with
> several different packet sizes) exactly one test file, which is all
> I tried.
>
> That said, attached is a patch (apply from inside src/flac).
>[patch snipped]
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text