https://docs.microsoft.com/zh-cn/windows/desktop/DirectShow/amcap-sample
Description
Video capture application.
This sample application demonstrates the following tasks related to audio and video capture:
- Capture to a file
- Live preview
- Allocation of the capture file
- Display of device property pages
- Device enumeration
- Stream control
AMCap supports MPEG-2 program stream input, for example from analog TV Tuners that stream MPEG-2 content. A DirectShow-compatible MPEG-2 decoder is required to decode the streams.
Downloading the Sample
To download the DirectShow SDK samples, install the latest version of the Windows SDK.
This sample is installed under the following path: [SDK Root]\Samples\Multimedia\DirectShow\Capture\AmCap.