Video play starting control method and device

By determining the target keyframe and buffered data during the video playback process, and dynamically controlling the video playback, the problem of waiting time and lag after the video jump is solved, and fast start and stable playback is achieved.

CN120264085APending Publication Date: 2025-07-04BEIJING BITAUTO INTERNET INFORMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510406417.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

During video playback, due to the influence of the video file size, network transmission speed and equipment processing capabilities after the video jump, videos with smaller video bit rates need to wait for loading, while videos with larger bit rates are prone to stuttering, and the existing technology cannot effectively balance the broadcast waiting time and stuttering.

Method used

By receiving the video jump instruction, the target keyframe, the target buffer data amount and the start-up detection interval are determined, the buffer data is loaded based on the target keyframe, and the current buffer data amount is detected according to the start-up detection interval, and the video playback is controlled in response to the current buffer data amount reaching the target buffer data amount.

Benefits of technology

It reduces the waiting time after the video is redirected, and at the same time reduces the lag after the start of the broadcast, dynamically controls the accumulated data required for video playback, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120264085A_ABST
    Figure CN120264085A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a video play starting control method and device, and the method comprises the steps: determining a target key frame, a target buffer data size and a play starting detection interval according to a video jump instruction after the video jump instruction is received, loading buffer data based on the target key frame, and detecting the current buffer data size according to the play starting detection interval, in response to the fact that the current buffer data volume is larger than or equal to the target buffer data volume, the video corresponding to the video jump instruction is controlled to be played, and therefore unnecessary data decoding operation can be reduced, the accumulated data volume needed by video playing can be dynamically controlled, the waiting time after video jump is shortened, and the video playing efficiency is improved. And the lagging condition after the start of seeding is considered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video playback, and more particularly, to a video start-up control method and apparatus. Background Art

[0002] In the traditional video playback process, after the user makes a jump, due to the influence of the video file size, network transmission speed, and device processing capacity, the video needs to wait for a certain period of time before it can be played. In the prior art, for videos with different bitrates, the cumulative duration required for start-up is the same. As a result, a video with a relatively small bitrate still needs to wait for loading even when the cumulative data volume is sufficient, while a video with a relatively large bitrate is difficult to obtain sufficient cumulative data volume within the cumulative duration, and is prone to stuttering. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide a video start-up control method and apparatus to reduce the decoding of unnecessary data and achieve a balance between reducing the start-up waiting time after video jump and reducing stuttering after start-up.

[0004] In a first aspect, an embodiment of the present invention provides a video start-up control method, the method comprising:

[0005] Receiving a video jump instruction;

[0006] Determining a target key frame, a target buffer data volume, and a start-up detection interval according to the video jump instruction, where the start-up detection interval is the time interval between two operations of detecting the current buffer data volume;

[0007] Loading buffer data based on the target key frame, and detecting the current buffer data volume at the start-up detection interval;

[0008] In response to the current buffer data volume being greater than or equal to the target buffer data volume, controlling the playback of the video corresponding to the video jump instruction.

[0009] Optionally, the video jump instruction includes a jump time point, a video bitrate, and a maximum buffer duration.

[0010] Optionally, the determining the target key frame, the target buffer data volume, and the start-up detection interval according to the video jump instruction includes:

[0011] Determining the target key frame according to the jump time point;

[0012] Determining the target buffer data volume according to the video bitrate and the maximum buffer duration;

[0013] Determining the start-up detection interval according to the video bitrate.

[0014] Optionally, determining the target key frame according to the jump time point includes:

[0015] Determining the two key frames closest to the jump time point in the key frames as the first key frame and the second key frame respectively, where the time stamp of the first key frame is before the time stamp of the second key frame;

[0016] In response to the distance between the jump time point and the time stamp of the first key frame being greater than a first predetermined value, and the distance between the jump time point and the time stamp of the second key frame being less than a second predetermined value, determining the second key frame as the target key frame;

[0017] In response to the distance between the jump time point and the time stamp of the first key frame being not greater than the first predetermined value, or the distance between the jump time point and the time stamp of the first key frame being greater than the first predetermined value, and the distance between the jump time point and the time stamp of the second key frame being greater than or equal to the second predetermined value, determining the first key frame as the target key frame.

[0018] Optionally, determining the target buffer data volume according to the video bit rate and the maximum buffer duration includes:

[0019] Determining a first buffer data volume according to the video bit rate, and an estimated buffer duration required to load the data of the first buffer data volume;

