DSPRelated.com
Forums

Re: Wave header format for mu-law and A-law

Started by Mark Lakata September 2, 2003
> I notice that mplayer2 can handle your ACELP example, but mplayer and Winamp
cannot.
> Is there a list somewhere of codecs supported by WMP? Is it possible to
create
> user-defined plug-ins and additional codec identifier definitions for WMP so
they can
> handle other codec types? My company does work on mil/gov codecs like MELPe;
making
> it possible for people to click on a MELPe compressed file using WMP would be
very
> convenient.

Yes, to write your own Winamp decoder plug-in, read this:

http://www.winamp.com/nsdn/winamp2x/dev/plugins/in.jhtml -Mark

> -Jeff > > --- Jeff Brower <> wrote:
> > > Shaofeng-
> > >
> > > > The 'fact' chunk is required for all compressed
> > > audio
> > > > formats, and for the case where the data is
> > > included
> > > > in 'wavl' list chunk.
> > >
> > > What kind of .wav files typically contain non-PCM
> > > data? Can you give some
> > > typical examples? Do they still have .wav
> > > extensions, or some other
> > > extensions?
> > >
> > > Thanks.
> > >
> > > -Jeff
> > >
> > > > --- Jeff Brower <> wrote:
> > > >> Shaofeng-
> > > >>
> > > >> FWIW, most .wav files are 44 byte header (e.g.
> > > >> Microsoft examples included with
> > > >> WinXX) and don't have the 'fact' tag.
> > > >>
> > > >> Jeff Brower
> > > >> system engineer
> > > >> Signalogic
> > > >>
> > > >> Shaofeng Li wrote:
> > > >> >
> > > >> > Padmalatha,
> > > >> >
> > > >> > You can refer to this link for wave format:
> > > >> >
> > > >> >
> > > >>
> > > >
> > >
> > http://ccrma-www.stanford.edu/CCRMA/Courses/422/projects/WaveFormat/
> > > >> >
> > > >> > Your wave file is formatted as follows:
> > > >> >
> > > >> > Chunk Id = 'RIFF'
> > > >> > Chunk Size = 5996
> > > >> > Format = 'WAVE'
> > > >> >
> > > >> > Subchunk Id = 'fmt '
> > > >> > Subchunk Size = 18
> > > >> > AudioFormat = 0x0007 (WAVE_FORMAT_MULAW)
> > > >> > NumChannels = 1
> > > >> > SampleRate = 8000
> > > >> > ByteRate = 8000
> > > >> > BlockAlign = 1
> > > >> > BitsPerSample = 8
> > > >> > ExtraParamLen = 2
> > > >> > ExtraParamVal = 0x0000
> > > >> >
> > > >> > Subchunk Id = 'fact'
> > > >> > Subchunk Size = 4
> > > >> > Subchunk Val = 0xe8160000
> > > >> >
> > > >> > Subchunk Id = 'data'
> > > >> > Subchunk Size = 5864
> > > >> >
> > > >> > Regards,
> > > >> > /Shaofeng
> > > >> >
> > > >> > --- Padmalatha Y <>
> > > wrote:
> > > >> > > Hi All,
> > > >> > >
> > > >> > > Can any one tell me the wave header
> > > for
> > > >> > > mu-law and A-law. I have a wave file which is
> > > >> mu-law
> > > >> > > 8-bit mono which has 56 bytes as header. I
> > > want
> > > >> to
> > > >> > > know in what format are these bytes arranged.
> > > >> The
> > > >> > > following 56 byte header is provided for
> > > >> reference.
> > > >> > >
> > > >> > > 52 49 46 46 6C 17 00 00 57 41 56 45 66 6D 74
> > > 20
> > > >> > > 12 00 00 00 07 00 01 00 40 1F 00 00 40 1F 00
> > > 00
> > > >> > > 01 00 08 00 00 00 66 61 63 74 04 00 00 00 E8
> > > 16
> > > >> > > 00 00 64 61 74 61 E8 16 00 00
> > > >> > >
> > > >> > >
> > > >> > > Thanks in advance,
> > > >> > > Padmalatha >
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you want
your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join:
>
> To Post:
>
> To Leave:
>
> Archives: http://www.yahoogroups.com/group/speechcoding
>
> Other DSP-Related Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/


Jeff,

> Is there a list somewhere of codecs supported by
> WMP?

See this link for IANA WAVE and AVI codec registry:

http://www.iana.org/assignments/wave-avi-codec-registry > Is it possible to create
> user-defined plug-ins and additional codec
> identifier definitions for WMP so they can
> handle other codec types?

Yes. You can create your Audio Compression Manager
(ACM) driver which takes in charge a codec type on
Microsoft platform. Refer to this link for more
information:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/w98ddk/hh/w98dd\
k/mmedia_4vjs.asp

Regards,
/Shaofeng. __________________________________


It is a nice wish, but...

Is that MELPe codec licensing free?

As company that "does work" on mil/gov codecs like MELPe, does that
give you any right to make commercial use of it?

Do you hold the intellectual property rights to that MELPe codec? (if
not then who does? and will they allow distributing such plug-in?)

JJ --- In , Jeff Brower <jbrower@s...> wrote:

> Ok, I think I've got it now: the fmt tag contains the PCM
identifier/codec ID and
> the length of compressed data; the FACT tag is a placeholder to
provide the length of
> PCM data after compression, since there's not a spot for it in the
standard fmt tag.
> Is that correct?
>
> I notice that mplayer2 can handle your ACELP example, but mplayer
and Winamp cannot.
> Is there a list somewhere of codecs supported by WMP? Is it
possible to create
> user-defined plug-ins and additional codec identifier definitions
for WMP so they can
> handle other codec types? My company does work on mil/gov codecs
like MELPe; making
> it possible for people to click on a MELPe compressed file using
WMP would be very
> convenient.
>
> -Jeff