Re-initialization of the graph
-
hello, Using DShowNET,I want to preview live video, capture it to a video file and grab frames at the same time and here i am encountering problem.Using the ISampleGrabberCB interface, one can preview the video and grab frames without any problems. Using the ICaptureGraphBuilder2 interface,one can preview and capture video to a file without any problems. But how to do both these tasks at the same time? I m adding each filter one at a time and then connecting them one at a time. The result; a problem in GetConnectedMediaType method. media = new AMMediaType(); hr = sampGrabber.GetConnectedMediaType(media); It is returning negative value(-214...) and i dont get y? :'( Can anybody who worked in DShowNet help me out?
B!z
-
hello, Using DShowNET,I want to preview live video, capture it to a video file and grab frames at the same time and here i am encountering problem.Using the ISampleGrabberCB interface, one can preview the video and grab frames without any problems. Using the ICaptureGraphBuilder2 interface,one can preview and capture video to a file without any problems. But how to do both these tasks at the same time? I m adding each filter one at a time and then connecting them one at a time. The result; a problem in GetConnectedMediaType method. media = new AMMediaType(); hr = sampGrabber.GetConnectedMediaType(media); It is returning negative value(-214...) and i dont get y? :'( Can anybody who worked in DShowNet help me out?
B!z