[0020] Determining the maximum buffer data volume that can be loaded within the maximum buffer duration according to the maximum buffer duration;

[0021] In response to the estimated buffer duration not exceeding the maximum buffer duration, determining the first buffer data volume as the target buffer data volume;

[0022] In response to the estimated buffer duration exceeding the maximum buffer duration, determining the maximum buffer data volume as the target buffer data volume.

[0023] In a second aspect, an embodiment of the present invention provides a video start-up control device, and the device includes:

[0024] A receiving unit, configured to receive a video jump instruction;

[0025] A data determination unit, configured to determine a target key frame, a target buffer data volume, and a start-up detection interval according to the video jump instruction, where the start-up detection interval is the time interval between two operations of detecting the current buffer data volume;

[0026] A loading unit, configured to load buffer data based on the target key frame, and detect the current buffer data volume at the start-up detection interval;

[0027] The playback unit is configured to start playing the video in response to the current buffered data volume being greater than or equal to the target buffered data volume.

[0028] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor. The memory is used to store one or more computer program instructions. Among them, the one or more computer program instructions are executed by the processor to implement the method described in the first aspect of the embodiment of the present invention.

[0029] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the method described in the first aspect of the embodiment of the present invention is implemented.

[0030] In a fifth aspect, an embodiment of the present invention provides a computer program product. When the computer program product runs on a computer, the computer is caused to execute the method described in the first aspect of the embodiment of the present invention.

[0031] In the embodiment of the present invention, after receiving a video jump instruction, the target key frame, the target buffered data volume, and the start-play detection interval are determined according to the video jump instruction. The buffered data is loaded based on the target key frame, and the current buffered data volume is detected at the start-play detection interval. In response to the current buffered data volume being greater than or equal to the target buffered data volume, the video corresponding to the video jump instruction is controlled to be played. Thus, the embodiment of the present invention can reduce unnecessary data decoding operations and dynamically control the cumulative data volume required for video playback, thereby reducing the waiting time after video jump while taking into account the stuttering situation after start-play. Description of the Drawings

[0032] Through the following description of the embodiments of the present invention with reference to the drawings, the above and other objects, features, and advantages of the present invention will become clearer. In the drawings:

[0033] Figure 1 is a flowchart of the video start-play control method according to the embodiment of the present invention;

[0034] Figure 2 is a schematic diagram of the video coding sequence according to the embodiment of the present invention;

[0035] Figure 3 is a flowchart of the two-way search method according to the embodiment of the present invention;

[0036] Figure 4 is a flowchart of the method for determining the target buffered data volume according to the embodiment of the present invention;

[0037] Figure 5 is a schematic diagram of the video start-play control device according to the embodiment of the present invention;

[0038] Figure 6 It is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed implementation manners

[0039] The following describes the present application based on embodiments, but the present application is not limited to these embodiments. In the following detailed description of the present application, some specific details are described in detail. Those skilled in the art can fully understand the present application without the description of these details. In order to avoid obscuring the essence of the present application, well-known methods, processes, procedures, components and circuits are not described in detail.

[0040] In addition, those of ordinary skill in the art should understand that the drawings provided herein are for illustrative purposes only, and the drawings are not necessarily drawn to scale.

[0041] Unless the context clearly requires otherwise, words such as "including" and "comprising" in the entire application document should be construed in an inclusive sense rather than an exclusive or exhaustive sense; that is, it is the meaning of "including but not limited to".

[0042] In the description of the present application, it should be understood that terms such as "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance. In addition, in the description of the present application, unless otherwise specified, the meaning of "a plurality" is two or more.

[0043] During video playback, after the user clicks to jump, it is necessary to wait for enough buffered data to be loaded and decoded before playback can start. In the prior art, in order to ensure that there is no stuttering during playback, it is generally selected to start playback after waiting for a fixed cumulative duration. However, due to different video bitrates, there are large differences in the file sizes of different videos, and the amount of buffered data accumulated within a fixed duration is different, resulting in a longer start-up waiting time for videos with a smaller video bitrate, and stuttering is likely to occur after the start-up of videos with a larger video bitrate. Therefore, the embodiments of the present invention provide a video start-up control method, which balances between improving the video start-up speed and reducing stuttering after start-up by determining a target cumulative data amount and a target key frame according to a video jump instruction.

[0044] Figure 1 It is a flowchart of the video start-up control method according to an embodiment of the present invention. As Figure 1 shown, the video start-up control method specifically includes the following steps:

