简体   繁体   中英

How can i create avi from camera using directshow?

I would like to capture video files from a camera. I captured image files from a camera using sample grabber, but I don't know how to capture video files and save it to avi format. When I call renderstream function, an error occurs.

Windows SDK 7.x comes with AMCap Sample which is a classic sample demonstrating preview and capture capabilities.

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

If you have a narrower problem, please post your code to get an advice specific to your problem.

Getting Sample Code

  • Install Windows SDK 7.1
  • Make sure to install samples
  • This sample is installed under the following path: [SDK Root]\\Samples\\Multimedia\\DirectShow\\Capture\\AmCap

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM