Playing progress display method and device, storage medium and electronic equipment
By analyzing and calibrating according to the file size and played file size during the video playback process, the problem of unsmooth video playback progress display is solved, and a more stable playback progress display is achieved, improving the user experience.
Patent Information
- Application Number
- CN202510785103.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-12
- Publication Date
- 2025-08-08
AI Technical Summary
The existing video playback progress display method is prone to non-uniform growth of progress bars and jumping seconds due to calculation strategy deviations, which affects the user's viewing experience.
By obtaining the recorded video file size of the pre-recorded video at each recording time, when playing the video frame, analyzing it according to the played file size and the file size of the recording time, the calibration reference time is obtained and the playback time is calibrated, and the calibration time is obtained for the playback progress display.
Improves the display smoothness and stability of video playback progress and improves user viewing experience.
Smart Images

Figure CN120455761A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a playback progress display method, device, storage medium, and electronic device. Background Art
[0002] Displaying the playback progress of a video plays an important role in the user's viewing experience. For example, a personal video recorder (PVR) on a digital TV can record live program content and save the recorded video to a disk for the user to watch at any time in the future. While watching the video, a progress bar is usually required to display the playback progress for the user's reference.
[0003] Currently, the playback progress of videos is displayed by calculating the system time for each loaded frame during the video loading process. This method is prone to non-uniform progress bar growth and skipping seconds due to calculation strategy deviations, impacting the user's viewing experience. Summary of the Invention
[0004] The embodiment of the present application provides a solution that can improve the display smoothness and stability of video playback progress and enhance the user viewing experience.
[0005] The embodiments of this application provide the following technical solutions:
[0006] According to one embodiment of the present application, a playback progress display method includes: obtaining the recorded video file size corresponding to each recording moment of a pre-recorded video; when playing each video frame of the pre-recorded video, analyzing according to the played file size and the recorded video file size corresponding to each recording moment to obtain the playback time; and obtaining the calibration reference time corresponding to each of the video frames, and calibrating the playback time according to the calibration reference time to obtain the calibrated time; and displaying the playback progress according to the calibrated time.
[0007] In some embodiments of the present application, obtaining the calibration reference time corresponding to each of the video frames and calibrating the playback time with the calibration reference time to obtain the calibration time includes: obtaining the display timestamp corresponding to each of the video frames; calculating the timestamp difference between the display timestamp corresponding to each of the video frames and the display timestamp corresponding to the previous video frame; adding the timestamp difference to the playback time to obtain a first superimposed time; and obtaining the calibration time based on the first superimposed time.
[0008] In some embodiments of the present application, obtaining the calibration time based on the first superposition time includes one of the following methods: determining the first superposition time as the calibration time; performing estimated processing based on the size change data of the played file to obtain a first adjustment time, and adjusting the first superposition time based on the first adjustment time to obtain the calibration time.
[0009] In some embodiments of the present application, the calibration reference time corresponding to each of the video frames is obtained, and the playback time is calibrated using the calibration reference time to obtain the calibration time, including: obtaining the loading time difference between the loading time of each of the video frames and the loading time of the previous video frame; adding the loading time difference to the playback time to obtain a second superimposed time; and obtaining the calibration time based on the second superimposed time.
[0010] In some embodiments of the present application, obtaining the calibration time based on the second superposition time includes one of the following methods: determining the second superposition time as the calibration time; performing estimated processing based on the size change data of the played file to obtain the second adjustment time, and adjusting the second superposition time based on the second adjustment time to obtain the calibration time.
[0011] In some embodiments of the present application, the analysis based on the played file size and the recorded video file size corresponding to each recording moment to obtain the playback time includes: determining the recorded video file size corresponding to the played file size; and obtaining the playback time based on the recording moment corresponding to the recorded video file size corresponding to the played file size.
[0012] In some embodiments of the present application, before obtaining the recorded video file size corresponding to the pre-recorded video at each recording moment, the method also includes: recording the program to be recorded, and recording the recorded video file size corresponding to each recording moment according to the target time interval, to obtain the pre-recorded video and the recorded video file size corresponding to the pre-recorded video at each recording moment.
[0013] According to one embodiment of the present application, a playback progress display device includes: an acquisition module, used to: obtain the recorded video file size corresponding to the pre-recorded video at each recording moment; an analysis module, used to: when playing each video frame of the pre-recorded video, analyze according to the played file size and the recorded video file size corresponding to each recording moment to obtain the playback time; and a calibration module, used to: obtain the calibration reference time corresponding to each of the video frames, and calibrate the playback time according to the calibration reference time to obtain the calibrated time; and a display module, used to: display the playback progress according to the calibration time.
[0014] According to another embodiment of the present application, a storage medium stores a computer program thereon. When the computer program is executed by a processor of a device, the device executes the method described in the embodiment of the present application.
[0015] According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.
[0016] According to another embodiment of the present application, a computer program product or computer program includes computer instructions stored in a computer-readable storage medium. A processor of a device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the device to perform the methods provided in various optional implementations described in the embodiments of the present application.
[0017] In an embodiment of the present application, the recorded video file size corresponding to each recording moment of the pre-recorded video is obtained; when playing each video frame of the pre-recorded video, analysis is performed based on the played file size and the recorded video file size corresponding to each recording moment to obtain the playback time; and, the calibration reference time corresponding to each video frame is obtained, and the playback time is calibrated according to the calibration reference time to obtain the calibrated time; and the playback progress is displayed according to the calibrated time.
[0018] In this manner of the embodiments of the present application, when playing each video frame of a pre-recorded video, the playback time is calculated based on the size of the played file and the size of the recorded video file corresponding to each recording moment, and the playback time is further calibrated based on the calibration reference time corresponding to each video frame to obtain the calibrated time. Finally, the playback progress is displayed based on the calibrated time, which can effectively improve the display smoothness and stability of the video playback progress and enhance the user viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A flowchart of a method for displaying playback progress according to an embodiment of the present application is shown.
[0021] Figure 2 A play time analysis flow chart according to an embodiment of the present application is shown.
[0022] Figure 3 A time calibration flow chart according to an embodiment of the present application is shown.
[0023] Figure 4 A block diagram of a playback progress display device according to an embodiment of the present application is shown.
[0024] Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The present disclosure will be further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the examples provided herein are merely for explaining the present disclosure and are not intended to limit the present disclosure. In addition, the examples provided below are partial examples for implementing the present disclosure, rather than providing all examples for implementing the present disclosure. In the absence of conflict, the technical solutions described in the examples of the present disclosure may be implemented in any combination.
[0026] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus comprising a series of elements includes not only the elements explicitly stated, but also other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other related elements (such as steps in the method or units in the apparatus, for example, a unit may be part of a circuit, part of a processor, part of a program or software, etc.) in the method or apparatus comprising the element.
[0027] For example, the playback progress display method provided by the embodiment of the present disclosure includes a series of steps, but the playback progress display method provided by the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the playback progress display device provided by the embodiment of the present disclosure includes a series of units, but the device provided by the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units that need to be set for obtaining relevant information or performing processing based on the information.
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present disclosure pertains. The terms used herein are for the purpose of describing specific embodiments only and are not intended to limit the present disclosure.
[0029] It is understandable that in the specific implementation of this application, relevant data is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0030] Figure 1 The flowchart of the playback progress display method according to one embodiment of the present application is schematically shown. The execution subject of the playback progress display method can be any device with processing capabilities, such as a TV, computer, mobile phone, smart watch, and car-mounted device.
[0031] In a specific scenario of the present application, the device serving as the execution subject is a television, and in this scenario, when the television plays back a pre-recorded video recorded by a personal video recorder, the playback progress is displayed in accordance with the embodiment of the present application.
[0032] like Figure 1 As shown, the playback progress display method may include steps S110 to S140.
[0033] Step S110, obtaining the recorded video file size corresponding to each recording time of the pre-recorded video;
[0034] Step S120, when playing each video frame of the pre-recorded video, analyzing the played file size and the recorded video file size corresponding to each recording moment to obtain the play time; and
[0035] Step S130, obtaining a calibration reference time corresponding to each of the video frames, and calibrating the playback time according to the calibration reference time to obtain a calibration time;
[0036] Step S140: Display the playback progress according to the calibration time.
[0037] Prerecorded video is pre-recorded video. For example, prerecorded video can be obtained by recording live broadcast content using a personal video recorder (PVR) on a digital television. It is understood that prerecorded video can also be video recorded on other devices and in other scenarios. During the recording process of the prerecorded video, the video file size of the recorded video can be recorded at each recording time.
[0038] For pre-recorded videos, each video frame in the pre-recorded video is loaded and played in sequence. The played file size when playing each video frame is the difference between the "total file size of the pre-recorded video" and the "file size of the remaining unloaded video" when playing each video frame.
[0039] When playing each video frame, analysis is performed based on the size of the played file when playing each video frame and the size of the recorded video file corresponding to each recording moment, so that the recording moment corresponding to the recorded video file size corresponding to the current played file size can be accurately calculated, and the calculated recording moment can be further used to obtain the playback time that matches the played file size.
[0040] Furthermore, when playing each video frame, a calibration reference time corresponding to each video frame may be obtained. The calibration reference time corresponding to the video frame refers to a reference time used to calibrate the playback time calculated when playing the video frame.
[0041] As each video frame plays, the playback time is calibrated according to the current calibration reference time, ensuring that the calibrated time changes uniformly with the playback sequence. Displaying the playback progress based on this calibration time (e.g., a progress bar that follows the calibration time) ensures that the playback progress is consistent with the current playback situation and increases uniformly, avoiding skipping and rewinding during progress playback, thus improving the user viewing experience.
[0042] In summary, in this manner of the embodiments of the present application, when playing each video frame of a pre-recorded video, the playback time is calculated based on the size of the played file and the size of the recorded video file corresponding to each recording moment, and the playback time is further calibrated based on the calibration reference time corresponding to each video frame to obtain the calibrated time. Finally, the playback progress is displayed based on the calibrated time, which can effectively improve the display smoothness and stability of the video playback progress and enhance the user viewing experience.
[0043] Described below Figure 1 When displaying the playback progress in the embodiment, further optional specific embodiments are provided for each step performed.
[0044] In one embodiment, before obtaining the recorded video file size corresponding to each recording moment of the pre-recorded video, the method also includes: recording the program to be recorded, and recording the recorded video file size corresponding to each recording moment according to the target time interval, to obtain the pre-recorded video and the recorded video file size corresponding to each recording moment of the pre-recorded video.
[0045] The program to be recorded is recorded and the corresponding video file size at each recording time is recorded at the target time interval. The video file size of the recorded video at each recording time is recorded, that is, the recorded video file size corresponding to each recording time. This data can be saved in a designated location. When playing the pre-recorded video, the recorded video file size corresponding to each recording time of the pre-recorded video can be obtained from the designated location. A mapping relationship between each recording time and the corresponding recorded video file size is established for use.
[0046] For example, the target time interval between recording moments can be 1 second. The recorded video file size of the recorded video obtained from the 0th second to the 1st second is A1, and the recorded video file size corresponding to the 2nd second is A2=A1+a(1-2), where a(1-2) is the recorded video file size of the video recorded in the time period from the 1st second to the 2nd second.
[0047] Furthermore, in one embodiment, before recording the program to be recorded and recording the recorded video file size corresponding to each recording moment according to the target time interval, a predetermined time interval (eg, 1 second or 0.5 second, etc.) may be determined as the target time interval.
[0048] Alternatively, in another embodiment, before recording a program to be recorded and recording the corresponding video file size at each recording moment according to a target time interval, the program type of the program to be recorded and the device model of the device playing the pre-recorded video are obtained. A predetermined time interval matching the program type and device model is then retrieved from a preset configuration table as the target time interval. In this manner, the program type and device model can be further considered when recording and the recorded video file size can be recorded according to the corresponding target time interval, further improving the viewing experience of the video playback progress display.
[0049] In one embodiment, see Figure 2 , the analysis based on the played file size and the recorded video file size corresponding to each recording moment to obtain the playback time may include: step S210, determining the recorded video file size corresponding to the played file size; step S220, obtaining the playback time according to the recording moment corresponding to the recorded video file size corresponding to the played file size.
[0050] The recorded video file size corresponding to the played file size is the recorded video file size equal to the played file size. The play time is obtained based on the recording time corresponding to the recorded video file size corresponding to the played file size, and the play time can accurately reflect the current play progress.
[0051] In one implementation, obtaining the playback time according to the recording moment corresponding to the recorded video file size corresponding to the played file size may be: determining the recording moment corresponding to the recorded video file size corresponding to the played file size as the playback time.
[0052] Optionally, in other embodiments, the playback time is obtained based on the recording moment corresponding to the recorded video file size corresponding to the played file size, which can be: mapping the recording moment corresponding to the recorded video file size corresponding to the played file size according to a predetermined mapping relationship, and obtaining the mapping moment corresponding to the recording moment as the playback time.
[0053] In one embodiment, see Figure 3 , obtaining the calibration reference time corresponding to each of the video frames, and calibrating the playback time with the calibration reference time to obtain the calibration time, may include: step S310, obtaining the display timestamp corresponding to each of the video frames; step S320, calculating the timestamp difference between the display timestamp corresponding to each of the video frames and the display timestamp corresponding to the previous video frame; step S330, adding the timestamp difference to the playback time to obtain a first superimposed time; step S340, obtaining the calibration time according to the first superimposed time.
[0054] The display timestamp (PTS: Presentation Time Stamp) corresponding to the video frame indicates the predetermined timestamp at which the video frame should be displayed or played. Since the display timestamp corresponding to each video frame in the pre-recorded video changes at a uniform speed as the video frames are played, when playing each video frame, the timestamp difference between the display timestamp corresponding to each video frame and the display timestamp corresponding to the previous video frame is calculated, and the timestamp difference is added to the playback time to obtain a first superposition time. The calibration time is obtained based on the first superposition time, and the playback time can be calibrated according to the display timestamp of the current video frame to obtain a calibration time that is consistent with the current playback situation and changes uniformly with the playback order. In this embodiment, the calibration reference time is the timestamp difference.
[0055] Furthermore, in one embodiment, obtaining the calibration time according to the first superposition time may include one of the following methods:
[0056] First, determining the first superposition time as the calibration time;
[0057] The second method is to perform estimation processing based on the size change data of the played file to obtain a first adjustment time, and adjust the first superposition time based on the first adjustment time to obtain the calibration time.
[0058] In the first method, the first superposition time is directly determined as the calibration time. Since the calibration time is obtained by calibrating the playback time according to the display timestamp of the current video frame, this method can effectively obtain a calibration time that is consistent with the current playback situation and changes uniformly with the playback order.
[0059] In the second method, the first adjustment time is obtained by estimating the size change data of the played file, and the first superposition time is adjusted according to the first adjustment time. The adjusted first superposition time is used as the calibration time. This method can further consider the reliable calibration effect when calibrating when playing subsequent video frames, and avoid excessive or weak calibration in subsequent video frames as the calibration proceeds.
[0060] The played file size change data may be data on changes in the sizes of multiple played files obtained when playing the current video frame and multiple previous video frames. The played file size change data may specifically be the difference between the sizes of two adjacent played files among the multiple played file sizes. A preset adjustment time matching the played file size change data may be retrieved from a preset first adjustment table as the first adjustment time.
[0061] Among them, the first superposition time is adjusted according to the first adjustment time to obtain the calibration time, which can be specifically: the first adjustment time is added to the first superposition time to obtain the calibration time; or the first adjustment time and the first superposition time are processed according to other predetermined strategies to obtain the calibration time.
[0062] In one embodiment, obtaining the calibration reference time corresponding to each of the video frames and calibrating the playback time with the calibration reference time to obtain the calibration time may include: obtaining the loading time difference between the loading time of each of the video frames and the loading time of the previous video frame; adding the loading time difference to the playback time to obtain a second superimposed time; and obtaining the calibration time based on the second superimposed time.
[0063] In this embodiment, the loading time difference between each video frame's loading time and the previous video frame's loading time is obtained, and the loading time difference is added to the playback time to obtain a second superposition time. The calibration time is obtained based on the second superposition time. Since video frames are typically loaded at a uniform speed, calibration is performed based on the video frame loading situation to obtain a calibration time that conforms to the video frame loading situation and changes uniformly with the playback order. In this embodiment, the calibration reference time is the loading time difference.
[0064] Furthermore, in one embodiment, obtaining the calibration time according to the second superposition time may include one of the following methods:
[0065] First, the second superposition time is determined as the calibration time;
[0066] The second method is to perform estimation processing based on the size change data of the played file to obtain a second adjustment time, and adjust the second superposition time based on the second adjustment time to obtain the calibration time.
[0067] In the first method, the second superposition time is directly determined as the calibration time. Since the calibration time is obtained by calibrating the playback time according to the loading situation, this method can effectively obtain a calibration time that conforms to the video frame loading situation and changes uniformly with the playback order.
[0068] In the second method, the second adjustment time is obtained by estimating the size change data of the played file, and the second superposition time is adjusted according to the second adjustment time. The adjusted second superposition time is used as the calibration time. This method can further consider the reliable calibration effect when calibrating when playing subsequent video frames, and avoid excessive or weak calibration in subsequent video frames as the calibration proceeds.
[0069] The played file size change data may be multiple played file size change data obtained when playing the current video frame and multiple previous video frames. The played file size change data may specifically be the difference between the sizes of two adjacent played files among the multiple played file sizes. A preset adjustment time matching the played file size change data may be retrieved from a preset second adjustment table as the second adjustment time.
[0070] Among them, the second overlay time is adjusted according to the second adjustment time to obtain the calibration time, which can be specifically: the second adjustment time is added to the second overlay time to obtain the calibration time; or the second adjustment time and the second overlay time are processed according to other predetermined strategies to obtain the calibration time.
[0071] To facilitate better implementation of the playback progress display method provided in the embodiment of the present application, the embodiment of the present application also provides a playback progress display device based on the above playback progress display method. The meanings of the terms herein are the same as those in the above playback progress display method, and the specific implementation details can be referred to the description in the method embodiment. Figure 4 A block diagram of a playback progress display device according to an embodiment of the present application is shown.
[0072] like Figure 4As shown, the playback progress display device 400 may include: an acquisition module 410 that can be used to: obtain the recorded video file size corresponding to the pre-recorded video at each recording moment; an analysis module 420 that can be used to: when playing each video frame of the pre-recorded video, analyze according to the played file size and the recorded video file size corresponding to each recording moment to obtain the playback time; and a calibration module 430 that can be used to: obtain the calibration reference time corresponding to each of the video frames, and calibrate the playback time according to the calibration reference time to obtain the calibration time; and a display module 440 that can be used to: display the playback progress according to the calibration time.
[0073] In some embodiments of the present application, the calibration module 430 can be used to: obtain the display timestamp corresponding to each of the video frames; calculate the timestamp difference between the display timestamp corresponding to each of the video frames and the display timestamp corresponding to the previous video frame; add the timestamp difference to the playback time to obtain a first superposition time; and obtain the calibration time based on the first superposition time.
[0074] In some embodiments of the present application, the calibration module 430 can be used to implement one of the following methods: determining the first superposition time as the calibration time; performing estimated processing based on the size change data of the played file to obtain a first adjustment time, and adjusting the first superposition time based on the first adjustment time to obtain the calibration time.
[0075] In some embodiments of the present application, the calibration module 430 can be used to: obtain the loading time difference between the loading time of each video frame and the loading time of the previous video frame; add the loading time difference to the playback time to obtain a second superposition time; and obtain the calibration time based on the second superposition time.
[0076] In some embodiments of the present application, the calibration module 430 can be used to implement one of the following methods: determining the second superposition time as the calibration time; performing estimated processing based on the size change data of the played file to obtain a second adjustment time, and adjusting the second superposition time based on the second adjustment time to obtain the calibration time.
[0077] In some embodiments of the present application, the analysis module 420 can be used to: determine the recorded video file size corresponding to the played file size; and obtain the playback time based on the recording moment corresponding to the recorded video file size corresponding to the played file size.
[0078] In some embodiments of the present application, before obtaining the recorded video file size corresponding to the pre-recorded video at each recording moment, the device also includes a recording module, which is used to: record the program to be recorded, and record the recorded video file size corresponding to each recording moment according to the target time interval, to obtain the pre-recorded video and the recorded video file size corresponding to the pre-recorded video at each recording moment.
[0079] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the application, the features and functions of two or more modules or units described above can be concretized in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0080] In addition, the present invention also provides an electronic device, such as Figure 5 As shown, Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown, specifically:
[0081] The electronic device may include one or more processors 501, one or more computer-readable storage media memories 502, a power supply 503, an input unit 504, and other components. It will be understood by those skilled in the art that Figure 5 The electronic device structure shown in the figure does not constitute a limitation to the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0082] in:
[0083] Processor 501 is the control center of the electronic device. It utilizes various interfaces and circuits to connect the various components of the entire computer device. By running or executing software programs and / or modules stored in memory 502 and accessing data stored in memory 502, it performs various computer device functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, processor 501 may include one or more processing cores; preferably, processor 501 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interfaces, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 501.
[0084] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0085] The electronic device also includes a power supply 503 for supplying power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 503 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0086] The electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0087] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically, in this embodiment, the processor 501 in the electronic device loads the executable files corresponding to one or more computer program processes into the memory 502 according to the instructions, and the processor 501 runs the computer program stored in the memory 502, thereby realizing the various functions in the aforementioned embodiments of the present application.
[0088] For example, the processor 501 may execute the following steps:
[0089] Obtain the recorded video file size corresponding to each recording moment of the pre-recorded video; when playing each video frame of the pre-recorded video, analyze according to the played file size and the recorded video file size corresponding to each recording moment to obtain the playback time; and obtain the calibration reference time corresponding to each video frame, and calibrate the playback time according to the calibration reference time to obtain the calibration time; display the playback progress according to the calibration time.
[0090] In some embodiments of the present application, obtaining the calibration reference time corresponding to each of the video frames and calibrating the playback time with the calibration reference time to obtain the calibration time includes: obtaining the display timestamp corresponding to each of the video frames; calculating the timestamp difference between the display timestamp corresponding to each of the video frames and the display timestamp corresponding to the previous video frame; adding the timestamp difference to the playback time to obtain a first superimposed time; and obtaining the calibration time based on the first superimposed time.
[0091] In some embodiments of the present application, obtaining the calibration time based on the first superposition time includes one of the following methods: determining the first superposition time as the calibration time; performing estimated processing based on the size change data of the played file to obtain a first adjustment time, and adjusting the first superposition time based on the first adjustment time to obtain the calibration time.
[0092] In some embodiments of the present application, the calibration reference time corresponding to each of the video frames is obtained, and the playback time is calibrated using the calibration reference time to obtain the calibration time, including: obtaining the loading time difference between the loading time of each of the video frames and the loading time of the previous video frame; adding the loading time difference to the playback time to obtain a second superimposed time; and obtaining the calibration time based on the second superimposed time.
[0093] In some embodiments of the present application, obtaining the calibration time based on the second superposition time includes one of the following methods: determining the second superposition time as the calibration time; performing estimated processing based on the size change data of the played file to obtain the second adjustment time, and adjusting the second superposition time based on the second adjustment time to obtain the calibration time.
[0094] In some embodiments of the present application, the analysis based on the played file size and the recorded video file size corresponding to each recording moment to obtain the playback time includes: determining the recorded video file size corresponding to the played file size; and obtaining the playback time based on the recording moment corresponding to the recorded video file size corresponding to the played file size.
[0095] In some embodiments of the present application, before obtaining the recorded video file size corresponding to the pre-recorded video at each recording moment, the method also includes: recording the program to be recorded, and recording the recorded video file size corresponding to each recording moment according to the target time interval, to obtain the pre-recorded video and the recorded video file size corresponding to the pre-recorded video at each recording moment.
[0096] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0097] To this end, an embodiment of the present application further provides a storage medium storing a computer program, which can be loaded by a processor to execute the steps of any method provided in the embodiment of the present application.
[0098] The storage medium may be a computer-readable storage medium, and the storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0099] Since the computer program stored in the storage medium can execute the steps of any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0100] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art that are not disclosed herein.
[0101] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.
Claims
1. A method for displaying playback progress, characterized in that: include: Get the recorded video file size corresponding to each recording time of the pre-recorded video; When playing each video frame of the pre-recorded video, analyzing the size of the played file and the size of the recorded video file corresponding to each recording moment to obtain the playback time; as well as, Obtaining a calibration reference time corresponding to each of the video frames, and calibrating the playback time according to the calibration reference time to obtain a calibration time; The playback progress is displayed according to the calibration time.
2. The method according to claim 1, characterized in that The obtaining of the calibration reference time corresponding to each of the video frames, and calibrating the playback time using the calibration reference time to obtain the calibration time, includes: Obtaining a display timestamp corresponding to each of the video frames; Calculating a timestamp difference between a display timestamp corresponding to each video frame and a display timestamp corresponding to a previous video frame; Adding the timestamp difference to the playback time to obtain a first superposition time; The calibration time is obtained according to the first superposition time.
3. The method according to claim 2, characterized in that The obtaining of the calibration time according to the first superposition time includes one of the following methods: determining the first superposition time as the calibration time; An estimation process is performed based on the size change data of the played file to obtain a first adjustment time, and the first superposition time is adjusted based on the first adjustment time to obtain the calibration time.
4. The method according to claim 1, wherein The obtaining of the calibration reference time corresponding to each of the video frames, and calibrating the playback time using the calibration reference time to obtain the calibration time, includes: Obtaining a loading time difference between the loading time of each video frame and the loading time of the previous video frame; Adding the loading time difference to the playing time to obtain a second superposition time; The calibration time is obtained according to the second superposition time.
5. The method according to claim 4, characterized in that Obtaining the calibration time according to the second superposition time includes one of the following methods: determining the second superposition time as the calibration time; An estimation process is performed based on the size change data of the played file to obtain a second adjustment time, and the second superposition time is adjusted based on the second adjustment time to obtain the calibration time.
6. The method according to claim 1, characterized in that The analyzing the size of the played file and the size of the recorded video file corresponding to each recording moment to obtain the playback time includes: Determine the size of the recorded video file corresponding to the size of the played file; The playback time is obtained according to the recording time corresponding to the recorded video file size corresponding to the played file size.
7. The method according to any one of claims 1 to 6, characterized in that Before obtaining the recorded video file size corresponding to each recording time of the pre-recorded video, the method further includes: The program to be recorded is recorded, and the recorded video file size corresponding to each recording moment is recorded according to the target time interval, so as to obtain the pre-recorded video and the recorded video file size corresponding to each recording moment of the pre-recorded video.
8. A playback progress display device, characterized in that: include: An acquisition module is used to: obtain the recorded video file size corresponding to each recording time of the pre-recorded video; An analysis module, configured to: when playing each video frame of the pre-recorded video, analyze the size of the played file and the size of the recorded video file corresponding to each recording moment to obtain a playback time; as well as, A calibration module, configured to obtain a calibration reference time corresponding to each of the video frames, and calibrate the playback time according to the calibration reference time to obtain a calibration time; The display module is used to display the playback progress according to the calibration time.
9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a device, the device is caused to perform the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 7.