Movatterモバイル変換


[0]ホーム

URL:


CN116489293A - A method, device and electronic device for generating screen recording video - Google Patents

A method, device and electronic device for generating screen recording video
Download PDF

Info

Publication number
CN116489293A
CN116489293ACN202310468240.3ACN202310468240ACN116489293ACN 116489293 ACN116489293 ACN 116489293ACN 202310468240 ACN202310468240 ACN 202310468240ACN 116489293 ACN116489293 ACN 116489293A
Authority
CN
China
Prior art keywords
data
video
storage area
target storage
recording
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310468240.3A
Other languages
Chinese (zh)
Inventor
王丽丽
韦航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jupiter Technology Co ltd
Original Assignee
Beijing Lingshi Technology Co ltd
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 Beijing Lingshi Technology Co ltdfiledCriticalBeijing Lingshi Technology Co ltd
Priority to CN202310468240.3ApriorityCriticalpatent/CN116489293A/en
Publication of CN116489293ApublicationCriticalpatent/CN116489293A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例提供了一种录屏视频的生成方法、装置及电子设备,涉及数据处理技术领域,该方法包括:将对显示终端所显示的内容进行视频录制所生成视频数据写入目标存储区域;在视频录制的过程中,确定是否满足预设删除条件,并在满足预设删除条件的情况下,对目标存储区域中非感兴趣数据进行删除处理;其中,非感兴趣数据为目标存储区域当前存储的视频数据中,最先写入的指定部分数据;当接收到录屏结束指令时,基于目标存储区域中剩余的视频数据生成录屏视频。通过本方案,可以在录制感兴趣片段的同时,避免录屏视频的数据量过大。

Embodiments of the present invention provide a method, device, and electronic device for generating a screen recording video, which relate to the technical field of data processing. The method includes: writing video data generated by video recording of content displayed on a display terminal into a target storage area; during video recording, determining whether a preset deletion condition is met, and if the preset deletion condition is met, performing deletion processing on non-interesting data in the target storage area; wherein, the non-interesting data is the specified part of data that is first written in the video data currently stored in the target storage area; The remaining video data in the file generates screen recording video. Through this solution, it is possible to avoid excessive data volume of the screen recording video while recording the clip of interest.

Description

