CN105025343A - Caching method and device of TS video - Google Patents

Caching method and device of TS video Download PDF

Info

Publication number
CN105025343A
CN105025343A CN201510432496.4A CN201510432496A CN105025343A CN 105025343 A CN105025343 A CN 105025343A CN 201510432496 A CN201510432496 A CN 201510432496A CN 105025343 A CN105025343 A CN 105025343A
Authority
CN
China
Prior art keywords
video
buffer
buffer memory
buffer threshold
play instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510432496.4A
Other languages
Chinese (zh)
Inventor
张金良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201510432496.4A priority Critical patent/CN105025343A/en
Publication of CN105025343A publication Critical patent/CN105025343A/en
Pending legal-status Critical Current

Links

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/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
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • 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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4348Demultiplexing of additional data and video streams
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4385Multiplex stream processing, e.g. multiplex stream decrypting
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a caching method and device of a TS video. The method is used for saving the time of a user for waiting for the caching of the TS video, and continuous playing of the TS video is prevented from being affected. The method comprises the steps of: receiving a pre-playing instruction of the TS video played at present; determining the corresponding position of the pre-playing instruction in the TS video; carrying out single-thread caching on the TS video at the position according to a predetermined first buffer threshold, wherein the first buffer threshold is equal to or greater than the video amount between two times of decoding information transmission in the TS video; and when the caching reaches the first buffer threshold, carrying out single-thread caching on the TS video according to a second buffer threshold, wherein the second buffer threshold is greater than the first buffer threshold. By adopting the method and the device, the user does not need to wait a too long video caching time when watching the TS video, and the continuous playing of the TS video is not affected, so that the experience degree of the user for video watching is improved.

Description

A kind of caching method of TS video and device
Technical field
The present invention relates to Internet technical field, particularly a kind of caching method of TS video and device.
Background technology
Current, along with the development of computer communication technology, Internet technology and multimedia technology, online this technology of viewing video obtains to be applied more and more widely, user can select at arbitrary period, set up by client (such as computer) and be connected with the network of video playback server, check all kinds of videos that video playback server provides.In correlation technique, when user watches video online, server before user's viewing, can cushion a part of video file, thus prevents from occurring in playing process the phenomenon that card pauses.Therefore, user is before viewing video, need to wait for a period of time and could watch, but for the video file of TS form, if when server adopts certain buffering capacity to carry out buffered video to prevent from playing card, especially when user has just started displaying video or rewind, F.F. video, needing waiting for server to cushion a part of data volume could watch, thus affecting the time of user, Experience Degree is relatively low.
Summary of the invention
The invention provides a kind of caching method and device of TS video, wait for the cache-time of TS video in order to save user, do not affect the Continuous Play of TS video simultaneously.
The invention provides a kind of caching method of TS video, comprising:
Receive current just at the pre-play instruction of live TS video;
Determine the position that described pre-play instruction is corresponding in described TS video;
According to predetermined first buffer threshold, TS video described in the single-threaded buffer memory in described position, described first buffer threshold is equal to or greater than in described TS video the amount of video transmitted between adjacent twice decoded information;
When buffer memory reaches the first buffer threshold, according to TS video described in predetermined second buffer threshold multithreading buffer memory, described second buffer threshold is greater than described first buffer threshold.
Some beneficial effects of the embodiment of the present invention can comprise:
Technique scheme can in the optional position of TS video, according to the single-threaded buffered video of predetermined buffer threshold, and switch to larger buffer threshold multithreading buffered video after having cushioned, not only make user when watching TS video without the need to waiting for the time of long buffered video, and do not affect the Continuous Play of video, improve the Experience Degree that user watches video.
In one embodiment, described according to predetermined first buffer threshold, TS video described in the single-threaded buffer memory in described position, comprising:
Stop the current ongoing pre-playback process to described TS video, described pre-playback process comprises at least one in buffer memory, decapsulation, decoding;
According to predetermined first buffer threshold, TS video described in the buffer memory of described position.
In this embodiment, by stopping the current ongoing pre-playback process to TS video immediately, thus interrupt other threads, releasing resource, and then buffer memory TS video more rapidly, make user watch TS video time without the need to waiting for the time of long buffered video, save the time that user waits for video cache.
In one embodiment, described when buffer memory reaches the first buffer threshold, according to TS video described in predetermined second buffer threshold multithreading buffer memory, comprising:
When buffer memory reaches the first buffer threshold, while TS video described in predetermined second buffer threshold buffer memory, decapsulation or decoding process are carried out to the TS video that buffer memory completes.
In this embodiment, when TS video cache reaches the first buffer threshold, the mode recovering multithreading continues buffered video, thus realize when user watches TS video without the need to wait for long buffered video time while, do not affect the Continuous Play of video, improve the Experience Degree that user watches video.
In one embodiment, described according to predetermined first buffer threshold, TS video described in the single-threaded buffer memory in described position, comprising:
Judge whether described pre-play instruction is the pre-play instruction received first;
When described pre-play instruction is the pre-play instruction received first, according to predetermined first buffer threshold while TS video described in the single-threaded buffer memory in described position, obtain the decoded information of described TS transmission of video;
When described pre-play instruction is not the pre-play instruction received first, according to predetermined first buffer threshold while TS video described in the single-threaded buffer memory in described position, obtain decoded information accessed when receiving described pre-play instruction first.
In this embodiment, can when repeatedly buffer memory TS video, without the need to the decoded information in repeated obtain TS video again, only need according to buffer threshold direct buffer memory TS video, thus save identification and the acquisition process of decoded information, save the stand-by period of user and the burden of server.
In one embodiment, described first buffer threshold determines according to the resolution of described TS video and/or code check.
In this embodiment, buffer threshold is determined according to the resolution of TS video or code check, when making to carry out buffer memory to TS video, the object carrying out buffered video with minimum buffering capacity can be realized, thus make user without the need to waiting for the time of long buffered video, for user saves the unnecessary stand-by period, improve the Experience Degree that user watches video.
The invention provides a kind of buffer storage of TS video, comprising:
Receiver module, for receiving current just at the pre-play instruction of live TS video;
Determination module, for determining the position that described pre-play instruction is corresponding in described TS video;
First cache module, for according to predetermined first buffer threshold, TS video described in the single-threaded buffer memory in described position, described first buffer threshold is equal to or greater than in described TS video the amount of video transmitted between adjacent twice decoded information;
Second cache module, for when buffer memory reaches the first buffer threshold, according to TS video described in predetermined second buffer threshold multithreading buffer memory, described second buffer threshold is greater than described first buffer threshold.
In one embodiment, described first cache module comprises:
Stop submodule, for stopping the current ongoing pre-playback process to described TS video, described pre-playback process comprises at least one in buffer memory, decapsulation, decoding;
Cache sub-module, for according to predetermined first buffer threshold, TS video described in the buffer memory of described position.
In one embodiment, described second cache module comprises:
Process submodule, for when buffer memory reaches the first buffer threshold, while TS video described in predetermined second buffer threshold buffer memory, carries out decapsulation or decoding process to the TS video that buffer memory completes.
In one embodiment, described first cache module comprises:
Judge submodule, for judging whether described pre-play instruction is the pre-play instruction received first;
First obtains submodule, for when described pre-play instruction is the pre-play instruction received first, according to predetermined first buffer threshold while TS video described in the single-threaded buffer memory in described position, obtains the decoded information of described TS transmission of video;
Second obtains submodule, for when described pre-play instruction is not the pre-play instruction received first, according to predetermined first buffer threshold while TS video described in the single-threaded buffer memory in described position, obtain decoded information accessed when receiving described pre-play instruction first.
Some beneficial effects of the embodiment of the present invention can comprise:
Said apparatus can in the optional position of TS video, according to the single-threaded buffered video of predetermined buffer threshold, and switch to larger buffer threshold multithreading buffered video after having cushioned, not only make user when watching TS video without the need to waiting for the time of long buffered video, and do not affect the Continuous Play of video, improve the Experience Degree that user watches video.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write specification, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of the caching method of a kind of TS video in the embodiment of the present invention;
Fig. 2 is the flow chart of the caching method of a kind of TS video in the embodiment of the present invention;
Fig. 3 is the flow chart of the caching method of a kind of TS video in the embodiment of the present invention;
Fig. 4 is the block diagram of the buffer storage of a kind of TS video in the embodiment of the present invention;
Fig. 5 is the block diagram of the first cache module in the buffer storage of a kind of TS video in the embodiment of the present invention;
Fig. 6 is the block diagram of the second cache module in the buffer storage of a kind of TS video in the embodiment of the present invention;
Fig. 7 is the block diagram of the first cache module in the buffer storage of a kind of TS video in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Fig. 1 is the flow chart of the caching method of a kind of TS video in the embodiment of the present invention.As shown in Figure 1, the method comprises the following steps S11-S14:
Step S11, receives current just at the pre-play instruction of live TS video.
Wherein, pre-play instruction is the playing request of user to live TS video, can be used for TS video when starting to play, when also can be used for F.F., rewind.
Step S12, determines the position that pre-play instruction is corresponding in TS video.
In this step, because pre-play instruction is the playing request of user to the online TS video play, and due to TS form video not special head file the duration information of video is described, also total playing duration of TS large files cannot just be obtained, the progress bar of therefore TS video is display from 0 to 100% percentage, the not length of displaying time, therefore, the position that pre-play instruction is corresponding in TS video is also characterize with the percentage in this TS video file, in the process of buffering TS video, also without the need to downloading the head file of TS video.
Step S13, according to predetermined first buffer threshold, the single-threaded buffer memory TS video in position, the first buffer threshold is equal to or greater than in TS video the amount of video transmitted between adjacent twice decoded information.
In this step, the first buffer threshold also can be determined according to the resolution of TS video and/or code check.The amount of choosing of the first buffer threshold is generally and can ensures that user normally watches the minimal buffering amount of TS video, this minimal buffering amount only need comprise in TS video the amount of video transmitted between adjacent twice decoded information, therefore when user sends pre-play instruction, only need carry out buffered video with minimal buffering amount, thus the cache-time before making displaying video shortens.
Step S14, when buffer memory reaches the first buffer threshold, according to predetermined second buffer threshold multithreading buffer memory TS video, the second buffer threshold is greater than the first buffer threshold.
Wherein, second buffer threshold is in the process play online at TS video, the data volume of required buffer memory during the buffer memory of broadcasting limit, limit, here the mode buffer memory TS video of multithreading is adopted, the video of buffer memory can be carried out the process such as decapsulation, decoding while making buffer memory, thus enable TS video Continuous Play.
Adopt the technical scheme that the embodiment of the present invention provides, can in the optional position of TS video, according to the single-threaded buffered video of predetermined buffer threshold, and switch to larger buffer threshold multithreading buffered video after having cushioned, not only make user when watching TS video without the need to waiting for the time of long buffered video, and do not affect the Continuous Play of video, improve the Experience Degree that user watches video.
In one embodiment, as shown in Figure 2, said method can also be embodied as following steps S21-S25:
Step S21, receives current just at the pre-play instruction of live TS video.
Step S22, determines the position that pre-play instruction is corresponding in TS video.
Step S23, stop the current ongoing pre-playback process to TS video, pre-playback process comprises at least one in buffer memory, decapsulation, decoding.
Step S24, according to predetermined first buffer threshold, at position buffer memory TS video.This first buffer threshold is equal to or greater than in TS video the amount of video transmitted between adjacent twice decoded information.
Step S25, when buffer memory reaches the first buffer threshold, according to predetermined second buffer threshold buffer memory TS video, carries out decapsulation or decoding process to the TS video that buffer memory completes simultaneously.Wherein, the second buffer threshold is greater than the first buffer threshold.
In the present embodiment, step S23-S24 is a kind of execution mode of step S13, and step S25 is a kind of execution mode of step S14.When receiving the pre-play instruction to TS video, stop the processes such as the current ongoing buffer memory to TS video, decapsulation or decoding, thus releasing resource, fast cache TS video.Such as, user asks to play TS video, so in the starting position of TS video, first with the first buffer threshold buffer memory TS video, if the first buffer threshold is 5M, then after the TS video data of buffer memory 5M, start to play the TS video data of buffer memory, simultaneously, continue buffered video with the buffer threshold (such as 10M) larger than the first buffer threshold, this process of caching is the process of multithreading, namely while buffer memory TS video, the video data of buffer memory is carried out to the process of decapsulation, decoding, to guarantee that video can Continuous Play.In addition, can also when reaching preset duration according to the first buffer threshold buffer memory TS video or reach default data volume, use the second buffer threshold buffer memory TS video again instead, wherein, preset duration is generally a shorter time period, and when the first buffer threshold is less, user probably experiences less than this shorter time period, also just make user when watching live TS video, the time of wait is shorter.The data volume preset is the data volume of the TS video normal play that can ensure buffer memory.
In one embodiment, as shown in Figure 3, said method can also be embodied as following steps S31-S36:
Step S31, receives current just at the pre-play instruction of live TS video.
Step S32, determines the position that pre-play instruction is corresponding in TS video.
Step S33, judges whether pre-play instruction is the pre-play instruction received first.If pre-play instruction is the pre-play instruction received first, then continue to perform step S34; If the pre-play instruction of pre-play instruction not for receiving first, continuous execution step S35.
Step S34, while buffer memory TS video, obtains the decoded information of TS transmission of video according to predetermined first buffer threshold from this position.Continue to perform step S36.
Step S35, while buffer memory TS video, obtains decoded information accessed when receiving pre-play instruction first according to predetermined first buffer threshold from this position.Continue to perform step S36.
Step S36, when buffer memory reaches the first buffer threshold, according to predetermined second buffer threshold multithreading buffer memory TS video, the second buffer threshold is greater than the first buffer threshold.
In the present embodiment, if the pre-play instruction of pre-play instruction not for receiving first, such as, when F.F. or rewind video, when with the first buffer threshold buffer memory TS video, without the need to again obtaining decoded information again, the decoded information got when only need continue to use this TS video of buffer memory first, thus save identification and the acquisition process of decoded information, also just save the stand-by period of user and the burden of server.
Corresponding to the caching method of the TS video in above-described embodiment, the embodiment of the present invention also provides a kind of buffer storage of TS video, and as shown in Figure 4, this device comprises:
Receiver module 41, for receiving current just at the pre-play instruction of live TS video;
Determination module 42, for determining the position that pre-play instruction is corresponding in TS video;
First cache module 43, for according to predetermined first buffer threshold, the single-threaded buffer memory TS video in position, the first buffer threshold is equal to or greater than in TS video the amount of video transmitted between adjacent twice decoded information;
Second cache module 44, for when buffer memory reaches the first buffer threshold, according to predetermined second buffer threshold multithreading buffer memory TS video, the second buffer threshold is greater than the first buffer threshold.
In one embodiment, as shown in Figure 5, the first cache module 43 comprises:
Stop submodule 431, for stopping the current ongoing pre-playback process to TS video, pre-playback process comprises at least one in buffer memory, decapsulation, decoding;
Cache sub-module 432, for according to predetermined first buffer threshold, at position buffer memory TS video.
In one embodiment, as shown in Figure 6, the second cache module 44 comprises:
Process submodule 441, for when buffer memory reaches the first buffer threshold, while predetermined second buffer threshold buffer memory TS video, carries out decapsulation or decoding process to the TS video that buffer memory completes.
In one embodiment, as shown in Figure 7, the first cache module 43 comprises:
Judge submodule 433, for judging whether pre-play instruction is the pre-play instruction received first;
First obtains submodule 434, for when pre-play instruction is the pre-play instruction received first, according to predetermined first buffer threshold while the single-threaded buffer memory TS video of position, obtains the decoded information of TS transmission of video;
Second obtains submodule 435, for when pre-play instruction is not the pre-play instruction received first, according to predetermined first buffer threshold while the single-threaded buffer memory TS video of position, obtain decoded information accessed when receiving pre-play instruction first.
Adopt the device that the embodiment of the present invention provides, can in the optional position of TS video, according to the single-threaded buffered video of predetermined buffer threshold, and switch to larger buffer threshold multithreading buffered video after having cushioned, not only make user when watching TS video without the need to waiting for the time of long buffered video, and do not affect the Continuous Play of video, improve the Experience Degree that user watches video.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (9)

