Video recording method and device, storage medium and terminal

By determining and recording the content of the target control in the video recording method and device, the problem of excessive unnecessary information when recording screen videos is solved, clearer video content is achieved, and user experience is improved.

CN119135820AActive Publication Date: 2024-12-13GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310695464.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-12
Publication Date
2024-12-13
Estimated Expiration
2043-06-12

AI Technical Summary

Technical Problem

When recording screen videos, too much content is displayed, especially when the user is recording screen content of a certain application, notification messages from other applications will cause unnecessary information to appear in the video, affecting the viewing experience.

Method used

A video recording method and device are provided that can determine the target control to be recorded from the target application in response to the control recording instructions, and record it separately to reduce non-essential information in the screen video. The method includes a control determination module and a video recording module, recording the display content of the target control through the target canvas, and generating the target video.

Benefits of technology

It realizes the video content of a certain control separately, reduces unnecessary information in recorded screen videos, and improves the viewing and user experience of the video.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135820A_ABST
    Figure CN119135820A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a video recording method and device, a storage medium and a terminal, and the method comprises the steps: determining a to-be-recorded target control from at least one control of a target application based on a control recording instruction in response to the control recording instruction for the display content of at least one control in the target application, and carrying out display content recording on the target control to obtain a target video corresponding to the target control. According to the embodiment of the invention, the to-be-recorded target control is determined according to the control recording instruction, and then the content displayed by the target control is recorded to obtain the target video, so that the video of the content displayed by a certain control can be independently recorded, and unnecessary information in the recorded screen video is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a video recording method, device, storage medium and terminal. Background Art

[0002] With the development of smart terminals, the functions of smart terminals are becoming more and more abundant. Taking smart terminals such as mobile phones, tablets, and computers as an example, since the screenshot function on smart terminals can only capture a frame of the image displayed on the screen, in view of the limitations of the screenshot function, more and more smart terminals now support screen recording function.

[0003] The screen recording function can not only record the content displayed on the screen in a continuous period of time, but also record the sound played by the terminal in the continuous period of time. However, in the video of the recorded screen content, the content of the entire terminal screen is often displayed. In some scenarios, if the user is recording the screen content of a certain application, and the notification message of other applications is displayed on the screen at this time, the video will display too much content, affecting the perception of the screen content. Summary of the invention

[0004] The embodiments of the present application provide a video recording method, device, computer storage medium and terminal, which can record the video of the content displayed by a certain control separately, reducing unnecessary information in the recorded screen video. The technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a video recording method, the method comprising:

[0006] In response to a control recording instruction for displaying content of at least one control in a target application, determining a target control to be recorded from at least one control of the target application based on the control recording instruction; the display interface of the target application is composed of the at least one control, and the control display content is displayed in the control;

[0007] The display content of the target control is recorded to obtain a target video corresponding to the target control.

[0008] In a second aspect, an embodiment of the present application provides a video recording device, the device comprising:

[0009] A control determination module, configured to respond to a control recording instruction for displaying content of at least one control in a target application, and determine a target control to be recorded from at least one control of the target application based on the control recording instruction; the display interface of the target application is composed of the at least one control, and the control display content is displayed in the control;

[0010] The video recording module is used to record the display content of the target control to obtain the target video corresponding to the target control.

[0011] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium has a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0012] In a fourth aspect, an embodiment of the present application provides a terminal, which may include: a memory and a processor; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the memory and executing the above-mentioned method steps.

[0013] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0014] In an embodiment of the present application, in response to a control recording instruction for displaying content of at least one control in a target application, a target control to be recorded is determined from at least one control of the target application based on the control recording instruction, wherein the display interface of the target application is composed of at least one control, and the control display content is displayed in the control; then the display content of the target control is recorded to obtain a target video corresponding to the target control. The embodiment of the present application determines the target control to be recorded according to the control recording instruction, and then records the content displayed by the target control to obtain a target video. Therefore, the embodiment of the present application can record a video of the content displayed by a certain control separately, reducing unnecessary information in the recorded screen video. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0016] Figure 1 is a method schematic diagram of a video recording method provided in an embodiment of the present application;

[0017] Figure 2 It is a schematic diagram of controls in a display interface provided in an embodiment of the present application;

[0018] Figure 3 It is a flowchart of another video recording method provided in an embodiment of the present application;