Method and device for generating video recording and electronic equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for generating a video recording and an electronic device.
Background
At present, a user can record a screen of the display terminal by utilizing a screen recording function of the display terminal or downloaded screen recording software and the like, namely, video recording is carried out on content displayed by the display terminal to obtain a screen recording video, wherein the display terminal can be a smart phone, a computer display screen and the like, and the displayed content can be any visual content displayed on a current interface of the display terminal such as a net lesson, a network conference, a video, a software testing process and the like.
In some cases, a user sometimes needs to record interesting segments in content displayed by a display terminal, for example, key segments in a network conference, highlight segments in a video, and segments with occasional problems in a software test process, but the user cannot always determine the time when the interesting segments appear, so that the user can only start to record a screen from an earlier moment until the end of recording the interesting segments, and as the duration of the video increases, the data size of the recorded video is difficult to control, which easily causes the data size of the recorded video to be too large, thereby being unfavorable for storage and other subsequent processing of the recorded video.
Therefore, how to record a segment of interest while avoiding the excessive data volume of the video recording is a problem to be solved.
Disclosure of Invention
The embodiment of the invention aims to provide a method for generating a video recording, so as to prevent the data volume of the video recording from being overlarge while recording a segment of interest. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for generating a video recording, where the method includes:
writing video data generated by video recording of the content displayed by the display terminal into a target storage area;
determining whether a preset deleting condition is met or not in the video recording process, and deleting the non-interested data in the target storage area under the condition that the preset deleting condition is met; the non-interested data is the appointed part data written first in the video data stored in the target storage area at present;
and when a screen recording ending instruction is received, generating a screen recording video based on the video data remained in the target storage area.
Optionally, the preset deletion condition is: and the data size of the video data currently stored in the target storage area reaches a first preset threshold value.
Optionally, the deleting the data not of interest in the target storage area includes:
determining data which is generated first in the video data currently stored in the target storage area and has the data size of a second preset threshold value as non-interested data;
deleting the non-interesting data in the target storage area.
Optionally, the determining whether the preset deletion condition is met includes:
when reaching the detection moment of periodic detection, detecting whether a preset deletion condition is met;
after the deleting the non-interesting data in the target storage area, the method further comprises:
and when the detection time of the next periodic detection is reached, returning to the step of executing whether the detection meets the preset deletion condition or not until a screen recording ending instruction is received.
Optionally, the deleting the non-interesting data in the target storage area includes:
intercepting data with the data size of a second preset threshold value from the first bit of video data currently stored in the target storage area;
delete the intercepted data.
Optionally, the determining whether the preset deletion condition is met includes:
determining whether a periodical deletion time is reached, and if so, determining that a preset deletion condition is met;
after the deleting the non-interesting data in the target storage area, the method further comprises:
and determining whether the next periodic deletion time is reached, and if so, returning to the step of executing the deletion processing of the non-interested data in the target storage area until a screen recording ending instruction is received.
In a second aspect, an embodiment of the present invention provides a device for generating a video recording, where the device includes:
the writing module is used for writing video data generated by video recording of the content displayed by the display terminal into the target storage area;
the deleting module is used for determining whether a preset deleting condition is met or not in the video recording process, and deleting the non-interested data in the target storage area under the condition that the preset deleting condition is met; the non-interested data is the appointed part data written first in the video data stored in the target storage area at present;
and the generating module is used for generating the video recording based on the video data remained in the target storage area when receiving the video recording ending instruction.
Optionally, the preset deletion condition is: and the data size of the video data currently stored in the target storage area reaches a first preset threshold value.
Optionally, the deleting module performs deleting processing on the data not interested in the target storage area, including:
determining data which is generated first in the video data currently stored in the target storage area and has the data size of a second preset threshold value as non-interested data;
deleting the non-interesting data in the target storage area.
Optionally, the deletion module determines whether a preset deletion condition is satisfied, including:
when reaching the detection moment of periodic detection, detecting whether a preset deletion condition is met;
the deleting module is further configured to return to executing the step of detecting whether the detection meets a preset deleting condition when a detection time of the next periodic detection is reached after the deleting process is performed on the non-interested data in the target storage area, until a screen recording end instruction is received.
Optionally, the deleting module deletes the non-interesting data in the target storage area, including:
intercepting data with the data size of a second preset threshold value from the first bit of video data currently stored in the target storage area;
delete the intercepted data.
Optionally, the deletion module determines whether a preset deletion condition is satisfied, including:
determining whether a periodical deletion time is reached, and if so, determining that a preset deletion condition is met;
the deletion module is further configured to, after the deletion process is performed on the data not of interest in the target storage area,
and determining whether the next periodic deletion time is reached, and if so, returning to the step of executing the deletion processing of the non-interested data in the target storage area until a screen recording ending instruction is received.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the method for generating the video recording when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, in which a computer program is stored, where the computer program when executed by a processor implements the steps of the method for generating a video recording as described above.
The embodiment of the invention also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the method for generating the video recording according to any one of the above.
The embodiment of the invention has the beneficial effects that:
according to the method for generating the video recording, disclosed by the embodiment of the invention, video recording is carried out on the content displayed by the display terminal, and generated video data is written into the target storage area; in the video recording process, determining whether a preset deleting condition is met, and deleting non-interested data in a target storage area under the condition that the preset deleting condition is met; the non-interested data is the appointed part data written first in the video data stored in the target storage area at present; and when receiving a screen recording ending instruction, generating a screen recording video based on the video data remained in the target storage area. Therefore, in the scheme, when the preset deleting condition is met in the video recording process, part of video data is deleted, so that the overlarge data volume generated by screen recording can be avoided; when the screen recording ending instruction is received, the fact that the interested fragment is recorded is described, and the part of video data written in the target storage area first is deleted, so that the interested fragment can be reserved. Therefore, through the scheme, the data volume of the video recording can be prevented from being too large while the interested fragment is recorded.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and other embodiments may be obtained according to these drawings to those skilled in the art.
FIG. 1 is a flowchart of a method for generating a video recording according to an embodiment of the present invention;
FIG. 2 is another flowchart of a method for generating a video recording according to an embodiment of the present invention;
FIG. 3 is a block diagram of a video recording generating apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, those of ordinary skill in the art will be able to devise all other embodiments that are obtained based on this application and are within the scope of the present invention.
The common scenes applied to the current screen recording, such as scenes of net lesson recording, office meeting recording, software testing process recording and the like, generally the duration of the obtained screen recording video can be basically determined, and the size is controllable. In some scenarios, there may be a case where a user wants to record a segment of interest in a content displayed by the display terminal, but cannot determine a specific time when the segment of interest appears, for example, when a tester or a customer service personnel uses a certain software, a test person finds some recurrent problems and needs to record a recurrent process of the recurrent problems, but does not determine a specific time when the recurrent problems may be recurrent, which may result in that a recording duration cannot be determined, and as the recording duration increases, a data amount of a video may be too large, or even exceeds an available storage space.
In order to solve the above problems and avoid overlarge data size of a video recording while recording a segment of interest, embodiments of the present invention provide a method, an apparatus, and an electronic device for generating a video recording. The method can be applied to electronic equipment with picture display and data processing capability, such as a smart phone, a computer and the like, or can be applied to video acquisition equipment for recording pictures displayed by a display terminal. In addition, the method for generating the video recording can be realized by software, hardware or a combination of the software and the hardware.
The following first describes a method for generating a video recording provided by the embodiment of the present invention.
The method for generating the video recording provided by the embodiment of the invention comprises the following steps:
writing video data generated by video recording of the content displayed by the display terminal into a target storage area;
in the video recording process, determining whether a preset deleting condition is met, and deleting non-interested data in a target storage area under the condition that the preset deleting condition is met; the non-interested data is the appointed part data written first in the video data stored in the target storage area at present;
and when receiving a screen recording ending instruction, generating a screen recording video based on the video data remained in the target storage area.
In the embodiment, in the video recording process, when a preset deleting condition is met, part of video data is deleted, so that the overlarge data volume generated by recording can be avoided; when the screen recording ending instruction is received, the fact that the interested fragment is recorded is described, and the part of video data written in the target storage area first is deleted, so that the interested fragment can be reserved. Therefore, through the scheme, the data volume of the video recording can be prevented from being too large while the interested fragment is recorded.
The method for generating the video recording provided by the embodiment of the invention is described below with reference to the accompanying drawings.
As shown in fig. 1, the method for generating a video recording provided by the embodiment of the present invention may include the following steps:
s101, writing video data generated by video recording of the content displayed by the display terminal into a target storage area;
in this step, video recording can be started on the content displayed by the display terminal after receiving a screen recording start instruction, and video data is generated, where the screen recording start instruction can be sent by triggering an appointed key of the display terminal, and the key can be a physical key or a virtual key in a man-machine interaction interface. For example, in the case where the method for generating a video on a screen provided by the embodiment of the present invention is applied to a smart phone, the instruction for starting the screen on the screen may be issued by triggering a specific physical key of the smart phone, or may also be issued by triggering a specific virtual key in a man-machine interaction interface displayed on a display screen of the smart phone in a touch manner, which is not limited to this.
The target storage area may be a storage area in any storage medium, which may be an internal storage space in a smart phone, a computer, or the like, or an external storage medium, which may be a RAM (Random Access Memory ), a ROM (Read Only Memory), or the like. After starting video recording of the content displayed by the display terminal, the generated video data may be continuously written in the target storage area in the form of byte arrays. In addition, before the video recording starts, parameters such as video quality, resolution and the like can be set, or a compression algorithm such as h.264 (a video coding mode) and the like can be set, and the data size of the generated video data can be further controlled. And hardware acceleration functions, such as GPU (graphics processing unit, graphics processor) acceleration, may also be utilized during video recording to improve video coding efficiency.
S102, determining whether a preset deleting condition is met in the video recording process, and deleting non-interested data in a target storage area under the condition that the preset deleting condition is met; the non-interested data is the appointed part data written first in the video data stored in the target storage area at present;
in one implementation, the preset deletion condition may be: the size of the data volume of the video data currently stored in the target storage area reaches a first preset threshold. In this case, whether the data size of the video data currently stored in the target storage area reaches the first preset threshold value can be detected in real time, and when the data size of the video data currently stored in the target storage area reaches the first preset threshold value, deletion processing is performed on the non-interested data. The non-interested data is the first written specified part of the video data stored in the target storage area, for example, the first data with the data size of the second preset threshold value can be generated in the video data stored in the target storage area. Further, the deleting the non-interested data in the target storage area may include: determining that data which is generated first in the video data currently stored in the target storage area and has the data size of a second preset threshold value is non-interested data; deleting the non-interesting data in the target storage area, namely deleting all the determined non-interesting data. Of course, some data in the non-interesting data may be deleted, for example, randomly deleting a data segment in which the data amount in the non-interesting data is the third preset threshold.
The data size of the video data currently stored in the target storage area reaches a first preset threshold value to serve as a preset deleting condition, so that the data size generated by video recording can be accurately controlled, and the overlarge video data generated by screen recording can be more effectively avoided.
In another embodiment of the present invention, a method for deleting data according to a predetermined time is also provided, where the predetermined time may be preset, for example, 1 minute, 3 minutes, or the like after the start of video recording. The predetermined time may be one or a plurality of times. If the number of the set times is plural, timing can be started while video recording is started, when the first set time is reached, the operation of deleting the non-interested data in the target storage area is executed for the first time, then the operation of deleting the non-interested data in the target storage area is executed again after the next set time is reached, and so on until the video recording is finished. If the video recording is not finished after the last preset time is reached, the deleting operation can be not executed any more, or the deleting operation can be executed according to the preset time interval, namely, after the last preset time is reached, the deleting operation is executed once every preset time interval, and the video recording is finished.
In another implementation manner, the process of determining whether the preset deletion condition is met may include: determining whether a periodical deletion time is reached, and if so, determining that a preset deletion condition is met; determining that a preset deletion condition is met, deleting the non-interested data in the target storage area, determining whether the next periodic deletion moment is reached or not again after the deletion, and if so, returning to the step of executing the deletion of the non-interested data in the target storage area until a screen recording end instruction is received. In this embodiment, the periodic deletion time may be set in advance, and for example, a time that is reached every one minute after the start time of video recording may be set as the periodic deletion time. In the implementation process, timing can be started at the starting time of video recording, and when the timing time reaches the periodical deletion time, deletion processing is performed on the non-interested data in the target storage area. In the implementation manner, the deleting process is performed on the non-interested data in the target storage area every time the periodical deleting time is reached, the step of detecting the size of the data amount can be omitted regardless of the size of the data amount, and therefore computing resources are saved.
In order to realize deleting the first data with the data size of the second preset threshold value in the currently stored video data, for example, the data with the data size of the second preset threshold value can be intercepted from the first bit of the currently stored video data in the target storage area, and then the intercepted data is deleted. Specifically, this can be achieved using a string function. By intercepting data from the first digit of the currently stored video data and deleting the intercepted data, the first generated video data can be deleted efficiently and simply.
Alternatively, the above-mentioned non-interesting data may be data that is generated first in the video data currently stored in the target storage area and has a proportion of the data amount to the total data amount currently stored that is a preset proportion, for example, the preset proportion may be 50%.
In another implementation manner, the preset deletion condition may be: the video time of the video represented by the video data currently stored in the target storage area reaches a first preset time length. In this case, the timing may be performed at the video recording start time, and when the timing duration reaches the first preset duration, the preset deletion condition is considered to be satisfied, and then deletion processing is performed on the specified portion of the video data currently stored in the target storage area, for example, the video data, which is written first and is characterized by the video and has the video duration of the second preset duration, may be deleted, then the timing duration is subtracted by the second preset duration, and timing is continued on the basis until the first preset duration is reached again, and the process of deletion processing is re-performed.
It can be understood that, when the recording is performed on the interested fragment, the recording is often started at an earlier time, and the recording is finished after the interested fragment is recorded, so that the video data of the recorded interested fragment is often the data generated later, therefore, the designated part data written first in the step is regarded as the non-interested data, and the deletion processing is performed on the designated part data, so that the deletion of the video data of the interested fragment can be avoided while the data amount of the video data is reduced.
S103, when a screen recording end instruction is received, generating a screen recording video based on the video data remained in the target storage area.
The method for generating the recording end instruction may be similar to the method for generating the recording start instruction, and will not be described herein. And when a screen recording ending instruction is received, generating a screen recording video based on the video data currently remained in the target storage area. It can be understood that in this step, if the video data stored in the target storage area does not meet the preset deletion condition all the time in the whole video recording process, it indicates that the generated video data is not deleted, and the recorded video is generated based on all the generated video data generated by video recording the content displayed by the display terminal. If the generated video data is subjected to deleting processing in the video recording process, the recorded video is generated based on the video data subjected to deleting processing.
The generating the video may include directly using video data remaining in the target storage area as a video file of the video; or, the video data remained in the target storage area can be compressed, converted in format and the like to obtain the video recording. Therefore, through the scheme, after the recording is finished, the generated video file only contains a section of video data which is interested by the user before the recording is finished, so that the occupation of the storage space can be greatly reduced, the resource utilization rate is improved, the intelligence of the screen recording function is improved, and the user experience is further improved.
In the embodiment, in the video recording process, when a preset deleting condition is met, part of video data is deleted, so that the overlarge data volume generated by recording can be avoided; when the screen recording ending instruction is received, the fact that the interested fragment is recorded is described, and the part of video data written in the target storage area first is deleted, so that the interested fragment can be reserved. Therefore, through the scheme, the data volume of the video recording can be prevented from being too large while the interested fragment is recorded.
Optionally, in another embodiment of the present invention, the method for generating a video on a screen may be performed in a periodic detection manner, that is, video data generated by video recording of content displayed on a display terminal is written into a target storage area, and in the process of video recording, when a detection time of the periodic detection is reached, whether a preset deletion condition is met is detected, and when the preset deletion condition is met, deletion processing is performed on non-interested data in the target storage area, and when a detection time of the next periodic detection is reached, a step of executing whether the detection meets the preset deletion condition is returned until a screen recording end instruction is received.
On the basis of the above embodiment, as shown in fig. 2, the embodiment of the present invention further provides a method for generating a video recording, including:
s201, writing video data generated by video recording of the content displayed by the display terminal into a target storage area;
this step is similar to the step S101 described above, and will not be described again here.
S202, whether a screen recording ending instruction is received before the detection moment of periodic detection is reached;
if yes, go to step S206. If not, go to step S203.
S203, detecting whether a preset deleting condition is met or not when a detection moment of periodic detection is reached in the video recording process;
in this step, the periodic detection is performed at intervals of a predetermined time, for example, at intervals of ten seconds. In the process of detecting whether the preset deleting condition is met, detecting that the data size of the video data currently stored in the target storage area reaches a first preset threshold value;
if yes, go to step S204. If not, go to step S205.
S204, deleting the non-interested data in the target storage area;
the step can be specifically referred to the step S102, and will not be described herein.
S205, whether a screen recording ending instruction is received before the detection time of the next periodicity detection is reached;
if yes, go to step S206. If not, returning to step S203, detecting whether the preset deletion condition is satisfied.
If it is detected that the preset deletion condition is not satisfied during a certain detection, the detection is not performed this time, the next detection time is waited, and when the detection time of the next periodic detection is reached, whether the preset deletion condition is satisfied is detected again, until a screen recording end instruction is received, and step S206 is executed.
S206, when a screen recording end instruction is received, generating a screen recording video based on the video data remained in the target storage area.
The step can be specifically referred to the above step S103, and will not be described herein.
In this embodiment, the data volume of the video recording can be prevented from being too large while the interested fragment is recorded. Furthermore, deletion processing is performed on the non-interested data in a periodic detection mode, an implementation basis is provided for the method for generating the video recording provided by the embodiment of the invention, and compared with real-time detection, the periodic detection mode of the embodiment can reduce the occupation of computing resources.
For convenience of understanding, the method for generating the video on the screen provided by the embodiment of the invention is described in the following with reference to a specific application scenario.
In the case that the method for generating the video on the screen provided by the embodiment of the invention is applied to the process of recording the recurrence of the recurrence problem, the method can comprise the following steps:
the first step: the first preset threshold and the second preset threshold are set, for example, the first preset threshold may be 40M and the second preset threshold may be 20M.
And a second step of: and starting screen recording, and recording the starting time.
And a third step of: the size of the data amount of the generated video data is compared with that of 40M every 10 seconds in the screen recording process.
Fourth step: and if the data size of the currently generated video data is greater than or equal to 40M, intercepting the first generated 20M data in the current video data, deleting, retaining the rest video data, and continuing recording the video data generated after the recording.
Fifth step: when the data size of the video data generated at present is larger than or equal to 40M in the next comparison, the 20M data generated at first in the current video data is intercepted for deletion, and the remaining video data is reserved for the video data generated after the continuous recording.
Sixth step: repeating the third to fifth steps until the problem of the occurrence is repeated, clicking to finish the screen recording, and reserving the final video data to generate a video file.
In the embodiment, in the video recording process, when a preset deleting condition is met, part of video data is deleted, so that the overlarge data volume generated by recording can be avoided; when the screen recording ending instruction is received, the fact that the interested fragment is recorded is described, and the part of video data written in the target storage area first is deleted, so that the interested fragment can be reserved. Therefore, through the scheme, the data volume of the video recording can be prevented from being too large while the interested fragment is recorded.
The embodiment of the invention also provides a device for generating the video recording, as shown in fig. 3, the device comprises:
a writing module 301, configured to write video data generated by video recording of content displayed by the display terminal into the target storage area;
the deleting module 302 is configured to determine whether a preset deleting condition is satisfied during the video recording process, and delete non-interested data in the target storage area if the preset deleting condition is satisfied; the non-interested data is the appointed part data written first in the video data stored in the target storage area at present;
and the generating module 303 is configured to generate a video recording based on the video data remaining in the target storage area when receiving a recording end instruction.
Optionally, the preset deletion condition is: and the data size of the video data currently stored in the target storage area reaches a first preset threshold value.
Optionally, the deleting module performs deleting processing on the data not interested in the target storage area, including:
determining data which is generated first in the video data currently stored in the target storage area and has the data size of a second preset threshold value as non-interested data;
deleting the non-interesting data in the target storage area.
Optionally, the deletion module determines whether a preset deletion condition is satisfied, including:
when reaching the detection moment of periodic detection, detecting whether a preset deletion condition is met;
the deleting module is further configured to return to executing the step of detecting whether the detection meets a preset deleting condition when a detection time of the next periodic detection is reached after the deleting process is performed on the non-interested data in the target storage area, until a screen recording end instruction is received.
Optionally, the deleting module, deleting the non-interesting data in the target storage area includes:
intercepting data with the data size of a second preset threshold value from the first bit of video data currently stored in the target storage area;
delete the intercepted data.
Optionally, the deletion module determines whether a preset deletion condition is satisfied, including:
determining whether a periodical deletion time is reached, and if so, determining that a preset deletion condition is met;
the deletion module is further configured to, after the deletion process is performed on the data not of interest in the target storage area,
and determining whether the next periodic deletion time is reached, and if so, returning to the step of executing the deletion processing of the non-interested data in the target storage area until a screen recording ending instruction is received.
The embodiment of the invention also provides an electronic device, as shown in fig. 4, which comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete communication with each other through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401 is configured to implement the steps of the method for generating a video recording as described above when executing the program stored in the memory 403.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, there is further provided a computer readable storage medium having a computer program stored therein, the computer program when executed by a processor implementing the steps of any one of the methods for generating a video recording described above.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform the method of generating a video recording of any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (10)

