CN-116320238-B - Screen recording method and device
Abstract
The application provides a screen recording method and a device thereof, wherein the screen recording method comprises the steps of recording at least part of display content displayed on a screen interface under the condition of receiving a first instruction to obtain a first video stream; the method comprises the steps of carrying out enhancement processing on a first video stream through an independent display chip to obtain a second video stream, wherein the frame rate of the second video stream is higher than that of the first video stream, and generating a recording file according to the second video stream under the condition that a second instruction is received.
Inventors
- AN JINGXI
- ZHANG BIAO
Assignees
- 维沃移动通信有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20230410
Claims (8)
- 1. A screen recording method, comprising: recording at least part of display content displayed on a screen interface by a processor under the condition of receiving a first instruction to obtain a first video stream; the first video stream is enhanced through an independent display chip to obtain a second video stream, wherein the frame rate of the second video stream is higher than that of the first video stream; Transmitting the second video stream sent by the independent display chip to a virtual display module cache of the processor; Storing the second video stream cached by the virtual display module to a storage module; Generating a recording file by the processor according to the second video stream under the condition that a second instruction is received; the virtual display module of the processor includes a virtual screen and a buffer, and the transmitting the second video stream sent by the independent display chip to the virtual display module buffer includes: caching the second video stream sent by the independent display chip to the buffer through the virtual screen; The storing the second video stream cached by the virtual display module to a storage module includes: and storing the second video stream cached by the cache to the storage module.
- 2. The method of claim 1, wherein generating a recording file from the second video stream upon receiving a second instruction comprises: under the condition of receiving a second instruction, acquiring the second video stream from the storage module; and carrying out data conversion on the second video stream to generate the recording file.
- 3. The method according to claim 1, wherein recording at least part of the display content displayed on the screen interface in case of receiving the first instruction, to obtain the first video stream, includes: Creating a virtual screen under the condition of receiving a first instruction, wherein the virtual screen is used for recording at least part of display content displayed on the screen interface; compiling video data cached by a buffer in communication connection with the virtual screen to obtain the first video stream, wherein the video data characterizes at least part of display content displayed on the screen interface recorded by the virtual screen.
- 4. A method according to any one of claims 1-3, wherein the enhancing the first video stream by the independent display chip to obtain a second video stream comprises: And sending the first video stream and the enhancement instruction to the independent display chip so that the independent display chip carries out frame inserting processing on the first video stream to obtain the second video stream.
- 5. A screen recording apparatus, comprising: The virtual display module is used for recording at least part of display contents displayed on the screen interface through the processor under the condition of receiving the first instruction to obtain a first video stream; The video processing device comprises an independent display chip, a virtual display module and a processor, wherein the independent display chip is used for carrying out enhancement processing on the first video stream to obtain a second video stream, and the frame rate of the second video stream is higher than that of the first video stream; The storage module is used for storing the second video stream cached by the virtual display module; The processing module is used for generating a recording file according to the second video stream by the processor under the condition of receiving the second instruction; the virtual display module of the processor comprises a virtual screen and a buffer, and the virtual screen is in communication connection with the buffer; the virtual screen is used for caching the second video stream sent by the independent display chip to the buffer through the virtual screen; And the buffer is used for storing the buffered second video stream to the storage module.
- 6. The apparatus according to claim 5, wherein the processing module is configured to obtain the second video stream from the storage module, in particular when a second instruction is received; and carrying out data conversion on the second video stream to generate the recording file.
- 7. The apparatus of claim 5, wherein the processing module is further configured to create a virtual screen upon receiving the first instruction, the virtual screen being configured to record at least a portion of the display content displayed by the screen interface; compiling video data cached by a buffer in communication connection with the virtual screen to obtain the first video stream, wherein the video data characterizes at least part of display content displayed on the screen interface recorded by the virtual screen.
- 8. An electronic device, comprising: The processor is provided with a first data interface, a second data interface and a first signal interface, and records at least part of display content displayed on the screen interface to obtain a first video stream; The independent display chip is provided with a third data interface, a fourth data interface, a fifth data interface and a second signal interface, wherein the third data interface is in communication connection with the first data interface, the fourth data interface is in communication connection with the second data interface, and the second signal interface is in communication connection with the first signal interface; The display panel is in communication connection with the independent display chip through the fifth data interface so as to receive the second video stream; the processor receives the second video stream sent by the independent display chip through the second data interface, and generates a recording file according to the second video stream; the processor comprises a virtual display module, and the virtual display module is in communication connection with the independent display chip through the second data interface; the independent display chip sends the second video stream to the processor through the fourth data interface; The virtual display module caches the second video stream sent by the independent display chip through the second data interface; The virtual display module comprises a virtual screen and a buffer, and the virtual screen is in communication connection with the buffer; the virtual screen caches the second video stream sent by the independent display chip to the buffer; The electronic device further includes a memory communicatively coupled to the processor for storing the second video stream buffered by the processor.
Description
Screen recording method and device Technical Field The application belongs to the technical field of communication, and particularly relates to a screen recording method and a screen recording device. Background Screen recording, also called as screen recording, refers to recording contents displayed by electronic devices such as mobile phones and tablet computers and changes of the displayed contents to obtain a recording file in a video form. In the related art, when screen recording is performed, recording is performed on display content of a display screen of an electronic device, so as to obtain a screen recording video. However, the frame rate of the screen recorded video is low, resulting in poor display effect of the screen recorded video. Disclosure of Invention The embodiment of the application aims to provide a screen recording method and a device thereof, which can solve the problem of poor display effect of screen recorded video. In a first aspect, an embodiment of the present application provides a screen recording method, where the method includes: recording at least part of display content displayed on a screen interface under the condition of receiving a first instruction, and obtaining a first video stream; the first video stream is enhanced through an independent display chip to obtain a second video stream, wherein the frame rate of the second video stream is higher than that of the first video stream; and generating a recording file according to the second video stream under the condition that a second instruction is received. In a second aspect, an embodiment of the present application provides a screen recording apparatus, including: The virtual display module is used for recording at least part of display contents displayed on the screen interface under the condition of receiving a first instruction to obtain a first video stream; the independent display chip is used for carrying out enhancement processing on the first video stream to obtain a second video stream, wherein the frame rate of the second video stream is higher than that of the first video stream; and the processing module is used for generating a recording file according to the second video stream under the condition of receiving a second instruction. In a third aspect, an embodiment of the present application provides an electronic device, including: The processor is provided with a first data interface, a second data interface and a first signal interface, and records at least part of display content displayed on the screen interface to obtain a first video stream; The independent display chip is provided with a third data interface, a fourth data interface, a fifth data interface and a second signal interface, wherein the third data interface is in communication connection with the first data interface, the fourth data interface is in communication connection with the second data interface, and the second signal interface is in communication connection with the first signal interface; The display panel is in communication connection with the independent display chip through the fifth data interface so as to receive the second video stream; And the processor receives the second video stream sent by the independent display chip through the second data interface and generates a recording file according to the second video stream. In the embodiment of the application, under the condition of receiving a first instruction, at least part of display content displayed on a screen interface is recorded to obtain a first video stream, the first video stream is enhanced through an independent display chip to obtain a second video stream, and under the condition of receiving a second instruction, a recorded file is generated according to the second video stream. In the embodiment of the application, the second video stream is obtained by enhancing the first video stream, that is, the frame rate of the second video stream is higher than that of the first video stream, so that the frame rate of the screen recorded video represented by the recorded file generated according to the second video stream is higher, thereby improving the display effect of the screen recorded video. Drawings Fig. 1 is a flowchart of a screen recording method according to an embodiment of the present application; Fig. 2 is an application architecture schematic diagram of a screen recording method according to an embodiment of the present application; Fig. 3 is a block diagram of a screen recording apparatus according to an embodiment of the present application; fig. 4 is a block diagram of an electronic device according to an embodiment of the present application; fig. 5 is another structural diagram of an electronic device according to an embodiment of the present application. Detailed Description The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the pre