Re: Intelligently Selecting SampleGrabber MediaType



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.







.



Relevant Pages

  • AddSourceFilterForMoniker() locks up sometimes.
    ... I've coded a simple filter graph to capture frames from a video camera ... I can grab frames from the Sample Grabber with no ...
    (microsoft.public.win32.programmer.directx.video)
  • AddSourceFilterForMoniker() locks up sometimes.
    ... I've coded a simple filter graph to capture frames from a video camera ... I can grab frames from the Sample Grabber with no ...
    (microsoft.public.multimedia.directx.dshow.programming)
  • Re: Global CComPtr
    ... // Obtain the interface used to run, stop, and pause the graph ... because they didn't have the correct refcount. ... You create your capture filter. ... You find the output pin in your function above. ...
    (microsoft.public.win32.programmer.directx.video)
  • CTransInPlaceFilter woes
    ... I've created a filter derived from CTransInPlaceFilter, ... Sample Grabber -> ... I use RenderStream to build a complete stream, minus MyFilter. ... I connect MyFilter’s ouput pin to the renderer. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Reconnect on connected Pin from the capture filters pin
    ... Have you implemented your own resolution ... stop and restart the graph from inside your filter. ... the graph, disconnect the pin, display the pin property ...
    (microsoft.public.win32.programmer.directx.video)