Translated fromChinese
1.一种录屏视频的生成方法,其特征在于,所述方法包括:1. A method for generating a screen recording video, characterized in that the method comprises:将对显示终端所显示的内容进行视频录制所生成视频数据写入目标存储区域;Write the video data generated by video recording the content displayed by the display terminal into the target storage area;在所述视频录制的过程中,确定是否满足预设删除条件,并在满足预设删除条件的情况下,对所述目标存储区域中非感兴趣数据进行删除处理;其中,所述非感兴趣数据为所述目标存储区域当前存储的视频数据中,最先写入的指定部分数据;In the process of recording the video, it is determined whether the preset deletion condition is satisfied, and if the preset deletion condition is met, the non-interest data in the target storage area is deleted; wherein, the non-interest data is the specified part of the data that is first written in the video data currently stored in the target storage area;当接收到录屏结束指令时,基于所述目标存储区域中剩余的视频数据生成录屏视频。When a screen recording end instruction is received, a screen recording video is generated based on remaining video data in the target storage area.2.根据权利要求1所述的方法,其特征在于,所述预设删除条件为:所述目标存储区域当前存储的视频数据的数据量大小达到第一预设阈值。2. The method according to claim 1, wherein the preset deletion condition is: the data volume of the video data currently stored in the target storage area reaches a first preset threshold.3.根据权利要求1或2所述的方法,其特征在于,所述对所述目标存储区域中非感兴趣数据进行删除处理,包括:3. The method according to claim 1 or 2, wherein the deleting the non-interesting data in the target storage area comprises:确定所述目标存储区域当前存储的视频数据中最先产生的、数据量大小为第二预设阈值的数据为非感兴趣数据;Determining that among the video data currently stored in the target storage area, the data that is first generated and whose data size is a second preset threshold is non-interesting data;删除所述目标存储区域中的所述非感兴趣数据。Deleting the non-interesting data in the target storage area.4.根据权利要求1所述的方法,其特征在于,所述确定是否满足预设删除条件,包括:4. The method according to claim 1, wherein the determining whether a preset deletion condition is met comprises:当达到周期性检测的检测时刻时,检测是否满足预设删除条件;When the detection time of periodic detection is reached, it is detected whether the preset deletion condition is satisfied;在所述对所述目标存储区域中非感兴趣数据进行删除处理之后,所述方法还包括:After the deletion processing of the non-interesting data in the target storage area, the method further includes:在达到下一周期性检测的检测时刻时,返回执行所述检测是否满足预设删除条件的步骤,直至接收到录屏结束指令。When the detection moment of the next periodic detection is reached, return to the step of performing the detection whether the preset deletion condition is met, until the screen recording end instruction is received.5.根据权利要求3所述的方法,其特征在于,所述删除所述目标存储区域中的所述非感兴趣数据,包括:5. The method according to claim 3, wherein said deleting said non-interest data in said target storage area comprises:从所述目标存储区域中当前存储的视频数据的首位开始,截取数据量大小为第二预设阈值的数据;Starting from the first bit of the video data currently stored in the target storage area, intercept data whose data size is a second preset threshold;删除所截取的数据。Delete the intercepted data.6.根据权利要求1所述的方法,其特征在于,所述确定是否满足预设删除条件,包括:6. The method according to claim 1, wherein the determining whether a preset deletion condition is met comprises:确定是否达到周期性删除时刻,若达到,则确定满足预设删除条件;Determine whether the periodic deletion time is reached, and if so, determine that the preset deletion condition is met;在所述对所述目标存储区域中非感兴趣数据进行删除处理之后,所述方法还包括:After the deletion processing of the non-interesting data in the target storage area, the method further includes:确定是否达到下一周期性删除时刻,若达到,返回执行所述对所述目标存储区域中非感兴趣数据进行删除处理的步骤,直至接收到录屏结束指令。Determine whether the next periodic deletion time is reached, and if so, return to the step of deleting the non-interesting data in the target storage area until the screen recording end instruction is received.7.一种录屏视频的生成装置,其特征在于,所述装置包括:7. A generating device for screen recording video, characterized in that the device comprises:写入模块,用于将对显示终端所显示的内容进行视频录制所生成视频数据写入目标存储区域;The writing module is used to write the video data generated by video recording the content displayed by the display terminal into the target storage area;删除模块,用于在所述视频录制的过程中,确定是否满足预设删除条件,并在满足预设删除条件的情况下,对所述目标存储区域中非感兴趣数据进行删除处理;其中,所述非感兴趣数据为所述目标存储区域当前存储的视频数据中,最先写入的指定部分数据;A deletion module, configured to determine whether a preset deletion condition is met during the video recording process, and if the preset deletion condition is met, delete the non-interest data in the target storage area; wherein, the non-interest data is the first specified part of data written in the video data currently stored in the target storage area;生成模块,用于当接收到录屏结束指令时,基于所述目标存储区域中剩余的视频数据生成录屏视频。The generating module is configured to generate a screen recording video based on the remaining video data in the target storage area when receiving the screen recording end instruction.8.根据权利要求7所述的装置,其特征在于,所述预设删除条件为:所述目标存储区域当前存储的视频数据的数据量大小达到第一预设阈值。8. The device according to claim 7, wherein the preset deletion condition is: the data volume of the video data currently stored in the target storage area reaches a first preset threshold.9.一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;9. An electronic device, characterized in that it comprises a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus;存储器,用于存放计算机程序;memory for storing computer programs;处理器,用于执行存储器上所存放的程序时,实现权利要求1-6任一所述的方法步骤。When the processor is used to execute the program stored in the memory, it realizes the method steps described in any one of claims 1-6.10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-6任一所述的方法步骤。10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps of any one of claims 1-6 are implemented.
CN202310468240.3A2023-04-272023-04-27 A method, device and electronic device for generating screen recording videoPendingCN116489293A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202310468240.3ACN116489293A (en)2023-04-272023-04-27 A method, device and electronic device for generating screen recording video

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202310468240.3ACN116489293A (en)2023-04-272023-04-27 A method, device and electronic device for generating screen recording video

