Screen recording method and device

A screen and node technology, applied in the field of screen recording methods and devices, can solve problems such as increased CPU usage, conflicts in reading and writing files, and slow compression speed, so as to reduce the occupation rate, reduce conflicts in reading and writing files, and improve compression The effect of speed

Inactive Publication Date: 2011-04-13
GUANGDONG VTRON TECH CO LTD
View PDF3 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The current screen recording technology is mainly divided into two types according to the different data storage addresses: one is to open up a relatively large memory before recording, and store all the collected and compressed image and sound data in the memory, and the image and sound are compressed every time a frame is collected. One frame, due to the use of a single thread, the compression speed is slow, so the frame rate is limited to less than 5 frames per second, and the memory usage is large, and the CPU usage exceeds 60%, or even 100%; the other is to collect the image and sound The data is saved in the file, and the file is compressed after the collection is completed. After the compression, the image and sound need to be saved in the file, which is likely to cause conflicts in reading and writing files, resulting in increased CPU usage, and the frame rate is also limited to 5 frames per second. Below, and after the capture is compressed, the recording takes a long time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Screen recording method and device
  • Screen recording method and device
  • Screen recording method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] The screen recording method of the present invention includes:

[0040] Step 101: Collect images and sounds, save the collected sounds in a sound file, and write the collected images into the memory;

[0041] Step 102: Determine whether the recording end command is received, if it is received, go to step 103, if not, go back to step 101, and go to step 103 at the same time;

[0042] Step 103: Determine whether there is an image in the memory, go to step 104 if there is an image, and go to step 105 if there is no image;

[0043] Step 104: Use M threads to compress the image in the memory, and save the compressed image in an image file;

[0044] Step 105: Compress the sound in the sound file, and insert the compressed sound into the compressed image to form a video file.

[0045] Step 101 of this embodiment obtains the current image of the screen by taking a screenshot, obtains the current sound from the microphone, and saves the image and sound separately. Because the image occupi...

Embodiment 2

[0048] The first embodiment saves the image to the memory, and changes the address every time it is written, such as figure 1 As shown, in order to simplify the read and write operations, this embodiment creates a circular linked list in the memory, and the entire collection process only involves a limited number of addresses. The details are as follows.

[0049] Step 100 is also included before step 101:

[0050] Step 100: Establish a circular linked list containing N nodes in the memory.

[0051] So far, the memory involved in the subsequent steps is represented by N nodes in the above circular linked list, and the size of each node is the size of one frame of image. Step 101: Write each frame of image collected into N nodes of the circular linked list in turn, and each node writes one frame. When the Nth node is written, it transfers to the first node to continue writing, and so on. At the same time, step 104 is also compressing the image. For each node, before the next write, th...

Embodiment 3

[0055] In this embodiment, a flag bit is added to each node to avoid errors caused by inconsistency between the collection speed and the compression speed, as follows.

[0056] While establishing a circular linked list of N nodes in step 100, configure a flag bit for each node, and set the initial flag of the flag bit as read, which means that the node has not yet been stored in the image or the image has been read go.

[0057] In the second embodiment, step 101 writes the collected images of each frame sequentially to the N nodes of the circular linked list. The specific implementation method is to determine whether the flag bit of the node to be written is read, if otherwise, wait until the node's The flag bit becomes read. If it is, write the collected image to the node and the node's flag position is written. This step is repeated for N nodes in turn. The written meaning means that the node has stored the image.

[0058] The specific implementation of step 103 in the second embo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a screen recording method, which comprises the following steps of: saving an image in an internal memory and saving sound in a file; synchronously saving and compressing the image; and compressing the sound after all is saved. Compared with a method for saving the image and the sound together and compressing simultaneously, the method reduces the occupancy rate of a central processing unit (CPU) and the conflict of read-write files in the compression process and further improves the compression speed by adopting multithreading compression, so that the method supports higher acquisition frame rate to improve the playing fluency of a video file. The invention also discloses a screen recording device corresponding to the screen recording method. An acquisition and save module respectively saves the acquired image and file into the internal memory and the file; and a compression module compresses the image and the sound sequentially after receiving a compression command of a record ending judgment module. By combining the method, the device can realize high-efficiency high-quality screen recording.

Description

Technical field [0001] The present invention relates to the field of computer application technology, in particular to a screen recording method and device. Background technique [0002] With the popularization of computer applications, computers are often used to demonstrate relevant content during education, conferences, and speeches. In order to facilitate audience review, it is usually necessary to record live sound and screen images to form a video for playback. [0003] The current screen recording technology is mainly divided into two types according to the data storage address: one is to open up a relatively large memory before recording, and save all the collected and compressed image and sound data in the memory, and the image and sound are compressed for each frame collected. One frame, due to the single thread, the compression speed is slow, so the frame rate is limited to less than 5 frames per second, and the memory footprint is large, the CPU occupies more than 60%, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44H04N7/26H04N19/157
Inventor 陈先志
Owner GUANGDONG VTRON TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products