Background technology
Along with popularizing of computer application, in processes such as education, meeting, speech, often adopt computer to demonstrate related content.For making things convenient for spectators to look back, need on-the-spot sound and screen-picture be recorded usually, form video so that playback.
At present, under the Windows environment, the screen technology of grabbing commonly used has 2 kinds, and GDI/GDI+ grabgraf and Directx grabgraf adopt these two kinds to grab the screen technology and carry out screen recording and have following shortcoming:
1, both are the pure software recording technology, and the effect of therefore recording has much relations with the height of the computer configuration of hardware, and it is good to dispose high recording result, and the low recording result of configuration is poor, and influence the use of operating system;
2, because recording process relatively takies CPU, the frame number of recording is restricted, generally below 10 frames;
3, the GDI/GDI+ grabgraf can grasp translucent picture, but the video image in can not capture play.The video image of Directx grabgraf in can capture play, but can not grasp translucent picture, therefore no matter adopt which kind of technology, the output of whole screen is grasped imperfect;
4, adopt pure software to record, can't record the sound of computer output, can only record the sound of microphone.
Summary of the invention
Screen recording device of the present invention, adopting hardware is that mode main, that soft or hard combines realizes that audio frequency and video record, and reduces the dependence of recording process to computer CPU, thereby improves recording result.
Screen recording device of the present invention comprises analog input card, synthetic integrated circuit board, encoding compression integrated circuit board and file writing module,
Said analog input card comprises computer video acquisition module, camera video acquisition module, computer audio acquisition module and the microphone audio acquisition module of gathering according to predetermined acquisition frame rate; Said computer video acquisition module is through the video output interface collecting computer video of computer, and said computer audio acquisition module is through the audio frequency of the audio output interface collecting computer of computer;
Said synthetic integrated circuit board comprises image synthesis unit and sound synthesis module; Said image synthesis unit is used for the video of said computer video acquisition module and the collection of said camera video acquisition module is synthesized, and said sound synthesis module is used for the audio frequency of said computer audio acquisition module and the collection of said microphone audio acquisition module is synthesized;
Said encoding compression integrated circuit board comprises video coding compression module and audio compression coding module; Said video compression coding module is used for the video of said image is carried out encoding compression, and said audio compression coding module is used for the synthetic audio frequency of said sound synthesis module is carried out encoding compression;
Said file writing module is used for the voice data of the video data of said video coding compression module output and the output of said audio coding compression module is write the file of assigned catalogue.
Preferably, H.264 said image synthesis unit and sound synthesis module adopt technology to synthesize, and H.264 said video coding compression module and audio coding compression module adopt technology to carry out encoding compression.
Preferably, also comprise control module, be used to control each acquisition module on the said analog input card startup, suspend and stop, and regulate the predetermined acquisition frame rate of each acquisition module.
Preferably, also comprise the file output module, be used to adopt the USB way of output or computer on-link mode (OLM) that the file that said file writing module writes is exported.
Screen recording device of the present invention comprises analog input card, synthetic integrated circuit board, encoding compression integrated circuit board and file writing module.Wherein, analog input card comprises computer video acquisition module, camera video acquisition module, computer audio acquisition module and microphone audio acquisition module.Each acquisition module is realized by hardware independently, does not take CPU, so acquisition frame rate do not receive the restriction of CPU processing speed, and can realize the extracting of dynamic video and transparent picture, and records computer sound and microphone voice the time.Compare pure software and record, recording result improves, and records efficient and also is improved.
Embodiment
The invention provides a kind of screen recording device; To reduce taking internal memory and CPU in the recording process; Improve the fluency of recording the video file that obtains, can record the video image in the broadcast, can record audio frequency of PC own and microphone audio simultaneously; The frame number of recording can reach more than 24 frames, thereby improves the efficient and the quality of screen recording.Below in conjunction with accompanying drawing and the present invention of specific embodiment illustrated in detail.
Screen recording device of the present invention, as shown in Figure 1, comprise analog input card, synthetic integrated circuit board, encoding compression integrated circuit board and file writing module,
Said analog input card comprises computer video acquisition module, camera video acquisition module, computer audio acquisition module and the microphone audio acquisition module of gathering according to predetermined acquisition frame rate; Said computer video acquisition module is through the video output interface collecting computer video of computer, and said computer audio acquisition module is through the audio frequency of the audio output interface collecting computer of computer;
Said synthetic integrated circuit board comprises image synthesis unit and sound synthesis module; Said image synthesis unit is used for the video of said computer video acquisition module and the collection of said camera video acquisition module is synthesized, and said sound synthesis module is used for the audio frequency of said computer audio acquisition module and the collection of said microphone audio acquisition module is synthesized;
Said encoding compression integrated circuit board comprises video coding compression module and audio compression coding module; Said video compression coding module is used for the synthetic video of said image synthesis unit is carried out encoding compression, and said audio compression coding module is used for the synthetic audio frequency of said sound synthesis module is carried out encoding compression;
Said file writing module is used for the voice data of the video data of said video coding compression module output and the output of said audio coding compression module is write the file of assigned catalogue.
As a preferred embodiment, H.264 said image synthesis unit and sound synthesis module adopt technology to synthesize, and H.264 said video coding compression module and audio coding compression module adopt technology to carry out encoding compression.
As a preferred embodiment, this device also comprises control module, be used to control each acquisition module on the said analog input card startup, suspend and stop, and regulate the predetermined acquisition frame rate of each acquisition module.Particularly, as shown in Figure 2, control module can comprise starting to be recorded button, suspends and record button, stop to record button and the frame per second button is recorded in adjusting.In addition, as shown in Figure 2, the corresponding acquisition interface of each acquisition module on the analog input card.Wherein, the acquisition interface that the computer video acquisition module is corresponding links to each other with the video output interface of computer, and the video output interface of the computer here can be VGA, DVI or HDMI interface, with the VGA interface as preferably.
As a preferred embodiment; As shown in Figure 2, this device also comprises the file output module, is used to adopt the USB way of output or computer on-link mode (OLM) that the file that said file writing module writes is exported; Therefore, this device also comprises a USB output interface.
Based on above-mentioned hardware foundation, it is following to adopt this device to carry out the idiographic flow of screen recording:
1, per second is set and records frame number (the promptly predetermined frame number of gathering), record the frame number button through the adjusting per second and carry out frame rate adjustment, the highest 30 frames/per second that can be adjusted to.
2, button is recorded in startup, and this screen recording device starts to be recorded.
3, this screen recording device starts analog input card; Each acquisition module on the analog input card; Accomplish various data acquisitions (computer video collection, computer audio collection, microphone audio collection, camera video acquisition) according to the frame per second that sets; Like frame per second is per second 10 frames, gathers frame data for promptly per 200 milliseconds.
4, each acquisition module is sent to the synthesis module on the synthetic integrated circuit board to audio frequency, the video data gathered, synthesizes video, voice data according to frame per second.Wherein camera video can dwindle placement in the upper right corner (or other three angles) of computer video, looks back the video that recorded video can be seen the speaker like this.
5, this screen recording device is sent to the encoding compression module on the encoding compression integrated circuit board to synthetic video and voice data, carries out the encoding compression of image and sound, and coding techniques can adopt various coding techniquess, as H.264 waiting.
6, this screen recording device is sent to the file writing module to the video of encoding compression and audio frequency, and this module writes video and audio frequency in the file according to the frame number that is provided with and the file format of setting.
7, start time-out and record button, each acquisition module stops the collection of all audio frequency, video, accomplishes the data acquisition and the compression of previous frame, waits for restarting and records.
8, restart and record, each acquisition module is proceeded audio frequency and video data acquiring.
9, startup stops to record button, and each acquisition module is accomplished the audio frequency of last frame and the collection of video, and the file writing module is accomplished writing of last frame video, voice data, and preserving this document is that video file is to assigned catalogue.Accomplish one time recording process.
10, the user can carry out duplicating of file through inserting USB or linking the direct access stored of computer position.
Above-described embodiment of the present invention does not constitute the qualification to protection range of the present invention.Any modification of within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within the claim protection range of the present invention.