[0019] Figure 4 is a structural schematic diagram of a video recording device provided in an embodiment of the present application;

[0020] Figure 5 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the purpose, features, and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0022] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.

[0023] See also Figure 1 , is a flow chart of a video recording method provided in an embodiment of the present application. Figure 1 As shown, the method of the embodiment of the present application may include the following steps:

[0024] S101, in response to a control recording instruction for displaying content of at least one control in a target application, determining a target control to be recorded from at least one control of the target application based on the control recording instruction.

[0025] It is easy to understand that the display interface in the target application is composed of at least one control, and the control display content is displayed in the control. That is, the display interface in the target application may include one or more controls. Different controls can be used to display different control display contents. For example, see Figure 2 A schematic diagram of a display interface within a target application is shown, and the target application may be a video playback application. Figure 2 The area shown in 1 is the screen area of ​​the terminal, the area shown in 10 is the area where control 1 is located, the area shown in 11 is the area where control 2 is located, the area shown in 12 is the area where control 3 is located, and the area shown in 13 is the area where control 4 is located. Control 1, control 2, control 3 and control 4 are different controls, and each control is responsible for displaying different content. For example, control 1 can be used to display video playback content, control 2 can be used to display notification messages from other applications / systems at a certain moment, control 3 can be used to display a toolbar, and control 4 can be used to display icons for functions such as lock screen and screen recording.

[0026] The control display content may refer to the content displayed by each control on the display interface of the target application. For example, referring to the above description, the control display content may include but is not limited to video playback content, notification messages of other applications / systems at a certain moment, toolbars, lock screen function icons, and screen recording function icons.

[0027] The control recording instruction may refer to a recording instruction used to instruct a terminal to record display content of a certain control.

[0028] In some embodiments, a user can perform a control recording operation on one or more control display contents in a target application. For the user, an operation is performed; for the terminal, when the user performs the control recording operation, the terminal receives a control recording instruction for the control recording operation. That is, when the user performs a control recording operation on one or more control display contents in a target application, the terminal can receive a control recording instruction for the control recording operation. In other words, after receiving a control recording instruction for at least one control display content in a target application, the terminal can respond to the control recording instruction and determine a target control to be recorded from at least one control in the target application based on the control recording instruction.

[0029] Optionally, the target control can be a preset recording control, which can be associated with the control recording instruction. Then, based on the control recording instruction, the target control to be recorded is determined from at least one control in the target application. It can be understood that the preset recording control that has an associated relationship with the control recording instruction in at least one control in the target application is determined as the target control.

[0030] Optionally, the target control can also be a control obtained by parsing the control recording instruction. In this case, based on the control recording instruction, the target control to be recorded is determined from at least one control in the target application. This can be understood as determining the target control to be recorded from at least one control in the target application based on the parsing result of the control recording instruction.

[0031] S102, recording the display content of the target control to obtain a target video corresponding to the target control.

[0032] In some embodiments, the moment when the control recording instruction is received can be used as the start moment, and the content displayed in the target control can be recorded from the start moment; the moment when the control recording end instruction is received can be used as the end moment, and the content displayed in the target control can be stopped from the end moment. Therefore, by recording the content displayed in the target control between the start moment and the end moment, the target video corresponding to the target control can be obtained. Among them, the control recording end instruction can be the end instruction corresponding to the control recording instruction, and the end moment can be located after the above-mentioned start moment.

[0033] For example, the target control is Figure 2 The control 1 shown in 10 in the display interface shown can be used to display video playback content. The terminal can then display and record the video playback content displayed in control 1 to obtain the target video corresponding to control 1. The target video can then only include the video playback content, and will not include the content displayed by any of the controls shown in 11, 12, 13, and 4.

[0034] In an embodiment of the present application, in response to a control recording instruction for displaying content of at least one control in a target application, a target control to be recorded is determined from at least one control of the target application based on the control recording instruction, and the display content of the target control is recorded to obtain a target video corresponding to the target control. The embodiment of the present application determines the target control to be recorded according to the control recording instruction, and then records the content displayed by the target control to obtain a target video. Therefore, the embodiment of the present application can record a video of the content displayed by a certain control separately, reducing unnecessary information in the recorded screen video.

[0035] See also Figure 3 , is a flow chart of a video recording method provided in an embodiment of the present application. Figure 3 As shown, the method of the embodiment of the present application may include the following steps:

