Screen recording method and device of display screen, equipment and medium
Through the screen recording initialization, cache and output functions at the image encoding end, the problem that the existing technology cannot realize real-time screen recording is solved, the screen recording efficiency and experience are improved, and the diverse application needs are met.
Patent Information
- Application Number
- CN202411455134.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-01-14
AI Technical Summary
The existing display screen recording method cannot realize real-time screen recording, the screen recording experience is poor and the efficiency is low, and it cannot meet the increasingly diverse and complex functional needs of customers.
The system parameters are obtained through the image encoding side, the screen recording initialization, cache and output functions are called, the initialization results and video path information are generated, and the target display screen recording and video storage are transmitted to the developer side, so as to realize the real-time screen recording and video storage of the target display.
Real-time screen recording of the target display screen is achieved, computing power is saved, and the efficiency and experience of screen recording operation is improved.
Smart Images

Figure CN119316656A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of screen recording, and in particular to a screen recording method, device, equipment and medium for a display screen. Background Art
[0002] In today's era of rapid development of digital information, the display screen is an important window for information display and interaction, and its functional diversity and efficiency have become crucial. Screen recording is widely used in many fields, such as teaching, demonstration, game live broadcast, software tutorial production, etc. However, the current screen recording solutions used in the market have obvious limitations. This solution mainly relies on hardware encoding to achieve screen recording, but in actual applications, customers often need to record the screen while using hardware to decode the video stream.
[0003] Due to the limitations of existing board hardware in design and performance, its decoding and encoding functions cannot be performed at the same time. Once you try to perform decoding and encoding operations at the same time, a series of problems will arise. The most prominent manifestation is that the device is seriously stuck, which not only greatly affects the user experience, but may also cause interruptions or errors in ongoing operations. The defect of not being able to record the screen while playing a video makes the current screen recording solution unable to meet the increasingly diverse and complex functional requirements of customers. For example, in the field of online education, teachers may want to record the screen while playing teaching videos in order to edit and organize key content; in game live broadcasts, players hope to be able to record wonderful moments in real time while enjoying a smooth gaming experience. However, the existing screen recording solutions cannot meet these requirements, which seriously restricts the development of related applications and the improvement of user experience.
[0004] In summary, the existing display screen recording method has the problems of being unable to record the display screen in real time, poor screen recording experience, and low efficiency. Summary of the invention
[0005] The present invention provides a screen recording method, device, equipment and medium for a display screen, which can solve the problem that the existing screen recording method for a display screen cannot record the display screen in real time, has a poor screen recording experience and is low in efficiency.
[0006] In a first aspect, an embodiment of the present invention provides a screen recording method for a display screen, which is executed by an image encoding end, and the method includes:
[0007] After detecting that the current system parameters are initial system parameters through the parameter acquisition function, the screen recording initialization function is called to initialize the preset screen recording start function, and an initialization result is generated and sent to the developer end, so that the developer end can generate encoding video parameters based on the initialization result;
[0008] After detecting that the current system parameters are encoded video parameters through the parameter acquisition function, the current interface of the target display screen is cached by calling the screen recording start function, the target video is obtained and saved to the preset storage location;
[0009] After detecting that the current system parameters are video output parameters through the parameter acquisition function, the screen recording start function is terminated and the video path information matching the preset storage location is sent to the developer side, so that the developer can obtain the target video based on the video path information.
[0010] In a second aspect, an embodiment of the present invention provides a screen recording method for a display screen, which is executed by a developer end, and the method includes:
[0011] In response to the developer's power-on operation, the current system parameters are updated to the initial system parameters, so that the image encoding end initializes the preset screen recording start function based on the initial system parameters;
[0012] After receiving the initialization result sent by the image encoding end, generating encoding video parameters based on the initialization result and updating the current system parameters to the encoding video parameters, so that the image encoding end obtains the target video based on the encoding video parameters;
[0013] In response to a power-off operation by the developer, updating the current system parameters to video output parameters, so that the image encoding end sends the video path information to the developer end based on the video output parameters;
[0014] After receiving the video path information, the video path information is displayed on a target display screen.
[0015] In a third aspect, an embodiment of the present invention provides a screen recording device for a display screen, which is executed by an image encoding end, and the device includes:
[0016] An initialization module is used to call a screen recording initialization function to initialize a preset screen recording start function after detecting that the current system parameters are initial system parameters through a parameter acquisition function, and generate an initialization result and send it to a developer end, so that the developer end can generate encoding video parameters based on the initialization result;
[0017] The interface cache module is used to detect that the current system parameters are encoded video parameters through the parameter acquisition function, cache the current interface of the target display screen by calling the screen recording start function, obtain the target video and save it to a preset storage location;
[0018] The video path information sending module is used to detect that the current system parameters are video output parameters through the parameter acquisition function, end the call of the screen recording start function, and send the video path information matching the preset storage location to the developer side, so that the developer can obtain the target video based on the video path information.
[0019] In a fourth aspect, an embodiment of the present invention provides a screen recording device for a display screen, which is executed by a developer end, and the method includes:
[0020] An initial system parameter updating module, used for updating the current system parameters to the initial system parameters in response to the power-on operation of the developer, so that the image encoding end initializes the preset screen recording start function based on the initial system parameters;
[0021] A coding video parameter updating module, configured to generate coding video parameters based on the initialization result sent by the image coding end and update the current system parameters to the coding video parameters after receiving the initialization result sent by the image coding end, so that the image coding end obtains the target video based on the coding video parameters;
[0022] A video output parameter updating module, configured to update the current system parameters to video output parameters in response to a power-off operation by the developer, so that the image encoding end sends the video path information to the developer end based on the video output parameters;
[0023] The display module is used to display the video path information on a target display screen after receiving the video path information.
[0024] In a fifth aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:
[0025] at least one processor; and
[0026] a memory communicatively connected to the at least one processor; wherein,
[0027] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for recording a display screen as described in any embodiment of the present invention.
[0028] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a method for recording a display screen as described in any embodiment of the present invention when executed.
[0029] The technical solution of the embodiment of the present invention is that after the image encoding end detects that the current system parameters are initial system parameters through the parameter acquisition function, the screen recording initialization function is called to initialize the preset screen recording start function, and the initialization result is generated and sent to the developer end. After that, after the current system parameters are encoded video parameters through the parameter acquisition function, the current interface of the target display screen is cached by calling the screen recording start function to obtain the target video and save it to a preset storage location. Finally, after the current system parameters are video output parameters through the parameter acquisition function, the screen recording start function is terminated, and the video path information matching the preset storage location is sent to the developer end, so that the developer obtains the target video based on the video path information. At the same time, the developer end responds to the developer's power-on operation and updates the current system parameters to the initial system parameters, so that the image The encoding end initializes the preset screen recording start function based on the initial system parameters, and then after receiving the initialization result sent by the image encoding end, generates encoding video parameters based on the initialization result and updates the current system parameters to the encoding video parameters, so that the image encoding end obtains the target video based on the encoding video parameters, and then responds to the developer's power-off operation, updates the current system parameters to video output parameters, so that the image encoding end sends the video path information to the developer end based on the video output parameters, and finally after receiving the video path information, displays the video path information through the target display screen, which solves the problem that the existing display screen recording method cannot perform real-time screen recording on the display screen, has a poor screen recording experience, and has low efficiency, and realizes real-time screen recording of the target display screen, saves computing power, improves the efficiency of the screen recording operation, and improves the screen recording experience.
[0030] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 is a flow chart of a method for recording a display screen provided according to Embodiment 1 of the present invention;
[0033] Figure 2 is a flow chart of a method for recording a display screen provided in accordance with Embodiment 2 of the present invention;
[0034] Figure 3 This is a schematic diagram of the structure of a screen recording device for a display screen provided according to Embodiment 3 of the present invention;
[0035] Figure 4 This is a schematic diagram of the structure of a screen recording device for a display screen provided according to a fourth embodiment of the present invention;
[0036] Figure 5 It is a structural schematic diagram of an electronic device for implementing a screen recording method of a display screen according to an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, any variation of the terms "including" and "having" is 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 necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0039] Embodiment 1
[0040] Figure 1 This is a flowchart of a screen recording method for a display screen provided in the first embodiment of the present invention. This embodiment is applicable to the case of real-time screen recording of a target display screen. The method can be executed by a screen recording device for a display screen. The screen recording device for a display screen can be implemented in the form of hardware and / or software. The screen recording device for a display screen can be configured in an image encoding terminal having a screen recording function for a display screen. Figure 1 As shown, the method includes:
[0041] S110. After detecting that the current system parameters are initial system parameters through the parameter acquisition function, the screen recording initialization function is called to initialize the preset screen recording start function, and an initialization result is generated and sent to the developer side, so that the developer side can generate encoding video parameters based on the initialization result.
[0042] Among them, the parameter acquisition function can be used to obtain program functions of various system parameter information, such as Environment class functions, etc.; the screen recording initialization function is a program function designed to prepare for screen recording operations, and can be used to initialize the preset screen recording start function. For example, it may set the initial configuration of the storage path, video format, frame rate range, etc. of the screen recording; further, in this embodiment, the specific form and value of the initial system parameters and encoded video parameters can be set and modified by relevant personnel according to actual needs during system development, and this embodiment does not limit the specific content of each parameter; further, the parameter acquisition function and the screen recording start function are functions that can be implemented by existing technologies, and relevant personnel in this field should know that this embodiment will not elaborate on this.
[0043] Optionally, in this embodiment, before detecting that the current system parameters are initial system parameters through the parameter acquisition function, the method further includes: in response to a power-on operation, calling a preset parameter acquisition function.
[0044] The power-on operation refers to connecting the power supply to the device so that it changes from a power-off state to a power-on and operation-ready state.
[0045] Optionally, in this embodiment, after calling the screen recording initialization function to initialize the preset screen recording start function, it also includes: after detecting that the initialization operation is completed, ending the calling of the screen recording initialization function.
[0046] S120. After detecting that the current system parameters are encoded video parameters through the parameter acquisition function, the current interface of the target display screen is cached by calling the screen recording start function to obtain the target video and save it to a preset storage location.
[0047] Specifically, the current interface of the target display screen is cached by calling the screen recording start function to obtain the target video and save it to a preset storage location, including: calling the screen recording start function, and continuously caching the current interface of the target display screen through the screen recording start function to obtain multiple target cache layers; according to the preset encoding rules, each target cache layer is encoded in sequence according to the cache order, and the encoded target cache layers are assembled to obtain the target video.
[0048] Based on the above steps, the current system parameters are detected as encoding video parameters through the parameter acquisition function. The encoding video parameters are used to define and standardize the values and settings of key characteristics such as video encoding methods, quality, and resolution. It should be noted that the specific form and value of the encoding video parameters can be set and modified by relevant personnel according to actual needs during system development. This embodiment does not limit the specific content of each parameter. Next, by calling the screen recording start function, the current interface of the target display screen is cached. This operation temporarily stores the real-time picture information on the display screen, and finally obtains the target video and saves it to the preset storage location.
[0049] Specifically, the process of caching the current interface of the target display screen by calling the screen recording start function, obtaining the target video and saving it to the preset storage location includes the following steps: First, call the screen recording start function, and use the function to continuously cache the current interface of the target display screen to obtain multiple target cache layers. These cache layers are similar to frame-by-frame image slices, carrying information of the display screen interface at different times. Then, with the help of preset encoding rules, each target cache layer is encoded in sequence according to the order of caching, wherein the encoding rules can specifically be H.264 rules. This encoding process gives these image slices a specific digital language so that they can be organized and stored; finally, the encoded target cache layers are assembled according to the established logic and order, and these encoded layers are integrated into a complete target video. Through such a process, it is ensured that the current interface of the target display screen can be recorded and saved to the preset storage location for use and processing.
[0050] S130. After detecting that the current system parameter is a video output parameter through the parameter acquisition function, end calling the screen recording start function, and send the video path information matching the preset storage location to the developer end, so that the developer can obtain the target video based on the video path information.
[0051] When the current system parameter is found to be a video output parameter through the parameter acquisition function, the call to the screen recording start function is stopped; it should be noted that the specific form and value of the video output parameter can be set and modified by relevant personnel according to actual needs during system development, and this embodiment does not limit the specific content of each parameter; after that, the video path information matching the preset storage location will be accurately sent to the developer end. The preset storage location is a specific area for saving video files that has been designated before the system is set up or the program is run; the video path information sent to the developer end contains a detailed path description that can accurately point to the location of the target video, and its form may be similar to a specific address such as "C:\Videos\TargetVideo.mp4". The purpose of this is to enable developers to quickly and easily obtain the target video based on the received video path information, so as to perform subsequent processing, analysis, optimization or other related operations.
[0052] The technical solution of the embodiment of the present invention is that after the image encoding end detects that the current system parameters are the initial system parameters through the parameter acquisition function, the screen recording initialization function is called to initialize the preset screen recording start function, and the initialization result is generated and sent to the developer end. After that, after the current system parameters are the encoded video parameters through the parameter acquisition function, the current interface of the target display screen is cached by calling the screen recording start function, the target video is obtained and saved to the preset storage location, and finally, after the current system parameters are detected as the video output parameters through the parameter acquisition function, the screen recording start function is terminated, and the video path information matching the preset storage location is sent to the developer end, so that the developer can obtain the target video based on the video path information, thereby realizing real-time screen recording of the target display screen, saving computing power, improving the efficiency of the screen recording operation, and improving the screen recording experience.
[0053] Embodiment 2
[0054] Figure 2 A flow chart of a screen recording method for a display screen provided in Embodiment 2 of the present invention. This embodiment is applicable to the situation of real-time screen recording of a target display screen. The method can be executed by a screen recording device for a display screen. The screen recording device for a display screen can be implemented in the form of hardware and / or software. The screen recording device for a display screen can be configured in a developer end with a screen recording function for a display screen.
[0055] like Figure 2 As shown, the method includes:
[0056] S210. In response to a power-on operation by a developer, the current system parameters are updated to initial system parameters, so that the image encoding end initializes a preset screen recording start function based on the initial system parameters.
[0057] In a specific real-time scenario of the present embodiment, when receiving a power-on operation instruction issued by a developer, the system will respond quickly; wherein, the power-on operation is to connect the power to the entire system, so that it enters a powered and operable state from a power-off static state. In the process of responding to this operation, the system will update the current system parameters to the initial system parameters; the initial system parameters are a basic parameter configuration set at the beginning of the system design, which provide the initial standards and specifications for the normal startup and subsequent operations of the system. By updating the system parameters to the initial system parameters, a stable and predictable environment can be created for subsequent operations. In this way, the image encoding end can initialize the preset screen recording start function based on these initial system parameters. By initializing based on the initial system parameters, it can ensure that the screen recording start function starts working under the correct parameter configuration, laying a solid foundation for subsequent screen recording operations and ensuring the accurate and effective operation of the screen recording function.
[0058] S220. After receiving the initialization result sent by the image encoding end, generate encoding video parameters based on the initialization result and update the current system parameters to the encoding video parameters, so that the image encoding end obtains the target video based on the encoding video parameters.
[0059] Among them, generating encoding video parameters based on the initialization result and updating the current system parameters to the encoding video parameters includes: if it is detected that the initialization result is successful, generating encoding video parameters and updating the current system parameters to the encoding video parameters; if it is detected that the initialization result is failed, generating an initialization failure prompt and displaying it through the target display screen.
[0060] Specifically, after successfully receiving the initialization result transmitted by the image encoding end, the encoding video parameters will be generated based on the initialization result, and the current system parameters will be updated to the encoding video parameters. Through such an update, the system can perform subsequent processing according to the new parameter configuration, so that the image encoding end can obtain the target video based on these encoding video parameters; wherein, the process of generating encoding video parameters based on the initialization result and updating the current system parameters to the encoding video parameters includes the following detailed judgments and operations: First, the initialization result will be detected and judged. If the initialization result is detected to be successful, it means that the previous initialization process is successfully completed without any abnormality or error. In this case, special encoding video parameters will be generated, and the current system parameters will be updated to these encoding video parameters. However, if the initialization result is detected to be a failure, it means that a problem has been encountered during the initialization process. At this time, an initialization failure prompt will be generated. This prompt information usually includes a brief description of the cause of the failure, so as to facilitate subsequent troubleshooting and resolution. In addition, this initialization failure prompt will be displayed on the target display screen, so that the user can intuitively see the prompt content, understand the failure of the current initialization operation, and take corresponding measures.
[0061] S230: In response to the power-off operation of the developer, update the current system parameters to video output parameters, so that the image encoding end sends the video path information to the developer end based on the video output parameters.
[0062] In this embodiment, once the system responds to the power-off operation instruction issued by the developer, it will immediately take corresponding actions; wherein, the power-off operation is an operation in which the developer actively cuts off the power of the system to stop the current system operation state; after receiving the power-off operation instruction, the system will update the current system parameters to the video output parameters; by updating the system parameters to the video output parameters, the image encoding end can perform corresponding operations based on these video output parameters and send the video path information to the developer end accurately.
[0063] S240: After receiving the video path information, display the video path information on a target display screen.
[0064] The technical solution of the embodiment of the present invention is that the developer end responds to the developer's power-on operation, updates the current system parameters to the initial system parameters, so that the image encoding end initializes the preset screen recording start function based on the initial system parameters, and then after receiving the initialization result sent by the image encoding end, generates encoding video parameters based on the initialization result and updates the current system parameters to the encoding video parameters, so that the image encoding end obtains the target video based on the encoding video parameters, and then responds to the developer's power-off operation, updates the current system parameters to the video output parameters, so that the image encoding end sends the video path information to the developer end based on the video output parameters, and finally after receiving the video path information, displays the video path information through the target display screen, thereby realizing real-time screen recording of the target display screen, saving computing power, improving the efficiency of the screen recording operation, and improving the screen recording experience.
[0065] Embodiment 3
[0066] Figure 3 This is a schematic diagram of the structure of a screen recording device for a display screen provided in Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:
[0067] The initialization module 310 is used to call the screen recording initialization function to initialize the preset screen recording start function after detecting that the current system parameters are initial system parameters through the parameter acquisition function, and generate an initialization result and send it to the developer end, so that the developer end can generate encoding video parameters based on the initialization result;
[0068] The interface cache module 320 is used to cache the current interface of the target display screen by calling the screen recording start function after detecting that the current system parameter is a coded video parameter through the parameter acquisition function, obtain the target video and save it to a preset storage location;
[0069] The video path information sending module 330 is used to detect that the current system parameters are video output parameters through the parameter acquisition function, end the call of the screen recording start function, and send the video path information matching the preset storage location to the developer side, so that the developer can obtain the target video based on the video path information.
[0070] The technical solution of the embodiment of the present invention is that after the image encoding end detects that the current system parameters are the initial system parameters through the parameter acquisition function, the screen recording initialization function is called to initialize the preset screen recording start function, and the initialization result is generated and sent to the developer end. After that, after the current system parameters are the encoded video parameters through the parameter acquisition function, the current interface of the target display screen is cached by calling the screen recording start function, the target video is obtained and saved to the preset storage location, and finally, after the current system parameters are detected as the video output parameters through the parameter acquisition function, the screen recording start function is terminated, and the video path information matching the preset storage location is sent to the developer end, so that the developer can obtain the target video based on the video path information, thereby realizing real-time screen recording of the target display screen, saving computing power, improving the efficiency of the screen recording operation, and improving the screen recording experience.
[0071] Based on the above embodiment, the interface cache module 320 includes:
[0072] A layer cache unit is used to call the screen recording start function, and continuously cache the current interface of the target display screen through the screen recording start function to obtain multiple target cache layers;
[0073] The layer assembly unit is used to encode each target cache layer in sequence according to the cache order through a preset encoding rule, and assemble the encoded target cache layers to obtain a target video.
[0074] Based on the above embodiment, the initialization module 310 is further used to: before detecting that the current system parameters are initial system parameters through the parameter acquisition function, in response to the power-on operation, call the preset parameter acquisition function.
[0075] On the basis of the above embodiment, the initialization module 310 is further used to: after calling the screen recording initialization function to initialize the preset screen recording start function, after detecting that the initialization operation is completed, end the calling of the screen recording initialization function.
[0076] A screen recording device for a display screen provided in an embodiment of the present invention can execute a screen recording method for a display screen provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0077] Embodiment 4
[0078] Figure 4 This is a schematic diagram of the structure of a screen recording device for a display screen provided in Embodiment 4 of the present invention. Figure 4 As shown, the device comprises:
[0079] The initial system parameter updating module 410 is used to update the current system parameters to the initial system parameters in response to the power-on operation of the developer, so that the image encoding end initializes the preset screen recording start function based on the initial system parameters;
[0080] The coding video parameter updating module 420 is used to generate coding video parameters based on the initialization result sent by the image coding end and update the current system parameters to the coding video parameters after receiving the initialization result sent by the image coding end, so that the image coding end obtains the target video based on the coding video parameters;
[0081] The video output parameter updating module 430 is used to update the current system parameters to the video output parameters in response to the power-off operation of the developer, so that the image encoding end sends the video path information to the developer end based on the video output parameters;
[0082] The display module 440 is used to display the video path information on a target display screen after receiving the video path information.
[0083] The technical solution of the embodiment of the present invention is that the developer end responds to the developer's power-on operation, updates the current system parameters to the initial system parameters, so that the image encoding end initializes the preset screen recording start function based on the initial system parameters, and then after receiving the initialization result sent by the image encoding end, generates encoding video parameters based on the initialization result and updates the current system parameters to the encoding video parameters, so that the image encoding end obtains the target video based on the encoding video parameters, and then responds to the developer's power-off operation, updates the current system parameters to the video output parameters, so that the image encoding end sends the video path information to the developer end based on the video output parameters, and finally after receiving the video path information, displays the video path information through the target display screen, thereby realizing real-time screen recording of the target display screen, saving computing power, improving the efficiency of the screen recording operation, and improving the screen recording experience.
[0084] Based on the above embodiment, the encoding video parameter updating module 420 includes:
[0085] A first detection unit, configured to generate a coded video parameter and update the current system parameter to the coded video parameter if it is detected that the initialization result is successful;
[0086] The second detection unit is configured to generate an initialization failure prompt and display the prompt on a target display screen if it is detected that the initialization result is a failure.
[0087] Embodiment 5
[0088] Figure 5A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0089] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0090] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0091] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for recording a display screen.
[0092] Accordingly, the method comprises:
[0093] After detecting that the current system parameters are initial system parameters through the parameter acquisition function, the screen recording initialization function is called to initialize the preset screen recording start function, and an initialization result is generated and sent to the developer end, so that the developer end can generate encoding video parameters based on the initialization result;
[0094] After detecting that the current system parameters are encoded video parameters through the parameter acquisition function, the current interface of the target display screen is cached by calling the screen recording start function, the target video is obtained and saved to the preset storage location;
[0095] After detecting that the current system parameters are video output parameters through the parameter acquisition function, the screen recording start function is terminated and the video path information matching the preset storage location is sent to the developer side, so that the developer can obtain the target video based on the video path information.
[0096] In some embodiments, a method for recording a screen of a display screen may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for recording a screen of a display screen described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute a method for recording a screen of a display screen in any other appropriate manner (e.g., by means of firmware).
[0097] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0098] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0099] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0100] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0101] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0102] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0103] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
Claims
1. A screen recording method for a display screen, executed by an image encoding end, characterized in that: include: After detecting that the current system parameters are initial system parameters through the parameter acquisition function, the screen recording initialization function is called to initialize the preset screen recording start function, and an initialization result is generated and sent to the developer end, so that the developer end can generate encoding video parameters based on the initialization result; After detecting that the current system parameters are encoded video parameters through the parameter acquisition function, the current interface of the target display screen is cached by calling the screen recording start function, the target video is obtained and saved to the preset storage location; After detecting that the current system parameters are video output parameters through the parameter acquisition function, the screen recording start function is terminated and the video path information matching the preset storage location is sent to the developer side, so that the developer can obtain the target video based on the video path information.
2. The method according to claim 1, characterized in that By calling the screen recording start function, the current interface of the target display screen is cached, the target video is obtained and saved to the preset storage location, including: Call the screen recording start function, and continuously cache the current interface of the target display screen through the screen recording start function to obtain multiple target cache layers; Through the preset encoding rules, each target cache layer is encoded in sequence according to the cache order, and the encoded target cache layers are assembled to obtain the target video.
3. The method according to claim 1, characterized in that Before the current system parameters are detected as initial system parameters by the parameter acquisition function, the following is also included: In response to the power-on operation, a preset parameter acquisition function is called.
4. The method according to claim 1, characterized in that: After calling the screen recording initialization function to initialize the preset screen recording start function, it also includes: After detecting that the initialization operation is completed, end calling the screen recording initialization function.
5. A screen recording method for a display screen, executed by a developer, characterized in that: include: In response to the developer's power-on operation, the current system parameters are updated to the initial system parameters, so that the image encoding end initializes the preset screen recording start function based on the initial system parameters; After receiving the initialization result sent by the image encoding end, generating encoding video parameters based on the initialization result and updating the current system parameters to the encoding video parameters, so that the image encoding end obtains the target video based on the encoding video parameters; In response to a power-off operation by the developer, updating the current system parameters to video output parameters, so that the image encoding end sends the video path information to the developer end based on the video output parameters; After receiving the video path information, the video path information is displayed on a target display screen.
6. The method according to claim 5, characterized in that Generating a coded video parameter based on the initialization result and updating the current system parameter to the coded video parameter includes: If it is detected that the initialization result is successful, generating encoding video parameters and updating the current system parameters to the encoding video parameters; If it is detected that the initialization result is a failure, an initialization failure prompt is generated and displayed on the target display screen.
7. A screen recording device for a display screen, executed by an image encoding end, characterized in that: include: An initialization module is used to call a screen recording initialization function to initialize a preset screen recording start function after detecting that the current system parameters are initial system parameters through a parameter acquisition function, and generate an initialization result and send it to a developer end, so that the developer end can generate encoding video parameters based on the initialization result; The interface cache module is used to detect that the current system parameters are encoded video parameters through the parameter acquisition function, cache the current interface of the target display screen by calling the screen recording start function, obtain the target video and save it to a preset storage location; The video path information sending module is used to detect that the current system parameters are video output parameters through the parameter acquisition function, end the call of the screen recording start function, and send the video path information matching the preset storage location to the developer side, so that the developer can obtain the target video based on the video path information.
8. A screen recording device for a display screen, executed by a developer, characterized in that: include: An initial system parameter updating module, used for updating the current system parameters to the initial system parameters in response to the power-on operation of the developer, so that the image encoding end initializes the preset screen recording start function based on the initial system parameters; A coding video parameter updating module, configured to generate coding video parameters based on the initialization result sent by the image coding end and update the current system parameters to the coding video parameters after receiving the initialization result sent by the image coding end, so that the image coding end obtains the target video based on the coding video parameters; A video output parameter updating module, configured to update the current system parameters to video output parameters in response to a power-off operation by the developer, so that the image encoding end sends the video path information to the developer end based on the video output parameters; The display module is used to display the video path information on a target display screen after receiving the video path information.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for recording a display screen as described in any one of claims 1-6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a screen recording method for a display screen according to any one of claims 1 to 6 when executed.