Program recording method and device

By calculating the remaining recording time and target recording time of the device, the digital radio and television program recording method is optimized, which solves the problem of poor user experience and achieves more reasonable storage resource utilization and recording progress stability.

CN114173180BActive Publication Date: 2024-12-20HAINING ESWIN IC DESIGN CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111501661.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-09
Publication Date
2024-12-20
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

The existing digital radio and television program recording methods are difficult to effectively set preset values ​​for storage space, resulting in poor user experience, frequent data cleaning or replacement of storage devices, affecting the recording progress and utilization of storage resources.

Method used

By calculating the remaining recording time and target recording time of the device's remaining storage space, predicting whether the recording task is met, promptly triggering prompt instructions to remind users to clean up data or replace storage devices, and optimizing the program recording process.

Benefits of technology

Improve user experience, avoid the impact of recording progress and the problems of frequent data cleaning or storage device replacement, and achieve more reasonable utilization of storage resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114173180B_ABST
    Figure CN114173180B_ABST
Patent Text Reader

Abstract

The present application discloses a program recording method and device, which relates to the field of digital broadcasting and television application technology. During the process of recording a program, the user can be reminded in time to clean up useless data or replace and connect a new storage device, giving the user a better user experience. The main technical scheme of the present application is: receiving a program recording instruction, the instruction information of the program recording instruction includes target recording data and the target recording time corresponding to the target recording data; calculating the initial recording bit rate during the process of recording the target recording data; calculating the remaining recordable time corresponding to the remaining storage space of the device according to the initial recording bit rate and the remaining storage space of the device; determining whether to trigger a prompt instruction according to the remaining recordable time and the target recording time, the prompt instruction is used to remind the execution of data cleaning or replacement and connection of a new storage device operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital broadcasting and television application technology, and in particular to a program recording method and device. Background Art

[0002] Digital broadcasting, also known as digital television (DTV), is a television system that processes signals digitally from program acquisition, program production, program transmission to the user end. When using digital broadcasting, users often have the need to record programs, that is, the need to complete the recording of live programs on TV channels. This requires the device to provide corresponding storage space to support the storage of these recorded programs, otherwise the program recording cannot be carried out.

[0003] At present, the common program recording method is: before or during recording, periodically check whether the remaining storage space of the device is greater than a specified preset value. If not, immediately trigger an instruction to prompt the user that the storage space is insufficient, and promptly remind the user to clean up useless data in the device or switch to other new storage devices.

[0004] However, it is difficult to effectively set this preset value based on experience. For example, if it is set too small, even if the user receives the prompt instruction, before the user has time to clean up the data or switch to other new storage devices, the device will interrupt the program recording due to lack of available storage resources. If it is set too large, then under the premise of ensuring that the remaining storage space of the device is greater than the preset value, the storage space actually available for program recording is relatively small, and even before much content is recorded, it is necessary to frequently clean up useless data or switch to other new storage devices, which brings great inconvenience to the user and also means a waste of storage resources. As mentioned above, the current recording method is not user-friendly and the user experience is very poor. Summary of the invention

[0005] In view of this, the present application provides a program recording method and device, the main purpose of which is to predict whether the remaining storage space of the device can meet the current recording task based on the remaining recordable time of the remaining storage space of the device and the target recording time, so as to solve the problem that the program recording method in the prior art affects the recording progress or makes the recording operation steps cumbersome and unreasonable due to frequent data cleaning and replacement of other new storage devices, which will ultimately affect the user experience.

[0006] In order to achieve the above objectives, this application mainly provides the following technical solutions:

[0007] The first aspect of the present application provides a program recording method, the method comprising:

[0008] receiving a program recording instruction, wherein instruction information of the program recording instruction includes a target recording duration corresponding to the target recording data;

[0009] calculating an initial recording bit rate during recording the target recording data;

[0010] Calculate the remaining recording time corresponding to the remaining storage space of the device according to the initial recording bit rate and the remaining storage space of the device;

[0011] According to the remaining recordable time and the target recording time, it is determined whether to trigger a prompt instruction, wherein the prompt instruction is used to remind the user to perform a data cleanup or replace and connect a new storage device.

[0012] In some modified implementations of the first aspect of the present application, determining whether to trigger a prompt instruction according to the remaining recordable time and the target recording time includes:

[0013] If it is determined that the remaining recordable time is less than or equal to the target recording time, a prompt instruction is triggered, and the prompt instruction is used to remind the user to perform data cleaning or replace and connect a new storage device.

[0014] In some modified implementations of the first aspect of the present application, the calculating the initial recording bit rate during recording the target recording data includes:

[0015] In the process of recording the target recording data, selecting a recording duration that reaches a first preset threshold from the start recording time as an initial recording duration;

[0016] Obtaining the data volume of the initial recording data corresponding to the initial recording duration;

[0017] The ratio of the data volume of the initial recording data to the initial recording duration is calculated to obtain an initial recording bit rate.

[0018] In some modified implementations of the first aspect of the present application, calculating the remaining recordable time corresponding to the remaining storage space of the device according to the initial recording bit rate and the remaining storage space of the device includes:

[0019] Get the data capacity supported by the remaining storage space of the device;

[0020] The ratio of the data capacity to the initial recording bit rate is calculated to obtain the remaining recordable time.

[0021] In some modified implementations of the first aspect of the present application, determining whether to trigger a prompt instruction according to the remaining recordable time and the target recording time includes:

[0022] If it is determined that the remaining recordable time is greater than the target recording time, determining whether a change difference between recording bit rates corresponding to two adjacent unit times reaches a second preset threshold value during the process of continuing to record the target recording data;