[0036] S301, in response to a control recording instruction for displaying content of at least one control in a target application, determining a target control to be recorded from at least one control of the target application based on the control recording instruction.

[0037] It is easy to understand that the control recording instruction can be an instruction for displaying content for a control in the target application, so the target control to be recorded determined based on the control recording instruction can be one control. The control recording instruction can be an instruction for displaying content for multiple controls in the target application, so the target controls to be recorded determined based on the control recording instruction can be multiple controls.

[0038] In some embodiments, when the control recording instruction is an instruction for displaying content for a control in the target application, this step may be implemented by: in response to the control recording instruction for displaying content for at least one control in the target application, determining a designated control associated with the control recording instruction in at least one control, and determining the designated control as the target control to be recorded. The designated control may be a control previously set to have an associated relationship with the control recording instruction.

[0039] In some embodiments, when the control recording instruction is an instruction for displaying content for multiple controls in the target application, this step may be implemented by: in response to the control recording instruction for the content displayed by at least one control in the target application, determining multiple designated controls associated with the control recording instruction in at least one control, and determining the multiple designated controls as target controls to be recorded. The multiple designated controls may be multiple controls previously set to have an associated relationship with the control recording instruction.

[0040] In some embodiments, when the control recording instruction is an instruction for displaying content for a control in the target application, another implementation of this step may be: in response to a control recording instruction for displaying content for at least one control in the target application, obtain the instruction operation position corresponding to the control recording instruction, determine the control associated with the instruction operation position in at least one control in the target application, and determine the control associated with the instruction operation position as the target control to be recorded. Among them, the instruction operation position may refer to the location of the area where the operation track corresponding to the operation performed by the user to generate the control recording instruction is located. Specifically, within the target application, one or more reference areas may be divided, and each reference area may be associated with a control. When the instruction operation position corresponding to the control recording instruction hits the location of any of the above-mentioned reference areas, the control associated with the reference may be used as the control associated with the instruction operation position corresponding to the control recording instruction. For example: See Figure 2The multiple controls shown include: control 1 shown in 10, control 3 shown in 12, and control 4 shown in 13. A reference area can be set in the area shown in 10, and the reference area is associated with control 1; at the same time, another reference area is set in the area shown in 12, and the reference area is associated with 2. When the specified operation position of the control recording instruction hits the reference area set in the area shown in 10, control 1 can be determined as the target control to be recorded.

[0041] In some embodiments, when the control recording instruction is an instruction for displaying content for multiple controls in the target application, another implementation of this step may be: in response to a control recording instruction for displaying content for at least one control in the target application, obtain multiple instruction operation positions corresponding to the control recording instruction, respectively determine the control associated with each instruction operation position in at least one control in the target application, and determine the control associated with each instruction operation position as the target control to be recorded. Among them, the instruction operation position may refer to the position of the area where the operation tracks corresponding to the multiple operations performed by the user to generate the control recording instruction are located. For example, in the target application, multiple reference areas may be divided, and each reference area may be associated with a different control. When the multiple instruction operation positions corresponding to the control recording instruction respectively hit multiple reference areas in the above-mentioned reference areas, the controls respectively associated with the multiple reference areas may be used as the target control to be recorded. For example: See Figure 2 The multiple controls shown include: control 1 shown in 10, control 3 shown in 12, and control 4 shown in 13. A reference area can be set in the area shown in 10, and the reference area is associated with control 1; and another reference area is set in the area shown in 13, and the reference area is associated with 4. When the specified operation position of the control recording instruction hits the reference area set in the area shown in 10 and the reference area set in the area shown in 13, control 1 and control 4 can be determined as target controls to be recorded.

[0042] S302, obtaining a target canvas, using the target canvas to record the display content of the target control, and obtaining a target video corresponding to the target control.

[0043] It is easy to understand that the target canvas can refer to a data structure that draws the displayed picture to the screen. For example, in the Android system, the canvas can refer to a surface. Every window seen on the user interface, including: dialog boxes, status bars, application widgets, floating windows, etc., has a surface corresponding to it. The content displayed by each window can be drawn to the surface corresponding to the window. The rendering process Surface Flinger can render each surface to the final display screen according to their order on the Z axis.

