WO2022017096A1 - Screen recording method, electronic device, and computer readable storage medium - Google Patents

Screen recording method, electronic device, and computer readable storage medium Download PDF

Info

Publication number
WO2022017096A1
WO2022017096A1 PCT/CN2021/101144 CN2021101144W WO2022017096A1 WO 2022017096 A1 WO2022017096 A1 WO 2022017096A1 CN 2021101144 W CN2021101144 W CN 2021101144W WO 2022017096 A1 WO2022017096 A1 WO 2022017096A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
recorded
screen
terminal
recorded video
Prior art date
Application number
PCT/CN2021/101144
Other languages
French (fr)
Chinese (zh)
Inventor
郑佳佳
Original Assignee
上海连尚网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海连尚网络科技有限公司 filed Critical 上海连尚网络科技有限公司
Publication of WO2022017096A1 publication Critical patent/WO2022017096A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations

Definitions

  • the present application relates to image processing technologies, and in particular, to a screen recording method, an electronic device, and a computer-readable storage medium.
  • Screen recording is usually used to record and store the content displayed by the terminal over a period of time, such as user operations and application running.
  • the existing screen recording method is to capture frame images on the screen through an application program interface (Application Program Interface, API) provided by the operating system within a period of time, and store the captured frame images on the terminal in the form of video.
  • API Application Program Interface
  • the existing screen recording method completes the recording by continuously capturing images on the screen, which may generate a large amount of irrelevant image information.
  • the user needs to operate the terminal to run other Irrelevant applications, etc., make the final recorded video contain irrelevant content, thereby reducing the reliability of screen recording.
  • Various aspects of the present application provide a screen recording method, an electronic device, and a computer-readable storage medium, so as to improve the reliability of screen recording.
  • One aspect of the present application provides a screen recording method, including:
  • the tag information of the recorded video to indicate the part of the recorded video that is related to the application to be screen-recorded
  • a screen recording file of the application to be screen recorded is generated according to the recorded video and the tag information of the recorded video.
  • Another aspect of the present application provides an electronic device, the device comprising:
  • processors one or more processors
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement a screen recording method provided by the above aspect.
  • Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the screen recording method provided in the above-mentioned aspect.
  • the application switching event of the terminal is monitored during the screen recording process of the terminal, and further, according to the monitored application switching event and the application to be recorded on the screen of the terminal, Setting the tag information of the recorded video to indicate the part of the recorded video that is related to the application to be screen-recorded, so that the to-be-screen recording application can be generated according to the recorded video and the tag information of the recorded video
  • the screen recording file of the application because the marking information indicating the part of the recorded video related to the application to be screen recorded is set during the screen recording process of the terminal, so that the recorded video is identified according to the marking information.
  • the screen recording file of the application to be screen recorded is synthesized by using the part related to the application to be screen recorded, and the part irrelevant to the application to be screen recorded is filtered out, thereby effectively improving the reliability of screen recording.
  • the technical solution provided by the present application it is possible to automatically synthesize the application to be screened by identifying the part related to the application to be screen-recorded from the recorded video without the need for the user to manually edit the recorded video.
  • the screen recording file can effectively improve the efficiency of screen recording.
  • FIG. 1 is a schematic flowchart of a screen recording method provided by an embodiment of the present application.
  • Fig. 2 is the concrete realization schematic diagram of the embodiment corresponding to Fig. 1;
  • FIG. 3 is a block diagram of an exemplary computer system/server 12 suitable for use in implementing embodiments of the present application.
  • terminals involved in the embodiments of the present invention may include but are not limited to mobile phones, personal digital assistants (Personal Digital Assistants, PDAs), wireless handheld devices, tablet computers (Tablet Computers), and personal computers (Personal Computers, PCs). ), MP3 players, MP4 players, wearable devices (eg, smart glasses, smart watches, smart bracelets, etc.), etc.
  • the term "and/or" in this embodiment of the present application is only an association relationship to describe associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists alone, and A exists at the same time and B, there are three cases of B alone.
  • the character "/" in the embodiments of the present application generally indicates that the related objects before and after are an "or" relationship.
  • FIG. 1 is a schematic flowchart of a screen recording method provided by an embodiment of the present application, as shown in FIG. 1 .
  • execution bodies of 101 to 103 may be applications located in the terminal, or may also be functional units such as plug-ins or software development kits (Software Development Kit, SDK) set in the applications located in the terminal , or may also be a processing engine located in a network-side server, which is not particularly limited in this embodiment.
  • the application may be a local program (nativeApp) installed on the terminal, or may also be a web page program (webApp) of a browser on the terminal, which is not limited in this embodiment.
  • nativeApp native program
  • webApp web page program
  • the application switching event of the terminal is monitored, and then, according to the monitored application switching event and the application to be screen-recorded by the terminal, the tag information of the recorded video is set , to indicate the part of the recorded video that is related to the application to be screen-recorded, so that the screen recording file of the application to be screen-recorded can be generated according to the recorded video and the tag information of the recorded video.
  • mark information indicating the part of the recorded video related to the application to be screen recorded is set, so that the part related to the application to be screen recorded is identified from the recorded video according to the mark information. to synthesize the screen recording file of the application to be screen recorded, and filter out the part irrelevant to the application to be screen recorded, thereby effectively improving the reliability of screen recording.
  • the application to be screen-recorded of the terminal to be screen-recorded may be determined, or after the screen-recording function is turned on, the application to be screen-recorded of the terminal to be screen-recorded may be determined.
  • the application is not particularly limited.
  • the application to be screen-recorded may be specifically determined in response to a user's operation based on a list of supported screen-recording applications before the screen recording process of the terminal.
  • a list of applications supporting screen recording may be provided to the user, which may be referred to as a screen recording application list.
  • the list may include all applications installed on the terminal, or may also include some applications installed on the terminal, which is not particularly limited in this embodiment.
  • the user can select one corresponding application, two applications or multiple applications from the screen recording application list of the terminal as the application to be screen recorded on the terminal.
  • the application to be screen recorded on the terminal can be determined.
  • the screen recording function can be enabled in response to the user's operation based on the screen recording interface, so as to start the screen recording of the terminal.
  • the application to be screen recorded may be specifically determined in response to a user's operation based on the application to be screen recorded during the screen recording process of the terminal.
  • the screen recording function can be enabled in response to the user's operation based on the screen recording interface to start screen recording of the terminal.
  • the user can select an application from all the applications installed on the terminal according to the screen recording requirement and start operating the application as the application to be screen recorded on the terminal.
  • the application to be screen recorded on the terminal can be determined.
  • the application switching event of the terminal can be monitored, and by monitoring that the application to be screen-recorded is switched to another application, or that another application is switched to the application to be screen-recorded, it is possible to find out in time whether the application to be screen-recorded is performing screen recording.
  • the screen recording method in the prior art can be used to capture frame images on the terminal screen through the API provided by the operating system according to a specified frequency, and the The captured frame images are stored on the terminal in the form of video, and 102 will be executed only when the application switching event is monitored.
  • the application switching event of the terminal and the application to be recorded on the screen of the terminal are set, the mark information of the recorded video is set, and the storage processing is performed.
  • step 101 specifically by monitoring a designated monitoring object, it is possible to determine the monitored application switching event of the terminal.
  • the running state of the application to be screen-recorded may be specifically monitored, and further, the monitored application switching event of the terminal may be determined according to the monitored running state.
  • the content of the screen recording is the content displayed on the screen of the collection terminal
  • only when the running state of the application to be screened on the terminal is running in the foreground can the relevant operations of the application to be recorded can be collected, and when the application to be recorded on the terminal is running in the foreground
  • the relevant operations of the application to be screen recorded cannot be collected. Therefore, by monitoring the running state of the application to be screen-recorded, once it is detected that the running state of the application to be screen-recorded changes, that is, from the foreground to the background, and from the background to the foreground, the monitoring can be determined. an application switching event to the terminal.
  • the screen recording interface of the terminal may be specifically monitored, and further, an application switching event of the terminal that is monitored may be determined according to the monitored application switching in the screen recording interface.
  • the content of the screen recording is the content displayed in the screen recording interface of the collection terminal, only the application interface of the application to be screen recorded on the terminal appears in the screen recording interface of the terminal, it is possible to collect the relevant operations of the application to be recorded.
  • the application interface of the application to be screen-recorded on the terminal does not appear in the screen-recording interface of the terminal, or when other applications appear in the screen-recording interface of the terminal, the relevant operations of the application to be screen-recorded cannot be collected. Therefore, by monitoring the screen recording interface of the terminal, once it is detected that the application in the screen recording interface changes, that is, the application to be screened is changed to another application, and the other application is changed to the application to be screened. The application switching event monitored by the terminal can be determined.
  • the so-called application switching event may refer to a terminal operation event of switching from one application to another application, and the event may include, but is not limited to, the application identifier of one application before switching and the application identifier of another application after switching.
  • the recorded application switching event may be set according to the monitored application switching event and the application to be screen-recorded by the terminal.
  • Tag information for the video may be set according to the monitored application switching event and the application to be screen-recorded by the terminal.
  • the tag information of the recorded video is set, the part of the recorded video that is related to the application to be screen-recorded can be indicated, and only this part of the content corresponds to the user's current screen-recording requirement. What needs to be screen recorded.
  • the user can switch applications on the terminal at will without any restrictions.
  • any application switching performed by the user can be monitored and marked.
  • the application switching event After the application switching event is monitored, it can be further determined, according to the monitored application switching event and the application to be screen-recorded of the terminal, whether the application switching event is an application switching event of switching from the application to be screen-recorded to another application, or whether the application switching event is switched by the application to be screen-recorded to another application.
  • Other applications switch to the application switching event of the application to be screen recorded, so that the flag information of the recorded video can be set.
  • tag information of the part of the recorded video related to the application to be screen-recorded can be set.
  • the start marker and/or the end marker of the part of the recorded video related to the application to be screen recorded may be set.
  • the monitored application switching event is switching from the application to be screen-recorded to another application
  • the end mark it can be determined that the part before the end mark in the recorded video is the part related to the application to be screen-recorded. If other flags are further set before the end flag, it is necessary to further combine other flags to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, before the end mark, the start mark of the part related to the application to be screen recorded in the recorded video is further set, then, according to the start mark and the end mark, it can be determined that in the recorded video The part between the start tag and the end tag is the part related to the application to be screen-recorded.
  • the monitored application switching event is switching from another application to the application to be screen-recorded
  • the start mark it can be determined that the part after the start mark in the recorded video is the part related to the application to be screen-recorded. If other flags are further set after the start flag, it is necessary to further combine other flags to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, after the start mark, the end mark of the part of the recorded video related to the application to be screen-recorded is further set, then, according to the start mark and the end mark, it can be determined that the recorded video is The part between the start tag and the end tag is the part related to the application to be screen-recorded.
  • the start time and/or the end time of the portion of the recorded video related to the application to be screen recorded may be specifically recorded according to the monitored application switching event and the application to be screen recorded on the terminal.
  • the recording time from the current moment to the start of recording can be recorded as the end of the part of the recorded video related to the application to be recorded.
  • the time is used to indicate the part of the recorded video before the end time, which is the part related to the application to be recorded on the screen.
  • the end time it can be determined that the part of the recorded video before the end time is the part related to the application to be screen-recorded. If other times are further recorded before the end time, it is necessary to further combine the other times to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, before the end time, the start time of the part of the recorded video related to the application to be screen-recorded is further recorded, then, according to the start time and the end time The part between the start time and the end time is the part related to the application to be screen-recorded.
  • the recording time from the current moment to the start of recording can be recorded as the start of the part of the recorded video related to the application to be screen-recorded
  • the time is used to indicate the part after the start time in the recorded video, which is the part related to the application to be screen-recorded.
  • the start time it can be determined that the part of the recorded video after the start time is the part related to the application to be recorded on the screen. If other times are further recorded after the start time, it is necessary to further combine the other times to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, after the start time, the end time of the part of the recorded video related to the application to be screen-recorded is further recorded, then, according to the start time and the end time The part between the start time and the end time is the part related to the application to be screen-recorded.
  • the start frame number and/or the end frame number of the portion of the recorded video that is related to the application to be recorded on the screen may be recorded according to the monitored application switching event and the application to be recorded on the screen of the terminal.
  • the current frame number can be recorded as the end frame number of the part of the recorded video related to the application to be screen-recorded to indicate when The part before the end frame number in the recorded video is the part related to the application to be screen-recorded.
  • the end frame number it can be determined that the part before the end frame number in the recorded video is the part related to the application to be recorded on the screen. If other frame numbers are further recorded before the end frame number, it is necessary to further combine the other frame numbers to determine the specific range of the part of the recorded video that is related to the application to be screen-recorded. For example, before the end frame number, the start frame number of the part of the recorded video related to the application to be recorded on the screen is further recorded. Then, it can be determined according to the start frame number and the end frame number. The part between the start frame number and the end frame number in the recorded video is the part related to the application to be screen-recorded.
  • the current frame number can be recorded as the start frame number of the part of the recorded video that is related to the application to be screen-recorded to indicate when The part after the start frame number in the recorded video is the part related to the application to be screen-recorded.
  • the start frame number it can be determined that the part after the start frame number in the recorded video is the part related to the application to be recorded on the screen. If other frame numbers are further recorded after the start frame number, then it is necessary to further combine other frame numbers to determine the specific range of the part of the recorded video related to the application to be screen recorded. For example, after the start frame number, the end frame number of the part of the recorded video related to the application to be recorded on the screen is further recorded. Then, it can be determined according to the start frame number and the end frame number The part between the start frame number and the end frame number in the recorded video is the part related to the application to be screen-recorded.
  • the marking information of the part of the recorded video that is not related to the application to be screen recorded can be set.
  • the start marker and/or the end marker of the part of the recorded video that is not related to the application to be screen recorded can be set.
  • the current position in the recorded video can be set as the start marker of the part of the recorded video that is not related to the application to be screen-recorded, It is used to indicate that the part before the start mark in the recorded video is the part related to the application to be recorded on the screen.
  • the start mark it can be determined that the part before the start mark in the recorded video is the part related to the application to be screen-recorded. If other flags are further set before the start flag, it is necessary to further combine other flags to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, before the start mark, the end mark of the part of the recorded video that is not related to the application to be screen-recorded is further set, then, according to the end mark and the start mark, it can be determined that the recorded video The part between the start tag and the end tag in the video is the part related to the application to be screen-recorded.
  • the current position in the recorded video can be set as the end marker of the part of the recorded video that is not related to the application to be screen-recorded, It is used to indicate that the part after the end mark in the recorded video is the part related to the application to be screen-recorded.
  • the end mark it can be determined that the part after the end mark in the recorded video is the part related to the application to be screen-recorded. If other flags are further set after the end flag, it is necessary to further combine other flags to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, after the end mark, the start mark of the part of the recorded video that is not related to the application to be screen-recorded is further set, then, according to the end mark and the start mark, it can be determined that the recorded video The part between the start tag and the end tag in the video is the part related to the application to be screen-recorded.
  • the start time and/or the end time of a portion of the recorded video that is not related to the application to be screen recorded may be specifically recorded according to the monitored application switching event and the application to be screen recorded on the terminal.
  • the recording time from the current moment to the start of recording can be recorded as the part of the recorded video that is not related to the application to be screen recorded.
  • the start time is used to indicate that the part in the recorded video before the start time is the part related to the application to be screen recorded.
  • the start time it can be determined that the part of the recorded video before the start time is the part related to the application to be screen-recorded. If other times are further recorded before the start time, it is necessary to further combine the other times to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, before the start time, the end time of the part of the recorded video that is not related to the application to be screen-recorded is further recorded, then, according to the end time and the start time, it can be determined that the The part between the end time and the start time in the video is the part related to the application to be screen-recorded.
  • the recording time from the current moment to the start of recording can be recorded as the part of the recorded video that is not related to the application to be screen-recorded
  • the end time is used to indicate that the part in the recorded video after the end time is the part related to the application to be screen recorded.
  • the end time it can be determined that the part of the recorded video after the end time is the part related to the application to be screen-recorded. If other times are further recorded after the end time, it is necessary to further combine the other times to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, after the end time, the start time of the part of the recorded video that is not related to the application to be screen-recorded is further recorded, then, according to the end time and the start time, it can be determined The part between the end time and the start time in the video is the part related to the application to be screen-recorded.
  • start frame number and/or the end frame of the part of the recorded video that is not related to the application to be screen recorded may be recorded according to the monitored application switching event and the application to be recorded on the screen of the terminal.
  • the current frame number can be recorded as the start frame number of the part of the recorded video that is not related to the application to be screen-recorded to indicate The part before the start frame number in the recorded video is the part related to the application to be screen-recorded.
  • the start frame number it can be determined that the part before the start frame number in the recorded video is the part related to the application to be recorded on the screen. If other frame numbers are further recorded before the start frame number, it is necessary to further combine the other frame numbers to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, before the start frame number, the end frame number of the part of the recorded video that is not related to the application to be recorded on the screen is further recorded. Then, it can be determined according to the end frame number and the start frame number. The part between the end frame number and the start frame number in the recorded video is the part related to the application to be screen-recorded.
  • the current frame number can be recorded as the end frame number of the part of the recorded video that is not related to the application to be screen-recorded to indicate The part after the end frame number in the recorded video is the part related to the application to be screen-recorded.
  • the end frame number it can be determined that the part after the end frame number in the recorded video is the part related to the application to be recorded on the screen. If other frame numbers are further recorded after the end frame number, it is necessary to further combine the other frame numbers to determine the specific range of the part of the recorded video that is related to the application to be screen-recorded. For example, after the end frame number, the start frame number of the part of the recorded video that is not related to the application to be recorded on the screen is further recorded. Then, it can be determined according to the end frame number and the start frame number. The part between the end frame number and the start frame number in the recorded video is the part related to the application to be screen-recorded.
  • the tag information of the recorded video can be further set in combination with the technical solutions in the above two implementation processes.
  • the screen recording function may be turned off in response to the user's operation based on the screen recording interface, so as to terminate the screen recording of the terminal.
  • the recorded video and the tag information of the video can be further stored for processing.
  • the recorded video and the tag information of the video may be stored in the storage device of the terminal.
  • the storage device of the terminal may be a slow storage device, specifically a hard disk of a computer system, or may also be a non-running memory of a mobile phone, that is, physical memory, for example, a read-only memory (Read-Only Memory) Memory, ROM) and memory card, etc., which are not particularly limited in this embodiment.
  • a slow storage device specifically a hard disk of a computer system
  • a non-running memory of a mobile phone that is, physical memory, for example, a read-only memory (Read-Only Memory) Memory, ROM) and memory card, etc., which are not particularly limited in this embodiment.
  • the storage device of the terminal may also be a fast storage device, specifically the memory of the computer system, or may also be the operating memory of the mobile phone, that is, the system memory, for example, random access memory (Random Access Memory). , RAM), etc., which are not particularly limited in this embodiment.
  • the system memory for example, random access memory (Random Access Memory). , RAM), etc., which are not particularly limited in this embodiment.
  • the recorded video may be segmented according to the tag information of the recorded video, so as to obtain information related to the application to be recorded on the screen. Then, the obtained part related to the application to be screen recorded may be synthesized to obtain a screen recording file of the application to be screen recorded.
  • all the recorded videos and their tag information can be further acquired, and the recorded videos can be identified and processed according to the tag information, and further, according to the identification processing Identify the result and perform subsequent processing.
  • the recorded video may be segmented according to the tag information of the recorded video.
  • the recorded video can be divided into multiple segments, and the content corresponding to each segment can be determined according to the tag information corresponding to the segment as the part related to the application to be recorded on the screen, or as the part related to the application to be recorded. Unrelated parts of the screen recording app.
  • the unrelated part of the application to be screen-recorded can be filtered according to the video tag information corresponding to each segment after the segmentation process, so as to obtain a The part related to the application to be screen recorded.
  • each segment is judged separately to determine whether the segment is a part related to the application to be screen-recorded, or a part not related to the application to be screen-recorded. Directly delete the fragments of the part not related to the application to be screen recorded, and perform synthesis processing on the remaining fragments related to the application to be screen recorded, so as to obtain the screen recording file of the application to be screen recorded .
  • the obtained screen recording file of the application to be screen recorded may be further stored.
  • the obtained screen recording file of the application to be screen recorded may be stored in the storage device of the terminal.
  • the storage device of the terminal may be a slow storage device, specifically a hard disk of a computer system, or may also be a non-running memory of a mobile phone, that is, physical memory, for example, a read-only memory (Read-Only Memory) Memory, ROM) and memory card, etc., which are not particularly limited in this embodiment.
  • a slow storage device specifically a hard disk of a computer system
  • a non-running memory of a mobile phone that is, physical memory, for example, a read-only memory (Read-Only Memory) Memory, ROM) and memory card, etc., which are not particularly limited in this embodiment.
  • the storage device of the terminal may also be a fast storage device, specifically the memory of the computer system, or may also be the operating memory of the mobile phone, that is, the system memory, for example, random access memory (Random Access Memory). , RAM), etc., which are not particularly limited in this embodiment.
  • the system memory for example, random access memory (Random Access Memory). , RAM), etc., which are not particularly limited in this embodiment.
  • the application switching event of the terminal is monitored, and then the recorded video is set according to the monitored application switching event and the application to be recorded on the screen of the terminal.
  • the tag information is used to indicate the part of the recorded video that is related to the application to be screen recorded, so that the screen recording file of the application to be screen recorded can be generated according to the recorded video and the tag information of the recorded video , because the marking information indicating the part of the recorded video related to the application to be screen recorded is set in the screen recording process of the terminal, so that the application to be screen recorded is identified from the recorded video according to the marking information.
  • the relevant part is used to synthesize the screen recording file of the application to be screen recorded, and the part irrelevant to the application to be screen recorded is filtered out, thereby effectively improving the reliability of the screen recording.
  • the technical solution provided by the present application it is possible to automatically synthesize the application to be screened by identifying the part related to the application to be screen-recorded from the recorded video without the need for the user to manually edit the recorded video.
  • the screen recording file can effectively improve the efficiency of screen recording.
  • the user opens a screen recording application, and in the list of screen recording applications supported by the screen recording application, selects application A as the application to be screen recorded.
  • the screen recording application determines whether the application currently running on the terminal is application A, if the application currently running on the terminal is application A, execute 204; if not, for example, it is application C, execute 207.
  • the screen recording application captures frame images on the terminal screen through an API provided by the operating system according to a specified frequency, and stores the captured frame images on the terminal in the form of video.
  • the screen recording application determines whether an application switching event of the terminal is monitored, and if an application switching event of the terminal is monitored, execute 206, and if no application switching event of the terminal is monitored, continue to execute 204.
  • the screen recording application sets the end mark of the part related to application A in the recorded video at the current position in the recorded video according to the monitored application switching event and the terminal's application to be screen-recorded, that is, application A, or sets The start marker of the part of the recorded video that is not related to application A, to indicate the part of the recorded video that is related to application A.
  • the screen recording application can specifically determine that the application switching event is an application switching event that is switched from application A to application B according to the monitored application switching event and application A, so that the current position in the recorded video can be set.
  • the recorded video is a video in which the screen recording application intercepts the frame image on the terminal screen through the API provided by the operating system according to the specified frequency, and stores the intercepted frame image in the form of video on the terminal.
  • the screen recording application sets a start position in the recorded video, and sets a start mark of a portion of the recorded video that is not related to application A, or sets an end mark of a portion of the recorded video that is related to application A.
  • the screen recording application captures frame images on the screen of the terminal through the API provided by the operating system according to the specified frequency, and stores the captured frame images on the terminal in the form of video.
  • the screen recording application determines whether the application switching event of the terminal is monitored, if the application switching event of the terminal is monitored, execute 210, and if the application switching event of the terminal is not monitored, continue to execute 208.
  • the screen recording application sets the start mark of the part related to application A in the recorded video at the current position in the recorded video according to the monitored application switching event and the terminal's application to be screen-recorded, namely Application A, or sets The end marker of the part of the recorded video that is not related to application A, to indicate the part of the recorded video that is related to application A.
  • the screen recording application can specifically determine that the application switching event is an application switching event that is switched from application C to application A according to the monitored application switching event and application A, so that the current position in the recorded video can be set.
  • the recorded video is a video in which the screen recording application intercepts the frame image on the terminal screen through the API provided by the operating system according to the specified frequency, and stores the intercepted frame image in the form of video on the terminal.
  • the screen recording application acquires the recorded video and its tag information, and performs segmentation processing on the recorded video according to the tag information of the recorded video, so as to obtain the part related to application A, and converts the obtained part related to application A.
  • the relevant parts of phase A are synthesized to obtain the screen recording file of application A.
  • the sequential marker information is: the end marker (a1) of the part related to application A, the start marker (a2) of the part related to application A, and the end of the part related to application A mark (a3) and the start mark (a4) of the section related to application A.
  • Fragment 1 the beginning of the recorded video ⁇ a1;
  • Fragment 2 a1 ⁇ a2;
  • Fragment 3 a2 ⁇ a3;
  • Fragment 4 a3 ⁇ a4;
  • Fragment 5 a4 ⁇ end of recorded video.
  • each segment can be judged according to the tag information contained in each segment to determine whether the segment is a part related to application A or a part not related to application A.
  • Fragment 1 sequentially includes the start tag and a1 of the recorded video, so this fragment 1 is the part related to application A;
  • Fragment 2 contains a1 and a2 in turn, so this fragment 2 is not related to application A;
  • Fragment 3 contains a2 and a3 in turn, so this fragment 3 is the part related to application A;
  • Fragment 4 contains a3 and a4 in turn, therefore, fragment 4 is a part not related to application A;
  • Fragment 5 includes a4 and the end marker of the recorded video in sequence, so this fragment 5 is a part related to application A.
  • segment 2 and segment 4 of the part not related to application A are directly deleted, and the remaining parts related to application A are segment 1, segment 3 and segment 5 are synthesized to obtain the screen of application A. record file.
  • the application switching event of the terminal is monitored, and further, according to the monitored application switching event and application switching event A, setting the tag information of the recorded video to indicate the part of the recorded video related to application A, so that the tag information of the application to be screen recorded can be generated according to the recorded video and the tag information of the recorded video
  • the screen recording file since the marking information indicating the part related to application A in the recorded video is set during the screen recording process of the terminal, so that the part related to application A is identified from the recorded video according to the marking information to synthesize the screen recording file of application A, and filter out the parts that are not related to application A, thereby effectively improving the reliability of the screen recording.
  • Another embodiment of the present application also provides a device, the device includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are stored by the one or more programs Multiple processors execute, so that the one or more processors implement the screen recording method provided by any of the embodiments corresponding to FIG. 1 .
  • FIG. 3 shows a block diagram of an exemplary computer system/server 12 suitable for use in implementing embodiments of the present application.
  • the computer system/server 12 shown in FIG. 3 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
  • computer system/server 12 takes the form of a general-purpose computing device.
  • Components of computer system/server 12 may include, but are not limited to, one or more processors or processing units 16, storage or system memory 28, and a bus 18 connecting various system components including system memory 28 and processing unit 16.
  • Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect ( PCI) bus.
  • Computer system/server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer system/server 12, including both volatile and non-volatile media, removable and non-removable media.
  • System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32 .
  • Computer system/server 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard disk drive”).
  • a disk drive may be provided for reading and writing to removable non-volatile magnetic disks (eg "floppy disks"), as well as removable non-volatile optical disks (eg CD-ROM, DVD-ROM) or other optical media) to read and write optical drives.
  • each drive may be connected to bus 18 through one or more data media interfaces.
  • System memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present application.
  • a program/utility 40 having a set (at least one) of program modules 42, which may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other Program modules and program data, each or some combination of these examples may include an implementation of a network environment.
  • Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
  • the computer system/server 12 may also communicate with one or more external devices 14 (eg, keyboard, pointing device, display 24, etc.), and may also communicate with one or more devices that enable a user to interact with the computer system/server 12, and/or with any device (eg, network card, modem, etc.) that enables the computer system/server 12 to communicate with one or more other computing devices. Such communication may take place through input/output (I/O) interface 44 . Also, the computer system/server 12 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 20 . As shown, network adapter 20 communicates with other modules of computer system/server 12 via bus 18 .
  • network adapter 20 communicates with other modules of computer system/server 12 via bus 18 .
  • the processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28 , for example, implementing the screen recording method provided by any of the embodiments corresponding to FIG. 1 .
  • Another embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the screen recording method provided by any of the embodiments corresponding to FIG. 1 .
  • the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code for carrying out the operations of the present application may be written in one or more programming languages, including object-oriented programming languages - such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as "C" language or similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider to via Internet connection).
  • LAN local area network
  • WAN wide area network
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or page components may be combined. Either it can be integrated into another system, or some features can be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.
  • the above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium.
  • the above-mentioned software functional unit is stored in a storage medium, and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute parts of the methods described in the various embodiments of the present application step.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .

Abstract

The present application provides a screen recording method, an electronic device, and a computer readable storage medium. An application switching event of a terminal is monitored in a screen recording process of the terminal, and then, according to the monitored application switching event and an application of the terminal to be subjected to screen recording, marking information of a recorded video is set for indicating a portion of the recorded video related to said application, so that a screen recording file of said application can be generated according to the recorded video and the marking information of the recorded video. The marking information indicating the portion of the recorded video related to said application is set in the screen recording process of the terminal, so that the portion related to said application is identified from the recorded video according to the marking information to synthesize the screen recording file of said application, and a portion unrelated to said application is filtered out, and thus the reliability of screen recording is effectively improved.

Description

屏幕录制方法、电子设备及计算机可读存储介质Screen recording method, electronic device, and computer-readable storage medium 【技术领域】【Technical field】
本申请涉及图像处理技术,尤其涉及一种屏幕录制方法、电子设备及计算机可读存储介质。The present application relates to image processing technologies, and in particular, to a screen recording method, an electronic device, and a computer-readable storage medium.
【背景技术】【Background technique】
屏幕录制通常用于将终端在一段时间内显示的内容,例如,用户操作和应用运行等,进行记录和存储。现有的屏幕录制方法是,在一段时间内通过操作系统提供的应用程序接口(Application Program Interface,API)截取屏幕上的帧图像,将截取到的帧图像以视频形式存储在终端上。Screen recording is usually used to record and store the content displayed by the terminal over a period of time, such as user operations and application running. The existing screen recording method is to capture frame images on the screen through an application program interface (Application Program Interface, API) provided by the operating system within a period of time, and store the captured frame images on the terminal in the form of video.
然而,现有的屏幕录制方法是通过连续地截取屏幕上图像来完成录制的,可能会产生大量不相关的图像信息,例如,在屏幕录制过程之中,用户由于某种原因需要操作终端运行其他不相关的应用等,使得最终所录制的视频中包含了不相关的内容,从而导致了屏幕录制的可靠性的降低。However, the existing screen recording method completes the recording by continuously capturing images on the screen, which may generate a large amount of irrelevant image information. For example, during the screen recording process, the user needs to operate the terminal to run other Irrelevant applications, etc., make the final recorded video contain irrelevant content, thereby reducing the reliability of screen recording.
【发明内容】[Content of the invention]
本申请的多个方面提供一种屏幕录制方法、电子设备及计算机可读存储介质,用以提高屏幕录制的可靠性。Various aspects of the present application provide a screen recording method, an electronic device, and a computer-readable storage medium, so as to improve the reliability of screen recording.
本申请的一方面,提供一种屏幕录制方法,包括:One aspect of the present application provides a screen recording method, including:
在终端的屏幕录制过程之中,对所述终端的应用切换事件进行监测;During the screen recording process of the terminal, monitor the application switching event of the terminal;
根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频的标记信息,用以指示所录制的视频中与所述待屏幕录制应用相关的部分;According to the monitored application switching event and the application to be screen-recorded of the terminal, set the tag information of the recorded video to indicate the part of the recorded video that is related to the application to be screen-recorded;
根据所录制的视频和所录制的视频的标记信息,生成所述待屏幕录制应用的屏幕录制文件。A screen recording file of the application to be screen recorded is generated according to the recorded video and the tag information of the recorded video.
本申请的另一方面,提供一种电子设备,所述设备包括:Another aspect of the present application provides an electronic device, the device comprising:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序,storage means for storing one or more programs,
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上述一方面所提供的一种屏幕录制方法。When the one or more programs are executed by the one or more processors, the one or more processors implement a screen recording method provided by the above aspect.
本申请的另一方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述一方面所提供的一种屏幕录制方法。Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the screen recording method provided in the above-mentioned aspect.
由上述技术方案可知,本申请实施例通过在终端的屏幕录制过程之中,对所述终端的应用切换事件进行监测,进而,根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频的标记信息,用以指示所录制的视频中与所述待屏幕录制应用相关的部分,使得能够根据所录制的视频和所录制的视频的标记信息,生成所述待屏幕录制应用的屏幕录制文件,由于在终端的屏幕录制过程之中设置了指示所录制的视频中与待屏幕录制应用相关的部分的标记信息,使得根据该标记信息从所录制的视频中识别出与所述待屏幕录制应用相关的部分来合成所述待屏幕录制应用的屏幕录制文件,而将与所述待屏幕录制应用不相关的部分过滤掉,从而有效地提高了屏幕录制的可靠性。It can be known from the above technical solutions that in the embodiment of the present application, the application switching event of the terminal is monitored during the screen recording process of the terminal, and further, according to the monitored application switching event and the application to be recorded on the screen of the terminal, Setting the tag information of the recorded video to indicate the part of the recorded video that is related to the application to be screen-recorded, so that the to-be-screen recording application can be generated according to the recorded video and the tag information of the recorded video The screen recording file of the application, because the marking information indicating the part of the recorded video related to the application to be screen recorded is set during the screen recording process of the terminal, so that the recorded video is identified according to the marking information. The screen recording file of the application to be screen recorded is synthesized by using the part related to the application to be screen recorded, and the part irrelevant to the application to be screen recorded is filtered out, thereby effectively improving the reliability of screen recording.
另外,采用本申请所提供的技术方案,无需用户对所录制的视频进行手动编辑,即可实现从所录制的视频中识别出与待屏幕录制应用相关的部分来自动合成所述待屏幕录制应用的屏幕录制文件,能够有效提高屏幕录制的效率。In addition, by adopting the technical solution provided by the present application, it is possible to automatically synthesize the application to be screened by identifying the part related to the application to be screen-recorded from the recorded video without the need for the user to manually edit the recorded video. The screen recording file can effectively improve the efficiency of screen recording.
另外,采用本申请所提供的技术方案,能够有效改善用户体验。In addition, using the technical solutions provided in the present application can effectively improve user experience.
【附图说明】【Description of drawings】
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that are required in the description of the embodiments or the prior art. Obviously, the drawings in the following description are from the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本申请一实施例提供的屏幕录制方法的流程示意图;1 is a schematic flowchart of a screen recording method provided by an embodiment of the present application;
图2为图1所对应的实施例的具体实现示意图;Fig. 2 is the concrete realization schematic diagram of the embodiment corresponding to Fig. 1;
图3为适于用来实现本申请实施方式的示例性计算机系统/服务器12的框图。Figure 3 is a block diagram of an exemplary computer system/server 12 suitable for use in implementing embodiments of the present application.
【具体实施方式】【detailed description】
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的全部其它实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
需要说明的是,本发明实施例中所涉及的终端可以包括但不限于手机、个人数字助理(Personal Digital Assistant,PDA)、无线手持设备、平板电脑(Tablet Computer)、个人电脑(Personal Computer,PC)、MP3播放器、MP4播放器、可穿戴设备(例如,智能眼镜、智能手表、智能手环等)等。It should be noted that the terminals involved in the embodiments of the present invention may include but are not limited to mobile phones, personal digital assistants (Personal Digital Assistants, PDAs), wireless handheld devices, tablet computers (Tablet Computers), and personal computers (Personal Computers, PCs). ), MP3 players, MP4 players, wearable devices (eg, smart glasses, smart watches, smart bracelets, etc.), etc.
另外,本申请实施例中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本申请实施例中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this embodiment of the present application is only an association relationship to describe associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists alone, and A exists at the same time and B, there are three cases of B alone. In addition, the character "/" in the embodiments of the present application generally indicates that the related objects before and after are an "or" relationship.
图1为本申请一实施例提供的屏幕录制方法的流程示意图,如图1所示。FIG. 1 is a schematic flowchart of a screen recording method provided by an embodiment of the present application, as shown in FIG. 1 .
101、在终端的屏幕录制过程之中,对所述终端的应用切换事件进行监测。101. During the screen recording process of the terminal, monitor the application switching event of the terminal.
102、根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频的标记信息,用以指示所录制的视频中与所述待屏幕录制应用相关的部分。102. According to the monitored application switching event and the application to be screen-recorded by the terminal, set flag information of the recorded video to indicate the part of the recorded video that is related to the application to be screen-recorded.
103、根据所录制的视频和所录制的视频的标记信息,生成所述待屏幕录制应用的屏幕录制文件。103. Generate a screen recording file of the application to be screen recorded according to the recorded video and the tag information of the recorded video.
需要说明的是,101~103的执行主体的部分或全部可以为位于终端的应用,或者还可以为设置在位于终端的应用中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,或者还可以为位于网络侧服务器中的处理引擎,本实施例对此不进行特别限定。It should be noted that some or all of the execution bodies of 101 to 103 may be applications located in the terminal, or may also be functional units such as plug-ins or software development kits (Software Development Kit, SDK) set in the applications located in the terminal , or may also be a processing engine located in a network-side server, which is not particularly limited in this embodiment.
可以理解的是,所述应用可以是安装在终端上的本地程序(nativeApp),或者还可以是终端上的浏览器的一个网页程序(webApp),本实施例对此不进行限定。It can be understood that the application may be a local program (nativeApp) installed on the terminal, or may also be a web page program (webApp) of a browser on the terminal, which is not limited in this embodiment.
这样,通过在终端的屏幕录制过程之中,对所述终端的应用切换事件进行监测,进而,根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频的标记信息,用以指示所录制的视频中与所述待屏幕录制应用相关的部分,使得能够根据所录制的视频和所录制的视频的标记信息,生成所述待屏幕录制应用 的屏幕录制文件,由于在终端的屏幕录制过程之中设置了指示所录制的视频中与待屏幕录制应用相关的部分的标记信息,使得根据该标记信息从所录制的视频中识别出与所述待屏幕录制应用相关的部分来合成所述待屏幕录制应用的屏幕录制文件,而将与所述待屏幕录制应用不相关的部分过滤掉,从而有效地提高了屏幕录制的可靠性。In this way, during the screen recording process of the terminal, the application switching event of the terminal is monitored, and then, according to the monitored application switching event and the application to be screen-recorded by the terminal, the tag information of the recorded video is set , to indicate the part of the recorded video that is related to the application to be screen-recorded, so that the screen recording file of the application to be screen-recorded can be generated according to the recorded video and the tag information of the recorded video. In the screen recording process of the terminal, mark information indicating the part of the recorded video related to the application to be screen recorded is set, so that the part related to the application to be screen recorded is identified from the recorded video according to the mark information. to synthesize the screen recording file of the application to be screen recorded, and filter out the part irrelevant to the application to be screen recorded, thereby effectively improving the reliability of screen recording.
在本申请中,可以在屏幕录制功能开启之前,确定将要进行屏幕录制的终端的待屏幕录制应用,或者还可以在屏幕录制功能开启之后,确定将要进行屏幕录制的终端的待屏幕录制应用,本申请对此不进行特别限定。In this application, before the screen recording function is turned on, the application to be screen-recorded of the terminal to be screen-recorded may be determined, or after the screen-recording function is turned on, the application to be screen-recorded of the terminal to be screen-recorded may be determined. The application is not particularly limited.
可选地,在本实施例的一个可能的实现方式中,具体可以响应于用户在所述终端的屏幕录制过程之前基于所支持的屏幕录制应用列表的操作,确定所述待屏幕录制应用。Optionally, in a possible implementation of this embodiment, the application to be screen-recorded may be specifically determined in response to a user's operation based on a list of supported screen-recording applications before the screen recording process of the terminal.
在本实现方式中,可以向用户提供一个支持屏幕录制的应用列表,可以称为屏幕录制应用列表。该列表中可以包含终端上安装的全部应用,或者还可以包含终端上安装的部分应用,本实施例对此不进行特别限定。In this implementation manner, a list of applications supporting screen recording may be provided to the user, which may be referred to as a screen recording application list. The list may include all applications installed on the terminal, or may also include some applications installed on the terminal, which is not particularly limited in this embodiment.
用户可以根据屏幕录制需求,从终端的该屏幕录制应用列表中,选择对应的一个应用、两个应用或者多个应用,作为终端的待屏幕录制应用。According to the screen recording requirement, the user can select one corresponding application, two applications or multiple applications from the screen recording application list of the terminal as the application to be screen recorded on the terminal.
至此,则可以确定终端的待屏幕录制应用。So far, the application to be screen recorded on the terminal can be determined.
在确定终端的待屏幕录制应用之后,则可以进一步响应用户基于屏幕录制界面的操作,开启屏幕录制功能,以开始进行终端的屏幕录制。After the application to be screen recorded on the terminal is determined, the screen recording function can be enabled in response to the user's operation based on the screen recording interface, so as to start the screen recording of the terminal.
可选地,在本实施例的一个可能的实现方式中,具体可以响应于用户在所述终端的屏幕录制过程之中基于所述待屏幕录制应用的操作,确定所述待屏幕录制应用。Optionally, in a possible implementation manner of this embodiment, the application to be screen recorded may be specifically determined in response to a user's operation based on the application to be screen recorded during the screen recording process of the terminal.
在本实现方式中,可以响应用户基于屏幕录制界面的操作,开启屏幕录制功能,以开始进行终端的屏幕录制。在所述终端的屏幕录制过程之中,用户可以根据屏幕录制需求,从终端上安装的全部应用中,选择一个应用并开始操作该应用,作为终端的待屏幕录制应用。In this implementation manner, the screen recording function can be enabled in response to the user's operation based on the screen recording interface to start screen recording of the terminal. During the screen recording process of the terminal, the user can select an application from all the applications installed on the terminal according to the screen recording requirement and start operating the application as the application to be screen recorded on the terminal.
至此,则可以确定终端的待屏幕录制应用。So far, the application to be screen recorded on the terminal can be determined.
本申请中,由于用户的屏幕录制需求通常是对一个或两个或多个指定的待屏幕录制应用进行屏幕录制,那么,如果终端在屏幕录制过程之中,并不是运行待屏幕录制应用,而是切换到运行其他应用,此时,所录制的视频则根本是用户不想录 制的内容。因此,可以对所述终端的应用切换事件进行监测,通过监控到待屏幕录制应用切换到其他应用,或者其他应用切换到待屏幕录制应用,能够及时发现待屏幕录制应用是否正在进行屏幕录制。In this application, since the user's screen recording requirement is usually to perform screen recording on one or two or more designated applications to be screen recorded, then, if the terminal is not running the application to be recorded during the screen recording process, but It is to switch to running other applications. At this time, the recorded video is not what the user does not want to record at all. Therefore, the application switching event of the terminal can be monitored, and by monitoring that the application to be screen-recorded is switched to another application, or that another application is switched to the application to be screen-recorded, it is possible to find out in time whether the application to be screen-recorded is performing screen recording.
本申请中,在屏幕录制过程之中,若没有监测到应用切换事件,则可以采用现有技术中的屏幕录制方法,按照指定频率,通过操作系统提供的API截取终端屏幕上的帧图像,将截取到的帧图像以视频形式存储在终端上,只有在监测到应用切换事件时,才会执行102,在将截取到的帧图像以视频形式存储在终端上的同时,还可以进一步根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频的标记信息,并进行存储处理。In the present application, during the screen recording process, if no application switching event is detected, the screen recording method in the prior art can be used to capture frame images on the terminal screen through the API provided by the operating system according to a specified frequency, and the The captured frame images are stored on the terminal in the form of video, and 102 will be executed only when the application switching event is monitored. The application switching event of the terminal and the application to be recorded on the screen of the terminal are set, the mark information of the recorded video is set, and the storage processing is performed.
可选地,在本实施例的一个可能的实现方式中,在101中,具体可以通过对指定监测对象进行监测,来确定监测到所述终端的应用切换事件。Optionally, in a possible implementation manner of this embodiment, in step 101 , specifically by monitoring a designated monitoring object, it is possible to determine the monitored application switching event of the terminal.
在一个具体的实现过程中,具体可以对所述待屏幕录制应用的运行状态进行监测,进而,则可以根据监测到的运行状态,确定监测到所述终端的应用切换事件。In a specific implementation process, the running state of the application to be screen-recorded may be specifically monitored, and further, the monitored application switching event of the terminal may be determined according to the monitored running state.
由于屏幕录制的内容是采集终端的屏幕所显示的内容,使得只有终端的待屏幕录制应用的运行状态为前台运行时,才可能采集到该待屏幕录制应用的相关操作,而当终端的待屏幕录制应用的运行状态为后台运行时,则无法采集到该待屏幕录制应用的相关操作。因此,可以通过对所述待屏幕录制应用的运行状态进行监测,一旦监测到待屏幕录制应用的运行状态发生变化,即由前台运行到后台运行,以及由后台运行到前台运行,就能够确定监测到所述终端的应用切换事件。Since the content of the screen recording is the content displayed on the screen of the collection terminal, only when the running state of the application to be screened on the terminal is running in the foreground can the relevant operations of the application to be recorded can be collected, and when the application to be recorded on the terminal is running in the foreground When the running status of the recording application is running in the background, the relevant operations of the application to be screen recorded cannot be collected. Therefore, by monitoring the running state of the application to be screen-recorded, once it is detected that the running state of the application to be screen-recorded changes, that is, from the foreground to the background, and from the background to the foreground, the monitoring can be determined. an application switching event to the terminal.
在另一个具体的实现过程中,具体可以对所述终端的屏幕录制界面进行监测,进而,则可以根据监测到的屏幕录制界面内应用的切换,确定监测到所述终端的应用切换事件。In another specific implementation process, the screen recording interface of the terminal may be specifically monitored, and further, an application switching event of the terminal that is monitored may be determined according to the monitored application switching in the screen recording interface.
由于屏幕录制的内容是采集终端的屏幕录制界面内所显示的内容,使得只有终端的待屏幕录制应用的应用界面出现在终端的屏幕录制界面内,才可能采集到该待屏幕录制应用的相关操作,而当终端的待屏幕录制应用的应用界面没有出现在终端的屏幕录制界面内,或者有其他应用出现在终端的屏幕录制界面内时,则无法采集到该待屏幕录制应用的相关操作。因此,可以通过对所述终端的屏幕录制界面进行监测,一旦监测到屏幕录制界面内的应用发生变化,即由待屏幕录制应用变为其他应用,以及由其他应用变为待屏幕录制应用,就能够确定监测到所述终端的应用 切换事件。Since the content of the screen recording is the content displayed in the screen recording interface of the collection terminal, only the application interface of the application to be screen recorded on the terminal appears in the screen recording interface of the terminal, it is possible to collect the relevant operations of the application to be recorded. However, when the application interface of the application to be screen-recorded on the terminal does not appear in the screen-recording interface of the terminal, or when other applications appear in the screen-recording interface of the terminal, the relevant operations of the application to be screen-recorded cannot be collected. Therefore, by monitoring the screen recording interface of the terminal, once it is detected that the application in the screen recording interface changes, that is, the application to be screened is changed to another application, and the other application is changed to the application to be screened. The application switching event monitored by the terminal can be determined.
所谓的应用切换事件,可以是指从一个应用切换到另一个应用的终端操作事件,该事件中可以包括但不限于切换之前的一个应用的应用标识和切换之后的另一个应用的应用标识。The so-called application switching event may refer to a terminal operation event of switching from one application to another application, and the event may include, but is not limited to, the application identifier of one application before switching and the application identifier of another application after switching.
可选地,在本实施例的一个可能的实现方式中,在102中,只要监测到应用切换事件,则可以根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频的标记信息。Optionally, in a possible implementation manner of this embodiment, in 102, as long as an application switching event is monitored, the recorded application switching event may be set according to the monitored application switching event and the application to be screen-recorded by the terminal. Tag information for the video.
此时,由于设置了所录制的视频的标记信息,因此,可以指示所录制的视频中与所述待屏幕录制应用相关的部分,只有这部分内容才是用户本次的屏幕录制需求所对应的需要进行屏幕录制的内容。At this time, since the tag information of the recorded video is set, the part of the recorded video that is related to the application to be screen-recorded can be indicated, and only this part of the content corresponds to the user's current screen-recording requirement. What needs to be screen recorded.
在屏幕录制过程之中,用户可以随意进行终端的应用切换,而不需要任何的限制。采用上述技术方案,用户所进行的任意应用切换,都能够被监测,并且标记下来。During the screen recording process, the user can switch applications on the terminal at will without any restrictions. With the above technical solution, any application switching performed by the user can be monitored and marked.
在监测到应用切换事件之后,则可以进一步根据监测到的应用切换事件和所述终端的待屏幕录制应用,确定该应用切换事件为由待屏幕录制应用切换到其他应用的应用切换事件,还是由其他应用切换到待屏幕录制应用的应用切换事件,从而就可以设置所录制的视频的标记信息。After the application switching event is monitored, it can be further determined, according to the monitored application switching event and the application to be screen-recorded of the terminal, whether the application switching event is an application switching event of switching from the application to be screen-recorded to another application, or whether the application switching event is switched by the application to be screen-recorded to another application. Other applications switch to the application switching event of the application to be screen recorded, so that the flag information of the recorded video can be set.
在一个具体的实现过程中,具体可以根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频中与所述待屏幕录制应用相关的部分的标记信息。In a specific implementation process, according to the monitored application switching event and the application to be screen-recorded on the terminal, tag information of the part of the recorded video related to the application to be screen-recorded can be set.
例如,具体可以根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频中与所述待屏幕录制应用相关的部分的开始标记和/或结束标记。For example, according to the monitored application switching event and the application to be screen recorded on the terminal, the start marker and/or the end marker of the part of the recorded video related to the application to be screen recorded may be set.
若监测到的应用切换事件为由待屏幕录制应用切换到其他应用,则可以在所录制的视频中当前位置,设置所录制的视频中与所述待屏幕录制应用相关的部分的结束标记,用以指示在所录制的视频中该结束标记之前的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from the application to be screen-recorded to another application, you can set the end marker of the part of the recorded video related to the application to be screen-recorded at the current position in the recorded video, and use The part before the end mark in the recorded video is indicated as the part related to the application to be screen-recorded.
至此,则可以根据该结束标记,确定在所录制的视频中该结束标记之前的部分,为与所述待屏幕录制应用相关的部分。如果在该结束标记之前,还进一步设置了其他标记,那么,则还需要进一步结合其他标记,确定在所录制的视频中与所述 待屏幕录制应用相关的部分的具体范围。例如,在该结束标记之前,还进一步设置了所录制的视频中与所述待屏幕录制应用相关的部分的开始标记,那么,则可以根据该开始标记和该结束标记,确定在所录制的视频中该开始标记与该结束标记之间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the end mark, it can be determined that the part before the end mark in the recorded video is the part related to the application to be screen-recorded. If other flags are further set before the end flag, it is necessary to further combine other flags to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, before the end mark, the start mark of the part related to the application to be screen recorded in the recorded video is further set, then, according to the start mark and the end mark, it can be determined that in the recorded video The part between the start tag and the end tag is the part related to the application to be screen-recorded.
若监测到的应用切换事件为由其他应用切换到待屏幕录制应用,则可以在所录制的视频中当前位置,设置所录制的视频中与所述待屏幕录制应用相关的部分的开始标记,用以指示在所录制的视频中该开始标记之后的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from another application to the application to be screen-recorded, you can set the start marker of the part of the recorded video related to the application to be screen-recorded at the current position in the recorded video, and use The part after the start mark in the recorded video is indicated as the part related to the application to be screen-recorded.
至此,则可以根据该开始标记,确定在所录制的视频中该开始标记之后的部分,为与所述待屏幕录制应用相关的部分。如果在该开始标记之后,还进一步设置了其他标记,那么,则还需要进一步结合其他标记,确定在所录制的视频中与所述待屏幕录制应用相关的部分的具体范围。例如,在该开始标记之后,还进一步设置了所录制的视频中与所述待屏幕录制应用相关的部分的结束标记,那么,则可以根据该开始标记和该结束标记,确定在所录制的视频中该开始标记与该结束标记之间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the start mark, it can be determined that the part after the start mark in the recorded video is the part related to the application to be screen-recorded. If other flags are further set after the start flag, it is necessary to further combine other flags to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, after the start mark, the end mark of the part of the recorded video related to the application to be screen-recorded is further set, then, according to the start mark and the end mark, it can be determined that the recorded video is The part between the start tag and the end tag is the part related to the application to be screen-recorded.
或者,再例如,具体可以根据监测到的应用切换事件和所述终端的待屏幕录制应用,记录所录制的视频中与所述待屏幕录制应用相关的部分的开始时间和/或结束时间。Alternatively, for another example, the start time and/or the end time of the portion of the recorded video related to the application to be screen recorded may be specifically recorded according to the monitored application switching event and the application to be screen recorded on the terminal.
若监测到的应用切换事件为由待屏幕录制应用切换到其他应用,则可以将当前时刻距离开始录制时刻的录制时间,记录为所录制的视频中与所述待屏幕录制应用相关的部分的结束时间,用以指示在所录制的视频中该结束时间之前的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from the application to be screen recorded to another application, the recording time from the current moment to the start of recording can be recorded as the end of the part of the recorded video related to the application to be recorded. The time is used to indicate the part of the recorded video before the end time, which is the part related to the application to be recorded on the screen.
至此,则可以根据该结束时间,确定在所录制的视频中该结束时间之前的部分,为与所述待屏幕录制应用相关的部分。如果在该结束时间之前,还进一步记录了其他时间,那么,则还需要进一步结合其他时间,确定在所录制的视频中与所述待屏幕录制应用相关的部分的具体范围。例如,在该结束时间之前,还进一步记录了所录制的视频中与所述待屏幕录制应用相关的部分的开始时间,那么,则可以根据该开始时间和该结束时间,确定在所录制的视频中该开始时间与该结束时间之间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the end time, it can be determined that the part of the recorded video before the end time is the part related to the application to be screen-recorded. If other times are further recorded before the end time, it is necessary to further combine the other times to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, before the end time, the start time of the part of the recorded video related to the application to be screen-recorded is further recorded, then, according to the start time and the end time The part between the start time and the end time is the part related to the application to be screen-recorded.
若监测到的应用切换事件为由其他应用切换到待屏幕录制应用,则可以将当前时刻距离开始录制时刻的录制时间,记录为所录制的视频中与所述待屏幕录制应用相关的部分的开始时间,用以指示在所录制的视频中该开始时间之后的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from another application to the application to be screen-recorded, the recording time from the current moment to the start of recording can be recorded as the start of the part of the recorded video related to the application to be screen-recorded The time is used to indicate the part after the start time in the recorded video, which is the part related to the application to be screen-recorded.
至此,则可以根据该开始时间,确定在所录制的视频中该开始时间之后的部分,为与所述待屏幕录制应用相关的部分。如果在该开始时间之后,还进一步记录了其他时间,那么,则还需要进一步结合其他时间,确定在所录制的视频中与所述待屏幕录制应用相关的部分的具体范围。例如,在该开始时间之后,还进一步记录了所录制的视频中与所述待屏幕录制应用相关的部分的结束时间,那么,则可以根据该开始时间和该结束时间,确定在所录制的视频中该开始时间与该结束时间之间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the start time, it can be determined that the part of the recorded video after the start time is the part related to the application to be recorded on the screen. If other times are further recorded after the start time, it is necessary to further combine the other times to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, after the start time, the end time of the part of the recorded video related to the application to be screen-recorded is further recorded, then, according to the start time and the end time The part between the start time and the end time is the part related to the application to be screen-recorded.
或者,再例如,具体可以根据监测到的应用切换事件和所述终端的待屏幕录制应用,记录所录制的视频中与所述待屏幕录制应用相关的部分的开始帧号和/或结束帧号。Alternatively, for another example, the start frame number and/or the end frame number of the portion of the recorded video that is related to the application to be recorded on the screen may be recorded according to the monitored application switching event and the application to be recorded on the screen of the terminal. .
若监测到的应用切换事件为由待屏幕录制应用切换到其他应用,则可以将当前帧号记录为所录制的视频中与所述待屏幕录制应用相关的部分的结束帧号,用以指示在所录制的视频中该结束帧号之前的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from the application to be screen-recorded to another application, the current frame number can be recorded as the end frame number of the part of the recorded video related to the application to be screen-recorded to indicate when The part before the end frame number in the recorded video is the part related to the application to be screen-recorded.
至此,则可以根据该结束帧号,确定在所录制的视频中该结束帧号之前的部分,为与所述待屏幕录制应用相关的部分。如果在该结束帧号之前,还进一步记录了其他帧号,那么,则还需要进一步结合其他帧号,确定在所录制的视频中与所述待屏幕录制应用相关的部分的具体范围。例如,在该结束帧号之前,还进一步记录了所录制的视频中与所述待屏幕录制应用相关的部分的开始帧号,那么,则可以根据该开始帧号和该结束帧号,确定在所录制的视频中该开始帧号与该结束帧号之间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the end frame number, it can be determined that the part before the end frame number in the recorded video is the part related to the application to be recorded on the screen. If other frame numbers are further recorded before the end frame number, it is necessary to further combine the other frame numbers to determine the specific range of the part of the recorded video that is related to the application to be screen-recorded. For example, before the end frame number, the start frame number of the part of the recorded video related to the application to be recorded on the screen is further recorded. Then, it can be determined according to the start frame number and the end frame number. The part between the start frame number and the end frame number in the recorded video is the part related to the application to be screen-recorded.
若监测到的应用切换事件为由其他应用切换到待屏幕录制应用,则可以将当前帧号记录为所录制的视频中与所述待屏幕录制应用相关的部分的开始帧号,用以指示在所录制的视频中该开始帧号之后的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from another application to the application to be screen-recorded, the current frame number can be recorded as the start frame number of the part of the recorded video that is related to the application to be screen-recorded to indicate when The part after the start frame number in the recorded video is the part related to the application to be screen-recorded.
至此,则可以根据该开始帧号,确定在所录制的视频中该开始帧号之后的部分,为与所述待屏幕录制应用相关的部分。如果在该开始帧号之后,还进一步记录了其他帧号,那么,则还需要进一步结合其他帧号,确定在所录制的视频中与所述待屏幕录制应用相关的部分的具体范围。例如,在该开始帧号之后,还进一步记录了所录制的视频中与所述待屏幕录制应用相关的部分的结束帧号,那么,则可以根据该开始帧号和该结束帧号,确定在所录制的视频中该开始帧号与该结束帧号之间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the start frame number, it can be determined that the part after the start frame number in the recorded video is the part related to the application to be recorded on the screen. If other frame numbers are further recorded after the start frame number, then it is necessary to further combine other frame numbers to determine the specific range of the part of the recorded video related to the application to be screen recorded. For example, after the start frame number, the end frame number of the part of the recorded video related to the application to be recorded on the screen is further recorded. Then, it can be determined according to the start frame number and the end frame number The part between the start frame number and the end frame number in the recorded video is the part related to the application to be screen-recorded.
在另一个具体的实现过程中,具体可以根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频中与所述待屏幕录制应用不相关的部分的标记信息。In another specific implementation process, specifically, according to the monitored application switching event and the application to be screen recorded on the terminal, the marking information of the part of the recorded video that is not related to the application to be screen recorded can be set.
例如,具体可以根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频中与所述待屏幕录制应用不相关的部分的开始标记和/或结束标记。For example, according to the monitored application switching event and the application to be screen recorded on the terminal, the start marker and/or the end marker of the part of the recorded video that is not related to the application to be screen recorded can be set.
若监测到的应用切换事件为由待屏幕录制应用切换到其他应用,则可以在所录制的视频中当前位置,设置所录制的视频中与所述待屏幕录制应用不相关的部分的开始标记,用以指示在所录制的视频中该开始标记之前的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from the application to be screen-recorded to another application, the current position in the recorded video can be set as the start marker of the part of the recorded video that is not related to the application to be screen-recorded, It is used to indicate that the part before the start mark in the recorded video is the part related to the application to be recorded on the screen.
至此,则可以根据该开始标记,确定在所录制的视频中该开始标记之前的部分,为与所述待屏幕录制应用相关的部分。如果在该开始标记之前,还进一步设置了其他标记,那么,则还需要进一步结合其他标记,确定在所录制的视频中与所述待屏幕录制应用相关的部分的具体范围。例如,在该开始标记之前,还进一步设置了所录制的视频中与所述待屏幕录制应用不相关的部分的结束标记,那么,则可以根据该结束标记和该开始标记,确定在所录制的视频中该开始标记与该结束标记之间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the start mark, it can be determined that the part before the start mark in the recorded video is the part related to the application to be screen-recorded. If other flags are further set before the start flag, it is necessary to further combine other flags to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, before the start mark, the end mark of the part of the recorded video that is not related to the application to be screen-recorded is further set, then, according to the end mark and the start mark, it can be determined that the recorded video The part between the start tag and the end tag in the video is the part related to the application to be screen-recorded.
若监测到的应用切换事件为由其他应用切换到待屏幕录制应用,则可以在所录制的视频中当前位置,设置所录制的视频中与所述待屏幕录制应用不相关的部分的结束标记,用以指示在所录制的视频中该结束标记之后的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from another application to the application to be screen-recorded, then the current position in the recorded video can be set as the end marker of the part of the recorded video that is not related to the application to be screen-recorded, It is used to indicate that the part after the end mark in the recorded video is the part related to the application to be screen-recorded.
至此,则可以根据该结束标记,确定在所录制的视频中该结束标记之后的部分,为与所述待屏幕录制应用相关的部分。如果在该结束标记之后,还进一步设置 了其他标记,那么,则还需要进一步结合其他标记,确定在所录制的视频中与所述待屏幕录制应用相关的部分的具体范围。例如,在该结束标记之后,还进一步设置了所录制的视频中与所述待屏幕录制应用不相关的部分的开始标记,那么,则可以根据该结束标记和该开始标记,确定在所录制的视频中该开始标记与该结束标记之间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the end mark, it can be determined that the part after the end mark in the recorded video is the part related to the application to be screen-recorded. If other flags are further set after the end flag, it is necessary to further combine other flags to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, after the end mark, the start mark of the part of the recorded video that is not related to the application to be screen-recorded is further set, then, according to the end mark and the start mark, it can be determined that the recorded video The part between the start tag and the end tag in the video is the part related to the application to be screen-recorded.
或者,再例如,具体可以根据监测到的应用切换事件和所述终端的待屏幕录制应用,记录所录制的视频中与所述待屏幕录制应用不相关的部分的开始时间和/或结束时间。Alternatively, for another example, the start time and/or the end time of a portion of the recorded video that is not related to the application to be screen recorded may be specifically recorded according to the monitored application switching event and the application to be screen recorded on the terminal.
若监测到的应用切换事件为由待屏幕录制应用切换到其他应用,则可以将当前时刻距离开始录制时刻的录制时间,记录为所录制的视频中与所述待屏幕录制应用不相关的部分的开始时间,用以指示在所录制的视频中该开始时间之前的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from the application to be screen recorded to another application, the recording time from the current moment to the start of recording can be recorded as the part of the recorded video that is not related to the application to be screen recorded. The start time is used to indicate that the part in the recorded video before the start time is the part related to the application to be screen recorded.
至此,则可以根据该开始时间,确定在所录制的视频中该开始时间之前的部分,为与所述待屏幕录制应用相关的部分。如果在该开始时间之前,还进一步记录了其他时间,那么,则还需要进一步结合其他时间,确定在所录制的视频中与所述待屏幕录制应用相关的部分的具体范围。例如,在该开始时间之前,还进一步记录了所录制的视频中与所述待屏幕录制应用不相关的部分的结束时间,那么,则可以根据该结束时间和该开始时间,确定在所录制的视频中该结束时间与该开始时间之间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the start time, it can be determined that the part of the recorded video before the start time is the part related to the application to be screen-recorded. If other times are further recorded before the start time, it is necessary to further combine the other times to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, before the start time, the end time of the part of the recorded video that is not related to the application to be screen-recorded is further recorded, then, according to the end time and the start time, it can be determined that the The part between the end time and the start time in the video is the part related to the application to be screen-recorded.
若监测到的应用切换事件为由其他应用切换到待屏幕录制应用,则可以将当前时刻距离开始录制时刻的录制时间,记录为所录制的视频中与所述待屏幕录制应用不相关的部分的结束时间,用以指示在所录制的视频中该结束时间之后的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from another application to the application to be screen-recorded, the recording time from the current moment to the start of recording can be recorded as the part of the recorded video that is not related to the application to be screen-recorded The end time is used to indicate that the part in the recorded video after the end time is the part related to the application to be screen recorded.
至此,则可以根据该结束时间,确定在所录制的视频中该结束时间之后的部分,为与所述待屏幕录制应用相关的部分。如果在该结束时间之后,还进一步记录了其他时间,那么,则还需要进一步结合其他时间,确定在所录制的视频中与所述待屏幕录制应用相关的部分的具体范围。例如,在该结束时间之后,还进一步记录了所录制的视频中与所述待屏幕录制应用不相关的部分的开始时间,那么,则可以根据该结束时间和该开始时间,确定在所录制的视频中该结束时间与该开始时间之 间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the end time, it can be determined that the part of the recorded video after the end time is the part related to the application to be screen-recorded. If other times are further recorded after the end time, it is necessary to further combine the other times to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, after the end time, the start time of the part of the recorded video that is not related to the application to be screen-recorded is further recorded, then, according to the end time and the start time, it can be determined The part between the end time and the start time in the video is the part related to the application to be screen-recorded.
或者,再例如,具体可以根据监测到的应用切换事件和所述终端的待屏幕录制应用,记录所录制的视频中与所述待屏幕录制应用不相关的部分的开始帧号和/或结束帧号。Or, for another example, the start frame number and/or the end frame of the part of the recorded video that is not related to the application to be screen recorded may be recorded according to the monitored application switching event and the application to be recorded on the screen of the terminal. No.
若监测到的应用切换事件为由待屏幕录制应用切换到其他应用,则可以将当前帧号记录为所录制的视频中与所述待屏幕录制应用不相关的部分的开始帧号,用以指示在所录制的视频中该开始帧号之前的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from the application to be screen-recorded to another application, the current frame number can be recorded as the start frame number of the part of the recorded video that is not related to the application to be screen-recorded to indicate The part before the start frame number in the recorded video is the part related to the application to be screen-recorded.
至此,则可以根据该开始帧号,确定在所录制的视频中该开始帧号之前的部分,为与所述待屏幕录制应用相关的部分。如果在该开始帧号之前,还进一步记录了其他帧号,那么,则还需要进一步结合其他帧号,确定在所录制的视频中与所述待屏幕录制应用相关的部分的具体范围。例如,在该开始帧号之前,还进一步记录了所录制的视频中与所述待屏幕录制应用不相关的部分的结束帧号,那么,则可以根据该结束帧号和该开始帧号,确定在所录制的视频中该结束帧号与该开始帧号之间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the start frame number, it can be determined that the part before the start frame number in the recorded video is the part related to the application to be recorded on the screen. If other frame numbers are further recorded before the start frame number, it is necessary to further combine the other frame numbers to determine the specific range of the part related to the application to be screen recorded in the recorded video. For example, before the start frame number, the end frame number of the part of the recorded video that is not related to the application to be recorded on the screen is further recorded. Then, it can be determined according to the end frame number and the start frame number. The part between the end frame number and the start frame number in the recorded video is the part related to the application to be screen-recorded.
若监测到的应用切换事件为由其他应用切换到待屏幕录制应用,则可以将当前帧号记录为所录制的视频中与所述待屏幕录制应用不相关的部分的结束帧号,用以指示在所录制的视频中该结束帧号之后的部分,为与所述待屏幕录制应用相关的部分。If the monitored application switching event is switching from another application to the application to be screen-recorded, the current frame number can be recorded as the end frame number of the part of the recorded video that is not related to the application to be screen-recorded to indicate The part after the end frame number in the recorded video is the part related to the application to be screen-recorded.
至此,则可以根据该结束帧号,确定在所录制的视频中该结束帧号之后的部分,为与所述待屏幕录制应用相关的部分。如果在该结束帧号之后,还进一步记录了其他帧号,那么,则还需要进一步结合其他帧号,确定在所录制的视频中与所述待屏幕录制应用相关的部分的具体范围。例如,在该结束帧号之后,还进一步记录了所录制的视频中与所述待屏幕录制应用不相关的部分的开始帧号,那么,则可以根据该结束帧号和该开始帧号,确定在所录制的视频中该结束帧号与该开始帧号之间的部分,为与所述待屏幕录制应用相关的部分。So far, according to the end frame number, it can be determined that the part after the end frame number in the recorded video is the part related to the application to be recorded on the screen. If other frame numbers are further recorded after the end frame number, it is necessary to further combine the other frame numbers to determine the specific range of the part of the recorded video that is related to the application to be screen-recorded. For example, after the end frame number, the start frame number of the part of the recorded video that is not related to the application to be recorded on the screen is further recorded. Then, it can be determined according to the end frame number and the start frame number. The part between the end frame number and the start frame number in the recorded video is the part related to the application to be screen-recorded.
可以理解的是,还可以进一步结合上述两种实现过程中的技术方案,设置所录制的视频的标记信息。It can be understood that, the tag information of the recorded video can be further set in combination with the technical solutions in the above two implementation processes.
至此,通过监控到待屏幕录制应用切换到其他应用,或者其他应用切换到待屏 幕录制应用,能够及时发现待屏幕录制应用是否正在进行屏幕录制,同时进行所录制的视频的标记信息的设置,用来标记所录制的视频中与所述待屏幕录制应用相关的部分或者不相关的部分,从而指示所录制的视频中与所述待屏幕录制应用相关的部分。So far, by monitoring that the application to be screened is switched to another application, or another application is switched to the application to be recorded to mark the part of the recorded video that is related to the application to be screen-recorded or irrelevant, so as to indicate the part of the recorded video that is related to the application to be screen-recorded.
在用户想要进行屏幕录制的内容录制完成之后,则可以进一步响应用户基于屏幕录制界面的操作,关闭屏幕录制功能,以终止进行终端的屏幕录制。After the recording of the content that the user wants to perform screen recording is completed, the screen recording function may be turned off in response to the user's operation based on the screen recording interface, so as to terminate the screen recording of the terminal.
在本申请中,在屏幕录制完成之后,则可以进一步将所录制的视频,以及该视频的标记信息,进行存储处理。In the present application, after the screen recording is completed, the recorded video and the tag information of the video can be further stored for processing.
具体来说,具体可以将所录制的视频,以及该视频的标记信息存储在终端的存储设备中。Specifically, the recorded video and the tag information of the video may be stored in the storage device of the terminal.
在一个具体的实现过程中,所述终端的存储设备可以慢速存储设备,具体可以为计算机系统的硬盘,或者还可以为手机的非运行内存即物理内存,例如,只读存储器(Read-Only Memory,ROM)和内存卡等,本实施例对此不进行特别限定。In a specific implementation process, the storage device of the terminal may be a slow storage device, specifically a hard disk of a computer system, or may also be a non-running memory of a mobile phone, that is, physical memory, for example, a read-only memory (Read-Only Memory) Memory, ROM) and memory card, etc., which are not particularly limited in this embodiment.
在另一个具体的实现过程中,所述终端的存储设备还可以为快速存储设备,具体可以为计算机系统的内存,或者还可以为手机的运行内存即系统内存,例如,随机存储器(Random Access Memory,RAM)等,本实施例对此不进行特别限定。In another specific implementation process, the storage device of the terminal may also be a fast storage device, specifically the memory of the computer system, or may also be the operating memory of the mobile phone, that is, the system memory, for example, random access memory (Random Access Memory). , RAM), etc., which are not particularly limited in this embodiment.
可选地,在本实施例的一个可能的实现方式中,在103中,具体可以根据所录制的视频的标记信息,对所录制的视频进行分割处理,以获得与所述待屏幕录制应用相关的部分,进而,则可以将所获得的与所述待屏幕录制应用相关的部分进行合成处理,以获得所述待屏幕录制应用的屏幕录制文件。Optionally, in a possible implementation manner of this embodiment, in 103, the recorded video may be segmented according to the tag information of the recorded video, so as to obtain information related to the application to be recorded on the screen. Then, the obtained part related to the application to be screen recorded may be synthesized to obtain a screen recording file of the application to be screen recorded.
在该实现方式中,在屏幕录制完成之后,则可以进一步获取所录制的全部视频,及其标记信息,根据标记信息,对所录制的视频进行识别处理,进而,则可以根据所述识别处理的识别结果,进行后续处理。In this implementation manner, after the screen recording is completed, all the recorded videos and their tag information can be further acquired, and the recorded videos can be identified and processed according to the tag information, and further, according to the identification processing Identify the result and perform subsequent processing.
具体地,具体可以根据所录制的视频的标记信息,对所录制的视频进行分割处理。Specifically, the recorded video may be segmented according to the tag information of the recorded video.
此时,则可以将所录制的视频分割成多个片段,各片段对应的内容可以根据该片段所对应的标记信息,确定为与所述待屏幕录制应用相关的部分,或者为与所述待屏幕录制应用不相关的部分。At this time, the recorded video can be divided into multiple segments, and the content corresponding to each segment can be determined according to the tag information corresponding to the segment as the part related to the application to be recorded on the screen, or as the part related to the application to be recorded. Unrelated parts of the screen recording app.
然后,在对所录制的视频进行分割处理之后,则可以根据所述分割处理之后的 各片段所对应的视频标记信息,将与所述待屏幕录制应用不相关的部分进行过滤处理,以获得与所述待屏幕录制应用相关的部分。Then, after the recorded video is segmented, the unrelated part of the application to be screen-recorded can be filtered according to the video tag information corresponding to each segment after the segmentation process, so as to obtain a The part related to the application to be screen recorded.
例如,根据各片段中所包含的标记信息,对各片段分别进行判断,以确定该片段为与所述待屏幕录制应用相关的部分,或者为与所述待屏幕录制应用不相关的部分。将与所述待屏幕录制应用不相关的部分的片段直接进行删除处理,将其余的与所述待屏幕录制应用相关的部分的片段进行合成处理,以获得所述待屏幕录制应用的屏幕录制文件。For example, according to the tag information contained in each segment, each segment is judged separately to determine whether the segment is a part related to the application to be screen-recorded, or a part not related to the application to be screen-recorded. Directly delete the fragments of the part not related to the application to be screen recorded, and perform synthesis processing on the remaining fragments related to the application to be screen recorded, so as to obtain the screen recording file of the application to be screen recorded .
进一步地,在获得所述待屏幕录制应用的屏幕录制文件之后,则可以进一步对所获得的待屏幕录制应用的屏幕录制文件进行存储处理。Further, after obtaining the screen recording file of the application to be screen recorded, the obtained screen recording file of the application to be screen recorded may be further stored.
具体来说,具体可以将所获得的待屏幕录制应用的屏幕录制文件存储在终端的存储设备中。Specifically, the obtained screen recording file of the application to be screen recorded may be stored in the storage device of the terminal.
在一个具体的实现过程中,所述终端的存储设备可以慢速存储设备,具体可以为计算机系统的硬盘,或者还可以为手机的非运行内存即物理内存,例如,只读存储器(Read-Only Memory,ROM)和内存卡等,本实施例对此不进行特别限定。In a specific implementation process, the storage device of the terminal may be a slow storage device, specifically a hard disk of a computer system, or may also be a non-running memory of a mobile phone, that is, physical memory, for example, a read-only memory (Read-Only Memory) Memory, ROM) and memory card, etc., which are not particularly limited in this embodiment.
在另一个具体的实现过程中,所述终端的存储设备还可以为快速存储设备,具体可以为计算机系统的内存,或者还可以为手机的运行内存即系统内存,例如,随机存储器(Random Access Memory,RAM)等,本实施例对此不进行特别限定。In another specific implementation process, the storage device of the terminal may also be a fast storage device, specifically the memory of the computer system, or may also be the operating memory of the mobile phone, that is, the system memory, for example, random access memory (Random Access Memory). , RAM), etc., which are not particularly limited in this embodiment.
本实施例中,通过在终端的屏幕录制过程之中,对所述终端的应用切换事件进行监测,进而,根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频的标记信息,用以指示所录制的视频中与所述待屏幕录制应用相关的部分,使得能够根据所录制的视频和所录制的视频的标记信息,生成所述待屏幕录制应用的屏幕录制文件,由于在终端的屏幕录制过程之中设置了指示所录制的视频中与待屏幕录制应用相关的部分的标记信息,使得根据该标记信息从所录制的视频中识别出与所述待屏幕录制应用相关的部分来合成所述待屏幕录制应用的屏幕录制文件,而将与所述待屏幕录制应用不相关的部分过滤掉,从而有效地提高了屏幕录制的可靠性。In this embodiment, during the screen recording process of the terminal, the application switching event of the terminal is monitored, and then the recorded video is set according to the monitored application switching event and the application to be recorded on the screen of the terminal. The tag information is used to indicate the part of the recorded video that is related to the application to be screen recorded, so that the screen recording file of the application to be screen recorded can be generated according to the recorded video and the tag information of the recorded video , because the marking information indicating the part of the recorded video related to the application to be screen recorded is set in the screen recording process of the terminal, so that the application to be screen recorded is identified from the recorded video according to the marking information. The relevant part is used to synthesize the screen recording file of the application to be screen recorded, and the part irrelevant to the application to be screen recorded is filtered out, thereby effectively improving the reliability of the screen recording.
另外,采用本申请所提供的技术方案,无需用户对所录制的视频进行手动编辑,即可实现从所录制的视频中识别出与待屏幕录制应用相关的部分来自动合成所述待屏幕录制应用的屏幕录制文件,能够有效提高屏幕录制的效率。In addition, by adopting the technical solution provided by the present application, it is possible to automatically synthesize the application to be screened by identifying the part related to the application to be screen-recorded from the recorded video without the need for the user to manually edit the recorded video. The screen recording file can effectively improve the efficiency of screen recording.
另外,采用本申请所提供的技术方案,能够有效改善用户体验。In addition, using the technical solutions provided in the present application can effectively improve user experience.
下面将通过具体应用场景对本实施例的具体实现进行进一步详细说明,如图2所示。The specific implementation of this embodiment will be further described in detail below through specific application scenarios, as shown in FIG. 2 .
201、用户打开屏幕录制应用,在该屏幕录制应用所支持的屏幕录制应用列表中,选择应用A,作为待屏幕录制应用。201. The user opens a screen recording application, and in the list of screen recording applications supported by the screen recording application, selects application A as the application to be screen recorded.
202、用户点击屏幕录制界面上的录制开始控件,开启屏幕录制功能,以开始进行终端的屏幕录制。202. The user clicks the recording start control on the screen recording interface to enable the screen recording function, so as to start the screen recording of the terminal.
203、屏幕录制应用判断终端当前所运行的应用是否为应用A,如果终端当前所运行的应用为应用A,则执行204,如果不是,例如,是应用C,则执行207。203. The screen recording application determines whether the application currently running on the terminal is application A, if the application currently running on the terminal is application A, execute 204; if not, for example, it is application C, execute 207.
204、屏幕录制应用按照指定频率,通过操作系统提供的API截取终端屏幕上的帧图像,将截取到的帧图像以视频形式存储在终端上。204. The screen recording application captures frame images on the terminal screen through an API provided by the operating system according to a specified frequency, and stores the captured frame images on the terminal in the form of video.
205、屏幕录制应用判断是否监测到终端的应用切换事件,如果监测到终端的应用切换事件,则执行206,如果没有监测到终端的应用切换事件,则继续执行204。205. The screen recording application determines whether an application switching event of the terminal is monitored, and if an application switching event of the terminal is monitored, execute 206, and if no application switching event of the terminal is monitored, continue to execute 204.
206、屏幕录制应用根据监测到的应用切换事件和终端的待屏幕录制应用即应用A,在所录制的视频中当前位置,设置所录制的视频中与应用A相关的部分的结束标记,或者设置所录制的视频中与应用A不相关的部分的开始标记,用以指示所录制的视频中与应用A相关的部分。206. The screen recording application sets the end mark of the part related to application A in the recorded video at the current position in the recorded video according to the monitored application switching event and the terminal's application to be screen-recorded, that is, application A, or sets The start marker of the part of the recorded video that is not related to application A, to indicate the part of the recorded video that is related to application A.
具体地,屏幕录制应用具体可以根据监测到的应用切换事件和应用A,确定该应用切换事件为由应用A切换到应用B的应用切换事件,从而就可以在所录制的视频中当前位置,设置所录制的视频中与应用A相关的部分的结束标记,或者设置所录制的视频中与应用A不相关的部分的开始标记。Specifically, the screen recording application can specifically determine that the application switching event is an application switching event that is switched from application A to application B according to the monitored application switching event and application A, so that the current position in the recorded video can be set. The end marker of the portion of the recorded video that is related to application A, or the start marker of the portion of the recorded video that is not related to application A.
其中,所录制的视频,为屏幕录制应用按照指定频率,通过操作系统提供的API截取终端屏幕上的帧图像,将截取到的帧图像以视频形式存储在终端上的视频。The recorded video is a video in which the screen recording application intercepts the frame image on the terminal screen through the API provided by the operating system according to the specified frequency, and stores the intercepted frame image in the form of video on the terminal.
207、屏幕录制应用在所录制的视频中起始位置,设置所录制的视频中与应用A不相关的部分的开始标记,或者设置所录制的视频中与应用A相关的部分的结束标记。207. The screen recording application sets a start position in the recorded video, and sets a start mark of a portion of the recorded video that is not related to application A, or sets an end mark of a portion of the recorded video that is related to application A.
208、屏幕录制应用按照指定频率,通过操作系统提供的API截取终端屏幕上的帧图像,将截取到的帧图像以视频形式存储在终端上。208. The screen recording application captures frame images on the screen of the terminal through the API provided by the operating system according to the specified frequency, and stores the captured frame images on the terminal in the form of video.
209、屏幕录制应用判断是否监测到终端的应用切换事件,如果监测到终端的 应用切换事件,则执行210,如果没有监测到终端的应用切换事件,则继续执行208。209. The screen recording application determines whether the application switching event of the terminal is monitored, if the application switching event of the terminal is monitored, execute 210, and if the application switching event of the terminal is not monitored, continue to execute 208.
210、屏幕录制应用根据监测到的应用切换事件和终端的待屏幕录制应用即应用A,在所录制的视频中当前位置,设置所录制的视频中与应用A相关的部分的开始标记,或者设置所录制的视频中与应用A不相关的部分的结束标记,用以指示所录制的视频中与应用A相关的部分。210. The screen recording application sets the start mark of the part related to application A in the recorded video at the current position in the recorded video according to the monitored application switching event and the terminal's application to be screen-recorded, namely Application A, or sets The end marker of the part of the recorded video that is not related to application A, to indicate the part of the recorded video that is related to application A.
具体地,屏幕录制应用具体可以根据监测到的应用切换事件和应用A,确定该应用切换事件为由应用C切换到应用A的应用切换事件,从而就可以在所录制的视频中当前位置,设置所录制的视频中与应用A相关的部分的开始标记,或者设置所录制的视频中与应用A不相关的部分的结束标记。Specifically, the screen recording application can specifically determine that the application switching event is an application switching event that is switched from application C to application A according to the monitored application switching event and application A, so that the current position in the recorded video can be set. The start marker of the portion of the recorded video that is related to application A, or the end marker of the portion of the recorded video that is not related to application A.
其中,所录制的视频,为屏幕录制应用按照指定频率,通过操作系统提供的API截取终端屏幕上的帧图像,将截取到的帧图像以视频形式存储在终端上的视频。The recorded video is a video in which the screen recording application intercepts the frame image on the terminal screen through the API provided by the operating system according to the specified frequency, and stores the intercepted frame image in the form of video on the terminal.
211、屏幕录制应用获取所录制的视频,及其标记信息,根据所录制的视频的标记信息,对所录制的视频进行分割处理,以获得与应用A相关的部分,以及将所获得的与应用A相相关的部分进行合成处理,以获得应用A的屏幕录制文件。211. The screen recording application acquires the recorded video and its tag information, and performs segmentation processing on the recorded video according to the tag information of the recorded video, so as to obtain the part related to application A, and converts the obtained part related to application A. The relevant parts of phase A are synthesized to obtain the screen recording file of application A.
例如,假设在所录制的视频中,依次的标记信息为:与应用A相关的部分的结束标记(a1)、与应用A相关的部分的开始标记(a2)、与应用A相关的部分的结束标记(a3)和与应用A相关的部分的开始标记(a4)。For example, suppose that in the recorded video, the sequential marker information is: the end marker (a1) of the part related to application A, the start marker (a2) of the part related to application A, and the end of the part related to application A mark (a3) and the start mark (a4) of the section related to application A.
那么,对所录制的视频进行分割处理只有,则可以获得如下五个片段:Then, by dividing the recorded video, the following five segments can be obtained:
片段1:所录制的视频的开头→a1;Fragment 1: the beginning of the recorded video → a1;
片段2:a1→a2;Fragment 2: a1→a2;
片段3:a2→a3;Fragment 3: a2→a3;
片段4:a3→a4;Fragment 4: a3→a4;
片段5:a4→所录制的视频的结尾。Fragment 5: a4 → end of recorded video.
在获得如上五个片段之后,可以根据各片段中所包含的标记信息,对各片段分别进行判断,以确定该片段为与应用A相关的部分,或者为与应用A不相关的部分。After the above five segments are obtained, each segment can be judged according to the tag information contained in each segment to determine whether the segment is a part related to application A or a part not related to application A.
片段1中依次包含了所录制的视频的开头标记与a1,因此,该片段1为与应用A相关的部分;Fragment 1 sequentially includes the start tag and a1 of the recorded video, so this fragment 1 is the part related to application A;
片段2中依次包含了a1与a2,因此,该片段2为与应用A不相关的部分;Fragment 2 contains a1 and a2 in turn, so this fragment 2 is not related to application A;
片段3中依次包含了a2与a3,因此,该片段3为与应用A相关的部分;Fragment 3 contains a2 and a3 in turn, so this fragment 3 is the part related to application A;
片段4中依次包含了a3与a4,因此,该片段4为与应用A不相关的部分;Fragment 4 contains a3 and a4 in turn, therefore, fragment 4 is a part not related to application A;
片段5中依次包含了a4与所录制的视频的结尾标记,因此,该片段5为与应用A相关的部分。Fragment 5 includes a4 and the end marker of the recorded video in sequence, so this fragment 5 is a part related to application A.
进一步地,将与应用A不相关的部分的片段2和片段4直接进行删除处理,将其余的与应用A相关的部分的片段1、片段3和片段5进行合成处理,以获得应用A的屏幕录制文件。Further, the segment 2 and segment 4 of the part not related to application A are directly deleted, and the remaining parts related to application A are segment 1, segment 3 and segment 5 are synthesized to obtain the screen of application A. record file.
212、将所获得的应用A的屏幕录制文件存储在终端上。212. Store the obtained screen recording file of application A on the terminal.
至此,应用A的屏幕录制文件已经完成,该屏幕录制文件中所包含的内容均为与应用A的运行与操作相关的内容。So far, the screen recording file of application A has been completed, and the contents contained in the screen recording file are all contents related to the running and operation of application A.
本实施例中,在终端的待屏幕录制应用为应用A的场景中,在终端的屏幕录制过程之中,对所述终端的应用切换事件进行监测,进而,根据监测到的应用切换事件和应用A,设置所录制的视频的标记信息,用以指示所录制的视频中与应用A相关的部分,使得能够根据所录制的视频和所录制的视频的标记信息,生成所述待屏幕录制应用的屏幕录制文件,由于在终端的屏幕录制过程之中设置了指示所录制的视频中与应用A相关的部分的标记信息,使得根据该标记信息从所录制的视频中识别出与应用A相关的部分来合成应用A的屏幕录制文件,而将与应用A不相关的部分过滤掉,从而有效地提高了屏幕录制的可靠性。In this embodiment, in a scenario where the application to be screen-recorded of the terminal is application A, during the screen recording process of the terminal, the application switching event of the terminal is monitored, and further, according to the monitored application switching event and application switching event A, setting the tag information of the recorded video to indicate the part of the recorded video related to application A, so that the tag information of the application to be screen recorded can be generated according to the recorded video and the tag information of the recorded video The screen recording file, since the marking information indicating the part related to application A in the recorded video is set during the screen recording process of the terminal, so that the part related to application A is identified from the recorded video according to the marking information to synthesize the screen recording file of application A, and filter out the parts that are not related to application A, thereby effectively improving the reliability of the screen recording.
另外,采用本申请所提供的技术方案,无需用户对所录制的视频进行手动编辑,即可实现从所录制的视频中识别出与应用A相关的部分来自动合成应用A的屏幕录制文件,能够有效提高屏幕录制的效率。In addition, using the technical solution provided by the present application, without the need for the user to manually edit the recorded video, it is possible to identify the part related to the application A from the recorded video to automatically synthesize the screen recording file of the application A. Effectively improve the efficiency of screen recording.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本申请另一实施例还提供了一种设备,所述设备包括:一个或多个处理器;存 储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现图1所对应的实施例任一实施例所提供的屏幕录制方法。Another embodiment of the present application also provides a device, the device includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are stored by the one or more programs Multiple processors execute, so that the one or more processors implement the screen recording method provided by any of the embodiments corresponding to FIG. 1 .
图3示出了适于用来实现本申请实施方式的示例性计算机系统/服务器12的框图。图3显示的计算机系统/服务器12仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Figure 3 shows a block diagram of an exemplary computer system/server 12 suitable for use in implementing embodiments of the present application. The computer system/server 12 shown in FIG. 3 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
如图3所示,计算机系统/服务器12以通用计算设备的形式表现。计算机系统/服务器12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,存储装置或者系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 3, computer system/server 12 takes the form of a general-purpose computing device. Components of computer system/server 12 may include, but are not limited to, one or more processors or processing units 16, storage or system memory 28, and a bus 18 connecting various system components including system memory 28 and processing unit 16.
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。 Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. By way of example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect ( PCI) bus.
计算机系统/服务器12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机系统/服务器12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Computer system/server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer system/server 12, including both volatile and non-volatile media, removable and non-removable media.
系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。计算机系统/服务器12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图3未显示,通常称为“硬盘驱动器”)。尽管图3中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。系统存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本申请各实施例的功能。System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32 . Computer system/server 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. For example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard disk drive"). Although not shown in Figure 3, a disk drive may be provided for reading and writing to removable non-volatile magnetic disks (eg "floppy disks"), as well as removable non-volatile optical disks (eg CD-ROM, DVD-ROM) or other optical media) to read and write optical drives. In these cases, each drive may be connected to bus 18 through one or more data media interfaces. System memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present application.
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如系 统存储器28中,这样的程序模块42包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本申请所描述的实施例中的功能和/或方法。A program/utility 40 having a set (at least one) of program modules 42, which may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other Program modules and program data, each or some combination of these examples may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
计算机系统/服务器12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该计算机系统/服务器12交互的设备通信,和/或与使得该计算机系统/服务器12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口44进行。并且,计算机系统/服务器12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与计算机系统/服务器12的其它模块通信。应当明白,尽管图中未示出,可以结合计算机系统/服务器12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The computer system/server 12 may also communicate with one or more external devices 14 (eg, keyboard, pointing device, display 24, etc.), and may also communicate with one or more devices that enable a user to interact with the computer system/server 12, and/or with any device (eg, network card, modem, etc.) that enables the computer system/server 12 to communicate with one or more other computing devices. Such communication may take place through input/output (I/O) interface 44 . Also, the computer system/server 12 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 20 . As shown, network adapter 20 communicates with other modules of computer system/server 12 via bus 18 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with computer system/server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, Tape drives and data backup storage systems, etc.
处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现图1所对应的实施例任一实施例所提供的屏幕录制方法。The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28 , for example, implementing the screen recording method provided by any of the embodiments corresponding to FIG. 1 .
本申请另一实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现图1所对应的实施例任一实施例所提供的屏幕录制方法。Another embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the screen recording method provided by any of the embodiments corresponding to FIG. 1 .
具体来说,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。In particular, any combination of one or more computer-readable media may be employed. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言-诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言-诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present application may be written in one or more programming languages, including object-oriented programming languages - such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. Where a remote computer is involved, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider to via Internet connection).
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或页面组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or page components may be combined. Either it can be integrated into another system, or some features can be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以 分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一个计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute parts of the methods described in the various embodiments of the present application step. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions recorded in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

  1. 一种屏幕录制方法,其特征在于,包括:A screen recording method, comprising:
    在终端的屏幕录制过程之中,对所述终端的应用切换事件进行监测;During the screen recording process of the terminal, monitor the application switching event of the terminal;
    根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频的标记信息,用以指示所录制的视频中与所述待屏幕录制应用相关的部分;According to the monitored application switching event and the application to be screen-recorded of the terminal, set the tag information of the recorded video to indicate the part of the recorded video that is related to the application to be screen-recorded;
    根据所录制的视频和所录制的视频的标记信息,生成所述待屏幕录制应用的屏幕录制文件。A screen recording file of the application to be screen recorded is generated according to the recorded video and the tag information of the recorded video.
  2. 根据权利要求1所述的方法,其特征在于,所述根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频的标记信息,用以指示所录制的视频中与所述待屏幕录制应用相关的部分之前,还包括:The method according to claim 1, wherein the flag information of the recorded video is set according to the monitored application switching event and the application to be screen-recorded by the terminal to indicate the difference between the recorded video and the recorded video. Before the part related to the application to be screen recorded, it further includes:
    确定所述终端的待屏幕录制应用。Determine the application to be screen recorded on the terminal.
  3. 根据权利要求2所述的方法,其特征在于,所述确定所述终端的待屏幕录制应用,包括:The method according to claim 2, wherein the determining the application to be screen recorded by the terminal comprises:
    响应于用户在所述终端的屏幕录制过程之前基于所支持的屏幕录制应用列表的操作,确定所述待屏幕录制应用;或者determining the application to be screen recorded in response to the user's operation based on the list of supported screen recording applications before the screen recording process of the terminal; or
    响应于用户在所述终端的屏幕录制过程之中基于所述待屏幕录制应用的操作,确定所述待屏幕录制应用。The application to be screen recorded is determined in response to the user's operation based on the application to be screen recorded during the screen recording process of the terminal.
  4. 根据权利要求1所述的方法,其特征在于,所述在终端的屏幕录制过程之中,对所述终端的应用切换事件进行监测,包括:The method according to claim 1, wherein, during the screen recording process of the terminal, monitoring the application switching event of the terminal comprises:
    对所述待屏幕录制应用的运行状态进行监测;以及根据监测到的运行状态,确定监测到所述终端的应用切换事件;或者monitoring the running state of the application to be screen-recorded; and determining, according to the monitored running state, an application switching event of the terminal being monitored; or
    对所述终端的屏幕录制界面进行监测;以及根据监测到的屏幕录制界面内应用的切换,确定监测到所述终端的应用切换事件。monitoring the screen recording interface of the terminal; and determining an application switching event of the terminal monitored according to the detected switching of applications in the screen recording interface.
  5. 根据权利要求1所述的方法,其特征在于,所述根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频的标记信息,包括:The method according to claim 1, wherein, according to the monitored application switching event and the application to be recorded on the screen of the terminal, setting the marking information of the recorded video comprises:
    根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视频中与所述待屏幕录制应用相关的部分的标记信息;和/或According to the monitored application switching event and the application to be screen-recorded of the terminal, set the flag information of the part of the recorded video related to the application to be screen-recorded; and/or
    根据监测到的应用切换事件和所述终端的待屏幕录制应用,设置所录制的视 频中与所述待屏幕录制应用不相关的部分的标记信息。According to the monitored application switching event and the application to be screen recorded on the terminal, set the marking information of the part of the recorded video that is not related to the application to be recorded on the screen.
  6. 根据权利要求5所述的方法,其特征在于,所述设置所录制的视频中与所述待屏幕录制应用相关的部分的标记信息,包括:The method according to claim 5, wherein the setting the marking information of the part of the recorded video related to the application to be screen-recorded comprises:
    设置所录制的视频中与所述待屏幕录制应用相关的部分的开始标记和/或结束标记;或者setting the start marker and/or end marker of the portion of the recorded video related to the application to be screen-recorded; or
    记录所录制的视频中与所述待屏幕录制应用相关的部分的开始时间和/或结束时间;或者record the start time and/or end time of the portion of the recorded video related to the application to be screen-recorded; or
    记录所录制的视频中与所述待屏幕录制应用相关的部分的开始帧号和/或结束帧号。Record the start frame number and/or end frame number of the portion of the recorded video that is related to the application to be screen-recorded.
  7. 根据权利要求5所述的方法,其特征在于,所述设置所录制的视频中与所述待屏幕录制应用不相关的部分的标记信息,包括:The method according to claim 5, wherein the setting of the marking information of the part of the recorded video that is not related to the application to be screen-recorded comprises:
    设置所录制的视频中与所述待屏幕录制应用不相关的部分的开始标记和/或结束标记;或者setting the start marker and/or end marker of the portion of the recorded video that is not related to the application to be screen-recorded; or
    记录所录制的视频中与所述待屏幕录制应用不相关的部分的开始时间和/或结束时间;或者Record the start time and/or end time of the portion of the recorded video that is not related to the application to be screen-recorded; or
    记录所录制的视频中与所述待屏幕录制应用不相关的部分的开始帧号和/或结束帧号。Record the start frame number and/or end frame number of the portion of the recorded video that is not related to the application to be screen-recorded.
  8. 根据权利要求1~7任一权利要求所述的方法,其特征在于,所述根据所录制的视频和所录制的视频的标记信息,生成所述待屏幕录制应用的屏幕录制文件,包括:The method according to any one of claims 1 to 7, wherein the generating the screen recording file of the application to be screen recorded according to the recorded video and the mark information of the recorded video comprises:
    根据所录制的视频的标记信息,对所录制的视频进行分割处理,以获得与所述待屏幕录制应用相关的部分;performing segmentation processing on the recorded video according to the tag information of the recorded video to obtain the part related to the application to be recorded on the screen;
    将所获得的与所述待屏幕录制应用相关的部分进行合成处理,以获得所述待屏幕录制应用的屏幕录制文件。The obtained part related to the application to be screen recorded is synthesized to obtain a screen recording file of the application to be screen recorded.
  9. 根据权利要求8所述的方法,其特征在于,所述根据所录制的视频的标记信息,对所录制的视频进行分割处理,以获得与所述待屏幕录制应用相关的部分,包括:The method according to claim 8, characterized in that, performing segmentation processing on the recorded video according to the tag information of the recorded video to obtain the part related to the application to be screen-recorded, comprising:
    根据所录制的视频的标记信息,对所录制的视频进行分割处理;Perform segmentation processing on the recorded video according to the marked information of the recorded video;
    根据所述分割处理之后的各片段所对应的视频标记信息,将与所述待屏幕录 制应用不相关的部分进行过滤处理,以获得与所述待屏幕录制应用相关的部分。According to the video tag information corresponding to each segment after the segmentation process, filtering processing is performed on the part not related to the application to be screen-recorded to obtain the part related to the application to be screen-recorded.
  10. 一种电子设备,其特征在于,所述设备包括:An electronic device, characterized in that the device comprises:
    一个或多个处理器;one or more processors;
    存储装置,用于存储一个或多个程序,storage means for storing one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1~9任一权利要求所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-9.
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1~9任一权利要求所述的方法。A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
PCT/CN2021/101144 2020-07-20 2021-06-21 Screen recording method, electronic device, and computer readable storage medium WO2022017096A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010699249.1 2020-07-20
CN202010699249.1A CN111866577B (en) 2020-07-20 2020-07-20 Screen recording method, electronic device and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2022017096A1 true WO2022017096A1 (en) 2022-01-27

Family

ID=73002339

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/101144 WO2022017096A1 (en) 2020-07-20 2021-06-21 Screen recording method, electronic device, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN111866577B (en)
WO (1) WO2022017096A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499698A (en) * 2022-09-16 2022-12-20 中信百信银行股份有限公司 Single app screen recording method and system capable of executing without sense

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866577B (en) * 2020-07-20 2022-07-22 上海连尚网络科技有限公司 Screen recording method, electronic device and computer readable storage medium
CN112565671A (en) * 2021-02-25 2021-03-26 全时云商务服务股份有限公司 Conference information capturing method and device in desktop sharing and readable storage medium
CN114185630B (en) * 2021-11-29 2024-04-23 招联消费金融股份有限公司 Screen recording method, device, computer equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150242104A1 (en) * 2014-02-24 2015-08-27 Icos Llc Easy-to-use desktop screen recording application
CN105635794A (en) * 2015-10-21 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Screen recording method and system
US20160277787A1 (en) * 2015-03-16 2016-09-22 Sony Computer Entertainment Inc. Information processing apparatus, video recording reservation supporting method, and computer program
CN106375696A (en) * 2016-09-30 2017-02-01 腾讯科技(深圳)有限公司 Screen recording method and device
CN106604112A (en) * 2016-11-18 2017-04-26 深圳市邦华电子有限公司 Screen recording method, and multimedia play method and device
CN106998494A (en) * 2017-04-24 2017-08-01 腾讯科技(深圳)有限公司 A kind of video recording method and relevant apparatus
CN107977436A (en) * 2017-12-05 2018-05-01 广东欧珀移动通信有限公司 Filename generation method, device, terminal and the storage medium of record screen file
CN108052835A (en) * 2017-12-14 2018-05-18 广东欧珀移动通信有限公司 Record screen document play-back method, device and terminal
CN108170844A (en) * 2018-01-17 2018-06-15 广东欧珀移动通信有限公司 Storage method, device, terminal and the storage medium of record screen file
CN111212316A (en) * 2019-12-10 2020-05-29 维沃移动通信有限公司 Video generation method and electronic equipment
CN111866577A (en) * 2020-07-20 2020-10-30 上海连尚网络科技有限公司 Screen recording method, electronic device and computer readable storage medium
CN112148163A (en) * 2020-09-25 2020-12-29 维沃移动通信有限公司 Screen recording method and device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MX2014002173A (en) * 2011-08-24 2014-08-27 Hybrid Paytech World Inc Method and system to capture and validate a signature using a mobile device.
CN107005674B (en) * 2014-12-26 2020-07-17 麦克赛尔株式会社 Viewing system, broadcast receiving apparatus, program recording method, and viewing method
CN108519847A (en) * 2018-04-13 2018-09-11 维沃移动通信有限公司 A kind of record screen method and terminal
CN108769784A (en) * 2018-06-28 2018-11-06 努比亚技术有限公司 screen recording method, mobile terminal and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150242104A1 (en) * 2014-02-24 2015-08-27 Icos Llc Easy-to-use desktop screen recording application
US20160277787A1 (en) * 2015-03-16 2016-09-22 Sony Computer Entertainment Inc. Information processing apparatus, video recording reservation supporting method, and computer program
CN105635794A (en) * 2015-10-21 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Screen recording method and system
CN106375696A (en) * 2016-09-30 2017-02-01 腾讯科技(深圳)有限公司 Screen recording method and device
CN106604112A (en) * 2016-11-18 2017-04-26 深圳市邦华电子有限公司 Screen recording method, and multimedia play method and device
CN106998494A (en) * 2017-04-24 2017-08-01 腾讯科技(深圳)有限公司 A kind of video recording method and relevant apparatus
CN107977436A (en) * 2017-12-05 2018-05-01 广东欧珀移动通信有限公司 Filename generation method, device, terminal and the storage medium of record screen file
CN108052835A (en) * 2017-12-14 2018-05-18 广东欧珀移动通信有限公司 Record screen document play-back method, device and terminal
CN108170844A (en) * 2018-01-17 2018-06-15 广东欧珀移动通信有限公司 Storage method, device, terminal and the storage medium of record screen file
CN111212316A (en) * 2019-12-10 2020-05-29 维沃移动通信有限公司 Video generation method and electronic equipment
CN111866577A (en) * 2020-07-20 2020-10-30 上海连尚网络科技有限公司 Screen recording method, electronic device and computer readable storage medium
CN112148163A (en) * 2020-09-25 2020-12-29 维沃移动通信有限公司 Screen recording method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499698A (en) * 2022-09-16 2022-12-20 中信百信银行股份有限公司 Single app screen recording method and system capable of executing without sense
CN115499698B (en) * 2022-09-16 2024-03-26 中信百信银行股份有限公司 Single app screen recording method and system without sense of execution

Also Published As

Publication number Publication date
CN111866577A (en) 2020-10-30
CN111866577B (en) 2022-07-22

Similar Documents

Publication Publication Date Title
WO2022017096A1 (en) Screen recording method, electronic device, and computer readable storage medium
JP4453738B2 (en) File transfer method, apparatus, and program
WO2019184490A1 (en) Method for use in displaying icons of hosted applications, and device and storage medium
WO2020200173A1 (en) Document input content processing method and apparatus, electronic device, and storage medium
WO2020073980A1 (en) Method and device for processing guest application, and computer-readable storage medium
CN108388671B (en) Information sharing method and device, mobile terminal and computer readable medium
US20120262489A1 (en) Relative and Absolute Screen Rotation Draft Agent
WO2022161474A1 (en) Wallpaper display method and device
US20210326151A1 (en) Methods, devices and computer-readable storage media for processing a hosted application
KR20150073354A (en) method and apparatus processing an object provided via a display
WO2019105391A1 (en) Connection method and device for wireless local area network and computer-readable storage medium
CN111880879B (en) Playing method, device, equipment and storage medium of dynamic wallpaper
WO2017008646A1 (en) Method of selecting a plurality targets on touch control terminal and equipment utilizing same
US10848558B2 (en) Method and apparatus for file management
CN111813465A (en) Information acquisition method, device, medium and equipment
KR20130085146A (en) Method and device for application file reopen and screen capture therefor
US9113135B2 (en) Image advocacy in portable computing devices
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN109271543B (en) Thumbnail display method and device, terminal and computer-readable storage medium
WO2017076027A1 (en) Wallpaper processing method and apparatus
US7356683B2 (en) System and method for monitoring BIOS messages of remote computers by a local server
CN112367295B (en) Plug-in display method and device, storage medium and electronic equipment
CN107741992B (en) Network storage method and device for conference records, intelligent tablet and storage medium
CN107749892B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN111083552A (en) Thumbnail generation method, device, equipment and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21846083

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23/06/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21846083

Country of ref document: EP

Kind code of ref document: A1