Publications (1)

Publication NumberPublication Date
CN116489293Atrue CN116489293A (en)2023-07-25

Family

ID=87222851

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202310468240.3APendingCN116489293A (en)2023-04-272023-04-27 A method, device and electronic device for generating screen recording video

Country Status (1)

CountryLink
CN (1)CN116489293A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR20080052263A (en)*2006-12-062008-06-11삼성전자주식회사 Automatic image management method and device
US20100202763A1 (en)*2009-02-122010-08-12Canon Kabushiki KaishaVideo recording and playing apparatus and its control method
CN106028098A (en)*2016-05-262016-10-12努比亚技术有限公司Video recording method, device, and terminal
CN114344920A (en)*2022-01-072022-04-15腾讯科技(深圳)有限公司Data recording method, device, equipment and storage medium based on virtual scene

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR20080052263A (en)*2006-12-062008-06-11삼성전자주식회사 Automatic image management method and device
US20100202763A1 (en)*2009-02-122010-08-12Canon Kabushiki KaishaVideo recording and playing apparatus and its control method
CN106028098A (en)*2016-05-262016-10-12努比亚技术有限公司Video recording method, device, and terminal
CN114344920A (en)*2022-01-072022-04-15腾讯科技(深圳)有限公司Data recording method, device, equipment and storage medium based on virtual scene