[0044] In some embodiments, obtaining the target canvas may be understood as creating a target canvas for the target control, that is, a new canvas, namely, the target canvas, may be created for the target control.

[0045] In some other embodiments, obtaining the target canvas can be understood as obtaining a recording layout control, determining a reference canvas corresponding to the recording layout control, and determining the reference canvas as the target canvas of the target control. The recording layout control can be a preset control that was previously laid out, and when laying out the preset control, a canvas is also created for the preset control, i.e., the reference canvas. In the process of obtaining the target canvas corresponding to the target control, the reference canvas corresponding to the previously laid out recording layout control can be directly determined as the target canvas. In this way, the time of creating a new canvas for the target control can be saved.

[0046] In some embodiments, a target canvas is used to record the display content of a target control to obtain a target video corresponding to the target control. This can be understood as obtaining at least one frame of target control display content corresponding to the target control, and using the target canvas to record at least one frame of target control display content to generate a target video corresponding to the target control.

[0047] Among them, the target control display content may refer to each frame of image content corresponding to the screen content displayed by the target control. To obtain at least one frame of target control display content corresponding to the target control, one implementation method may be: based on the source application control corresponding to the target canvas, call the interception drawing method, and obtain at least one frame of target control display content corresponding to the target control by executing the interception drawing method. The source application control refers to the control based on which the target canvas is created at the stage of creating the target canvas; for example, canvas A is created for control a, and control a can be the source application control of canvas A. The interception drawing method can be used to obtain each frame of image content corresponding to the screen content displayed by the target control. Specifically, for the content displayed on the screen, it is the result of the display content corresponding to different controls being displayed together. Then, by executing the interception drawing method, only at least one frame of target control display content corresponding to the target control can be obtained, without obtaining the display content corresponding to other controls on the screen.

[0048] Among them, a target canvas is used to record at least one frame of target control display content to generate a target video corresponding to the target control. One implementation method may be: based on the frame timing of at least one frame of target control display content, each target control display content is drawn on the target canvas respectively, and the system media encoder is called to record the video of the target canvas to obtain the target video corresponding to the target control.

[0049] It should be noted that the frame timing may refer to the time sequence of the frame images corresponding to the display content of each frame target control in the video. The system media encoder refers to an underlying audio and video codec. For example, the system media encoder may be an encoder that uses a non-central processing unit device for encoding, and the non-central processing unit device used may be a graphics processor, a dedicated digital signal processor, a programmable logic device, etc.

[0050] Specifically, the display content of each frame of the target control can be drawn on the target canvas according to the time sequence of the frame images corresponding to the display content of each frame of the target control, and the system media encoder can be called to encode the data drawn in the target canvas to obtain the target video corresponding to the target control. For example, in the Android system, the system media encoder can use MediaCodec. The encoding principle can be: first, the client writes the data to be encoded to the input buffer area of ​​the encoder obtained, and submits the input buffer area after the data is written to the encoder. After the encoder completes the processing, it transfers it to the output buffer area of ​​the encoder, and the encoder takes back the ownership of the input buffer area from the client; then, the client reads the encoded data from the output buffer area of ​​the encoder obtained for processing. After the processing is completed, the codec takes back the ownership of the output buffer area from the client.

[0051] Optionally, after generating the target video corresponding to the target control, video processing operations may be performed on the target video, such as adding a preset watermark to the target video, adding a filter to the target video, and the like.

[0052] In an embodiment of the present application, first, in response to a control recording instruction for displaying content of at least one control in a target application, a target control to be recorded is determined from at least one control of the target application based on the control recording instruction, and then a target canvas is obtained, and the target canvas is used to record the display content of the target control to obtain a target video corresponding to the target control. The embodiment of the present application determines the target control to be recorded according to the control recording instruction, and then uses the target canvas to record the content displayed by the target control to obtain a target video. Therefore, the embodiment of the present application can record a video of the content displayed by a certain control separately, reducing non-essential information in the recorded screen video. Since an independent target canvas is used to draw and record the content displayed by the recorded control, it will not affect the content displayed by the control in the target application, nor will it affect the operations performed by the user in the target application.

[0053] See also Figure 4 , is a schematic diagram of the structure of a video recording device provided in an embodiment of the present application. The video recording device 400 can be implemented as all or part of the terminal through software, hardware, or a combination of both. The device 400 includes:

[0054] A control determination module 410 is used to respond to a control recording instruction for displaying content of at least one control in a target application, and determine a target control to be recorded from at least one control in the target application based on the control recording instruction; the display interface in the target application is composed of the at least one control, and the control display content is displayed in the control;

[0055] The video recording module 420 is used to record the display content of the target control to obtain a target video corresponding to the target control.

[0056] Optionally, the video recording module 420 includes:

[0057] The video recording unit is used to obtain a target canvas, use the target canvas to record the display content of the target control, and obtain a target video corresponding to the target control.

[0058] Optionally, the video recording unit includes:

[0059] The first acquisition subunit is used to create a target canvas for the target control.

[0060] Optionally, the video recording unit includes:

[0061] A second acquisition subunit is used to acquire a recording layout control and determine a reference canvas corresponding to the recording layout control;

[0062] The reference canvas is determined as a target canvas of the target control.

[0063] Optionally, the video recording unit includes:

[0064] A first recording subunit, used for acquiring at least one frame of target control display content corresponding to the target control;

[0065] The second recording subunit is used to use the target canvas to record the at least one frame of target control display content to generate a target video corresponding to the target control.

[0066] Optionally, the second recording subunit includes:

[0067] A third recording subunit is used to draw the display contents of each target control on the target canvas based on the frame timing of the display contents of the at least one frame of the target control;

[0068] The fourth recording subunit is used to call the system media encoder to perform video recording on the target canvas to obtain a target video corresponding to the target control.

[0069] Optionally, the second recording subunit includes:

[0070] Based on the source application control corresponding to the target canvas, an interception drawing method is called, and at least one frame of target control display content corresponding to the target control is obtained by executing the interception drawing method.

[0071] Optionally, the control determination module includes:

[0072] Obtain the command operation position corresponding to the control recording command;

[0073] A control associated with the instruction operation position is determined in at least one control of the target application, and the control associated with the instruction operation position is determined as a target control to be recorded.

[0074] Please refer to Figure 5 , Figure 5 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. Figure 5 As shown, the terminal 500 may include: at least one processor 501 , at least one network interface 504 , a user interface 503 , a memory 505 , a display screen component 506 , and at least one communication bus 502 .

[0075] The communication bus 502 is used to realize the connection and communication between these components.

[0076] The user interface 503 may include a display screen (Display) and a camera (Camera), and the optional user interface 503 may also include a standard wired interface and a wireless interface.

[0077] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0078] Among them, the processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts in the entire terminal 500, and executes various functions and processes data of the terminal 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 501 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 501, and it can be implemented separately through a chip.

[0079] Among them, the memory 505 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be optionally at least one storage device located away from the aforementioned processor 501. As Figure 5 As shown, the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a program of a video recording method.

[0080] exist Figure 5In the terminal 500 shown, the user interface 503 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 501 can be used to call the program of the video recording method stored in the memory 505, and specifically perform the following operations:

[0081] In response to a control recording instruction for displaying content of at least one control in a target application, a target control to be recorded is determined from at least one control of the target application based on the control recording instruction; the display interface in the target application is composed of the at least one control, and the control display content is displayed in the control;

[0082] The display content of the target control is recorded to obtain a target video corresponding to the target control.

[0083] In one embodiment, when the processor executes the step of recording the display content of the target control to obtain the target video corresponding to the target control, the processor specifically performs the following operations:

[0084] A target canvas is obtained, and display contents of the target control are recorded using the target canvas to obtain a target video corresponding to the target control.

[0085] In one embodiment, when executing the step of obtaining the target canvas, the processor specifically performs the following operations:

[0086] Create a target canvas for the target control.

[0087] In one embodiment, when executing the step of obtaining the target canvas, the processor specifically performs the following operations:

[0088] Obtain a recording layout control, and determine a reference canvas corresponding to the recording layout control;

[0089] The reference canvas is determined as a target canvas of the target control.

[0090] In one embodiment, when the processor executes the step of recording the display content of the target control by using the target canvas to obtain the target video corresponding to the target control, the processor specifically performs the following operations:

[0091] Obtain at least one frame of target control display content corresponding to the target control;

[0092] The target canvas is used to record the at least one frame of target control display content to generate a target video corresponding to the target control.

