View Full Version : DirectShow DVD and SampleGrabber
themadmax
12th October 2006, 12:00
Hello,
I'm create a graph to grab DVD video, with :
DVD Navigator
GPL MPEG-1/2 Decoder ( or Cyberlink Decoder )
Video Render
After I insert SampleGrabber between Decoder and Render. But it don't to want to connect ! I set SampleGrabber to mediaType RGB32 : This type is supported by decoder ouput pin.
If you have some idea, think
Nic
12th October 2006, 12:37
Been a long time since I used SampleGrabber. Make sure that MajorType, SubType & Format are exactly the same as the pin your trying to connect to. I'm guessing you may not have the formattype and/or format (VIDEOINFOHEADER?) nice enough for the decoder.
Might be easier to write your own filter instead of using SampleGrabber. That's normally what I do. If you start with the NullNull sample filter it would take no time at all.
-Nic
themadmax
12th October 2006, 18:03
Think a lot !
So I writting my Sample Grabber from contrast filter ( NullNull Filter was not in my platform SDK )
And I see that sample grabber support only FORMAT_VideoInfo, and the ouput of GLP MPEG-1/2 decoder give FORMAT_VideoInfo2 !
So i'm reformating code to change this. My grabber can connect to MPEG Decoder ! But now the renderer don't wan't to connect to my grabber :'( !
In graph edit, when I select grabber's render pin, error 0x80040231 : "The filter graph is circular"
I don't find filter sample using FORMAT_VideoInfo2, or the must : filter to convert FORMAT_VideoInfo into FORMAT_VideoInfo2 !
When I'm tracking bad return I found in class CBasePin::AttemptConnection, pReceivePin->ReceiveConnection return VFW_E_TYPE_NOT_ACCEPTED.
Think for u help. and sorry for my bad english
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.