i am writing an app that preview then capture video from a Video Device (ex:Cam), i didn't found a solution to take a snapshot during capturing with a ASF format
.
so i thought i could take a picture from the preview panel but the background-image didn't contain it, and the image property of is null if i use a Picturebox
.
do anyone knew how Directshow
use the panel or Picturebox
to preview video?
Typical solution for capture with preview is to add a tee (smart tee) and then do writing and presentation on the outputs of that tee respectively. PlayCap
DirectShow.NET sample shows how to visualize video feed. Video renderer provides methods to read back last presented video frame, so that you could make a snapshot out of it.
Separate parts of this task have been discussed many times, including here: