Advertisement

06.29.2007 at 07:57AM PDT, ID: 22666868 | Points: 500
[x]
Attachment Details

ISampleGrabber in any video based filtergraph

Asked by tcarmich in C++ Programming Language, DirectX Graphics & Game Programming, Video Editing

Tags:

Hi there,

I am trying to use a SampleGrabber within an automatically rendered filter graph.

When I create the filter graph I add the SampleGrabber with the following media type,

mt.majortype = MEDIATYPE_Video;
mt.subtype = GUID_NULL;
mt.formattype = FORMAT_VideoInfo;

Unfortunately I have to set the subtype to GUID_NULL as it will not connect into every graph automatically othewise.  I am registering the filter graph with graphedit so that I can view it to make sure that it has all connected correctly.

Unfortunately when connected like this it does not appear in the correct place, instead it ends up coming before the decoder so I end up with gibberish being put through the sample grabber.

Basically what I am trying to achieve is the *simplest* way to connect a Sample Grabber to *any* filter graph.

One method I thought of was to render the graph then add the sample grabber after by placing it before the video renderer.  Which to me; makes perfect sense.  Unfortunately, firstly I could not disconnect the the pin between the last 2 filters even though I was informed that the disconnection was a success.  And secondly I would then need some way of converting any input YUV, YUV2 etc to RGB24 (my desired bitmap format).

If anyone has some advice on this It would be greatly appreciated!Start Free Trial
[+][-]06.30.2007 at 07:35PM PDT, ID: 19397631

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2007 at 08:50AM PDT, ID: 19419163

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2007 at 08:52AM PDT, ID: 19419182

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.22.2008 at 01:37AM PDT, ID: 21185319

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080924-EE-VQP-38