1. a caching method for TS video, is characterized in that, comprising:
Receive current just at the pre-play instruction of live TS video;
Determine the position that described pre-play instruction is corresponding in described TS video;
According to predetermined first buffer threshold, TS video described in the single-threaded buffer memory in described position, described first buffer threshold is equal to or greater than in described TS video the amount of video transmitted between adjacent twice decoded information;
When buffer memory reaches the first buffer threshold, according to TS video described in predetermined second buffer threshold multithreading buffer memory, described second buffer threshold is greater than described first buffer threshold.
2. the method for claim 1, is characterized in that, described according to predetermined first buffer threshold, and TS video described in the single-threaded buffer memory in described position, comprising:
Stop the current ongoing pre-playback process to described TS video, described pre-playback process comprises at least one in buffer memory, decapsulation, decoding;
According to predetermined first buffer threshold, TS video described in the buffer memory of described position.
3. the method for claim 1, is characterized in that, described when buffer memory reaches the first buffer threshold, according to TS video described in predetermined second buffer threshold multithreading buffer memory, comprising:
When buffer memory reaches the first buffer threshold, while TS video described in predetermined second buffer threshold buffer memory, decapsulation or decoding process are carried out to the TS video that buffer memory completes.
4. the method for claim 1, is characterized in that, described according to predetermined first buffer threshold, and TS video described in the single-threaded buffer memory in described position, comprising:
Judge whether described pre-play instruction is the pre-play instruction received first;
When described pre-play instruction is the pre-play instruction received first, according to predetermined first buffer threshold while TS video described in the single-threaded buffer memory in described position, obtain the decoded information of described TS transmission of video;
When described pre-play instruction is not the pre-play instruction received first, according to predetermined first buffer threshold while TS video described in the single-threaded buffer memory in described position, obtain decoded information accessed when receiving described pre-play instruction first.
5. the method for claim 1, is characterized in that, described first buffer threshold determines according to the resolution of described TS video and/or code check.
6. a buffer storage for TS video, is characterized in that, comprising:
Receiver module, for receiving current just at the pre-play instruction of live TS video;
Determination module, for determining the position that described pre-play instruction is corresponding in described TS video;
First cache module, for according to predetermined first buffer threshold, TS video described in the single-threaded buffer memory in described position, described first buffer threshold is equal to or greater than in described TS video the amount of video transmitted between adjacent twice decoded information;
Second cache module, for when buffer memory reaches the first buffer threshold, according to TS video described in predetermined second buffer threshold multithreading buffer memory, described second buffer threshold is greater than described first buffer threshold.
7. device as claimed in claim 6, it is characterized in that, described first cache module comprises:
Stop submodule, for stopping the current ongoing pre-playback process to described TS video, described pre-playback process comprises at least one in buffer memory, decapsulation, decoding;
Cache sub-module, for according to predetermined first buffer threshold, TS video described in the buffer memory of described position.
8. device as claimed in claim 6, it is characterized in that, described second cache module comprises:
Process submodule, for when buffer memory reaches the first buffer threshold, while TS video described in predetermined second buffer threshold buffer memory, carries out decapsulation or decoding process to the TS video that buffer memory completes.
9. device as claimed in claim 6, it is characterized in that, described first cache module comprises:
Judge submodule, for judging whether described pre-play instruction is the pre-play instruction received first;
First obtains submodule, for when described pre-play instruction is the pre-play instruction received first, according to predetermined first buffer threshold while TS video described in the single-threaded buffer memory in described position, obtains the decoded information of described TS transmission of video;
Second obtains submodule, for when described pre-play instruction is not the pre-play instruction received first, according to predetermined first buffer threshold while TS video described in the single-threaded buffer memory in described position, obtain decoded information accessed when receiving described pre-play instruction first.
CN201510432496.4A 2015-07-21 2015-07-21 Caching method and device of TS video Pending CN105025343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510432496.4A CN105025343A (en) 2015-07-21 2015-07-21 Caching method and device of TS video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510432496.4A CN105025343A (en) 2015-07-21 2015-07-21 Caching method and device of TS video

