[go: up one dir, main page]

CN107087210B - Method and terminal for judging video playing state based on cache time - Google Patents

Method and terminal for judging video playing state based on cache time Download PDF

Info

Publication number
CN107087210B
CN107087210B CN201710203633.6A CN201710203633A CN107087210B CN 107087210 B CN107087210 B CN 107087210B CN 201710203633 A CN201710203633 A CN 201710203633A CN 107087210 B CN107087210 B CN 107087210B
Authority
CN
China
Prior art keywords
module
video
time
playing
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710203633.6A
Other languages
Chinese (zh)
Other versions
CN107087210A (en
Inventor
李斌
王玉伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Electric Co Ltd filed Critical Hisense Electric Co Ltd
Priority to CN201710203633.6A priority Critical patent/CN107087210B/en
Publication of CN107087210A publication Critical patent/CN107087210A/en
Application granted granted Critical
Publication of CN107087210B publication Critical patent/CN107087210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8455Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of the video stream

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides a method and a terminal for judging video playing state based on cache time, wherein the method comprises the following steps: determining timestamp information in a plurality of data frames received by a decoding module; determining a second cache time of the decoding module and a subsequent module of the decoding module according to the timestamp information and the current video playing time; and judging whether to continue playing the video according to the second cache time and the sum of the first cache time in the previous module of the decoding module. The method enables the determined terminal caching time to be closer to the actual caching quantity, so that the caching times are reduced, and the user experience is improved.

Description

Method and terminal for judging video playing state based on cache time
Technical Field
The invention relates to a computer technology, in particular to a method and a terminal for judging a video playing state based on cache time.
Background
With the continuous increase of network bandwidth, users can directly watch network videos through terminals. In the playing process of the network video, when the network downloading speed is lower than the film source code rate and the cache data in the terminal is continuously reduced, the playing will be blocked.
In the prior art, a terminal determines the amount of network video data cached in the terminal through a specific algorithm, and when the amount of the network video data cached is lower than a preset buffering start threshold, the terminal suspends playing and starts buffering. And when the data volume cached by the buffering reaches a preset buffering ending threshold, the terminal ends the buffering and continues playing.
However, the amount of network video data cached in the terminal determined by using the method in the prior art is not accurate enough, so that the buffering times are too many, and the user experience is influenced.
Disclosure of Invention
The invention provides a method and a terminal for judging a video playing state based on cache time, which are used for solving the problem of excessive cache times caused by inaccurate calculation of the cache time in the terminal in the prior art.
The first aspect of the present invention provides a method for determining a video playing status based on a buffering time, including:
determining timestamp information in a plurality of data frames received by a decoding module;
determining a second cache time of the decoding module and a subsequent module of the decoding module according to the timestamp information and the current video playing time;
and judging whether to continue playing the video according to the sum of the second cache time and the first cache time in the previous module of the decoding module.
Further, the time stamp information includes a maximum audio display time stamp PTS and a maximum video PTS.
Further, the determining a second buffering time in the decoding module and a subsequent module of the decoding module according to the timestamp information and the current video playing time includes:
calculating the difference value between the maximum audio PTS and the current video playing time;
calculating the difference value between the maximum video PTS and the current video playing time;
and taking the minimum value of the difference value between the maximum audio PTS and the current video playing time and the difference value between the maximum video PTS and the current video playing time as the second cache time.
Further, the determining whether to continue playing the video according to the second buffering time and a sum of the first buffering time in a previous module of the decoding module includes:
and if the sum of the second cache time and the first cache time in the previous module of the decoding module is greater than or equal to a preset buffer starting threshold value, the terminal determines to continue playing the video, otherwise, the terminal determines to pause playing the video.
The second aspect of the present invention provides a method for determining a video playing status based on a buffering time, including:
determining first cache time in an audio and video separation module and a previous module of the audio and video separation module;
and judging whether the first cache time in the audio and video separation module and the previous module of the audio and video separation module is greater than or equal to a buffer starting threshold value, if so, determining to continue playing the video, otherwise, determining to continue playing the video according to the method steps of the first aspect.
A third aspect of the present invention provides a terminal, including:
a first determining module for determining timestamp information in the plurality of data frames received by the decoding module;
a second determining module, configured to determine, according to the timestamp information and a current video playing time, a second caching time in the decoding module and a subsequent module of the decoding module;
and the processing module is used for judging whether to continue playing the video according to the second cache time and the sum of the first cache time in the previous module of the decoding module.
Further, the time stamp information includes a maximum audio display time stamp PTS and a maximum video PTS.
Further, the second determining module includes:
a first calculating unit, configured to calculate a difference between the maximum audio PTS and the current video playing time;
a second calculating unit, configured to calculate a difference between the maximum video PTS and the current video playing time;
and the determining unit is used for taking the minimum value of the difference value between the maximum audio PTS and the current video playing time and the difference value between the maximum video PTS and the current video playing time as the second cache time.
Further, the processing module comprises:
the playing unit is used for determining to continue playing the video when the sum of the second cache time and the first cache time in the previous module of the decoding module is greater than or equal to a preset buffer starting threshold value;
and the pause unit is used for determining that the video is paused when the sum of the second cache time and the first cache time in the previous module of the decoding module is less than a preset buffer starting threshold value.
A fourth aspect of the present invention provides a terminal, comprising:
the first determining module is used for determining the first cache time in the audio and video separating module and the previous module of the audio and video separating module;
a second determining module, configured to determine to continue playing the video when the first cache time in the audio/video separating module and the previous module of the audio/video separating module is greater than or equal to a preset buffer start threshold, and determine whether to continue playing the video according to the method steps of the first aspect when the first cache time in the audio/video separating module and the previous module of the audio/video separating module is less than the preset buffer start threshold.
The method and the terminal for judging the video playing state based on the buffering time can estimate the buffering time of the decoding module and the following module thereof according to the timestamp information in a plurality of data frames received by the decoding module and the current video playing time, and the buffering time of the decoding module and the following module thereof cannot be directly read, so that the buffering time is not considered in the prior art, and the method and the terminal can estimate the buffering time of the decoding module and the following module thereof based on the timestamp information of a plurality of data frames received by the decoding module and the current video playing time, and further increase the buffering time to the total buffering time, so that compared with the prior art, the method can ensure that the determined total buffering time of the terminal is closer to the actual total buffering time, thereby reducing the buffering times, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the following briefly introduces the drawings needed to be used in the description of the embodiments or the prior art, and obviously, the drawings in the following description are some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without inventive labor.
Fig. 1 is an exemplary partitioning of modules for video processing in a terminal;
fig. 2 is a schematic flowchart of a first embodiment of a method for determining a video playing status based on a buffering time according to the present invention;
fig. 3 is a schematic flowchart of a second embodiment of a method for determining a video playing status based on a buffering time according to the present invention;
fig. 4 is a schematic flowchart of another embodiment of a method for determining a video playing status based on a buffering time according to the present invention;
fig. 5 is a block diagram of a first embodiment of a terminal according to the present invention;
fig. 6 is a block diagram of a second embodiment of the terminal according to the present invention;
fig. 7 is a block diagram of a third embodiment of the terminal according to the present invention;
fig. 8 is a block diagram of a fourth embodiment of the terminal according to the present invention;
fig. 9 is a block diagram of another terminal according to a first embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is an exemplary division of modules for performing video processing in a terminal, and as shown in fig. 1, the terminal includes a data downloading and caching module, an audio/video separation module, a decoding module, an audio/video synchronization module, and an output module. The data downloading and caching module is used for downloading and caching video data to be played from a network and sending the data to the audio and video separation module, the audio and video separation module is used for carrying out audio and video separation and sending the separated audio data and video data to the decoding module, the decoding module is used for decoding the audio data and the video data respectively and then sending the decoded data to the audio and video synchronization module, and the audio and video synchronization module is used for sending the audio data and the video data to the output module after synchronizing the playing time of the audio data and the video data and outputting the audio data and the video data to the output module and playing the data. In the above video processing process, there may be buffer data amount in a plurality of modules, but the buffer data amount in all the modules may not be directly detected. For example, the data downloading and caching module, the audio/video separation module, and the decoding module may have cached data amounts, where the cached data amounts of the data downloading and caching module and the audio/video separation module may be accurately calculated by determining the playing time, but the cached data amount in the decoding module cannot be calculated, and the cached data amount is not considered in the prior art.
In the prior art, the obtained cache data amount which can be calculated is directly used as the total cache data amount in the terminal, and in this processing mode, the cache data amount used as a basis for judging whether to buffer is smaller than the actual cache data amount in the terminal, so that the situation that buffering is performed when buffering is not needed may occur, the buffering frequency is too much, and the user experience is influenced.
Based on the above problems, the present invention provides a method for determining a video playing state based on a buffering time, which makes the determined total terminal buffering time closer to the actual total terminal buffering time by estimating the decoding module and the buffering time of the subsequent module, thereby reducing the buffering times and improving the user experience.
The invention uses the buffer time to express the buffer data quantity.
Fig. 2 is a schematic flowchart of a first embodiment of a method for determining a video playing status based on a buffering time according to the present invention, as shown in fig. 2, the method includes:
s201, the terminal determines the timestamp information in the plurality of data frames received by the decoding module.
Specifically, the timestamp information includes a Presentation Time Stamp (PTS) and a maximum video PTS.
When the audio and video separation module transmits data to the decoding module, that is, when data frames are transmitted, the terminal can record the PTS of each frame. The PTS of a frame refers to the playing time of the video corresponding to the frame, and the terminal acquires the maximum time among the playing times. This maximum time represents the latest playing time in the video delivered by the audio-video separation module to the decoding module.
Taking the audio PTS as an example, it is assumed that the audio and video separation module transfers 3 data frames to the decoding module, the audio PTS of the first data frame is 1 second, the audio PTS of the second data frame is 5 seconds, and the audio PTS of the third data frame is 10 seconds. The latest playing time corresponding to the video data transmitted from the audio/video separation module to the decoding module is 10 seconds.
S202, the terminal acquires the current video playing time.
The current video playing time refers to the time when the video is currently played, for example, when a video is currently played for 10 seconds, the current video playing time of the video is 10 seconds.
S203, the terminal determines a decoding module and second cache time of the decoding module in a rear module according to the timestamp information and the current video playing time.
The video playing processing of the post module of the decoding module is carried out after the decoding module.
For example, in the module division shown in fig. 1, the following modules of the decoding module refer to an audio and video synchronization module and an output module.
In this step, the terminal may determine the decoding module and its subsequent module, that is, the second buffer time in the module that cannot calculate the buffer time, based on the maximum audio PTS and the maximum video PTS transmitted by the audio/video separation module to the decoding module and the current playing time of the video.
And S204, the terminal judges whether to continue playing the video according to the second cache time and the sum of the first cache time in the previous module of the decoding module.
For example, in the module division shown in fig. 1, the previous modules of the decoding module are an audio/video separation module and a previous module of the audio/video separation module, and the previous module of the audio/video separation module includes a data downloading and buffering module.
Since the buffering time of the audio/video separation module and the previous module thereof can be directly obtained by calculation, the terminal can calculate the buffering time of the audio/video separation module and the previous module thereof in advance before the step. For example, the terminal may determine the buffering time of the data downloading and buffering module by the amount of data stored in the data downloading and buffering module.
In the prior art, the buffering time of the previous module of the decoding module, i.e., the audio/video separation module and the previous module thereof, can be directly read, and the buffering time of the decoding module and the subsequent module thereof cannot be directly read, so that the buffering time is not considered in the prior art, which results in inaccurate total buffering time determined by the terminal. In this embodiment, the terminal may estimate the decoding module and the buffering time of the subsequent module according to the timestamp information and the current video playing time in the plurality of data frames received by the decoding module, that is, based on the timestamp information and the current video playing time of the plurality of data frames received by the decoding module, the buffering time that is not considered in the prior art may be estimated, and further, the buffering time is added to the total buffering time, so that the determined total buffering time of the terminal is closer to the actual total buffering time, thereby reducing the buffering times and improving the user experience.
On the basis of the foregoing embodiment, this embodiment relates to a specific method for determining, by a terminal, a second buffering time in a decoding module and a subsequent module of the decoding module according to timestamp information and a current video playing time, that is, fig. 3 is a schematic flow diagram of a second embodiment of a method for determining a video playing state based on buffering time provided by the present invention, and as shown in fig. 3, the foregoing step S203 specifically includes:
s301, the terminal calculates the difference value between the maximum audio PTS and the current video playing time.
S302, the terminal calculates the difference value between the maximum video PTS and the current video playing time.
S303, the terminal takes the minimum value of the difference value between the maximum audio PTS and the current video playing time and the difference value between the maximum video PTS and the current video playing time as the second buffer time of the decoding module and the subsequent module of the decoding module.
The above formula is explained below by a formula.
Assuming that the maximum audio PTS calculated by the terminal is PTS (maxaudipts), the maximum video PTS is PTS (maxvideo PTS), and the current video playing time is currposition, the decoding module and the second buffer time buffer 2 in the following module can be calculated by using the following formula (1):
buffersize2=MIN((maxVideoPTS–curPosition),(maxAudioPTS–curPosition))(1)
specifically, taking audio as an example, the maximum audio PTS sent by the audio/video separation module to the decoding module represents the maximum data received by the decoding module and its subsequent module, and the current video playing time represents the data consumed by the decoding module and its subsequent module, and the two are subtracted from each other, so that the obtained result is the second buffering time of the decoding module and its subsequent module. For example, the maximum audio PTS sent by the audio/video separation module to the decoding module is 30 seconds, and the current video playing time is 10 seconds, that is, the video is played to the 10 th second at present, which indicates that the decoding module and the subsequent module buffer the buffering time of 20 seconds at this time.
Further, after the terminal respectively obtains the audio buffering time and the video buffering time, the smaller value is used as the final decoding module and the second buffering time of the subsequent module.
On the basis of the foregoing embodiment, the present embodiment relates to a specific method for the terminal to determine whether to continue playing the video according to the sum of the second buffering time and the first buffering time in the previous module of the decoding module, that is, one specific method of the foregoing step S204 is:
and if the sum of the second cache time and the first cache time in the previous module of the decoding module is greater than or equal to a preset buffer starting threshold value, the terminal determines to continue playing the video, otherwise, the terminal determines to pause playing the video.
Specifically, the sum of the second buffer time of the decoding module and the subsequent module of the decoding module and the first buffer time of the audio/video separation module and the previous module of the audio/video separation module is the current total buffer time of the terminal, the total buffer time of the terminal is compared with a preset buffer start threshold, and if the total buffer time of the terminal is greater than or equal to the preset buffer start threshold, the current total buffer time of the terminal is larger, the terminal does not need to be buffered, and the terminal continues to play.
If the sum of the second cache time of the decoding module and the later module of the decoding module and the first cache time of the audio/video separation module and the earlier module of the audio/video separation module is smaller than the preset buffer starting threshold value, the total cache time of the terminal is smaller, and the terminal stops playing and starts buffering.
Compared with the prior art that only the calculable cache time is compared with the preset cache start threshold value, in the embodiment, the sum of the calculable cache time and the cache time determined by the method is compared with the preset cache start threshold value, obviously, compared with the prior art, the cache time compared by the embodiment is larger, so that the number of times of buffering can be obviously reduced, and the user experience is improved.
Fig. 4 is a schematic flowchart of a first embodiment of a method for determining a video playing status based on a buffering time according to another embodiment of the present invention, as shown in fig. 4, the method includes:
s401, the terminal determines an audio and video separation module and first cache time in a previous module of the audio and video separation module.
And S402, the terminal judges whether the first cache time in the audio and video separation module and the previous module of the audio and video separation module is greater than or equal to a preset buffer starting threshold value, if so, S403 is executed, otherwise, the terminal determines whether to continue playing the video according to the method steps in the first embodiment.
And S403, the terminal determines to continue playing the video.
The above process of determining whether to pause playing of the video by the terminal may be periodically performed according to a certain time interval, and when each period starts, the terminal may first perform steps S401 to S403 in this embodiment, that is, the terminal first determines first buffer times in the audio/video separation module and its previous module, and if the buffer times are greater than or equal to a preset buffer start threshold, the terminal continues playing the video without determining a decoding module and its second buffer time in the subsequent module. And only when the first cache time of the audio and video separation module and the previous module is less than the preset buffer starting threshold value, the terminal further determines whether to pause playing the video according to the decoding module and the second cache time of the subsequent module. The processing mode can ensure that the video is directly continuously played when the cache time of the module capable of calculating the cache time is longer, so that the operation times of the terminal can be reduced, and the processing efficiency of the terminal is improved.
Fig. 5 is a block diagram of a first embodiment of a terminal provided in the present invention, and as shown in fig. 5, the terminal includes:
a first determining module 501, configured to determine timestamp information in a plurality of data frames received by the decoding module.
An obtaining module 502 is configured to obtain a current video playing time.
The second determining module 503 is configured to determine the second buffering time of the decoding module and the subsequent modules of the decoding module according to the timestamp information and the current video playing time.
The processing module 504 is configured to determine whether to continue playing the video according to the second buffering time and a sum of the first buffering time in the previous module of the decoding module.
The terminal is used for implementing the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
In another embodiment, the time stamp information includes a maximum audio PTS and a maximum video PTS.
Fig. 6 is a block diagram of a second embodiment of the terminal provided in the present invention, and as shown in fig. 6, the second determining module 503 includes:
the first calculating unit 5031 is configured to calculate a difference between the maximum audio PTS and the current video playing time.
A second calculating unit 5032, configured to calculate a difference between the maximum video PTS and the current video playing time.
The determining unit 5033 is configured to use a minimum value of a difference between the maximum audio PTS and the current video playing time and a difference between the maximum video PTS and the current video playing time as the second buffering time.
Fig. 7 is a block diagram of a third embodiment of the terminal provided in the present invention, and as shown in fig. 7, the processing module 504 includes:
a playing unit 5041, configured to determine to continue playing the video when a sum of the second buffering time and the first buffering time in a previous module of the decoding module is greater than or equal to a preset buffering start threshold.
Fig. 8 is a block diagram of a fourth embodiment of the terminal provided in the present invention, and as shown in fig. 8, the processing module 504 further includes:
a pause unit 5042, configured to determine to pause playing of the video when a sum of the second buffering time and the first buffering time in a previous module of the decoding module is smaller than a preset buffering start threshold.
Fig. 9 is a block diagram of another terminal according to a first embodiment of the present invention, and as shown in fig. 9, the terminal further includes:
the first determining module 901 is configured to determine the audio/video separation module and a first cache time in a previous module of the audio/video separation module.
The second determining module 902 is configured to determine to continue playing the video when the first buffer time in the audio/video separating module and the previous module of the audio/video separating module is greater than or equal to the preset buffer start threshold, and determine whether to continue playing the video according to the method steps described in the first embodiment when the first buffer time in the audio/video separating module and the previous module of the audio/video separating module is less than the preset buffer start threshold.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for judging video playing state based on cache time is characterized by comprising the following steps:
determining timestamp information in a plurality of data frames received by a decoding module;
determining a second cache time of the decoding module and a subsequent module of the decoding module according to the timestamp information and the current video playing time, wherein the current video playing time refers to the time when the video is currently played;
and judging whether to continue playing the video according to the sum of the second cache time and the first cache time in the previous module of the decoding module.
2. The method of claim 1, wherein the time stamp information comprises a maximum audio display time stamp (PTS) and a maximum video PTS.
3. The method of claim 2, wherein determining the second buffering time in the decoding module and the subsequent module of the decoding module according to the timestamp information and the current video playing time comprises:
calculating the difference value between the maximum audio display time stamp PTS and the current video playing time;
calculating the difference value between the maximum video PTS and the current video playing time;
and taking the minimum value of the difference value between the maximum audio display time stamp PTS and the current video playing time and the difference value between the maximum video PTS and the current video playing time as the second cache time.
4. The method according to any one of claims 1 to 3, wherein the determining whether to continue playing the video according to the sum of the second buffering time and the first buffering time in a previous module of the decoding module comprises:
and if the sum of the second cache time and the first cache time in the previous module of the decoding module is greater than or equal to a preset buffer starting threshold value, the terminal determines to continue playing the video, otherwise, the terminal determines to pause playing the video.
5. A method for judging video playing state based on cache time is characterized by comprising the following steps:
determining first cache time in an audio and video separation module and a previous module of the audio and video separation module;
judging whether the first cache time in the audio and video separation module and the previous module of the audio and video separation module is greater than or equal to a buffer start threshold value, if so, determining to continue playing the video, otherwise, determining to continue playing the video according to the method steps of any one of claims 1 to 4.
6. A terminal, comprising:
a first determining module for determining timestamp information in the plurality of data frames received by the decoding module;
a second determining module, configured to determine, according to the timestamp information and a current video playing time, a second cache time in the decoding module and a subsequent module of the decoding module, where the current video playing time is a time when a video is currently played;
and the processing module is used for judging whether to continue playing the video according to the second cache time and the sum of the first cache time in the previous module of the decoding module.
7. The terminal of claim 6, wherein the time stamp information includes a maximum audio display time stamp (PTS) and a maximum video (PTS).
8. The terminal of claim 7, wherein the second determining module comprises:
a first calculating unit, configured to calculate a difference between the maximum audio display time stamp PTS and the current video playing time;
a second calculating unit, configured to calculate a difference between the maximum video PTS and the current video playing time;
and the determining unit is used for taking the minimum value of the difference value between the maximum audio display time stamp PTS and the current video playing time and the difference value between the maximum video PTS and the current video playing time as the second cache time.
9. The terminal according to any of claims 6-8, wherein the processing module comprises:
the playing unit is used for determining to continue playing the video when the sum of the second cache time and the first cache time in the previous module of the decoding module is greater than or equal to a preset buffer starting threshold value;
and the pause unit is used for determining that the video is paused when the sum of the second cache time and the first cache time in the previous module of the decoding module is less than a preset buffer starting threshold value.
10. A terminal, comprising:
the first determining module is used for determining the first cache time in the audio and video separating module and the previous module of the audio and video separating module;
a second determining module, configured to determine to continue playing the video when the first cache time in the audio/video separating module and the previous module of the audio/video separating module is greater than or equal to a preset buffer start threshold, and determine whether to continue playing the video according to any one of the method steps in claims 1 to 4 when the first cache time in the audio/video separating module and the previous module of the audio/video separating module is less than the preset buffer start threshold.
CN201710203633.6A 2017-03-30 2017-03-30 Method and terminal for judging video playing state based on cache time Active CN107087210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710203633.6A CN107087210B (en) 2017-03-30 2017-03-30 Method and terminal for judging video playing state based on cache time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710203633.6A CN107087210B (en) 2017-03-30 2017-03-30 Method and terminal for judging video playing state based on cache time

Publications (2)

Publication Number Publication Date
CN107087210A CN107087210A (en) 2017-08-22
CN107087210B true CN107087210B (en) 2020-04-14

Family

ID=59614258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710203633.6A Active CN107087210B (en) 2017-03-30 2017-03-30 Method and terminal for judging video playing state based on cache time

Country Status (1)

Country Link
CN (1) CN107087210B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259998B (en) * 2018-03-01 2021-01-22 海信视像科技股份有限公司 Player, play control method and device, electronic equipment and play system
CN110493164B (en) * 2018-05-15 2022-02-22 视联动力信息技术股份有限公司 Media packet processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533454A (en) * 2013-10-29 2014-01-22 北京国双科技有限公司 Detection method and device for video playing fluency
CN104683866A (en) * 2013-11-29 2015-06-03 成都鼎桥通信技术有限公司 Playing processing method for received streaming video
CN105100876A (en) * 2015-08-28 2015-11-25 北京奇艺世纪科技有限公司 Streaming media playing method and device
CN105847942A (en) * 2016-04-01 2016-08-10 青岛海信宽带多媒体技术有限公司 Media data buffering method, media data buffering device and intelligent television
CN106658133A (en) * 2016-10-26 2017-05-10 广州市百果园网络科技有限公司 Audio and video synchronous playing method and terminal
CN106792109A (en) * 2016-12-06 2017-05-31 青岛海信电器股份有限公司 Video broadcasting method, device and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9564172B2 (en) * 2014-07-14 2017-02-07 NFL Enterprises LLC Video replay systems and methods

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533454A (en) * 2013-10-29 2014-01-22 北京国双科技有限公司 Detection method and device for video playing fluency
CN104683866A (en) * 2013-11-29 2015-06-03 成都鼎桥通信技术有限公司 Playing processing method for received streaming video
CN105100876A (en) * 2015-08-28 2015-11-25 北京奇艺世纪科技有限公司 Streaming media playing method and device
CN105847942A (en) * 2016-04-01 2016-08-10 青岛海信宽带多媒体技术有限公司 Media data buffering method, media data buffering device and intelligent television
CN106658133A (en) * 2016-10-26 2017-05-10 广州市百果园网络科技有限公司 Audio and video synchronous playing method and terminal
CN106792109A (en) * 2016-12-06 2017-05-31 青岛海信电器股份有限公司 Video broadcasting method, device and terminal

Also Published As

Publication number Publication date
CN107087210A (en) 2017-08-22

Similar Documents

Publication Publication Date Title
US10097878B2 (en) Video playback method and control terminal thereof
CN106658133B (en) Audio and video synchronous playing method and terminal
WO2017067489A1 (en) Set-top box audio-visual synchronization method, device and storage medium
CN112822503B (en) Method, device and equipment for playing live video stream and storage medium
CN110139148B (en) Video switching definition method and related device
KR101693564B1 (en) Method and apparatus for evaluating media quality
CN109168083B (en) Streaming media real-time playing method and device
CN110505522A (en) Processing method, device and the electronic equipment of video data
CN106791994B (en) Low-delay quick broadcasting method and device
CN112261461B (en) Bluetooth sound and picture synchronization method and device, display equipment and readable storage medium
CN106792109B (en) Video playing method and device and terminal
CN113490055A (en) Data processing method and device
CN107087210B (en) Method and terminal for judging video playing state based on cache time
US8588310B2 (en) Method and apparatus for managing delivery of bits to a decoder
US20250071041A1 (en) Method for estimating bandwidth between a video server and a video client
JP5440839B2 (en) Information processing apparatus and method, and program
CN115348409A (en) Video data processing method and device, terminal equipment and storage medium
CN113766261A (en) Method and device for determining pre-pulling duration, electronic equipment and storage medium
JP6711120B2 (en) Video playback device, video playback method, and video playback program
US9806967B2 (en) Communication device and data processing method
US11546675B2 (en) Methods, systems, and media for streaming video content using adaptive buffers
CN107112019B (en) Signal processing apparatus, signal processing method, and computer-readable storage medium storing program
CN115883859A (en) Multimedia data processing method, electronic device and storage medium
JP6146471B2 (en) Encoding apparatus, encoding method, and encoding program
JP2014135728A (en) Video transmission system and video transmission method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Patentee after: Hisense Visual Technology Co., Ltd.

Address before: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CP01 Change in the name or title of a patent holder