[0045] Step S110: Receive a video jump instruction. Optionally, the video jump instruction may include information such as the jump time point, video bit rate, and maximum buffering duration. Among them, the maximum buffering duration is the maximum waiting duration that the user can accept. After exceeding this duration, the impact of the waiting time on the user experience will be greater than the impact of stuttering after the video starts playing. Therefore, if the buffering duration reaches the maximum buffering duration, regardless of whether the accumulated data volume is sufficient, the video start is directly controlled. The maximum buffering duration can be adjusted according to actual business requirements.

[0046] Step S120: Determine the target key frame, target buffering data volume, and start play detection interval according to the video jump instruction. The start play detection interval is the time interval between two operations of detecting the current buffering data volume.

[0047] Figure 2 It is a schematic diagram of the video coding sequence of an embodiment of the present invention. As Figure 2 shown, in the video coding sequence, there are mainly three types of coding frames: I frames (key frames, also known as intra-coded picture frames), P frames (forward-predicted coded picture frames), and B frames (bi-directionally predicted coded picture frames). The arrows between the frames represent the dependency relationships during decoding. Among them, an I frame is a complete picture frame, independent of other frames, and only the data of this frame is required to complete decoding. A P frame is generated depending on the previous I frame or P frame, and stores the image change amount compared with the previous I frame or P frame. When decoding a P frame, it is necessary to first decode the I frame or P frame on which the P frame depends, and reconstruct the picture of the current frame according to the information in the I frame or P frame on which it depends. A B frame needs to refer to the I frames or P frames before and after it to be generated, and uses the information of the front and back frames to predict the content of the current frame. When decoding, it needs to be combined with the I frames or P frames before and after. That is to say, the key frame is the basis for video decoding, and the corresponding key frame needs to be determined first to decode the subsequent video.

[0048] In an optional implementation manner, when the video jump instruction includes the jump time point, video bit rate, and maximum buffering duration, determining the target key frame, target buffering data volume, and start play detection interval according to the video jump instruction may include: determining the target key frame according to the jump time point, determining the target buffering data volume according to the video bit rate and maximum buffering duration, and determining the start play detection interval according to the video bit rate.

[0049] Due to different video bitrates, there may be significant differences in the overall buffering duration of the video. In this case, if the current buffered data volume is detected based on the same start-play detection interval, on the one hand, the frequent detection process may lead to ineffective detection in videos with a large video bitrate, resulting in waste of computing resources. On the other hand, when the video bitrate is small, the relatively large start-play detection interval will lead to an increase in waiting time. Therefore, in this embodiment, the start-play detection interval is dynamically determined according to the video bitrate, so that the duration of the start-play detection interval increases as the video bitrate increases, effectively avoiding the above problems. Optionally, determining the start-play detection interval according to the video bitrate can be specifically implemented based on the quantization mapping relationship between the video bitrate and the start-play detection interval. For example, the video bitrate and the start-play detection interval are associated in the form of a function or a corresponding table, and the start-play detection interval corresponding to the video bitrate is determined based on the pre-constructed function or corresponding table.

[0050] When the video jumps, the jump time point may be on a key frame of the video or between two key frames of the video. If the jump time point is on a key frame, the key frame can be directly selected as the target key frame. If the jump time point is between two key frames, in order to avoid the progress bar from jumping when the video starts playing, the key frame in the front of the two key frames can be directly selected as the target key frame, that is, forward search. However, when the jump time point is far from the previous key frame, since only the video data after the jump time point is actually required for the video to start playing, selecting the previous key frame as the target key frame and starting to load from the target key frame may result in loading too much unnecessary data volume. Therefore, the embodiment of the present invention also provides a two-way search method for dynamically deciding whether to use the forward search or the backward search method to determine the target key frame according to the distance between the jump time point and the two key frames. The backward search method refers to selecting the key frame in the front of the two key frames as the target key frame.

[0051] Figure 3 is the flowchart of the two-way search method of the embodiment of the present invention. In an optional implementation manner, as Figure 3 shown, the two-way search method may specifically include the following steps:

[0052] Step S310, respectively determine the two key frames closest to the jump time point in the key frames as the first key frame and the second key frame, where the time stamp of the first key frame is before the time stamp of the second key frame.

[0053] Step S320, in response to the time stamp distance between the jump time point and the first key frame being greater than a first predetermined value, and the time stamp distance between the jump time point and the second key frame being less than a second predetermined value, determine the second key frame as the target key frame.