Similar Documents

PublicationPublication DateTitle
CN111163345B (en)Image rendering method and device
CN110018788B (en)Hierarchical storage method, hierarchical storage device, electronic equipment and computer readable storage medium
CN108495185B (en)Video title generation method and device
CN107704203B (en) Method, device, device and computer storage medium for deleting large aggregated files
CN110928626B (en) Interface switching method, device and electronic equipment
CN111107438B (en)Video loading method and device and electronic equipment
CN107562915A (en)Read the method, apparatus and equipment and computer-readable recording medium of small documents
CN108874324B (en) An access request processing method, apparatus, device and readable storage medium
CN113435328B (en)Video clip processing method and device, electronic equipment and readable storage medium
CN114691063A (en)Screen acquisition method, terminal and storage medium
CN105893471B (en)Data processing method and electronic equipment
CN112565886A (en)Video frame extraction method and device, electronic equipment and readable storage medium
CN113934692A (en) File cleaning method, device, storage medium and device
CN108777810B (en)Video data storage method, device, equipment and storage medium
CN116489293A (en) A method, device and electronic device for generating screen recording video
CN112911278A (en)Image decoding performance test method and device
CN110083482B (en) Method, device and electronic equipment for erasure code processing on file storage system
CN114004915B (en) Image editing method, device, equipment and storage medium
CN110633415B (en)Network course pushing method, device, system, electronic equipment and storage medium
CN112256654B (en) Document sharing method and device
CN112911277A (en)Image coding performance test method and device
CN111083497A (en)Video screenshot method and device
CN114302216B (en)Barrage processing method, device, equipment and system
CN117290527B (en) Bullet screen display method, device, computing device and computer storage medium
CN114925026B (en)Electronic file utilization method and device, storage medium and electronic equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
TA01Transfer of patent application right
TA01Transfer of patent application right

Effective date of registration:20250811

Address after:3870A, 3rd Floor, Building 4, Courtyard 49, Badachu Road, Shijingshan District, Beijing, 100144

Applicant after:Beijing Jupiter Technology Co.,Ltd.

Country or region after:China

Address before:100144 Beijing Shijingshan District Badashan Road No. 49 Yard Building 4 4th Floor 4388

Applicant before:Beijing Lingshi Technology Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp