The camera is critical to capturing HD uncensored.
The camera has two important parameters, one is the resolution and the other is the frame frequency.
attached: Equipment Test Demo source Download
I. Parameters of the laptop's own camera
Size is the resolution of the camera, maxframerate refers to the maximum frame rate that the camera collects to achieve.
Of course, my camera is relatively low, recording HD uncensored is certainly not going to work.
Two. Parameters measured by the external camera.
attached: Equipment Test Demo source Download
Three. Select the camera's resolution and frame rate to record the video
The 1280*720 is now selected, with a frame rate of 30fps.
The parameter information for the recorded video is as follows:
attached: Video recording demo source download
Obviously the camera can reach 30fps, why the actual recording is only 13fps video?
Three. Real-time viewing of frame rate values captured by the camera
What is the method for real-time viewing of the camera capture to achieve the frame rate value?
Very simple.
1. First set up a counter to record the number of frames captured.
2. Create a polling thread to show the number of frames per second increments, which is the FPS value.
PrivateIcapturer Audiocapturer;//Audio capture Device PrivateIcapturer Videocapturer;//Video capture Device PrivateVideofilemaker Videofilemaker;//Video Recorder PrivateThread Examineframecount;// number of frames polling thread Private intFramecount =0;// captured picture frame count Private intDeltaframecount =0; // frame count increment over time Private intFramerate = -;//capture the video frame frequency Private BOOLsizerevised =false;//whether you want to crop the length of the image frame to an integer multiple of 4
Video Capture event handling method code:
voidform1_imagecaptured (Bitmap img) {this.framecount++; This. Displayvideo ((Bitmap) img. Clone ()); Bitmap imgrecorded=img; if( This. sizerevised)//to crop the image, Mfile requires that the length and width of the recorded video frame must be an integer multiple of 4. {imgrecorded= ESBasic.Helpers.ImageHelper.RoundSizeByNumber (IMG,4); Img. Dispose (); } This. Videofilemaker.addvideoframe (imgrecorded); //Fast Memory Release if( This. Framecount% (2* This. framerate) = =0) { This. Framecount =0; Gc. Collect (); } }
The code for the polling method:
Private voidSearchcount (ObjectTag//Polling Method { while(true) { intReferencecount = This. Framecount; System.Threading.Thread.Sleep ( +); This. Deltaframecount = This. Framecount-Referencecount; This. Showcount (); } }
In this way, we can see the real-time value of the frame rate captured by the camera.
Summary:
The maximum frame rate for camera calibration refers to the peak value, while the frame rate of the recorded generated file refers to the mean. Moreover, the camera can actually achieve the acquisition frame frequency and the picture of the brightness and the degree of change are related. The brighter the picture, the smaller the picture changes, the greater the value of the frame rate recorded.
attached: Video Recording demo source download
attached: Equipment Test Demo source Download
How can I shoot out HD uncensored? (attached source download!) )