[0054] Among them, the first preset value is mainly used to regulate the video loading speed, and the second preset value is mainly used to ensure the user experience. The first preset value and the second preset value can be adjusted according to different requirements for loading speed and user experience in actual services. For example, when the actual service has a high demand for loading speed and pays less attention to the user experience, the first preset value can be reduced and the second preset value can be increased. When the actual service has a high demand for user experience, or the network speed is fast and the loading speed is sufficient to meet the demand, the first preset value can be increased and the second preset value can be reduced. It should be understood that there is no fixed correlation between the first preset value and the second preset value. When adjusting, only one of them can be adjusted, or the values of both can be adjusted at the same time. This embodiment does not limit this.

[0055] Step S330, in response to that the time stamp distance between the jump time point and the first key frame is not greater than the first preset value, or the time stamp distance between the jump time point and the first key frame is greater than the first preset value, and the time stamp distance between the jump time point and the second key frame is greater than or equal to the second preset value, determine the first key frame as the target key frame.

[0056] In this embodiment, by dynamically determining whether to use forward search or backward search to determine the target key frame according to the distances between the jump time point and the two closest key frames, when the distance from the first key frame is far and the distance from the second key frame will not be perceived by the user, the second key frame is selected as the target key frame, which avoids loading unnecessary data while ensuring the user experience and improves the video start-up speed.

[0057] Figure 4 It is a flowchart of the method for determining the target buffer data volume according to an embodiment of the present invention. In an optional implementation manner, as Figure 4 shown, determining the target buffer data volume according to the video bit rate and the maximum buffer duration may specifically include the following steps:

[0058] Step S410, determine the first buffer data volume according to the video bit rate, and the estimated buffer duration required to load the data of the first buffer data volume. The video bit rate refers to the data traffic used by the video file per unit time. The larger the video bit rate, the larger the cumulative data volume required to ensure that there is no stutter within a certain time after the video starts playing.

[0059] Specifically, the amount of data required to play a video within a certain period of time is the product of the video bitrate and the playback duration. Therefore, determining the first buffer data amount according to the video bitrate specifically includes: obtaining the video bitrate and the buffer duration, and determining the first buffer data amount according to the video bitrate and the buffer duration. Among them, the buffer duration can be pre-configured on the device that executes the video start control method, or obtained from the video jump instruction, and this embodiment does not limit this. By adjusting the buffer duration, the balance between the start-up speed and the stuttering situation can be achieved.

[0060] Step S420, determine the maximum buffer data amount that can be loaded within the maximum buffer duration according to the maximum buffer duration. The maximum buffer data amount is the upper limit of the data amount that can be accumulated within the buffer time acceptable to the user.

[0061] It should be understood that although there is a sequential relationship in the expression between step S410 and step S420 in this embodiment, there is no fixed execution order between the two steps during actual execution. Either of the two steps can be executed first, and the other step can be executed sequentially, or the two steps can be executed simultaneously.

[0062] Step S430, determine whether the estimated buffer duration exceeds the maximum buffer duration. If it does not exceed, execute step S440; otherwise, execute step S450.

[0063] Step S440, in response to the estimated buffer duration not exceeding the maximum buffer duration, determine the first buffer data amount as the target buffer data amount.

[0064] Step S450, in response to the estimated buffer duration exceeding the maximum buffer duration, determine the maximum buffer data amount as the target buffer data amount.

[0065] In this embodiment, by dynamically determining the first buffer data amount and the corresponding estimated buffer duration according to the video bitrate, and combining the maximum buffer duration to determine the target buffer data amount, the target buffer data amount can be dynamically calculated according to the size of the video bitrate, avoiding the problems of long start-up waiting time and stuttering after start-up caused by too large or too small buffer data amount, and improving the user experience.

[0066] Step S130, load buffer data based on the target key frame, and detect the current buffer data amount at the start-up detection interval. If the current buffer data amount reaches the target buffer data amount, it means that enough data has been accumulated, and step S140 can be executed. Among them, loading buffer data includes downloading video data and decoding video data, and the current buffer data amount is only counted after the video data decoding is completed.

[0067] Step S140, in response to the current buffer data amount being greater than or equal to the target buffer data amount, control the playback of the video corresponding to the video jump instruction.

