Re: Intelligently Selecting SampleGrabber MediaType
- From: "NickP" <a@xxxxx>
- Date: Fri, 29 Jun 2007 12:13:12 +0100
Well, unfortunately that was a waste of time.
The DivX decoder filter reports only having 1 pin, an input pin, so it
doesn't even find the output pin. Disconnecting the video renders input pin
succeeds but the 2 filters stay connected as I can still see that they are
in graph edit.
So I have back peddled a little bit to my previous code...
AM_MEDIA_TYPE mt;
memset(&mt, 0, sizeof(mt));
mt.majortype = MEDIATYPE_Video;
mt.subtype = GUID_NULL;
mt.formattype = FORMAT_VideoInfo;
//mt.subtype = MEDIASUBTYPE_RGB24;
//mt.formattype = FORMAT_VideoInfo;
This now connects into any graph automatically, the only problem being now
is that the format of the sample grabber is not in always in RBG format, so
I will put some conversion code in!
Hopefully this will work!
Nick.
"NickP" <a@xxxxx> wrote in message
news:eZf388iuHHA.4868@xxxxxxxxxxxxxxxxxxxxxxx
Actually,
I've just had a thought.
I create the graph automatically without sample grabber, then work
backwards, remove the pin between the video renderer and the previous
filter and then stick the sample grabber in there.
It's worked with 1 filter graph so far, but now with the DivX decoder, I'm
presuming it's outputting some non RGB format.
Nick.
"NickP" <a@xxxxx> wrote in message
news:uaNokriuHHA.2752@xxxxxxxxxxxxxxxxxxxxxxx
Hi there,
Oh dear, that's not the best of news
So manually creating a graph for practically *any* video type that can
incorporate a sample grabber is possible?
Unfortunately graph edit seems to lack quite a few features that make
manual creation possible, either that or I have a version that doesn't
work correctly.
I guess I'm gonna need some substantial code going on now, any ideas
of reference for creating a graph manually?
Nick.
"The Mock Turtle" <stewartb@xxxxxxxxx> wrote in message
news:1183096689.228197.86970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
what you've specified will match lots of filters so you'll get random
results with intelligent connect on different PCs. i think you can
help narrow it down by filling in the bitmapinfoheader dealie.
get the CLSIDs of all the filters you want and connect them all
yourself. intelligent connect is anything but.
.
- Follow-Ups:
- Re: Intelligently Selecting SampleGrabber MediaType
- From: Alessandro Angeli
- Re: Intelligently Selecting SampleGrabber MediaType
- From: NickP
- Re: Intelligently Selecting SampleGrabber MediaType
- References:
- Intelligently Selecting SampleGrabber MediaType
- From: NickP
- Re: Intelligently Selecting SampleGrabber MediaType
- From: The Mock Turtle
- Re: Intelligently Selecting SampleGrabber MediaType
- From: NickP
- Re: Intelligently Selecting SampleGrabber MediaType
- From: NickP
- Intelligently Selecting SampleGrabber MediaType
- Prev by Date: MSYUV Color Space Converter Codec
- Next by Date: WMV + Alpha
- Previous by thread: Re: Intelligently Selecting SampleGrabber MediaType
- Next by thread: Re: Intelligently Selecting SampleGrabber MediaType
- Index(es):
Relevant Pages
|