Am Fri, 10 Aug 2007 10:26:40 +0200 schrieb Francesco Romani <[EMAIL PROTECTED]>:
> On Thu, 2007-08-09 at 18:17 +0200, Stefan Scheffler wrote: > > Hi, > > > > some cameras or phones produce avis's with audio in ulaw format > > and since it came up again on irc, I've thrown together a decoder > > for it. > > > > I had a pretty hard time finding sample files and only got one from > > mplayers sample library, so it's not well tested but seems to work > > ok. > > Hi, thanks for this contribute > I've a concern and an observation regard this code. > > The corcern regards the ulaw_decode table in extract_ulaw.h: is this a > rip from libquicktime sources? I'm wondering about (theorical?) > copyright issues, transcode has plenty of those in past days and I > never liked them. > Well, the comments in libquicktime state that it's from libsndfile, from there I can't track it back further. As said in that other mail the original is probably from suns g711.c which seems to be public domain. The algorithm to generate the table is pretty trivial, it's even printed out in wikipedia. > The observation is technical, I think that, given the code, ulaw > support can be merged in existing avi/raw inport module, there is no > need for a separate one. > I guess import_avi is the only module where it'd really be useful. Then I could get rid of that whole tcextract part aswell. > > Is it possible to create decoders with the nms already? Just > > wondering because there don't seem to be any. > > yes it is possible with a few hacks. Some new import modules (x11, > alsa, pv3, vag) are already internally designed for nms with a > (thick?) wrapper code around to fit in oms. > I'll check it out. Doesn't sound like it's worth it for this thing though. Transcode has a style guide now? oups... stefan