[0068] In an alternative implementation, when determining the target buffer data volume and the start-up detection interval, the current network speed can also be combined for calculation. The higher the current network speed, the shorter the time required to load data other than the target buffer data volume, and the shorter the buffer duration required to ensure no lag. Therefore, the target buffer data volume decreases as the current network speed increases. Similarly, the start-up detection interval can also decrease as the current network speed increases. The specific calculation process is similar to the aforementioned data determination process and can be calculated based on common mathematical means, which will not be elaborated here.

[0069] In this embodiment, after receiving the video jump instruction, the target key frame, the target buffer data volume, and the start-up detection interval are determined according to the video jump instruction. The buffer data is loaded based on the target key frame, and the current buffer data volume is detected at the start-up detection interval. In response to the current buffer data volume being greater than or equal to the target buffer data volume, the video corresponding to the video jump instruction is controlled to play. Thus, the embodiments of the present invention use the target key frame as a separator, only need to load the data after the target key frame, can reduce unnecessary data decoding operations, and dynamically control the cumulative data volume and the start-up detection interval required for video playback, thereby reducing the waiting time after video jump while taking into account the lag situation after start-up.

[0070] Figure 5 is a schematic diagram of the video start-up control device according to the embodiments of the present invention. As Figure 5 shown, the video start-up control device of this embodiment includes a receiving unit 51, a data determination unit 52, a loading unit 53, and a playing unit 54.

[0071] The receiving unit 51 is configured to receive a video jump instruction. Optionally, the video jump instruction includes a jump time point, a video bit rate, and a maximum buffer duration.

[0072] The data determination unit 52 is configured to determine a target key frame, a target buffer data volume, and a start-up detection interval according to the video jump instruction, where the start-up detection interval is the time interval between two operations of detecting the current buffer data volume.

[0073] In an alternative implementation, the data determination unit 52 includes a first data determination subunit, a second data determination subunit, and a third data determination subunit. The first data determination subunit is configured to determine the target key frame according to the jump time point, the second data determination subunit is configured to determine the target buffer data volume according to the video bit rate and the maximum buffer duration, and the third data determination subunit is configured to determine the start-up detection interval according to the video bit rate.

[0074] Optionally, the first data determination subunit is specifically configured to: respectively determine the two key frames closest to the jump time point in the key frames as the first key frame and the second key frame, where the time stamp of the first key frame is before the time stamp of the second key frame. In response to the distance between the jump time point and the time stamp of the first key frame being greater than a first predetermined value, and the distance between the jump time point and the time stamp of the second key frame being less than a second predetermined value, determine the second key frame as the target key frame. In response to the distance between the jump time point and the time stamp of the first key frame being not greater than the first predetermined value, or the distance between the jump time point and the time stamp of the first key frame being greater than the first predetermined value, and the distance between the jump time point and the time stamp of the second key frame being greater than or equal to the second predetermined value, determine the first key frame as the target key frame.

[0075] Optionally, the second data determination subunit is specifically configured to: determine a first buffer data volume according to the video bit rate, and an estimated buffer duration required to load data of the first buffer data volume, determine a maximum buffer data volume that can be loaded within the maximum buffer duration according to the maximum buffer duration, in response to the estimated buffer duration not exceeding the maximum buffer duration, determine the first buffer data volume as the target buffer data volume, and in response to the estimated buffer duration exceeding the maximum buffer duration, determine the maximum buffer data volume as the target buffer data volume.

[0076] The loading unit 53 is configured to load buffer data based on the target key frame, and detect the current buffer data volume at the start detection interval;

[0077] The playing unit 54 is configured to, in response to the current buffer data volume being greater than or equal to the target buffer data volume, control the playing of the video corresponding to the video jump instruction.

[0078] In this embodiment, after receiving the video jump instruction, the target key frame, the target buffer data volume, and the start detection interval are determined according to the video jump instruction, the buffer data is loaded based on the target key frame, the current buffer data volume is detected at the start detection interval, and in response to the current buffer data volume being greater than or equal to the target buffer data volume, the playing of the video corresponding to the video jump instruction is controlled. Thus, the embodiment of the present invention uses the target key frame as a separator, and only needs to load the data after the target key frame, which can reduce unnecessary data decoding operations, and dynamically control the cumulative data volume and the start detection interval required for video playing, so as to reduce the waiting time after video jump while taking into account the stuttering situation after starting playback.

