CN108769830A - A kind of method and relevant device of buffered video - Google Patents
A kind of method and relevant device of buffered video Download PDFInfo
- Publication number
- CN108769830A CN108769830A CN201810526284.6A CN201810526284A CN108769830A CN 108769830 A CN108769830 A CN 108769830A CN 201810526284 A CN201810526284 A CN 201810526284A CN 108769830 A CN108769830 A CN 108769830A
- Authority
- CN
- China
- Prior art keywords
- video
- fragment
- fragment video
- target
- time
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8455—Structuring 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
Abstract
An embodiment of the present invention provides a kind of method of buffered video and playback equipments the drawbacks of falling into a long wait, to promote user experience for solving user when play-on-demand video carries out timi requirement.Present invention method includes:Obtain the index file of target video;The information index relationship of the multiple fragment video is established by the playing sequence according to the index file;When receive user transmission for the play position of the target video is positioned to the first message of object time when, the second fragment video is determined according to the first message and described information index relative, and the object time is in the initial time of the second fragment video and between finish time;Judge whether the finish time of the buffered video in the second fragment video reaches the object time;If so, playing the second fragment video from the object time.
Description
Technical field
The present invention relates to multimedia technology field more particularly to the methods and relevant device of a kind of buffered video.
Background technology
In the development process of the pc client of video website, for online live video stream, due to the live video
Stream is real-time, therefore user cannot carry out live video the operation of F.F. or rewind;And for order video stream, due to
The order video stream may be non real-time, thus for some it is specific at the time of, user can carry out the order video stream
The operation of F.F. or rewind.
In the prior art, order video stream uses the cache policy similar with live video stream, i.e., is not carried out to video flowing
Caching, directly broadcasting pull video flowing from network and play out.So user is carrying out F.F. and rewind to order video stream
Operation when, after the completion of program request video stream buffer will be waited for, then start to play.
However, in the prior art, when carrying out timi requirement every time, being required for that video flowing is waited for download completion, making in this way
At falling into a long wait for user, undesirable user experience is caused.
Invention content
An embodiment of the present invention provides a kind of method of buffered video and relevant devices, for solving user in broadcast point
When broadcasting video progress timi requirement, the drawbacks of falling into a long wait, user experience is promoted.
The first aspect of the embodiment of the present invention provides a kind of method of buffered video, including:
The index file of target video is obtained, the index file includes the more of the composition target video by playing sequence
The network address of a fragment video and playing duration corresponding to each fragment video, the target video are that online program request regards
Frequently;
The information index relationship of the multiple fragment video is established by the playing sequence according to the index file, it is described
Information index relationship includes the incidence relation of the initial time of the first fragment video and the description information of the first fragment video,
The description information of the first fragment video includes at least following information:The index information of the first fragment video, described
The network address of the playing duration of one fragment video and the first fragment video, the first fragment video are the multiple point
Any video in piece video;
When receive user's transmission for first disappearing the play position of the target video is positioned to object time
When breath, the second fragment video is determined according to the first message and described information index relative, the object time is described
The initial time of second fragment video and between finish time;
Judge whether the finish time of the buffered video in the second fragment video reaches the object time;
If so, playing the second fragment video from the object time.
In a kind of possible design, in the first realization method of first aspect of the embodiment of the present invention, the judgement
Before whether the finish time of the buffered video in the second fragment video reaches the object time, the method includes:
Determine the caching progress of the second fragment video;
The second fragment video is calculated according to the initial time of the caching progress and the second fragment video
The finish time of buffered video.
In a kind of possible design, in second of realization method of first aspect of the embodiment of the present invention, the determination
Before the caching progress of the second fragment video, the method further includes:
Set the cache priority grade of the second fragment video to highest.
It is described from institute in the third realization method of first aspect of the embodiment of the present invention in a kind of possible design
After stating object time broadcasting the second fragment video, the method further includes:
Judge the second fragment video whether be the target video the last one fragment video;
If so, when the second fragment video playing finishes, stop playing the target video.
The second aspect of the embodiment of the present invention provides a kind of playback equipment, including:
Acquiring unit, the index file for obtaining target video, the index file include composition institute by playing sequence
The network address of multiple fragment videos of target video and the playing duration corresponding to each fragment video are stated, the target video is
Online order video;
Indexing units, the information for establishing the multiple fragment video by the playing sequence according to the index file
Index relative, described information index relative include the initial time of the first fragment video and the description letter of the first fragment video
The description information of the incidence relation of breath, the first fragment video includes at least following information:The rope of the first fragment video
Fuse ceases, and the network address of the playing duration of the first fragment video and the first fragment video, first fragment regards
Frequency is any video in the multiple fragment video;
First determination unit, for when receive user transmission for by the play position of the target video position to
When the first message of object time, the second fragment video, institute are determined according to the first message and described information index relative
Object time is stated in the initial time of the second fragment video and between finish time;
First judging unit, for judging whether the finish time of the buffered video in the second fragment video reaches institute
State object time;
Broadcast unit reaches the object time for the finish time when the buffered video in the second fragment video
When, play the second fragment video from the object time.
In a kind of possible design, in the first realization method of second aspect of the embodiment of the present invention, the broadcasting
Equipment further includes:
Second determination unit, the caching progress for determining the second fragment video;
Computing unit, for calculating described the according to the initial time of the caching progress and the second fragment video
The finish time of the buffered video of two fragment videos.
In a kind of possible design, in second of realization method of second aspect of the embodiment of the present invention, the broadcasting
Equipment further includes:
Setting unit, for setting the cache priority grade of the second fragment video to highest.
In a kind of possible design, in the third realization method of second aspect of the embodiment of the present invention, the judgement
Unit, be additionally operable to judge the second fragment video whether be the target video the last one fragment video;
The broadcast unit is additionally operable to regard when the last one fragment that the second fragment video is the target video
Frequently, then when the second fragment video playing finishes, stop playing the target video.
Third aspect present invention provides a kind of electronic equipment, including memory, processor, which is characterized in that the place
Reason device realizes the buffered video as described in above-mentioned any one when being used to execute the computer management class method stored in memory
Method the step of.
Fourth aspect present invention provides a kind of computer readable storage medium, is stored thereon with computer management class
Sequence, it is characterised in that:The caching as described in above-mentioned any one is realized when the computer management class method is executed by processor
The step of method of video.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages, in the embodiment of the present invention, works as target
When video is online order video, the index file of target video is obtained, and establishes the multiple fragments for forming the target video
The information index relationship of video determines the fragment video residing for timi requirement when user carries out the time to target video to be set to,
And when the finish time of the buffered video in the fragment video reaching object time, the fragment is played since object time and is regarded
Frequently, because just being played out later without waiting for complete fragment video is cached, but caching is just broadcast to when object time
Put, thus compared with the existing technology for, can solve user play-on-demand video carry out timi requirement when, fall into a long wait
The drawbacks of, promote user experience.
Description of the drawings
Fig. 1 is a kind of flow diagram of the method for possible buffered video provided in an embodiment of the present invention;
Fig. 2 is a kind of embodiment schematic diagram of possible playback equipment provided in an embodiment of the present invention;
Fig. 3 is a kind of hardware architecture diagram of possible playback equipment provided in an embodiment of the present invention;
Fig. 4 is a kind of embodiment schematic diagram of possible electronic equipment provided in an embodiment of the present invention;
Fig. 5 is a kind of embodiment schematic diagram of possible computer readable storage medium provided in an embodiment of the present invention.
Specific implementation mode
An embodiment of the present invention provides a kind of method of buffered video and playback equipments, for solving user in play-on-demand
When video carries out timi requirement, the drawbacks of falling into a long wait, user experience is promoted.
Term " first ", " second ", " third " in description and claims of this specification and above-mentioned attached drawing, "
The (if present)s such as four " are for distinguishing similar object, without being used to describe specific sequence or precedence.It should manage
The data that solution uses in this way can be interchanged in the appropriate case, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process of series of steps or unit, method, system, product or equipment need not limit
In those of clearly listing step or unit, but may include not listing clearly or for these processes, method, production
The intrinsic other steps of product or equipment or unit.Following will be combined with the drawings in the embodiments of the present invention, in the embodiment of the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are only a part of the embodiments of the present invention, and
The embodiment being not all of.
It should be noted that the embodiment of the present invention can be applied to playback equipment such as video website client
In MediaDecoder audio/video decoding modules, which can decode live video and point
Broadcast video.When MediaDecoder audio/video decoding modules receive the video address of a character string type, if the address
For effective address, that MediaDecoder audio/video decodings module can be decoded the corresponding video of the video address, wherein
The video address can be network address, can also be local file path, do not limit herein specifically.However, due to live streaming
The video flowing caching mechanism of video and order video differs, therefore before being decoded to video, with need to judging the video
The corresponding video in location is order video or live video.Only when target video is order video, subsequent behaviour is just executed
Make.
Therefore playback equipment determines target video after receiving the address of target video according to the address of the target video
For online order video.Specific method of determination may comprise steps of:
Step 1a:The Open methods provided by MediaDecoder audio/video decoding modules, call FFmpeg's
Avformat_open_input functions open the address of target video, and it is AvFormatContext's to obtain a type
Structure.If obtained successfully, 1b is thened follow the steps;
Step 1b:Fopen functions are called, the address of target video is inputted in the fopen functions, obtain fopen functions
Return value.If the return value is 0, then it represents that the target video is Online Video;If the return value is not 0, then it represents that the mesh
Mark video is a local file.After it is Online Video to determine the target video, then execute step 1c;
Step 1c:When the address of target video meets prerequisite, determine that the target video is online order video.
Specifically, the name fields of the iformat member in the AvFormatContext structures got in judgment step 1a whether etc.
In " hls, applehttp " illustrate that target video is an online order video stream, the i.e. embodiment of the present invention if being equal to
Follow-up order video to be treated;If illustrating that the target video is an online live video stream not equal to if, at this
It is not processed in inventive embodiments.
Referring to Fig. 1, Fig. 1 is a kind of embodiment signal of method of possible buffered video provided in an embodiment of the present invention
Figure, the method for the buffered video can be based on audio/video decoding library FFmpeg, so-called FFmpeg, it will be appreciated that be a kind of for remembering
Record, converted digital audio, video, and the computer program of increasing income of stream can be translated into.Including:
101, the index file of target video is obtained;
In embodiments of the present invention, the index file of target video can be obtained, wherein the index file presses playing sequence
Network address including multiple fragment videos for forming target video and corresponding to the playing duration of each fragment video, and the target
Video is online order video.Specifically, the target video can be based on hypertext transfer protocol (hyper text
Transfer protocol, HTTP) real time flow medium (HTTP live streaming, HLS) agreement HLS video flowings.Its
In, so-called HLS protocol, for Apple Inc. (Apple Inc) realize a kind of Streaming transfer protocol, it can be achieved that Streaming Media it is straight
It broadcasts and program request;The characteristics of HLS video flowings is exactly the broadcasting index that a complete video is divided into a playlist.m3u8
The transmitting stream (transport stream, TS) of file and N number of fragment neglects frequency file, and each TS neglects frequency file and is
A part for this complete video, i.e., N number of TS small videos constitute the complete video.It should be noted that
Playlist.m3u8 is played in index file, the network address of all TS fragments videos is contained by playing sequence, and each
The playing duration of TS fragment videos.Therefore, index file is played for the playlist.m3u8, it is complete that this can be calculated
The total duration of video.And when positioning constantly, by the given time, specific TS fragments video is navigated to.
Therefore, it is based on the recognition, is determining that target video is to obtain the target video after the order video of line
Index file, the wherein index file are according to the network that playing sequence includes the multiple fragment videos for forming the target video
Location and playing duration corresponding to each fragment video.The method for specifically obtaining the index file of the target video may include with
Lower step:
Step 2a:Initialize HlsDemuxer classes;
In MediaDecoder audio/video decoding modules, with HlsDemuxer classes, to handle online order video stream.
The entrance function of the HlsDemuxer classes is also Open functions, and the address of the target video is passed to the Open of HlsDemuxer
Method.
Step 2b:Create cache file folder;
When calling the Open methods of HlsDemuxer classes, second parameter is to preserve the folder path for downloading file.
Path is pressed from both sides according to this document, boost is called to increase income the boost in library::filesystem::Create_directory methods, wound
Build cache file folder.The index file for the target video downloaded in subsequent step and all fragment videos, will all be stored in
The cache file underedge face.
Step 2c:Create worker thread;
A worker thread is created, in the worker thread, processing is all with downloading relevant task.
Step 2d:Download the index file of target video;
Relevant HTTP method for down loading is called, by the address in Open methods, the i.e. download of the index file of target video
Index file representated by address downloads in cache file folder.
Step 2e:Parse the index file of target video;
After the index file of target video is downloaded to cache file folder, the content of the index file is parsed, is obtained
Take total playing duration of the target video and all fragment videos.And there are one m_ in HlsDemuxer classes
The dictionary member of tsFiles, dictionary member are using the initial time of fragment video as key, with TsFileContext's
Structure is the key-value pair structure of value.Wherein, TsFileContext structures are as follows:
Wherein, url member indicates the download address of the fragment video;
Status member indicates that the download state of the fragment video, wherein TsFileStatus are defined as follows
Wherein, None indicates that idle state, downloading indicate that, just in download state, downloaded indicates to download
State is completed, paused, which indicates to download, is suspended state.
Index member indicates the index of the fragment video, and since 0, the index of first fragment video is 0, n-th point
The index of piece video is N-1;
StartTime member indicates the initial time of the fragment video, as unit of millisecond;
Duration member indicates the playing duration time of the fragment video, as unit of millisecond;
LocalFileName member indicates that the fragment video is stored in the title in local folders;
File member is used for the fragment video data after downloading being stored in local file;
SizeDownloaded member indicates the size of data that the fragment video has been downloaded;
TotalSize member indicates the file total size of the fragment video.
Therefore, through the above steps 2a-2e realize target video index file acquisition and parsing.It needs to illustrate
Be, in practical application, also other obtain and parsing target video index files mode, specifically no longer go to live in the household of one's in-laws on getting married one by one herein
It states.
102, the information index relationship of multiple fragment videos is established by playing sequence according to index file;
After the completion of the index file of target video is downloaded, multiple fragments are established by playing sequence according to the index file and are regarded
The information index relationship of frequency, wherein the information index relationship include the initial time and the first fragment video of the first fragment video
Description information obtains incidence relation.It should be noted that the description information of the first fragment video includes at least following information:The
The index information of one fragment video, the network address of the playing duration of the first fragment video and the first fragment video, wherein this
One fragment video is any video in multiple fragment videos.
In the present embodiment, establishing the mode of information index relationship can be:It downloads and completes when the index file of target video
Afterwards, all content of text gone and read in the index file are pressed, if read line of text is opened from " #EXTINF " character string
Begin, then behind the character string be exactly the fragment video playing duration (duration is with second unit), this article
The subsequent a line of one's own profession is exactly the download address of the fragment video.Therefore it according to the index file of the target video, obtains and plays
Total duration and all TS slicing files, it is as follows in the mode for establishing information index relationship:
Step 3a:Initializing variable;
One type of initialization is the startTime variables of 32 integers, and the starting for recording each fragment video is broadcast
The tsFileIndex variables for putting time and 32 integers, for recording the index of each fragment video, and by they
It is initialized as 0;
Step 3b:Obtain each fragment video;
Every a line content in the index file of target video is read, when the row content is started with character string " #EXTINF "
When, then as the playing duration of a fragment video is obtained then followed by the file content for reading next line behind the character string
Take the download address of the fragment video.
The structure for creating a TsFileContext, by the index member of the tsFileIndex variable assignments structure,
Will, " #EXTINF " followed by playing duration be multiplied by 1000 be converted to millisecond unit after, be saved in the TsFileContext
In the duration fields of structure, by startTime variable saves to the startTime member of the TsFileContext structures,
The download address for the fragment video representated by next line content that the row is closely followed, is saved in the TsFileContext structures
In url member.Then by the startTime and TsFileContext in a manner of key-value pair, m_tsFiles dictionaries are arrived in storage
In, to establish the information index relationship of the fragment video.
After the completion of the above process, tsFileIndex is added 1 on the original basis, by startTime variables in original base
The upper playing duration plus the fragment video, i.e. the duration values of TsFileContext structures.
Above-mentioned step is repeated, next fragment video is obtained, in the index file for read target video
Until appearance.
After the step in completing above-mentioned 3a~3b, the information index relationship of multiple fragment videos, and m_ are established
All fragment videos of the target video are had recorded in tsFiles member, and in startTime variables, preserve this point
The total duration of piece video.
It is made it should be noted that the embodiment of the present invention has carried out further this to TsFileContext structures, upper
The structure for stating the TsFileContext increases following member:
FormatContext, type AVFormatContext, by calling avformat_open_input methods
The member is obtained, then by way of self-defined I O read, to read the TS files video bag in the block;
IoContext, type AVIOContext, by the way that the member to be arranged to the pb to FormatContext member
In field, to which acquiescence in FFMPEG is read file content, and the method for carrying out timi requirement replaces with implementation of the present invention
ReadPacket methods in TsFileContext structures that should be after in example and seek methods, to realize self-defined IO
The function of reading;
FileRead, type FILE read corresponding file content by the member from local disk.When
When needing to read data in FFMPEG, it will enter in the readPacket functions of the structure, and in the readPacket letters
In number, by calling fread functions, corresponding file content is read from local disk file;
ReadOffset, the integer int that type is 32, for marking the reading position of the current TS files;
Also, in the TsFileContext structures after, there are three very important methods, utilize these three sides
Method, to realize reading and the timi requirement process of self-defined IO.They be respectively the Open methods opening of TS files (realize),
ReadPacket methods (reading for realizing TS file contents), seekPacket methods (are realized TS file contents navigating to finger
Fixed time point), it is specifically described below:
1, steps are as follows for the realization of open methods:
Step 4a:Create IoContext;
Avio_alloc_context methods are called, AVIOContext is created, and be assigned to IoContext member, is adjusting
It, will be in readPacket methods and the setting to the relevant parameter of the function of seekPacket methods when with this method;
Step 4b:Create FormatContext;
Avformat_alloc_context methods are called, an AVFormatContext is created and are assigned to
FormatContext member;
Step 4c:Self-defined IO is set;
IoContext member is assigned to the pb fields in FormatContext member, completes the setting of self-defined IO;
Step 4d:Open TS files;
Avformat_open_input methods are called, are returned by the TS File Opens, and by value to be returned.
2, steps are as follows for the realization of readPacket methods:
It should be noted that when in above-mentioned open methods call avformat_open_input and
When calling av_read_frame in the readPacket in HlsDemuxer classes, the readPacket of the structure can be all entered
In method.
The prototype of the readPacket methods is as follows:
Int readPacket (void*opaque, uint8_t*buffer, int bufferSize), function is exactly
Into parameter buffer, data of the filling no more than bufferSize, in embodiments of the present invention, steps are as follows for specific implementation:
Step 5a:Reading position is set;
ReadOffset (initial value 0) in TsFileContext is added into bufferSize on the original basis;
Step 5b:Judge the position whether download enough reads;
Judge whether the sizeDownloaded of download in TsFileContext structures is more than or equal to
ReadOffset, if it is, entering following step 5c;If not then continuing cycling through the step.
It should be noted that the sizeDownloaded in TsFileContext structures is to download TS in worker thread
It is arranged when fragment video, when downloading to the data of n byte every time, the TsFileContext that just will currently download
SizeDownloaded member in structure adds n.
Step 5c:Read file data;
Call fread functions, it would be desirable to which the buffer of reading is passed in first parameter of the function, will
BufferSize is passed in the third parameter of the function, and the fileRead files in TsFileContext structures are read
Handle is passed in the 4th parameter of the function, and the return value for recording the function is size, if the size is more than 0, table
It is shown as the content that work(reads size byte, otherwise surface this document has read tail of file, finally returns the size
It returns.
3, steps are as follows for the realization of seekPacket methods:
When being called in av_seek_frame functions in the readSeek functions in HlsDemuxer, will enter
In the seekPacket methods of TsFileContext structures.There are two the functions of the av_seek_frame functions, and one is to accuse
It tells the total byte size of the FFMPEG TS blocks of files, second is that the fileRead files in the structure are read handle, navigates to specified
Deviation post.The av_seek_frame functions are specific as follows:
int64_t seekPacket(int64_t offset,int flag)。
Step 6a:Judge whether flag is equal to AVSEEK_SIZE, if equal to entering following step 6b, otherwise into
Enter to step 6c;
Step 6b:When flag is equal to AVSEEK_SIZE, indicate that FFMPEG needs to know the size of this document, at this time directly
It connects and returns to the totalSize member of the representative file total size in the structure;
Step 6c:When flag is not equal to AVSEEK_SIZE, indicates to carry out document alignment, first read readOffset
It takes offset to be set as offset, then calls fseek functions, file reading handle fileRead is navigated into offset offsets
Place.
103, when receive user's transmission for first disappearing the play position of target video is positioned to object time
When breath, the second fragment video is determined according to first message and information index relationship.
In the embodiment of the present invention, when user is in the viewing target video, and needs to carry out F.F. or fast reverse operation, connect
The first message that user sends is received, which is used to navigate to object time to playback equipment instruction, can be according to first
Message and information index relationship determine the second fragment video.Specifically, in response to the first message, according to object time and letter
Breath index relative determines the second fragment video.It should be noted that when the object time in seconds when, also need the target
Moment is converted to as unit of millisecond, and to obtain seekTime, i.e. playback equipment is navigated to according to first message needs
This moment of seekTime.
It is that the object time point that the seekTime is located at is found in m_tsFiles dictionaries further according to information index relationship
Piece is less than the starting reproduction time of fragment video for example, being more than or equal to the starting reproduction time of fragment video according to seekTime
The rule for accelerating playing duration, can orient the seekTime and be located in which TsFileContext structure, realize second
The determination of fragment video.That is the seekTime is in the initial time of the second fragment video and between the end time.
It is specific as follows:When calling av_seek_frame functions in MediaDecoder modules, the function middle finger is navigated to
When fixed seekTime (as unit of microsecond) carries out timi requirement, the readSeek letters in HlsDemuxer classes will be entered
In number, in readSeek functions, the corresponding TsFileContext of the object time is got, then calling should
The seekPacket functions of TsFileContext, to realize the positioning of file.It is as follows:
Step 7a:Chronomere converts;
Since in the seekPacket methods of HlsDemuxer, second parameter seekTime is as unit of microsecond
, and in m_tsFiles, it is to store all TsFileContext as index using as unit of millisecond, so searching
Before TsFileContext, need first by seekTime divided by 1000, it is unit to switch to millisecond.
Step 7b:Obtain TsFileContext;
The findTsFileByTime methods in HlsDemuxer classes are called to find object time from m_tsFiles
TsFileContext where miniseconds, in findTsFileByTime functions, in m_tsFiles
I (being more than or equal to 0, be less than the total number of TS blocks of files) a TsFileContext, if the startTime of TsFileContext
Less than or equal to miniseconds, and the startTime of TsFileContext is more than plus fragment playing duration duration
Equal to miniseconds, then the TsFileContext is exactly the TS files where miniseconds.At this time getting
TsFileContext is assigned to m_currentTsFile so that the TsFileContext becomes current TS file.When TS texts
When part downloads completion, step 7d is entered.
Step 7d:WaitTsFile functions are called, wait for the TS files that can be opened, if it is successful, entering following
Step 7e.
Step 7e:Timi requirement is carried out to TS blocks of files.
After step 7a to step 7d is successful, av_seek_frame is called (will to enter at this time
In the seekPacket functions of TSFileContext) function, FormatContext member's setting of TsFileContext is arrived
In first parameter of the function, to be positioned to current TS blocks of files (i.e. the second fragment video).
It should be noted that due to the second fragment video be possible to be not target video first fragment video, and
The sequence cached in specific worker thread is downloaded successively according to the time sequencing of TS files, so caching the second fragment
When video carries out timi requirement, the cache priority grade by the second fragment video is needed to be set as highest, (needing will be current
TsFileContext downloads priority and is set as highest), to ensure the second fragment video of preferential download.
104, the caching progress of the second fragment video is determined.
It is completed when playlist.m3u8 is downloaded, and after parsing all TS fragment videos, in m_tsFiles member
In store all TsFileContext data, first TsFileContext in m_tsFiles is assigned at this time
M_currentTsFile member's (TS blocks of files that expression is being currently used) in HlsDemuxer classes, so
In the Open methods of HlsDemuxer, after having filled m_tsFiles member, it can start to play video.But it needs at this time
Wait for that first piece of TS fragments video can be opened, so the waitTsFile of HlsDemuxer classes is called to wait for one to specify at this time
TS blocks of files (such as second fragment video) can be opened.WaitTsFile function prototypes are as follows:
bool waitTsFile(TsFileContext*tsFile);
As can be seen that the parameter of the function one TsFileContext structure of reception, and one bool type of return
Value, when the tsFile in the parameter is opened successfully, which returns to true, otherwise returns to false.The realization step of the function
It is as follows:
8a:Judge whether the formatContext member in TsFileContext structures is equal to 0, if being equal to 0, into
Enter to following step 8b, otherwise illustrate that the TsFileContext has been opened, without doing relevant treatment in the function.
8b:Judge whether the sizeDownloaded in TsFileContext structures is more than 0, if so, thening follow the steps
8c;Otherwise it continues cycling through and executes step 8b.
8c:The open methods for calling TsFileContext structures, judge whether the return value of the function is more than or equal to 0, such as
Fruit is then to illustrate that TS File Opens success, waitTsFile return to true;Otherwise the TS file open faileds,
WaitTsFile returns to false.Wherein when calling the open methods of TsFileContext, which is a choke function, is needed
It just to be returned until current TS file download is to required size.When current TS file download is to required size, TS
Fragment video can play, at this point it is possible to determine the download progress of the fragment video, i.e. the fragment video cache is more
It is few.
105, the buffered video of the second fragment video is calculated according to the initial time of caching progress and the second fragment video
Finish time.
When the caching progress for knowing the second fragment video, you can with according to of the caching progress and the second fragment video
Moment beginning determines the finish time of fragment video.
106, judge whether the finish time of the buffered video in the second fragment video reaches object time, if so, holding
Row step 107.
When being aware of the finish time of the second fragment video, while it being aware of object time again, both may determine that described
Whether the finish time of the buffered video in two fragment videos reaches object time, if so, thening follow the steps 107.
107, object time is reached when the finish time of the buffered video in the second fragment video, is then played from object time
Second fragment video.
It should be noted that after playing the second fragment video from the object time, can also judge described
Whether the second fragment video is the last one fragment video of the target video, and it is target video to work as the second fragment video
When the last one fragment video, then when the second fragment video playing finishes, stop playing target video.
It should be noted that opening local target index file (i.e. playlist.m3u8 files), and get one
After a AVFormatContext structures, by the read_seek member of the iformat member in the AVFormatContext structures
Replace with the readSeek methods in the HlsDemuxer of the embodiment of the present invention, and the read_packet of iformat member at
Member replaces with the readPacket methods in the HlsDemuxer in the embodiment of the present invention, is adjusted when in MediaDecoder modules
With av_read_frame functions the readPacket in HlsDemuxer classes will be entered when obtaining an AVPacket packet
In function, an AVPacket packet is read from current TS blocks of files, is as follows:
9a:WaitTsFile functions are called, current TS blocks of files m_currentTsFile (initial values first are waited for
A TS blocks of files) it can be opened, following step 9b is entered if success, otherwise exits the function.
9b:Av_read_frame functions are called, the formatContext member in m_currentTsFile is passed to
First parameter of the function, and by the only one parameter AVPacket in readPacket functions, it is passed to av_read_
In the second parameter of frame (it will enter at this time in the readPacket functions of TsFileContext recited above,
From reading of content on TS files);Judge whether the return value of the av_read_frame functions is more than or equal to 0, if it is, table
It is bright successfully to read an AVPacket, the av_read_frame functions are exited, following step 9c is otherwise entered.
Step 9c:When av_read_frame functions return value be less than 0, show that current TS blocks of files has been read at this time
End-of-file is got, needs to read next TS files, so from m_tsFiles dictionaries, obtains the next of current TS blocks of files
A TsFileConext;Enter following step 9d if obtaining successfully, otherwise enters step 9e.
Step 9d:After obtaining next TsFileContext successes, which is assigned to m_ again
CurrentTsFile, and step 9a is re-entered into step 9c.
Step 9e:Next TsFileContext failures are obtained, indicate current TS blocks of files m_currentTsFile
It has been the last one TS fragment, and the TS fragments have reached end-of-file, illustrate the number of files of entire order video at this time
It is completed according to having read, sets the m_eofReached variables in HlsDemuxer member to true.
It is specific as follows:Content refering to foregoing description is it is found that call waitTsFile functions to open the second fragment video
It plays out, and positions to object time, later, avformat_open_input functions are called, after download
The file path of playlist.m3u8 is transmitted in the second parameter of the function, and one is obtained from first parameter
The structure objects of AVFormatContext, and so on, and then multiple fragment videos in target video can be opened.
In conclusion in the embodiment of the present invention, when target video is online order video, the rope of target video is obtained
Quotation part, and the information index relationship for the multiple fragment videos for forming the target video is established, when user carries out target video
When time is set to, the fragment video residing for timi requirement is determined, and when the finish time of the buffered video in the fragment video arrives
When up to object time, the fragment video is played since object time, because after without waiting for complete fragment video of caching
Just play out, but caching just played out to when object time, therefore compared with the existing technology for, user can be solved
When play-on-demand video carries out timi requirement, the drawbacks of falling into a long wait, user experience is promoted.
The method of buffered video in the embodiment of the present invention is described above, below to broadcasting in the embodiment of the present invention
Equipment is put to be described, referring to Fig. 2, in the embodiment of the present invention playback equipment one embodiment, including:
Acquiring unit 201, the index file for obtaining target video, the index file include composition by playing sequence
The network address of multiple fragment videos of the target video and playing duration corresponding to each fragment video, the target video
For online order video;
Indexing units 202, for establishing the multiple fragment video by the playing sequence according to the index file
Information index relationship, described information index relative include the first initial time of fragment video and retouching for the first fragment video
The incidence relation of information is stated, the description information of the first fragment video includes at least following information:The first fragment video
Index information, the network address of the playing duration of the first fragment video and the first fragment video, described first point
Piece video is any video in the multiple fragment video;
First determination unit 203, for when receive user's transmission for the play position of the target video to be determined
Position to object time first message when, determine that the second fragment regards according to the first message and described information index relative
Frequently, the object time is in the initial time of the second fragment video and between finish time;
Judging unit 204, for judging whether the finish time of the buffered video in the second fragment video reaches institute
State object time;
Broadcast unit 205 reaches the target for the finish time when the buffered video in the second fragment video
When the moment, the second fragment video is played from the object time.
In one possible implementation, the playback equipment further includes:Second determination unit 206, for determining
State the caching progress of the second fragment video;
Computing unit 207, for calculating institute according to the initial time of the caching progress and the second fragment video
State the finish time of the buffered video of the second fragment video.
In one possible implementation, the playback equipment further includes:
Setting unit 208, for setting the cache priority grade of the second fragment video to highest.
In one possible implementation, the judging unit, be additionally operable to judge the second fragment video whether be
The last one fragment video of the target video;
The broadcast unit is additionally operable to regard when the last one fragment that the second fragment video is the target video
Frequently, then when the second fragment video playing finishes, stop playing the target video.
In conclusion in the embodiment of the present invention, when target video is online order video, the rope of target video is obtained
Quotation part, and the information index relationship for the multiple fragment videos for forming the target video is established, when user carries out target video
When time is set to, the fragment video residing for timi requirement is determined, and when the finish time of the buffered video in the fragment video arrives
When up to object time, the fragment video is played since object time, because after without waiting for complete fragment video of caching
Just play out, but caching just played out to when object time, therefore compared with the existing technology for, user can be solved
When play-on-demand video carries out timi requirement, the drawbacks of falling into a long wait, user experience is promoted.
Above figure 2 is described the playback equipment in the embodiment of the present invention from the angle of modular functionality entity, under
Face is described in detail the playback equipment in the embodiment of the present invention from the angle of hardware handles, referring to Fig. 3, the present invention is implemented
300 one embodiment of playback equipment in example, including:
(the wherein quantity of processor 303 can be with for input unit 301, output device 302, processor 303 and memory 304
One or more, in Fig. 3 by taking a processor 303 as an example).In some embodiments of the invention, input unit 301, output
Device 302, processor 303 and memory 304 can be connected by bus or other means, wherein to be connected by bus in Fig. 3
For.
Wherein, pass through the operational order for calling memory 304 to store, processor 303, for executing following steps:
The index file of target video is obtained, the index file includes the more of the composition target video by playing sequence
The network address of a fragment video and playing duration corresponding to each fragment video, the target video are that online program request regards
Frequently;
The information index relationship of the multiple fragment video is established by the playing sequence according to the index file, it is described
Information index relationship includes the incidence relation of the initial time of the first fragment video and the description information of the first fragment video,
The description information of the first fragment video includes at least following information:The index information of the first fragment video, described
The network address of the playing duration of one fragment video and the first fragment video, the first fragment video are the multiple point
Any video in piece video;
When receive user's transmission for first disappearing the play position of the target video is positioned to object time
When breath, the second fragment video is determined according to the first message and described information index relative, the object time is described
The initial time of second fragment video and between finish time;
Judge whether the finish time of the buffered video in the second fragment video reaches the object time;
If so, playing the second fragment video from the object time.
Optionally, by the operational order for calling memory 304 to store, processor 303 is additionally operable to execute following steps:
Determine the caching progress of the second fragment video;
The second fragment video is calculated according to the initial time of the caching progress and the second fragment video
The finish time of buffered video.
Optionally, by the operational order for calling memory 304 to store, processor 303 is additionally operable to execute following steps:
Set the cache priority grade of the second fragment video to highest.
Optionally, by the operational order for calling memory 304 to store, processor 303 is additionally operable to execute following steps:
Judge the second fragment video whether be the target video the last one fragment video;
If so, when the second fragment video playing finishes, stop playing the target video.
Referring to Fig. 4, Fig. 4 is the embodiment schematic diagram of electronic equipment provided in an embodiment of the present invention.
As shown in figure 4, an embodiment of the present invention provides a kind of electronic equipment, including memory 410, processor 420 and deposit
The computer program 411 that can be run on memory 420 and on processor 420 is stored up, processor 420 executes computer program
Following steps are realized when 411:
The index file of target video is obtained, the index file includes the more of the composition target video by playing sequence
The network address of a fragment video and playing duration corresponding to each fragment video, the target video are that online program request regards
Frequently;
The information index relationship of the multiple fragment video is established by the playing sequence according to the index file, it is described
Information index relationship includes the incidence relation of the initial time of the first fragment video and the description information of the first fragment video,
The description information of the first fragment video includes at least following information:The index information of the first fragment video, described
The network address of the playing duration of one fragment video and the first fragment video, the first fragment video are the multiple point
Any video in piece video;
When receive user's transmission for first disappearing the play position of the target video is positioned to object time
When breath, the second fragment video is determined according to the first message and described information index relative, the object time is described
The initial time of second fragment video and between finish time;
Judge whether the finish time of the buffered video in the second fragment video reaches the object time;
If so, playing the second fragment video from the object time.
In specific implementation process, when processor 420 executes computer program 411, the corresponding embodiments of Fig. 1 may be implemented
Middle any embodiment.
The electronic equipment introduced by the present embodiment is to implement in the embodiment of the present invention used by a kind of playback equipment
Equipment, so based on the method described in the embodiment of the present invention, those skilled in the art can understand the present embodiment
The specific implementation mode of electronic equipment and its various change form, so how to realize the present invention for the electronic equipment herein
Method in embodiment is no longer discussed in detail, as long as the method that those skilled in the art implement in the embodiment of the present invention is adopted
Equipment belongs to the range of the invention to be protected.
Referring to Fig. 5, Fig. 5 is a kind of embodiment signal of computer readable storage medium provided in an embodiment of the present invention
Figure.
As shown in figure 5, present embodiments providing a kind of computer readable storage medium 500, it is stored thereon with computer journey
Sequence 511, the computer program 511 realize following steps when being executed by processor:
The index file of target video is obtained, the index file includes the more of the composition target video by playing sequence
The network address of a fragment video and playing duration corresponding to each fragment video, the target video are that online program request regards
Frequently;
The information index relationship of the multiple fragment video is established by the playing sequence according to the index file, it is described
Information index relationship includes the incidence relation of the initial time of the first fragment video and the description information of the first fragment video,
The description information of the first fragment video includes at least following information:The index information of the first fragment video, described
The network address of the playing duration of one fragment video and the first fragment video, the first fragment video are the multiple point
Any video in piece video;
When receive user's transmission for first disappearing the play position of the target video is positioned to object time
When breath, the second fragment video is determined according to the first message and described information index relative, the object time is described
The initial time of second fragment video and between finish time;
Judge whether the finish time of the buffered video in the second fragment video reaches the object time;
If so, playing the second fragment video from the object time.
In specific implementation process, which may be implemented Fig. 1 corresponding embodiments when being executed by processor
Middle any embodiment.
It should be noted that in the above-described embodiments, all emphasizing particularly on different fields to the description of each embodiment, in some embodiment
The part being not described in may refer to the associated description of other embodiments.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that each flow in flowchart and/or the block diagram can be realized by computer program instructions
And/or the combination of the flow and/or box in box and flowchart and/or the block diagram.These computer programs can be provided to refer to
Enable the processor of all-purpose computer, special purpose computer, embedded computer or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The embodiment of the present invention additionally provides a kind of computer program product, which includes computer software
Instruction, when computer software instructions are run on a processing device so that processing equipment is executed such as the wind in Fig. 1 corresponding embodiments
Flow in the method for electric field digital Platform design.
The computer program product includes one or more computer instructions.Load and execute on computers the meter
When calculation machine program instruction, entirely or partly generate according to the flow or function described in the embodiment of the present invention.The computer can
To be all-purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited
Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer readable storage medium
Transmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data center
Such as coaxial cable, optical fiber, Digital Subscriber Line (digital subscriber line, DSL)) or wireless (such as infrared, wireless,
Microwave etc.) mode is transmitted to another web-site, computer, server or data center.It is described computer-readable to deposit
Storage media can be the clothes that any usable medium that computer can store either is integrated comprising one or more usable mediums
The data storage devices such as business device, data center.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape),
Optical medium (for example, DVD) or semiconductor medium (such as solid state disk (solid state disk, SSD)) etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit
It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can store program
The medium of code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Stating embodiment, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding
The technical solution recorded in each embodiment is stated to carry out repairing this or equivalent replacement of some of the technical features;And these
It repaiies this or replaces, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of method of buffered video, which is characterized in that including:
The index file of target video is obtained, the index file is by multiple points that playing sequence includes the composition target video
The network address of piece video and playing duration corresponding to each fragment video, the target video are online order video;
The information index relationship of the multiple fragment video, described information are established by the playing sequence according to the index file
Index relative includes the incidence relation of the initial time of the first fragment video and the description information of the first fragment video, described
The description information of first fragment video includes at least following information:The index information of the first fragment video, described first point
The network address of the playing duration of piece video and the first fragment video, the first fragment video are that the multiple fragment regards
Any video in frequency;
When receive user transmission for the play position of the target video is positioned to the first message of object time when,
The second fragment video is determined according to the first message and described information index relative, and the object time is at described second point
The initial time of piece video and between finish time;
Judge whether the finish time of the buffered video in the second fragment video reaches the object time;
If so, playing the second fragment video from the object time.
2. according to the method described in claim 1, it is characterized in that, the buffered video judged in the second fragment video
Finish time whether reach the object time before, the method includes:
Determine the caching progress of the second fragment video;
The caching of the second fragment video is calculated according to the initial time of the caching progress and the second fragment video
The finish time of video.
3. according to the method described in claim 1, it is characterized in that, the caching progress of the determination the second fragment video it
Before, the method further includes:
Set the cache priority grade of the second fragment video to highest.
4. it is method according to claim 1 or 2, described after the object time plays the second fragment video,
The method further includes:
Judge the second fragment video whether be the target video the last one fragment video;
If so, when the second fragment video playing finishes, stop playing the target video.
5. a kind of playback equipment, which is characterized in that including:
Acquiring unit, the index file for obtaining target video, the index file include forming the mesh by playing sequence
The network address of multiple fragment videos of video and the playing duration corresponding to each fragment video are marked, the target video is online
Order video;
Indexing units, the information index for establishing the multiple fragment video by the playing sequence according to the index file
Relationship, described information index relative include the description information of the initial time and the first fragment video of the first fragment video
The description information of incidence relation, the first fragment video includes at least following information:The index of the first fragment video is believed
Breath, the network address of the playing duration of the first fragment video and the first fragment video, the first fragment video are
Any video in the multiple fragment video;
First determination unit, for when receive user's transmission for positioning the play position of the target video to target
When the first message at moment, the second fragment video, the mesh are determined according to the first message and described information index relative
The moment is marked in the initial time of the second fragment video and between finish time;
Judging unit, when for judging whether the finish time of the buffered video in the second fragment video reaches the target
It carves;
Broadcast unit is used for when the finish time of the buffered video in the second fragment video reaching the object time,
The second fragment video is played from the object time.
6. playback equipment according to claim 5, which is characterized in that the playback equipment further includes:
Second determination unit, the caching progress for determining the second fragment video;
Computing unit, for calculating described second point according to the initial time of the caching progress and the second fragment video
The finish time of the buffered video of piece video.
7. playback equipment according to claim 5, which is characterized in that the playback equipment further includes:
Setting unit, for setting the cache priority grade of the second fragment video to highest.
8. playback equipment according to claim 5 or 6, the judging unit are additionally operable to judge the second fragment video
Whether be the target video the last one fragment video;
The broadcast unit is additionally operable to when the last one fragment video that the second fragment video is the target video, then
When the second fragment video playing finishes, stop playing the target video.
9. a kind of electronic equipment, including memory, processor, which is characterized in that the processor is deposited for executing in memory
The step of method of the buffered video as described in any one of Claims 1-4 is realized when the computer management class method of storage.
10. a kind of computer readable storage medium is stored thereon with computer management class method, it is characterised in that:The calculating
Machine management class method realizes the method for the buffered video as described in any one of Claims 1-4 when being executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810526284.6A CN108769830B (en) | 2018-05-29 | 2018-05-29 | Method for caching video and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810526284.6A CN108769830B (en) | 2018-05-29 | 2018-05-29 | Method for caching video and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108769830A true CN108769830A (en) | 2018-11-06 |
CN108769830B CN108769830B (en) | 2021-05-28 |
Family
ID=64003093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810526284.6A Active CN108769830B (en) | 2018-05-29 | 2018-05-29 | Method for caching video and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108769830B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109474854A (en) * | 2018-11-29 | 2019-03-15 | 广州市百果园信息技术有限公司 | Video broadcasting method, the generation method of playlist and relevant device |
CN110868643A (en) * | 2019-11-21 | 2020-03-06 | 郑州阿帕斯科技有限公司 | Method and device for determining video downloading progress |
CN112734982A (en) * | 2021-01-15 | 2021-04-30 | 北京小马慧行科技有限公司 | Storage method and system for unmanned vehicle driving behavior data |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102487458A (en) * | 2010-12-02 | 2012-06-06 | 中兴通讯股份有限公司 | Method for broadcasting and processing TS (Transport Stream) document and device thereof |
CN104581208A (en) * | 2015-01-30 | 2015-04-29 | 百度在线网络技术(北京)有限公司 | VOD (video on demand) and VOD aiding methods and devices |
CN105119890A (en) * | 2015-07-15 | 2015-12-02 | 天津市寰宇星辉科技有限公司 | Streaming media real-time playing method |
CN105208463A (en) * | 2015-08-31 | 2015-12-30 | 北京暴风科技股份有限公司 | Method and system for carrying out frame determination for m3u8 file |
CN105979404A (en) * | 2015-12-01 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Streaming media processing method and device |
CN106131660A (en) * | 2016-07-15 | 2016-11-16 | 青岛海信宽带多媒体技术有限公司 | video positioning playing method and device |
CN106559677A (en) * | 2015-09-30 | 2017-04-05 | 华为技术有限公司 | The method and device of terminal, caching server and acquisition video slicing |
-
2018
- 2018-05-29 CN CN201810526284.6A patent/CN108769830B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102487458A (en) * | 2010-12-02 | 2012-06-06 | 中兴通讯股份有限公司 | Method for broadcasting and processing TS (Transport Stream) document and device thereof |
CN104581208A (en) * | 2015-01-30 | 2015-04-29 | 百度在线网络技术(北京)有限公司 | VOD (video on demand) and VOD aiding methods and devices |
CN105119890A (en) * | 2015-07-15 | 2015-12-02 | 天津市寰宇星辉科技有限公司 | Streaming media real-time playing method |
CN105208463A (en) * | 2015-08-31 | 2015-12-30 | 北京暴风科技股份有限公司 | Method and system for carrying out frame determination for m3u8 file |
CN106559677A (en) * | 2015-09-30 | 2017-04-05 | 华为技术有限公司 | The method and device of terminal, caching server and acquisition video slicing |
WO2017054552A1 (en) * | 2015-09-30 | 2017-04-06 | 华为技术有限公司 | Terminal, cache server, and method for acquiring video slices and device thereof |
CN105979404A (en) * | 2015-12-01 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Streaming media processing method and device |
CN106131660A (en) * | 2016-07-15 | 2016-11-16 | 青岛海信宽带多媒体技术有限公司 | video positioning playing method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109474854A (en) * | 2018-11-29 | 2019-03-15 | 广州市百果园信息技术有限公司 | Video broadcasting method, the generation method of playlist and relevant device |
CN109474854B (en) * | 2018-11-29 | 2021-09-14 | 广州市百果园信息技术有限公司 | Video playing method, playlist generating method and related equipment |
CN110868643A (en) * | 2019-11-21 | 2020-03-06 | 郑州阿帕斯科技有限公司 | Method and device for determining video downloading progress |
CN112734982A (en) * | 2021-01-15 | 2021-04-30 | 北京小马慧行科技有限公司 | Storage method and system for unmanned vehicle driving behavior data |
Also Published As
Publication number | Publication date |
---|---|
CN108769830B (en) | 2021-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100377143C (en) | Method and apparatus for acquiring media services available from content aggregators | |
US20200312327A1 (en) | Method and system for processing comment information | |
CN103826159B (en) | The local offline player method and terminal of a kind of M3U8 format videos | |
CN102238434B (en) | A kind of IPTV files in stream media virtual segmentation and the method and system used | |
CN104378647B (en) | A kind of intelligent space storage system and method based on DTV | |
CN107222484A (en) | Support the stream media server system of multi-protocols input and output | |
WO2017063399A1 (en) | Video playback method and device | |
CN108833968A (en) | A kind of method and relevant device of buffered video | |
Wolk | Over the top: how the internet is (slowly but surely) changing the television industry | |
US20090113279A1 (en) | Method and apparatus for editing media | |
CN108769830A (en) | A kind of method and relevant device of buffered video | |
CN107645491A (en) | Media flow transmission equipment and media serving device | |
CN111277869B (en) | Video playing method, device, equipment and storage medium | |
CN106993238A (en) | Audio and video playing method and device, audio frequency and video live broadcasting method and system based on Html5 | |
CN108924630A (en) | A kind of method and playback equipment of display caching progress | |
CN106358047A (en) | Method and device for playing streaming media video | |
CN107592551A (en) | Method and apparatus for cloud stream service | |
CN105592369B (en) | A kind of video frequency abstract processing method and processing device | |
WO2015062263A1 (en) | Method and apparatus for recording data of network interaction protocol | |
US20180020043A1 (en) | Method for playing audio/video and display device | |
CN101729853B (en) | System, method, device and installation for filtering programs | |
CN106254908B (en) | Multimedia resource playing method and device | |
CN101221752B (en) | Method, device and system for implementing personal karaoke OK service by IPTV system | |
CN103685302A (en) | Method and system for processing connection content delivery network | |
CN103685548B (en) | The data processing method of content distribution network and system |
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 |