[0023] If yes, obtain the current recording bitrate, current recording system time, and remaining storage space of the current device;

[0024] Calculate the difference between the target recording time and the current recording system time to obtain the remaining recording time corresponding to the target recording data;

[0025] Calculate the remaining recording time corresponding to the remaining storage space of the current device according to the current recording bit rate and the remaining storage space of the current device;

[0026] In response to determining that the remaining recordable time corresponding to the remaining storage space of the current device is less than or equal to the remaining recording time, the prompt instruction is triggered.

[0027] In some modified implementations of the first aspect of the present application, the target recording data includes at least one recorded program, and the determining whether the change difference between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold includes:

[0028] In response to identifying an operation of switching the recording program during the process of continuing to record the target recording data, triggering the operation of determining whether the difference between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold, wherein the time range corresponding to the two adjacent unit times includes the system time point corresponding to the switching recording program; or,

[0029] In response to identifying that the resolution of the recorded data has changed while continuing to record the target recorded data, the operation of determining whether the difference in change between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold is triggered, wherein the time range corresponding to the two adjacent unit times includes the system time point corresponding to the change in resolution.

[0030] In some modified implementations of the first aspect of the present application, before calculating the initial recording bit rate in the process of recording the target recording data, the method further includes:

[0031] Determine whether the remaining storage space of the device is greater than a preset safety threshold;

[0032] If not, triggering the prompt instruction;

[0033] The calculating of the initial recording bit rate during recording the target recording data comprises:

[0034] When it is determined that the remaining storage space of the device is greater than a preset safety threshold, an initial recording bit rate is calculated during the process of recording the target recording data.

[0035] A second aspect of the present application provides a program recording device, the device comprising:

[0036] A receiving unit, configured to receive a program recording instruction, wherein instruction information of the program recording instruction includes a target recording duration corresponding to the target recording data;

[0037] A calculation unit, used for calculating an initial recording bit rate during recording of the target recording data;

[0038] The calculation unit is further used to calculate the remaining recordable time corresponding to the remaining storage space of the device according to the initial recording bit rate and the remaining storage space of the device;

[0039] A determination unit is used to determine whether to trigger a prompt instruction based on the remaining recordable time and the target recording time, and the prompt instruction is used to remind to perform data cleaning or replace and connect a new storage device.

[0040] In some modified implementations of the second aspect of the present application, the determining unit includes:

[0041] A determination module, configured to determine that the remaining recordable time is less than or equal to the target recording time;

[0042] The trigger module is used to trigger a prompt instruction when the determination module determines that the remaining recordable time is less than or equal to the target recording time, and the prompt instruction is used to remind the execution of data cleaning or replacement and connection of a new storage device operation.

[0043] In some modified implementations of the second aspect of the present application, the calculation unit includes:

[0044] A selection module, used for selecting, during the process of recording the target recording data, a recording duration that reaches a first preset threshold from the start recording time as an initial recording duration;

[0045] An acquisition module, used for acquiring the data volume of the initial recording data corresponding to the initial recording duration;

[0046] The calculation module is used to calculate the ratio of the data volume of the initial recording data to the initial recording time to obtain the initial recording bit rate.

[0047] In some modified implementations of the second aspect of the present application, the calculation unit includes:

[0048] The acquisition module is further used to acquire the data capacity supported by the remaining storage space of the device;

[0049] The calculation module is further used to calculate the ratio of the data capacity to the initial recording bit rate to obtain the remaining recordable time.

[0050] In some modified implementations of the second aspect of the present application, the determining unit further includes:

[0051] The determination module is further used to determine that the remaining recordable time is greater than the target recording time;

[0052] a judging module, configured to judge whether a change difference between recording bit rates corresponding to two adjacent unit times reaches a second preset threshold value during the process of continuing to record the target recording data when the determining module determines that the remaining recordable time is greater than the target recording time;

[0053] An acquisition module, configured to acquire the current recording bit rate, the current recording system time, and the remaining storage space of the current device when it is determined that the change difference between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold;

[0054] A calculation module, used to calculate the difference between the target recording time and the current recording system time, and obtain the remaining recording time corresponding to the target recording data;

[0055] The calculation module is further used to calculate the remaining recordable time corresponding to the remaining storage space of the current device according to the current recording bit rate and the remaining storage space of the current device;

[0056] The trigger module is further configured to trigger the prompt instruction in response to determining that the remaining recordable time corresponding to the remaining storage space of the current device is less than or equal to the remaining recording time.

[0057] In some modified implementations of the second aspect of the present application, the target recording data includes at least one recorded program, and the determination module includes:

[0058] A first trigger submodule is configured to trigger the operation of determining whether the difference between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold in response to identifying an operation of switching the recording program during the process of continuing to record the target recording data, wherein the time range corresponding to the two adjacent unit times includes a system time point corresponding to the switching recording program;

[0059] The second trigger submodule is used to trigger the operation of determining whether the difference in change between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold in response to identifying that the resolution of the recording data has changed during the process of continuing to record the target recording data, wherein the time range corresponding to the two adjacent unit times includes the system time point corresponding to the change in resolution.

[0060] In some modified implementations of the second aspect of the present application,

[0061] The device further comprises: a judging unit, configured to judge whether the remaining storage space of the device is greater than a preset safety threshold before calculating the initial recording bit rate in the process of recording the target recording data; a triggering unit, configured to trigger the prompt instruction when judging that the remaining storage space of the device is not greater than the preset safety threshold;

[0062] The calculation unit is further specifically configured to: when it is determined that the remaining storage space of the device is greater than the preset safety threshold, calculate an initial recording bit rate during recording of the target recording data.

[0063] A third aspect of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the program recording method as described above is implemented.

[0064] A fourth aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the program recording method as described above when executing the computer program.

[0065] By means of the above technical solution, the technical solution provided by the present application has at least the following advantages: to predict whether the remaining storage space of the device can meet the current recording task

[0066] The present application provides a program recording method and device. When receiving a program recording instruction, the present application first calculates the initial recording bit rate corresponding to the target recording data, and then calculates the remaining recordable time that can support the recording operation according to the initial recording bit rate and the remaining storage space of the device, so as to compare the remaining recordable time with the target recording time required by the target recording data to predict whether the remaining storage space of the device meets the current recording task. If not, then the prompt instruction is triggered immediately to promptly remind the user to clean up useless data or replace and connect a new storage device. Compared with the prior art, the present application does not use a preset value that is difficult to effectively set as a measurement standard, but uses the remaining recordable time of the remaining storage space during the recording process and the target recording time as a benchmark to predict whether the current recording task can be met. If not, the prompt instruction is triggered immediately. Based on this, based on different comparison standards, the present application provides a more optimized program recording method, solves the technical problems that the existing recording method is not friendly enough and the user experience is poor, avoids the problem that the recording progress is affected by the existing method or the recording operation steps become cumbersome and unreasonable due to frequent data cleaning and replacement of other new storage devices, and gives users a better program recording operation experience.

[0067] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0069] Figure 1 A flowchart of a program recording method provided in an embodiment of the present application;

[0070] Figure 2 A flowchart of another program recording method provided in an embodiment of the present application;

[0071] Figure 3 A block diagram of a program recording device provided in an embodiment of the present application;

[0072] Figure 4 A block diagram of another program recording device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0073] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0074] The embodiment of the present application provides a program recording method, which uses the remaining recordable time of the remaining storage space of the device and the target recording time as a benchmark to predict whether the remaining storage space of the device can meet the current recording task, so as to timely remind the user to clean up useless data or replace and connect a new storage device, such as Figure 1 As shown, the present application embodiment provides the following specific steps:

[0075] 101. Receive a program recording instruction, where instruction information of the program recording instruction includes a target recording duration corresponding to target recording data.

[0076] Among them, the target recording data refers to the data content that needs to be recorded for a recording task. In an embodiment of the present application, this data content can mainly be the program that needs to be recorded, and the recorded program can be set to one or more, for example, recording the news broadcast program of the TV channel CCTV-1 from 7:00 to 7:40 pm, or recording the news broadcast program and weather forecast program of the TV channel CCTV-1 from 7:00 to 8:00 pm.

[0077] Since the daily program preview (such as the program broadcast time within a day) will be announced in advance by the TV station, the program broadcast time period is also known. Then, after selecting the recorded program according to the actual needs of the user, the recording time required for each program is correspondingly known based on the known program broadcast time period, and then the target recording time corresponding to the target recording data is obtained.

[0078] In an embodiment of the present application, a recording operation can be performed on the currently playing video stream, or a reservation method can be used to complete the recording operation of one or more programs within a certain time period. As for the latter recording operation, the instruction information of the program recording instruction can also include identification information of the target recording data. The identification information contains one or more program identifiers to be recorded. Then, the reservation recording operation for certain programs can be achieved based on the identification information, that is, when the waiting time reaches the broadcast time of the program, the recording operation is started accordingly.

[0079] 102. Calculate an initial recording bit rate during recording of the target recording data.

[0080] In the embodiment of the present application, the program broadcast by the digital broadcasting television is a live program on a TV channel. For the recording operation of the live program, it is not necessary to complete the recording operation while playing the program content (that is, it is not necessary to decode and play the video during recording). As long as there is an available tuner, the recording operation can be completed in the background. Specifically, the background recording operation can be: when recording, all data corresponding to the current channel (including: audio, video, subtitles and other ancillary information) is captured and repackaged and saved into a specific file, such as the myRecord.ts file. Such a specific file is used to form a recording file of the live program on the TV channel.

[0081] The recording bitrate refers to the amount of data stored per unit time. For example, if myRecord.ts stores 100kb (kilobytes) in 10 seconds, the recording bitrate is 100 / 10=10kbps (kilobytes per second).

[0082] Among them, the initial recording bit rate is counted at the beginning of recording, and a period of time is counted as the initial recording period. This initial recording period will include an initial recording data and an initial recording duration. Then, by calculating the ratio of the data volume of the initial recording data to the initial recording duration, the initial recording bit rate of the program in the initial recording period can be obtained.

[0083] 103. Calculate the remaining recording time corresponding to the remaining storage space according to the initial recording bit rate and the remaining storage space of the device.

[0084] In the embodiment of the present application, the remaining storage space of the device refers to the storage space on the device that can be used to store recorded data. Considering that recorded data is transferred to this storage space according to the initial recording bit rate, assuming that the recording data is transferred until the storage space is filled, a duration of the transferred recorded data will be obtained, which can also be indirectly understood as the remaining recording duration corresponding to the remaining space of the device.

[0085] 104. Determine whether to trigger a prompt instruction according to the remaining recordable time and the target recording time, where the prompt instruction is used to remind you to perform a data cleanup or replace and connect a new storage device.

[0086] The embodiment of the present application compares the remaining recordable time with the target recording time required for the target recording data to predict whether the remaining storage space of the device can meet the current recording task. For example, if the predicted remaining recordable time is less than or equal to the target recording time, it means that the storage capacity of the remaining storage space is less than the file volume (i.e., the amount of data) corresponding to the target recording data, and it can be predicted that the remaining storage space cannot meet the current recording task, so it will trigger a prompt instruction, which is used to remind the user to perform data cleaning or replace and connect a new storage device. For example, remind the user that they should perform a useless data cleaning operation to free up more storage space; or use USB to connect other mobile storage devices to expand more storage space.

[0087] Then, for the embodiment of the present application, in the process of recording data, with the help of a short initial recording period, it is indirectly predicted whether the remaining storage space of the device is sufficient to support the recording operation of the complete target recording data. Based on this prediction result, it is possible to further predict whether some additional storage space is needed, such as performing data cleanup to free up storage space or connecting a new storage device to expand the storage space. These operations to obtain additional storage space can be predicted and taken into account after recording a short initial recording period, rather than taking countermeasures when it is about to be discovered that the storage space is insufficient or even the recording is terminated, thereby greatly avoiding potential adverse problems that affect the recording progress and ensuring the smooth progress of the recording process.

[0088] Further, it should be noted that the embodiment of the present application uses a short initial recording period to predict whether the remaining storage space of the device supports recording the entire target recording data. During the recording process, the initial recording period actually occurs. However, the embodiment of the present application still uses the "remaining recordable time" and the complete "target recording time" for comparison, rather than using the "remaining recordable time" and "the recording time corresponding to the target recording time excluding the initial recording period" for comparison. The benefits achieved by such an operation are explained as follows:

[0089] The initial recording stage is very short and contains very little recorded data. It is equivalent to a recording sample data, which can be ignored for the entire target recording data. And if the "remaining recordable time" is greater than the complete "target recording time", then it must be greater than the "recording time corresponding to the target recording time excluding the initial recording period". Therefore, the comparison between the "remaining recordable time" and the complete "target recording time" can fully achieve the purpose of comparing the "remaining recordable time" with the "recording time corresponding to the target recording time excluding the initial recording period". The two different comparison operations have the same effect, but the former simplifies the calculation process, saves redundant calculation costs, improves processing efficiency, and is more convenient for efficiently executing prediction and judgment operations, so as to efficiently obtain the prediction result of whether the "remaining storage space" is sufficient to complete the current recording task.

[0090] The embodiment of the present application provides a program recording method. When receiving a program recording instruction, the embodiment of the present application first calculates the initial recording bit rate corresponding to the target recording data, and then calculates the remaining recordable time that can support the recording operation according to the initial recording bit rate and the remaining storage space of the device, so as to compare the remaining recordable time with the target recording time required by the target recording data to predict whether the remaining storage space of the device meets the current recording task. If not, then the prompt instruction is triggered immediately to promptly remind the user to clean up useless data or replace and connect a new storage device. Compared with the prior art, the embodiment of the present application does not use a preset value that is difficult to effectively set as a measurement standard, but uses the remaining recordable time of the remaining storage space during the recording process and the target recording time as a benchmark to predict whether the current recording task is met. If not, the prompt instruction is triggered immediately. Based on this, based on different comparison standards, the embodiment of the present application provides a more optimized program recording method, which solves the technical problems that the existing recording method is not friendly enough and the user experience is poor, avoids the problem that the recording progress is affected by the existing method or the recording operation steps become cumbersome and unreasonable due to frequent data cleaning and replacement of other new storage devices, and gives users a better program recording operation experience.

[0091] In order to explain the above embodiment in more detail, the present application embodiment also provides another program recording method, such as Figure 2 As shown, the embodiment of the present application provides the following specific steps:

[0092] 201. Receive a program recording instruction.

[0093] The instruction information of the program recording instruction includes the target recording duration corresponding to the target recording data. In the embodiment of the present application, the explanation of this step is shown in step 101, which will not be described again.

[0094] 202. Determine whether the remaining storage space of the device is greater than a preset safety threshold.

[0095] In some embodiments, a reserved storage space can be established for the digital broadcasting device according to a preset safety threshold, that is, for the device, when storing recorded data, it should not consider adding additional storage space after its storage space is completely filled, which will cause storage pressure on the device and make it difficult to cope with the ever-changing computing needs. Therefore, a reserved storage space can be set in the device, which is very small, but is equivalent to protecting the device.

[0096] For example, if the preset safety threshold is set to 100 Mb, a 100 Mb reserved storage space is set for the device, which is usually hardly used and is only used as a reserved blank space to flexibly respond to storage events.

[0097] Then, in the embodiment of the present application, the preset safety threshold can be used to measure whether the reserved storage space needs to be occupied. If it needs to be occupied, a prompt instruction is triggered, and the prompt instruction is used to remind the user to perform data cleaning or replace and connect a new storage device, thereby vacating the storage space or expanding the storage space in time to meet the demand for storing recorded data in time. However, if it is determined that the reserved storage space does not need to be occupied, the recorded data will continue to be stored without triggering the prompt instruction.

[0098] 203a. If the remaining storage space of the device is not greater than the preset safety threshold, a prompt instruction is triggered.

[0099] In the embodiment of the present application, if it is determined that the remaining storage space of the device is less than or equal to the preset safety threshold, a prompt instruction is triggered. In the embodiment of the present application, the remaining storage space of the device is compared with the preset safety threshold. If the remaining storage space of the device is less than or equal to the preset safety threshold, it indicates that the reserved storage space of the device is occupied and the prompt instruction needs to be triggered in time. Exemplarily, during the process of recording data, it can be periodically or regularly detected whether the remaining storage space of the device is greater than the reserved storage space.

[0100] However, if it is determined that the remaining storage space of the device is greater than the preset safety threshold, there is no need to trigger the prompt instruction, and step 203b can be continued.

[0101] 203b. When it is determined that the remaining storage space of the device is greater than a preset safety threshold, an initial recording bit rate is calculated during the process of recording the target recording data.

[0102] In an embodiment of the present application, if it is determined that the remaining storage space of the device is greater than a preset safety threshold, it indicates that the reserved storage space of the device is not occupied, and the remaining storage space can continue to be used to store recorded data.

[0103] For the embodiment of the present application, a specific implementation method for calculating the initial recording bit rate is provided, and the detailed steps of the implementation method include the following:

[0104] First, in the process of recording the target recording data, a recording duration that reaches a first preset threshold from the start recording time is selected as the initial recording duration.

[0105] Secondly, the data volume of the initial recording data corresponding to the initial recording duration is obtained.

[0106] Furthermore, the ratio of the data volume of the initial recording data to the initial recording duration is calculated to obtain the initial recording bit rate.

[0107] In the embodiment of the present application, the recording bit rate is calculated with the help of an initial recording stage. The initial recording duration selected using the first preset threshold should be as small as possible. The selected initial recording stage is only used to calculate an initial recording bit rate.

[0108] 204b. Calculate the remaining recording time corresponding to the remaining storage space of the device according to the initial recording bit rate and the remaining storage space of the device.

[0109] In the embodiment of the present application, this step can be further explained to include: first, obtaining the data capacity supported by the remaining storage space of the device; second, dividing the data capacity by the initial recording bit rate to obtain the remaining recordable time.

[0110] For the embodiment of the present application, the initial recording bit rate and the remaining storage space of the device are used to predict the remaining recording time that can be supported for storage.

[0111] 205b. Determine whether the remaining recordable time is greater than the target recording time.

[0112] If it is determined that the remaining recordable time is less than or equal to the target recording time, a prompt instruction is triggered and step 206c is executed; if it is determined that the remaining recordable time is greater than the target recording time, it means that the remaining storage space of the device meets the current recording task. In some embodiments, in order to achieve more accurate prediction, the program recording device further monitors the fluctuation of the recording bit rate, and then determines whether to trigger the prompt instruction according to the fluctuation information of the recording bit rate. Specifically, step 206d can be executed.

[0113] 206c. If it is determined that the remaining recordable time is less than or equal to the target recording time, a prompt instruction is triggered, where the prompt instruction is used to remind the user to perform data cleaning or replace and connect a new storage device.

[0114] In the embodiment of the present application, this step is explained with reference to step 104 and will not be described again here.

[0115] 206d. If it is determined that the remaining recordable time is greater than the target recording time, determine whether the change difference between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold value during the process of continuing to record the target recording data.

[0116] In an embodiment of the present application, the remaining recordable time is calculated with the help of the initial bit rate and the remaining storage space of the device. If the remaining recordable time is greater than the target recording time, it is predicted that the remaining storage space can meet the current recording task. This is a prediction operation completed with the help of the initial recording stage.

[0117] However, further, the embodiment of the present application also provides a more optimized solution: in addition to obtaining predictions with the help of the initial recording stage, as the recording operation progresses in stages, the prediction operation can be performed again or multiple times, that is, to predict whether the constantly changing remaining storage space of the current device can support the completion of the recording operation of the target recording data.

[0118] Specifically, during the recording process of the target recording data, as the recording progresses, the recording bit rate will change, but the change may be slight or fluctuating. If it is slight, it means that the recording bit rate does not change much, so there is no need to re-execute the prediction operation. However, if the recording bit rate fluctuates greatly, then in order to more accurately determine "whether the predicted constantly changing remaining storage space of the current device can support the completion of the recording operation of the target recording data", the prediction operation should be re-executed. For example, a preset threshold value can be used to measure the degree of fluctuation of the recording bit rate, which is identified as the second preset threshold value in the embodiment of the present application.

[0119] Exemplarily, while continuing to record the target recording data, the recording data and recording duration within two adjacent unit times can be obtained, and the change difference between the recording bit rates corresponding to the two adjacent unit times can be calculated, and the change difference is compared with the second preset threshold. If the preset threshold is reached, the prediction operation is re-executed, and the prediction operation refers to "predicting whether the constantly changing remaining storage space of the current device can support the completion of the recording operation of the target recording data."

[0120] Further, in the embodiment of the present application, the operation of "determining whether the change difference between the recording bit rates corresponding to two adjacent unit times reaches the second preset threshold" can be performed periodically, but is not limited to being performed periodically. However, in order to reduce the number of such determination operations, the following trigger mechanism can also be used to trigger such a determination operation, specifically including:

[0121] As a feasible implementation method, the triggering operation timing of the judgment is: if the operation of switching the recording program is identified during the process of continuing to record the target recording data, then the operation of judging whether the difference in the change between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold is triggered, wherein the time range corresponding to the two adjacent unit times includes the system time point corresponding to the switching of the recording program.

[0122] As another feasible implementation, the timing of triggering the judgment is: if it is identified that the resolution of the recording data has changed during the process of continuing to record the target recording data, then the operation of determining whether the difference in change between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold is triggered, wherein the time range corresponding to the two adjacent unit times includes the system time point corresponding to the change in resolution.