Publications (1)

Publication Number Publication Date
CN105025343A true CN105025343A (en) 2015-11-04

Family

ID=54414990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510432496.4A Pending CN105025343A (en) 2015-07-21 2015-07-21 Caching method and device of TS video

Country Status (1)

Country Link
CN (1) CN105025343A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600368A (en) * 2018-04-25 2018-09-28 青岛海信电器股份有限公司 A kind of HLS Internet videos download optimization method and device
CN108833968A (en) * 2018-05-29 2018-11-16 武汉斗鱼网络科技有限公司 A kind of method and relevant device of buffered video
CN110677715A (en) * 2019-10-11 2020-01-10 北京达佳互联信息技术有限公司 Decoding method, decoder, electronic device and storage medium
CN114666763A (en) * 2022-05-24 2022-06-24 东莞市云仕电子有限公司 Vehicle-mounted wireless earphone system, control method and vehicle-mounted wireless system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207822A (en) * 2006-12-22 2008-06-25 上海晨兴电子科技有限公司 Method for synchronization of audio frequency and video frequency of stream media terminal
US20140089995A1 (en) * 2009-11-30 2014-03-27 Time Warner Cable Enterprises Llc Methods and apparatus for supporting vod requests in a system with hierarchical content stores
CN103731727A (en) * 2013-12-10 2014-04-16 乐视网信息技术(北京)股份有限公司 Video playing method and video player

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207822A (en) * 2006-12-22 2008-06-25 上海晨兴电子科技有限公司 Method for synchronization of audio frequency and video frequency of stream media terminal
US20140089995A1 (en) * 2009-11-30 2014-03-27 Time Warner Cable Enterprises Llc Methods and apparatus for supporting vod requests in a system with hierarchical content stores
CN103731727A (en) * 2013-12-10 2014-04-16 乐视网信息技术(北京)股份有限公司 Video playing method and video player

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600368A (en) * 2018-04-25 2018-09-28 青岛海信电器股份有限公司 A kind of HLS Internet videos download optimization method and device
CN108833968A (en) * 2018-05-29 2018-11-16 武汉斗鱼网络科技有限公司 A kind of method and relevant device of buffered video
CN110677715A (en) * 2019-10-11 2020-01-10 北京达佳互联信息技术有限公司 Decoding method, decoder, electronic device and storage medium
CN110677715B (en) * 2019-10-11 2022-04-22 北京达佳互联信息技术有限公司 Decoding method, decoder, electronic device and storage medium
CN114666763A (en) * 2022-05-24 2022-06-24 东莞市云仕电子有限公司 Vehicle-mounted wireless earphone system, control method and vehicle-mounted wireless system