[0093] In one embodiment, when the processor executes the step of recording the content displayed by the at least one frame of the target control using the target canvas to generate a target video corresponding to the target control, the processor specifically performs the following operations:

[0094] Based on the frame timing of the at least one frame of the target control display content, drawing the target control display content on the target canvas respectively;

[0095] The system media encoder is called to record the video of the target canvas to obtain the target video corresponding to the target control.

[0096] In one embodiment, when executing the step of acquiring at least one frame of target control display content corresponding to the target control, the processor specifically performs the following operations:

[0097] Based on the source application control corresponding to the target canvas, an interception drawing method is called, and at least one frame of target control display content corresponding to the target control is obtained by executing the interception drawing method.

[0098] In one embodiment, when the processor executes the step of determining a target control to be recorded in determining at least one control of the target application based on the control recording instruction, the processor specifically performs the following operations:

[0099] Obtain the command operation position corresponding to the control recording command;

[0100] A control associated with the instruction operation position is determined in at least one control of the target application, and the control associated with the instruction operation position is determined as a target control to be recorded.

[0101] In addition, those skilled in the art will appreciate that the structure of the terminal 500 shown in the above figures does not limit the terminal 500, and the user terminal may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal 500 also includes components such as a radio frequency circuit, an audio circuit, a WiFi component, a power supply, and a Bluetooth component, which will not be described in detail here.

[0102] An embodiment of the present application further provides a computer-readable storage medium, which stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the video recording method as described in the above embodiments.

[0103] An embodiment of the present application further provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the video recording method described in the above embodiments.

[0104] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0105] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A video recording method, characterized in that: The method comprises: In response to a control recording instruction for displaying content of at least one control in a target application, determining a target control to be recorded from at least one control of the target application based on the control recording instruction; the display interface of the target application is composed of the at least one control, and the control display content is displayed in the control; The display content of the target control is recorded to obtain a target video corresponding to the target control.

2. The method according to claim 1, characterized in that The recording of the display content of the target control to obtain a target video corresponding to the target control includes: A target canvas is obtained, and display contents of the target control are recorded using the target canvas to obtain a target video corresponding to the target control.

3. The method according to claim 2, characterized in that The step of obtaining the target canvas includes: Create a target canvas for the target control.

4. The method according to claim 2, characterized in that: The step of obtaining the target canvas includes: Obtain a recording layout control, and determine a reference canvas corresponding to the recording layout control; The reference canvas is determined as a target canvas of the target control.

5. The method according to claim 2, characterized in that: The using the target canvas to record the display content of the target control to obtain a target video corresponding to the target control includes: Obtain at least one frame of target control display content corresponding to the target control; The target canvas is used to record the at least one frame of target control display content to generate a target video corresponding to the target control.

6. The method according to claim 5, characterized in that The using the target canvas to record the content displayed by the at least one frame of the target control to generate a target video corresponding to the target control includes: Based on the frame timing of the at least one frame of the target control display content, drawing the target control display content on the target canvas respectively; The system media encoder is called to record the video of the target canvas to obtain the target video corresponding to the target control.

7. The method according to claim 5, characterized in that The acquiring at least one frame of target control display content corresponding to the target control includes: Based on the source application control corresponding to the target canvas, an interception drawing method is called, and at least one frame of target control display content corresponding to the target control is obtained by executing the interception drawing method.

8. The method according to claim 1, characterized in that The determining a target control to be recorded from at least one control of the target application based on the control recording instruction includes: Obtain the command operation position corresponding to the control recording command; A control associated with the instruction operation position is determined in at least one control of the target application, and the control associated with the instruction operation position is determined as a target control to be recorded.

9. A video recording device, characterized in that: The device comprises: A control determination module, configured to respond to a control recording instruction for displaying content of at least one control in a target application, and determine a target control to be recorded from at least one control of the target application based on the control recording instruction; the display interface of the target application is composed of the at least one control, and the control display content is displayed in the control; The video recording module is used to record the display content of the target control to obtain the target video corresponding to the target control.

10. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 8.

11. A terminal, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Screen recording method, device and equipment and storage medium

    CN112153436A

  • Screen brightness adaptive regulation and control method and equipment and computer readable storage medium

    CN113641323A

  • Screen recording method and device, equipment and medium

    CN113840165A

  • Screen recording for creating contents in mobile devices

    US20140205259A1