Directshow Preview Only and Capture & Preview with a single Graph
问题 I have a Directshow application that needs to preview a webcam video, and when user clicks 'Record' it needs to start capturing the video to a file. To that end I created a single Capture Graph, with PREVIEW pin connected to a RENDER filter and CAPTURE pin connected to a AVI_MUX filter that saves to a file. It looks something like this: /[PREVIEW PIN]-->[VIDEO_RENDERER]--->[SCREEN] [VIDEO CAPTURE FILTER] / \ \[CAPTURE PIN]--->[AVI_MUX]--->[FILE WRITER] When I call Run() on the graph the video