| Re: Make my own codec for WMP / DirectShow |
|
 |
|
 |
|
 |
|
 |
Group: microsoft.public.win32.programmer.directx.audio · Group Profile
Author: Chris P. [MVP]Chris P. [MVP] Date: Oct 12, 2006 07:28
On Thu, 12 Oct 2006 06:47:01 -0700, Guillaume DAVID wrote:
>> Simpler than making your own file format, is just make your own data type
>> that is WAV file compatible.
>>
>> The default WAV parser will expose the media type appropriately and then
>> search for decoder filters, DMO's or ACM that accept that media type.
>>
>> The media type would be a standard WAV media type with a custom wFormatTag
>> value. These values are no longer regulated officially by Microsoft but
>> you can submit it to websites like fourcc.org for reference purposes.
>>
>
> Thanks Chris, that's exactly what I wanted to know (for the theory), but for
> the pratice I don't know from what I can start to learn all of this.
>
> Do I have to install more software that the windows SDK ? Do I have to learn
> anything about COM object before starting programming with DirectShow ? Is
> there some sample that could help me to understand this ?
Some of the samples where removed from the platform SDK, so it's sometimes
useful to refer to the older DirectX SDK from Summer 2004.
Some basic understanding of COM is required, so read a quick primer on
that.
As a tutorial for yourself I would do the following.
- Take a standard wave file with wFormatTag 1 and change it to a custom
unused number.
- Write a transform filter that accepts the custom media type (wave type
with custom format tag) and transforms it to a format tag of 1 on it's
output pin. You've now written a decoder filter (sort of) :-) If the
filter is registered correctly you should be able to auto render these
custom files in GraphEdit and WMP.
|