[0123] To explain the above two trigger operation timings, the TV channel of digital broadcasting TV broadcasts programs in a live broadcast mode, and the programs being broadcast will be continuously switched according to the program preview broadcast time period. Therefore, during the recording process, since switching the broadcast program will bring about changes in the amount of content contained in the picture, or changes in the clarity of the broadcast picture, the recording bit rate corresponding to the recorded data picture frame will also change, and there is a high probability that the recording bit rate change will fluctuate greatly. Therefore, the embodiments of the present application select the corresponding trigger mechanism based on these two situations to trigger the operation of "determining whether the change difference between the recording bit rates corresponding to two adjacent unit times reaches the second preset threshold value". These trigger mechanisms improve the pertinence and efficiency of the judgment operation.

[0124] 207e. If it is determined that the difference between the recording bit rates corresponding to two adjacent unit times does not reach the second preset threshold, it means that the recording bit rate change fluctuation is small, and the recording can continue according to the current recording bit rate. At this time, there is no need to re-predict whether the current remaining storage space of the device can support the recording of the target recording data. Of course, in some embodiments, in order to achieve more accurate prediction, as the recording operation progresses in stages, it can return to step 206d. In the process of recording the target recording data, according to the recording bit rate change, it is further predicted whether it is necessary to re-predict whether the current remaining storage space of the device can support the recording of the target recording data, and because the recording bit rate change is unknown, multiple prediction operations can be performed.

[0125] 207f. If it is determined that the change difference between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold, the current recording bit rate, the current recording system time and the remaining storage space of the current device are obtained.

[0126] In an embodiment of the present application, during the process of continuing to record data, if it is monitored that the recording bit rate changes and fluctuates greatly, then the current device remaining storage space obtained by the current system time should be used to re-predict whether it is sufficient to support the remaining recording data corresponding to the target recording data.

[0127] Therefore, it is necessary to obtain the current recording bit rate, the current recording system time and the remaining storage space of the current device at the current system time point as a data basis for completing this prediction operation.

[0128] 208f. Calculate the difference between the target recording time and the current recording system time to obtain the remaining recording time corresponding to the target recording data.

[0129] The current recording system time refers to the completed recording time for the target recording data. Then, according to the difference between the target recording time and the current recording system time, the remaining recording time corresponding to the target recording data can be obtained.

[0130] In the embodiment of the present application, as the recording progresses, it is considered that the "remaining storage space of the current device" and the "remaining recording data of the target recording data" are constantly changing. Therefore, taking the current system time as a reference and combining it with the target recording time, it is possible to obtain the remaining recording time that has not been recorded.

[0131] 209f. Calculate the remaining recording time corresponding to the remaining storage space of the current device according to the current recording bit rate and the remaining storage space of the current device.

[0132] In the embodiment of the present application, specifically, the remaining storage space of the current device is divided by the current recording bit rate to obtain the remaining recording time corresponding to the remaining storage space of the current device.

[0133] 210f. Determine whether the remaining recording time corresponding to the remaining storage space of the current device is greater than the remaining recording time.

[0134] In an embodiment of the present invention, as the recording stage progresses, the remaining storage space of the device will decrease, and the remaining recording time that is sufficient to support it will also continue to decrease. This step is to re-predict whether the remaining recording time corresponding to the current remaining storage space of the device is sufficient to support the completion of the recording operation of the target recording data.

[0135] 211g. In response to determining that the remaining recordable time corresponding to the remaining storage space of the current device is less than or equal to the remaining recording time, trigger a prompt instruction.

[0136] In an embodiment of the present invention, based on the re-prediction operation of step 210f, if it is determined that the remaining recording time corresponding to the remaining storage space of the current device is less than or equal to the remaining recording time, then it means that it is insufficient to complete the recording operation of the target recording data, and thus a prompt instruction is triggered to remind the user to perform data cleanup or replace and connect a new storage device.

[0137] 212h. In response to determining that the remaining recordable time corresponding to the remaining storage space of the current device is greater than the remaining recording time, continue the recording operation.

[0138] Furthermore, in the process of continuing the recording operation, as the recording stage continues to advance, the fluctuation of the recording bit rate can be judged multiple times according to the change of the recording bit rate, such as returning to step 206d. On the basis of step 206d, if the recording bit rate fluctuates greatly, that is, reaches the second preset threshold, then the subsequent steps can be executed again to re-predict whether the current remaining storage space of the device is sufficient to complete the recording operation of the target recording data. Accordingly, in the process of recording the target recording data, multiple repeated dynamic prediction operations can be implemented, that is, predicting whether the current remaining storage space is sufficient to support the completion of the recording operation of the target recording data, so as to achieve a more accurate prediction operation according to the dynamic prediction operation, so that if it is found that the current recording task (that is, the recording task of the target recording data) cannot be satisfied, the instruction is triggered in time to remind the execution of data cleaning or replacement and connection of a new storage device operation.

[0139] In an embodiment of the present application, the current system time is used as a reference. If it is determined that the remaining recording time corresponding to the remaining storage space of the current device is less than or equal to the remaining recording time, it is predicted that the remaining storage space of the current device cannot meet the recording operation of the remaining recording data of the recording task, and then a prompt instruction is triggered to remind the user to perform data cleanup or replace and connect a new storage device.

[0140] Furthermore, as a response to the above Figure 1 , Figure 2 The embodiment of the present application provides a program recording device for the implementation of the method shown. The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, the device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. The device is used to dynamically predict whether the current remaining storage space can support the completion of the recording operation of the target recording data during the data recording process. Specifically, Figure 3 As shown, the device comprises:

[0141] The receiving unit 31 is used to receive a program recording instruction, wherein the instruction information of the program recording instruction includes a target recording duration corresponding to the target recording data;

[0142] A calculation unit 32, used for calculating an initial recording bit rate during recording of target recording data;

