Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Problem] Setting Correct Media Type

1 view
Skip to first unread message

Christoph

unread,
Dec 31, 2007, 9:27:52 AM12/31/07
to
Hello,
I wrote a custom Capture Source Filter which has to get a Connection
to a Mpeg2-Decoder (I am using the Elecard Decoder).

- I dont know which Mediatype the Elecard Decoder wants.
- Connecting e.g. a Video Renderer to the same Filter with Raw Output
set is working (I used the VCAM-Filter as base for testing)
- Setting Mpeg2 does not work.

For the wanted Output I set the following:
-----
Major: Video
SubTYpe: MPEG2_VIDEO
FormatType: MPEG2VIDEO
-----
I have the Values from an example Graphs Property Page of a filter which
can connect to the Elecard Decoder.

Maybe it could help to write a custom filter to put between the working
one and the Decoder to get the values I need for my filter.
But I do not know which values have to be checked.

Christoph

Michel Roujansky - DirectShow Consultant and Trainer

unread,
Jan 1, 2008, 5:30:23 PM1/1/08
to

Alessandro Angeli

unread,
Jan 2, 2008, 2:06:22 PM1/2/08
to
From: "Christoph"

> Maybe it could help to write a custom filter to put
> between the working one and the Decoder to get the values
> I need for my filter.

Build a working graph in GraphEdit, then save the graph to a
GRF file and dump the GRF file using my sample GRF parser
(see the link below). You will need to add code to fully
dump the connection media type's format block.

Otherwise, use MediaPlayerClassic to get a full media type
dump in the filter's property page (not like the useless
partial dump in GraphEdit).


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Christoph

unread,
Jan 3, 2008, 3:33:50 PM1/3/08
to
Alessandro Angeli schrieb:

> Build a working graph in GraphEdit, then save the graph to a
> GRF file and dump the GRF file using my sample GRF parser
> (see the link below). You will need to add code to fully
> dump the connection media type's format block.

Can you send me a compiled Version of the parser? I cant manage to
compile the code (I tried it with devcpp and VS2005).


> Otherwise, use MediaPlayerClassic to get a full media type
> dump in the filter's property page (not like the useless
> partial dump in GraphEdit).

Where can I find this option?
I tried to look with MPC at the Elecard Properties and cant find any
other properties than those i already know.

Alessandro Angeli

unread,
Jan 3, 2008, 5:36:14 PM1/3/08
to
From: "Christoph"

> Can you send me a compiled Version of the parser? I cant
> manage to compile the code (I tried it with devcpp and
> VS2005).

In VS2005, create a new project for an empty Win32 console
application, add a new CPP file to it and paste the whole
code in there and it compiles without errors. If it doesn't
on your machine, you should post the errors you get, since I
can't read minds.

>> Otherwise, use MediaPlayerClassic to get a full media
>> type dump in the filter's property page (not like the
>> useless partial dump in GraphEdit).
>
> Where can I find this option?
> I tried to look with MPC at the Elecard Properties and
> cant find any other properties than those i already know.

I don't know what "properties" you are referring to, I just
wrote "media type dump". GE only prints a useless subset of
the media type, while MPC prints it fully and I can't
imagine how you can miss it.

Christoph

unread,
Jan 4, 2008, 3:38:14 AM1/4/08
to
Alessandro Angeli schrieb:

> In VS2005, create a new project for an empty Win32 console
> application, add a new CPP file to it and paste the whole
> code in there and it compiles without errors. If it doesn't
> on your machine, you should post the errors you get, since I
> can't read minds.
Thank you this works

> I don't know what "properties" you are referring to, I just
> wrote "media type dump". GE only prints a useless subset of
> the media type, while MPC prints it fully and I can't
> imagine how you can miss it.

Than I was on the right way.

0 new messages