[0079] Figure 6 is a schematic diagram of the electronic device according to the embodiment of the present invention. As Figure 6 shown, Figure 6The electronic device shown is a general video playback device, which includes a general computer hardware structure, which at least includes a processor 61 and a memory 62. The processor 61 and the memory 62 are connected through a bus 63. The memory 62 is adapted to store instructions or programs executable by the processor 61. The processor 61 can be an independent microprocessor or a set of one or more microprocessors. Thus, by executing the instructions stored in the memory 62, the processor 61 executes the method flow of the embodiment of the present invention as described above to implement data processing and control of other devices. The bus 63 connects the above-mentioned multiple components together and at the same time connects the above-mentioned components to a display controller 64, a display device, and an input / output (I / O) device 65. The input / output (I / O) device 65 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a body sensing input device, a printer, and other devices well known in the art. Typically, the input / output device 65 is connected to the system through an input / output (I / O) controller 66.

[0080] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a device (equipment), or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.

[0081] The present application is described with reference to the flowcharts of methods, devices (equipment), and computer program products according to the embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.

[0082] These computer program instructions can be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, and the instruction device implements the process Figure 1 the functions specified in one process or multiple processes.

[0083] These computer program instructions can also be provided to the processor of a general computer, a special computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices produce a device for implementing the functions specified in Figure 1 one process or multiple processes.

[0084] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, which is used for a computer to execute the above-mentioned partial or all method embodiments.

[0085] That is, those skilled in the art can understand that all or part of the steps in implementing the above-mentioned method embodiments can be completed by specifying relevant hardware through a program. This program is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.

[0086] The foregoing are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various modifications and changes can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

Claims

1. A video start-up control method, characterized in that The method includes: Receiving a video jump instruction; Determining a target key frame, a target buffer data volume, and a start-play detection interval according to the video jump instruction, where the start-play detection interval is the time interval between two operations of detecting the current buffer data volume; Loading buffer data based on the target key frame, and detecting the current buffer data volume at the start-play detection interval; In response to the current buffer data volume being greater than or equal to the target buffer data volume, controlling the playback of the video corresponding to the video jump instruction.

2. The method according to claim 1, characterized in that, The video jump instruction includes a jump time point, a video bit rate, and a maximum buffer duration.

3. The method according to claim 2, wherein The determining the target key frame, the target buffer data volume, and the start-play detection interval according to the video jump instruction includes: Determining the target key frame according to the jump time point; Determining the target buffer data volume according to the video bit rate and the maximum buffer duration; Determining the start-play detection interval according to the video bit rate.

4. The method according to claim 3, characterized in that, The determining the target key frame according to the jump time point includes: Determining the two key frames closest to the jump time point among the key frames as the first key frame and the second key frame respectively, where the time stamp of the first key frame is before the time stamp of the second key frame; In response to the distance between the jump time point and the time stamp of the first key frame being greater than a first predetermined value, and the distance between the jump time point and the time stamp of the second key frame being less than a second predetermined value, determining the second key frame as the target key frame; In response to the distance between the jump time point and the time stamp of the first key frame being not greater than the first predetermined value, or the distance between the jump time point and the time stamp of the first key frame being greater than the first predetermined value, and the distance between the jump time point and the time stamp of the second key frame being greater than or equal to the second predetermined value, determining the first key frame as the target key frame.

5. The method according to claim 3, characterized in that, The determining the target buffer data volume according to the video bit rate and the maximum buffer duration includes: Determining a first buffer data volume according to the video bit rate, and an estimated buffer duration required to load the data of the first buffer data volume; Determining the maximum buffer data volume that can be loaded within the maximum buffer duration according to the maximum buffer duration; In response to the estimated buffer duration not exceeding the maximum buffer duration, determining the first buffer data volume as the target buffer data volume; In response to the estimated buffer duration exceeding the maximum buffer duration, determining the maximum buffer data volume as the target buffer data volume.

6. A video start-up control device, characterized in that, The apparatus includes: A receiving unit configured to receive a video jump instruction; A data determining unit configured to determine a target key frame, a target buffer data volume, and a start-play detection interval according to the video jump instruction, where the start-play detection interval is the time interval between two operations of detecting the current buffer data volume; A loading unit configured to load buffer data based on the target key frame, and detect the current buffer data volume at the start-play detection interval; A playback unit configured to, in response to the current buffer data volume being greater than or equal to the target buffer data volume, control the playback of the video corresponding to the video jump instruction.

7. An electronic device, comprising a memory and a processor, characterized in that, The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1-5.

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

9. A computer program product, characterized in that, When the computer program product runs on a computer, the computer is caused to execute the method according to any one of claims 1-5.