DirectShow filters and Window Media Player
  Home FAQ Contact Sign in
microsoft.public.win32.programmer.directx.audio only
 
Advanced search
POPULAR GROUPS

more...

microsoft ... directx.audio Profile…
 Up
DirectShow filters and Window Media Player         


Author: Oleg
Date: Dec 26, 2007 13:35

Hello,

Please, could somebody clarify/confirm that:
I've found out, that Windows Media Player doesn't use the "Intelligent
Connect" mechanism to build the complete filters' graph for MP3 and WMA
files playback?

I'm asking because I've made a custom filter, that is injected into the
filter graph composed by the filter manager when playing MP3 and WMA files,
and it works fine with GraphEdit (utility from DX SDK), but it's not working
with Media Player. Moreover - I've found out, that WMP doesn't even try to
find any filter to decode MP3/WMA stream.

Thanks for clarifications.

Oleg
14 Comments
Re: DirectShow filters and Window Media Player         


Author: Chris P.
Date: Dec 27, 2007 06:26

On Thu, 27 Dec 2007 03:35:28 +0600, Oleg wrote:
> Please, could somebody clarify/confirm that:
> I've found out, that Windows Media Player doesn't use the "Intelligent
> Connect" mechanism to build the complete filters' graph for MP3 and WMA
> files playback?
>
> I'm asking because I've made a custom filter, that is injected into the
> filter graph composed by the filter manager when playing MP3 and WMA files,
> and it works fine with GraphEdit (utility from DX SDK), but it's not working
> with Media Player. Moreover - I've found out, that WMP doesn't even try to
> find any filter to decode MP3/WMA stream.

You are correct. For WMA and MP3 it will always insert it's own custom
source which is a wrapper filter over the reader from the Format SDK.

--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
no comments
Re: DirectShow filters and Window Media Player         


Author: Oleg
Date: Dec 27, 2007 08:55

Thanks for your reply.

But is there any way (probably by modifying some registry keys/changing WMP
settings) to make WMP work in the same way as if IGraphBuilder::RenderFile
was called?

"Chris P." chrisnet.net> wrote in message
news:rc9ait8g8pwv$.11zxvtb8nj81c.dlg@40tude.net...
> On Thu, 27 Dec 2007 03:35:28 +0600, Oleg wrote:
>
>> Please, could somebody clarify/confirm that:
...
Show full article (1.17Kb)
no comments
Re: DirectShow filters and Window Media Player         


Author: ike
Date: Dec 27, 2007 08:59

"Chris P." wrote:
> On Thu, 27 Dec 2007 03:35:28 +0600, Oleg wrote:
>
>> Please, could somebody clarify/confirm that:
>> I've found out, that Windows Media Player doesn't use the "Intelligent
>> Connect" mechanism...
Show full article (0.91Kb)
no comments
Re: DirectShow filters and Window Media Player         


Author: ike
Date: Dec 27, 2007 09:04

Greetings,

does this mean that the MP3/WMA codecs are "hard coded" in the WMP? I
thought that the association between an extention and the codec (via the
application) is configured in the registry. So my question: is there a way
to force WMP to use directshow filter framework for MP3/WMA?

"Chris P." wrote:
> On Thu, 27 Dec 2007 03:35:28 +0600, Oleg wrote:
>
>> Please, could somebody clarify/confirm that:
>> I've found out, that Windows Media Player doesn't use the "Intelligent
>> Connect" mechanism...
Show full article (1.20Kb)
no comments
Re: DirectShow filters and Window Media Player         


Author: Chris P.
Date: Dec 27, 2007 10:43

On Thu, 27 Dec 2007 22:55:28 +0600, Oleg wrote:
> Thanks for your reply.
>
> But is there any way (probably by modifying some registry keys/changing WMP
> settings) to make WMP work in the same way as if IGraphBuilder::RenderFile
> was called?

No. Only by changing to a different file extension. E.g. by renaming your
.mp3 files to .mpz and registering the extension to your source filter (or
the async source) it will work the way you expect.

--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
no comments
Re: DirectShow filters and Window Media Player         


Author: Chris P.
Date: Dec 27, 2007 10:45

On Thu, 27 Dec 2007 09:04:00 -0800, ike wrote:
> does this mean that the MP3/WMA codecs are "hard coded" in the WMP? I
> thought that the association between an extention and the codec (via the
> application) is configured in the registry. So my question: is there a way
> to force WMP to use directshow filter framework for MP3/WMA?

The settings in the registry are for automatic graph building, if the
application chooses to build the graph manually for a selective file type
there isn't much you can do about it other than change file type. See the
other post.

--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
no comments
Re: DirectShow filters and Window Media Player         


Author: ike
Date: Dec 27, 2007 11:01

Hi Chris,

Ok, this is a little weird, because I checked my associations and I am using
C:\Program Files\K-Lite Codec Pack\Filters\l3codecx.ax for the MP3
extension.
The DLL ProductName is: "MPEG Layer-3 Audio Codec for Microsoft DirectShow"

This means, there must be a way to overwrite the default settings for MP3
and probably also for WMA

Best,
Ike

"Chris P." wrote:
Show full article (1.07Kb)
no comments
Re: DirectShow filters and Window Media Player         


Author: Chris P.
Date: Dec 27, 2007 11:35

On Thu, 27 Dec 2007 11:01:01 -0800, ike wrote:
> Ok, this is a little weird, because I checked my associations and I am using
> C:\Program Files\K-Lite Codec Pack\Filters\l3codecx.ax for the MP3
> extension.
> The DLL ProductName is: "MPEG Layer-3 Audio Codec for Microsoft DirectShow"
>
> This means, there must be a way to overwrite the default settings for MP3
> and probably also for WMA

That is not a source filter, it is a decoder. Change the default settings
all you want, WMP will completely ignore this and use it's own.

--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
no comments
Re: DirectShow filters and Window Media Player         


Author: ike
Date: Dec 27, 2007 12:35

ok, I understand; but then there is still the option of using wrapper
classes. Or has DirectShow any mechanism that would even prevent this ...?

Best,
Ike

"Chris P." wrote:
Show full article (0.84Kb)
no comments
1 2