I am writing a program which has a video preview and a button to take still image during capturing. Everything goes well until when I capture a still image using VideoControl->SetMode(pStillPin,VideoControlFlag_Trigger), the preview stream stops there. However, the capture graph continues to run because I can still take photo using SetMode. The only way to recover from the situation to to use pMediaControl->Stop and pMediaControl->Start, which, unfortunately, takes a lot of time (more than 7 seconds in my case). Any ideas how I can resume the preview without resetting the graph? Thanks
On Thu, 17 Jul 2008 01:21:08 +0800, minhdanh wrote: > I am writing a program which has a video preview and a button to take still > image during capturing. Is there a reason you need to use the Still pin rather than just getting an image from the existing graph? (for example, the still pin has higher resolution and you need that) If not, you can use: IVMRWindowlessControl[9]::GetCurrentImage if you are using the VMR[9] to display a preview or the sample grabber. -- Please read this before replying: 1. Dshow & posting help: http://tmhare.mvps.org/help.htm 2. Trim & respond inline (please don't top post or snip everything) 3. Benefit others: follow up if you are helped or you found a solution