[0143] The calculation unit 32 is further used to calculate the remaining recording time corresponding to the remaining storage space of the device according to the initial recording bit rate and the remaining storage space of the device;

[0144] The determination unit 33 is used to determine whether to trigger a prompt instruction according to the remaining recordable time and the target recording time, and the prompt instruction is used to remind to perform data cleaning or replace and connect a new storage device.

[0145] Further, such as Figure 4 As shown, the determination unit 33 includes:

[0146] A determination module 331, used to determine whether the remaining recordable time is less than or equal to the target recording time;

[0147] The trigger module 332 is used to trigger a prompt instruction when the determination module 331 determines that the remaining recordable time is less than or equal to the target recording time. The prompt instruction is used to remind the user to perform data cleaning or replace and connect a new storage device.

[0148] Further, such as Figure 4 As shown, the calculation unit 32 includes:

[0149] A selection module 321 is used to select, during the process of recording target recording data, a recording duration that reaches a first preset threshold from the start recording time as an initial recording duration;

[0150] An acquisition module 322 is used to acquire the data volume of the initial recording data corresponding to the initial recording duration;

[0151] The calculation module 323 is used to calculate the ratio of the data volume of the initial recording data to the initial recording duration to obtain the initial recording bit rate.

[0152] Further, such as Figure 4 As shown, the calculation unit 32 includes:

[0153] The acquisition module 322 is further used to obtain the data capacity supported by the remaining storage space of the device;

[0154] The calculation module 323 is further used to calculate the ratio of the data capacity to the initial recording bit rate to obtain the remaining recordable time.

[0155] Further, such as Figure 4As shown, the determination unit 33 also includes:

[0156] The determination module 331 is further used to determine that the remaining recordable time is greater than the target recording time;

[0157] A judging module 332, configured to judge whether a change difference between recording bit rates corresponding to two adjacent unit times reaches a second preset threshold value during the process of continuing to record the target recording data when the determining module determines that the remaining recordable time is greater than the target recording time;

[0158] An acquisition module 333 is used to acquire the current recording bit rate, the current recording system time and the remaining storage space of the current device when it is determined that the change difference between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold;

[0159] The calculation module 334 is used to calculate the difference between the target recording time and the current recording system time to obtain the remaining recording time corresponding to the target recording data;

[0160] The calculation module 334 is further used to calculate the remaining recording time corresponding to the remaining storage space of the current device according to the current recording bit rate and the remaining storage space of the current device;

[0161] The trigger module 335 is further configured to trigger a prompt instruction in response to determining that the remaining recordable time corresponding to the remaining storage space of the current device is less than or equal to the remaining recording time.

[0162] Further, such as Figure 4 As shown, the target recording data includes at least one recorded program, and the determination module 332 includes:

[0163] The first trigger submodule 3321 is used for, in response to identifying an operation of switching a recording program during the process of continuing to record the target recording data, triggering an operation of determining whether a difference in a change in recording bit rates corresponding to two adjacent unit times reaches a second preset threshold, wherein the time range corresponding to the two adjacent unit times includes a system time point corresponding to the switching of the recording program;

[0164] The second trigger submodule 3322 is used to trigger an operation of determining whether the difference in change between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold in response to identifying a change in the resolution of the recording data during the process of continuing to record the target recording data, wherein the time range corresponding to the two adjacent unit times includes the system time point corresponding to the change in resolution.

[0165] Further, such as Figure 4As shown, the device further includes: a judgment unit 34, which is used to judge whether the remaining storage space of the device is greater than a preset safety threshold before calculating the initial recording bit rate in the process of recording the target recording data; a trigger unit 35, which is used to trigger a prompt instruction when it is judged that the remaining storage space of the device is not greater than the preset safety threshold;

[0166] The calculation unit 32 is further specifically configured to calculate an initial recording bit rate during recording of target recording data when it is determined that the remaining storage space of the device is greater than a preset safety threshold.

[0167] The program recording device provided in the embodiment of the present application is used to implement the program recording method provided in the above embodiment of the present application. For a detailed description of the functional modules included in the program recording device and the interactions between the functional modules, please refer to the description of the corresponding method steps above, which will not be repeated here.

[0168] In summary, the embodiment of the present application provides a program recording device. When receiving a program recording instruction, the embodiment of the present application first calculates the initial recording bit rate corresponding to the target recording data, and then calculates the remaining recordable time that can support the recording operation according to the initial recording bit rate and the remaining storage space of the device, so as to compare the remaining recordable time with the target recording time required by the target recording data to predict whether the remaining storage space of the device meets the current recording task. If not, then the prompt instruction is triggered immediately to promptly remind the user to clean up useless data or replace and connect a new storage device. Compared with the prior art, the present application does not use a preset value that is difficult to effectively set as a measurement standard, but uses the remaining recordable time of the remaining storage space during the recording process and the target recording time as a benchmark to predict whether the current recording task is met. If not, the prompt instruction is triggered immediately. Based on this, based on different comparison standards, the embodiment of the present application provides a more optimized program recording method, which solves the technical problems that the existing recording method is not friendly enough and the user experience is poor, avoids the problem that the recording progress is affected by the existing method or the recording operation steps become cumbersome and unreasonable due to frequent data cleaning and replacement of other new storage devices, and gives users a better program recording operation experience.

[0169] The program recording device provided in the embodiment of the present application includes a processor and a memory, and the receiving unit 、 The calculation unit and the determination unit are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.

