Re: Problems rendering RGB decoder output
- From: Geraint Davies <geraintd@xxxxxxxxxx>
- Date: Fri, 17 Nov 2006 09:11:45 +0000
On 16 Nov 2006 04:53:29 -0800, mannson wrote:
Geraint Davies schrieb:
On 15 Nov 2006 07:23:10 -0800, mannson wrote:
Hi,
I'm still trying to write a DirectShow filter that decodes MPEG video
files and delivers RGB24 frames on its output.
The filtergraph so far:
test.mpg - MPEG-2 Splitter - MyMPEGDecoder
I'm now able to decode all frames, but I'm not able to connect the
output pin to a video renderer.
By right clicking on the decoder output pin "Render Pin" is greyed out.
My GetMediaType:
not sure why that would be greyed out. Can you view the media type in the
pin's properties? Is your GetMediaType ever called?
I really don't know what I've changed, but graphedit at least now lets
me render the output of my filter. But it just connects to a demuxer.
If I try to connect to a renderer manually it adds another MPEG decoder
in-between instead of connecting directly to the renderer.
I checked the media type of the output pin and it seems that every GUID
is set to GUID_NULL, although GetMediaType of my filter is called and
sets erything to appropriate values.
I went back to your original code. GetMediaType modifies the pMediaType to
point to the input's stored media type and modifies that one, instead of
modifying the caller's media type that was originally passed in.
G
.
- Follow-Ups:
- Re: Problems rendering RGB decoder output
- From: mannson
- Re: Problems rendering RGB decoder output
- References:
- Problems rendering RGB decoder output
- From: mannson
- Re: Problems rendering RGB decoder output
- From: Geraint Davies
- Re: Problems rendering RGB decoder output
- From: mannson
- Problems rendering RGB decoder output
- Prev by Date: Re: Creating a Mpeg2TS
- Next by Date: Re: Pass through Filter Problem?
- Previous by thread: Re: Problems rendering RGB decoder output
- Next by thread: Re: Problems rendering RGB decoder output
- Index(es):
Relevant Pages
|