2

I have a composite-to-USB Video Capture Source and I want to render & save video. I created the graph using GraphEdit. I can see live video and save MPEG video successfully. But when I want to create exact graph in my code, I get "There is no common media type between these pins" error. Do you have any idea why?

Thanks

The marked pin connection causes the error

Malik Çelik
  • 302
  • 1
  • 13
  • When it comes to "... between these pins", what are **these** exactly? – Roman R. Jan 16 '14 at 15:03
  • Video Capture Source to SampleGrabber. Actually I wrote on image desciption but it's not visible! – Malik Çelik Jan 16 '14 at 15:30
  • How exactly did you add video source filter to your graph? One good way is to enumerate video capture sources category and use moniker from that enumeration. One bad way (often causing problems like this) is just creating by CLSID. – Dee Mon Jan 16 '14 at 16:46
  • You cannot connect SG input when media type is not compatible with SG. Typical reasons are: incorrectly set SG, video source exposing VIH2-formatted media type. There is n ocertainnty from Q description what is it in your case. – Roman R. Jan 16 '14 at 16:50
  • @RomanR. You are right. There was a problem with format compability. Well, I should convert YUY2 to RGB24 to connect SampleGrabber, because SampleGrabber works in RGB24. Do you have any idea how? – Malik Çelik Jan 17 '14 at 08:11
  • This is a conversion normally added automatically. SG does not have to do RGB24 - this is the way you set it up. Post some code to see what you are doing. – Roman R. Jan 17 '14 at 08:49

0 Answers0