Video capture in C #, the two methods

method one

Video capture means to capture video capture card dedicated audio and video information, and then performs data processing, and then compressed software processing, this time can perform various operations on the data storage, playback and transmission.
Windows provides a special Video for Windows to video processing support, the interface can be provided by most video capture card support, and a variety of video compression drivers to choose from (of course, can develop their own video compression), camera capture card support, TV and other input.

When you create a class AVICap capture window and connect it to a video driver, this window which can capture start capturing data, program you can simply send message WM_CAP_SEQUENCE (or macro using capCaptureSequence) to begin capture. If default settings, WM_CAP_SEQUENCE will start capturing video and audio flow CAPTURE.AVI file until a the following events occur:
the user presses the ESC key or a mouse button
your application termination or abort the capture operation, the main steps:

1. Create a capture window (the WINDOW the CAPTURE CREATING A). 8
2. attached to the capture driver (the TO A CONNECTING The the CAPTURE the DRIVER). 9
3. enumerate all installed capture driver (the CAPTURE ENUMERATING the INSTALLED DRIVERS). 9
4. capture driver performance obtained ( a CAPABILITIES, the cAPTURE. oF tHE OBTAINING the DRIVER). 9
5. the resulting state of the capture window (the sTATUS. oF tHE OBTAINING the wINDOW the cAPTURE a) 10
6. the settings dialog box is displayed video feature (the tO dISPLAYING dIALOG BOXES the vIDEO cHARACTERISTICS the sET) 10
7. the video settings and to give format (the sETTING tHE OBTAINING the AND the vIDEO the fORMAT). 11
8. the preview video (Previewing the vIDEO) 12 is
9. the video mode to OVERLAY (ENABLING the vIDEO OVERLAY) 12 is
10. the capture file name (the nAMING the fILE the cAPTURE tHE) 12 is
11. the audio format capture (the cAPTURE FORMATTING is the AUDIO) 12 is
12. The video capture settings change (the vIDEO the cAPTURE the sETTING cHANGING a) 13 is
13. data capture (capturing the dATA) 13 is
14. a block of information increases (ADDING aN iNFORMATION CHUNK) 14
15. Add a callback function (ADDING CALLBACK FUNCTIONS TO AN APPLICATION) 14 in the program
16 to create a callback status (the STATUS CALLBACK the FUNCTION CREATING A) 16
17. A callback function to create an error (the AN ERROR CREATING CALLBACK the FUNCTION). 17
18 is. create a framework for a callback function (CREATING a fRAME cALLBACK fUNCTION) 18   Guangzhou surrogate [electric 13,802,269,370]   Beijing surrogate consulting electrical 13,802,269,370    surrogate [micro 13,802,269,370] +

Guess you like

Origin www.cnblogs.com/bbc2020/p/12503369.html
Recommended