Similar Documents

Publication Publication Date Title
US10225613B2 (en) Method and apparatus for video playing processing and television
US20210160577A1 (en) Method for playing video, electronic device and storage medium
US8886765B2 (en) System and method for predicitive trick play using adaptive video streaming
CN102204272A (en) A processing method after a playing timepoint in streaming media jumps and a device thereof
EP3737101A1 (en) A method and a system for performing scrubbing in a video stream
CN105025343A (en) Caching method and device of TS video
CN105763960A (en) Method and apparatus for network video playing
CN113424553B (en) Method and system for playback of media items
CN103702198A (en) Cross-terminal continuous playing method and device
CN110022498B (en) Method and device for realizing code rate switching
EP2903260A1 (en) Multi-speed playing method, device and system
WO2017101393A1 (en) Method and device for continuously playing video
CN105100912A (en) Streaming media processing method and streaming media processing apparatus
CN107690093B (en) Video playing method and device
US20170093945A1 (en) Selecting bitrate to stream encoded media based on tagging of important media segments
CN104683858A (en) Preview method and device for content of stream medium
CN105025358A (en) Video playing method and device based on EPG
CN105828109B (en) Server, client and the play system based on RTSP/RTP
CN113485972A (en) Multimedia sharing method, device, mobile terminal and storage medium
US10674188B2 (en) Playback apparatus, method of controlling playback apparatus, playback method and server apparatus
CN104869466A (en) Video playing control method and device
WO2017071428A1 (en) Fast forward/rewind processing method and terminal
CN107040826B (en) Video loading method and device, computer device and computer readable storage medium
CN104994406B (en) A kind of video editing method and device based on Silverlight plug-in units
CN105007521A (en) Method and device for playing TS (Transport Stream) video

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151104

RJ01 Rejection of invention patent application after publication