[0170] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters are adjusted to predict whether the remaining storage space of the device can meet the current recording task based on the remaining recordable time and target recording time of the remaining storage space of the device. If it cannot meet the current recording task, a prompt instruction is triggered to promptly remind the user to clean up useless data or replace and connect a new storage device. This program recording optimization method avoids affecting the recording progress or frequent data cleaning and replacement of other new storage devices, giving users a better user experience.

[0171] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the program recording method as described above is implemented.

[0172] An embodiment of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the program recording method described above when executing the computer program.

[0173] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0174] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.

[0175] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0176] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0177] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0178] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0179] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A program recording method, It is characterized in that The method comprises: receiving a program recording instruction, wherein instruction information of the program recording instruction includes a target recording duration corresponding to the target recording data; calculating an initial recording bit rate during recording the target recording data; Calculating the remaining recording time corresponding to the remaining storage space of the device according to the initial recording bit rate and the remaining storage space of the device; Determining whether to trigger a prompt instruction according to the remaining recordable time and the target recording time, wherein the prompt instruction is used to remind the user to perform a data cleanup or replace a new storage device, including: If it is determined that the remaining recordable time is greater than the target recording time, determining whether a change difference between recording bit rates corresponding to two adjacent unit times reaches a second preset threshold value during the process of continuing to record the target recording data; If yes, obtain the current recording bitrate, current recording system time, and remaining storage space of the current device; Calculate the difference between the target recording time and the current recording system time to obtain the remaining recording time corresponding to the target recording data; Calculate the remaining recording time corresponding to the remaining storage space of the current device according to the current recording bit rate and the remaining storage space of the current device; In response to determining that the remaining recordable time corresponding to the remaining storage space of the current device is less than or equal to the remaining recording time, the prompt instruction is triggered.

2. The method according to claim 1, It is characterized in that The determining whether to trigger a prompt instruction according to the remaining recordable time and the target recording time includes: If it is determined that the remaining recordable time is less than or equal to the target recording time, a prompt instruction is triggered, and the prompt instruction is used to remind the user to perform data cleaning or replace and connect a new storage device.

3. The method according to claim 1, It is characterized in that The calculating the initial recording bit rate during recording the target recording data includes: In the process of recording the target recording data, selecting a recording duration that reaches a first preset threshold from the start recording time as an initial recording duration; Obtaining the data volume of the initial recording data corresponding to the initial recording duration; The ratio of the data volume of the initial recording data to the initial recording duration is calculated to obtain an initial recording bit rate.

4. The method according to claim 3, It is characterized in that The calculating, according to the initial recording bit rate and the remaining storage space of the device, the remaining recordable time corresponding to the remaining storage space of the device includes: Get the data capacity supported by the remaining storage space of the device; The ratio of the data capacity to the initial recording bit rate is calculated to obtain the remaining recordable time.

5. The method according to claim 1, It is characterized in that The target recording data includes at least one recorded program, and the determining whether the change difference between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold includes: In response to identifying an operation of switching the recording program during the process of continuing to record the target recording data, triggering the operation of determining whether the difference between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold, wherein the time range corresponding to the two adjacent unit times includes the system time point corresponding to the switching recording program; or, In response to identifying that the resolution of the recorded data has changed while continuing to record the target recorded data, the operation of determining whether the difference in change between the recording bit rates corresponding to two adjacent unit times reaches a second preset threshold is triggered, wherein the time range corresponding to the two adjacent unit times includes the system time point corresponding to the change in resolution.

6. The method according to any one of claims 1 to 5, It is characterized in that Before calculating the initial recording bit rate in the process of recording the target recording data, the method further includes: Determine whether the remaining storage space of the device is greater than a preset safety threshold; If not, triggering the prompt instruction; The calculating of the initial recording bit rate during recording the target recording data comprises: When it is determined that the remaining storage space of the device is greater than a preset safety threshold, an initial recording bit rate is calculated during the process of recording the target recording data.

7. A program recording device, It is characterized in that The device comprises: A receiving unit, configured to receive a program recording instruction, wherein instruction information of the program recording instruction includes a target recording duration corresponding to the target recording data; A calculation unit, used for calculating an initial recording bit rate during recording of the target recording data; The calculation unit is further used to calculate the remaining recordable time corresponding to the remaining storage space of the device according to the initial recording bit rate and the remaining storage space of the device; a determination unit, configured to determine whether to trigger a prompt instruction according to the remaining recordable time and the target recording time, wherein the prompt instruction is used to remind the user to perform a data cleanup or replace a new storage device; The determination unit includes: a determination module, a judgment module, an acquisition module, a calculation module and a trigger module; The determining module is used to determine that the remaining recordable time is greater than the target recording time; The judging module is configured to judge whether a change difference between recording bit rates corresponding to two adjacent unit times reaches a second preset threshold value during the process of continuing to record the target recording data when the determining module determines that the remaining recordable time is greater than the target recording time; The acquisition module is used to acquire the current recording bit rate, the current recording system time and the remaining storage space of the current device when it is determined that the change difference between the recording bit rates corresponding to two adjacent unit times reaches the second preset threshold; The calculation module is used to calculate the difference between the target recording time and the current recording system time to obtain the remaining recording time corresponding to the target recording data; The calculation module is further used to calculate the remaining recordable time corresponding to the remaining storage space of the current device according to the current recording bit rate and the remaining storage space of the current device; The trigger module is used to trigger the prompt instruction in response to determining that the remaining recordable time corresponding to the remaining storage space of the current device is less than or equal to the remaining recording time.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the program recording method according to any one of claims 1 to 6 is implemented.

9. An electronic device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the program recording method according to any one of claims 1 to 6 when executing the computer program.