CN105898380A - Rapid network video play starting method and device - Google Patents
Rapid network video play starting method and device Download PDFInfo
- Publication number
- CN105898380A CN105898380A CN201510926131.7A CN201510926131A CN105898380A CN 105898380 A CN105898380 A CN 105898380A CN 201510926131 A CN201510926131 A CN 201510926131A CN 105898380 A CN105898380 A CN 105898380A
- Authority
- CN
- China
- Prior art keywords
- section
- file
- stream
- section file
- streams
- 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
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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/2389—Multiplex stream processing, e.g. multiplex stream encrypting
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/236—Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
- H04N21/23605—Creation or processing of packetized elementary streams [PES]
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/236—Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
- H04N21/23608—Remultiplexing multiplex streams, e.g. involving modifying time stamps or remapping the packet identifiers
-
- 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
Abstract
The invention discloses a rapid network video play starting method and device. A first TS (Transport Stream) slice file corresponding to TS identification is obtained according to the TS identification included in a detected TS download instruction; according to a preset segmentation time point, the first TS slice file is segmented to two or more TS slice streams at least; and the TS slice streams after segmentation of the first TS slice file are sent to a client according to a playing sequence, so that the client can start video play after caching two TS slice streams locally. Thus, video play can be started rapidly, and user experience is improved.
Description
Technical field
The invention belongs to internet video processing technology field, specifically, relate to one and quickly open and broadcast net
The method and apparatus of network video.
Background technology
Along with the fast development of internet multimedia technology, in the network bandwidth ever-increasing today, network
Video accesses experience easily with it, diversified film is originated, real-time renewal speed has attracted vast
User so that Internet video becomes the user network indispensable important component part of life.
In the prior art, exist and much use HLS (Http Live Streaming) to pass as Streaming Media
The video website of transmission protocol and netcast equipment.HLS protocol be Apple definition based on
The streaming media of Http (HyperText Transfer Protocol, HTTP) protocol realization
Agreement, continuous print media data is carried out segmentation by HLS protocol, is divided into multiple small documents and is transmitted,
Cater to the file transporting of web page server, use a lightweight index file constantly updated to control
The download of the little media file after system segmentation and broadcasting, it is possible to achieve the real-time Transmission of stream medium data, with
And the program request in netcast equipment end.
By HLS protocol, video data is divided into media data TS (Transport after treatment
Stream, transmission stream) file and media data index M3U8 file, and store in the server.
Wherein, M3U8 file stores each TS file URL (Uniform Resoure Locator,
URL) and the information such as time span.
When watching Internet video, netcast equipment, generally can be by after obtaining M3U8 file
Download according to URL therein and after local cache TS section file, start the broadcasting of Internet video.
Therefore, it may appear that after user opens the video playback page, need to wait a moment again and just can see video, i.e.
The buffer time that we often say, user experience is poor.
Therefore, a kind of quickly opening is broadcast the method for Internet video and is urgently proposed.
Summary of the invention
In view of this, this application provides a kind of speed and open the method and apparatus broadcasting Internet video, can reach
Open the effect broadcasting video faster, improve user experience.
The embodiment of the present invention provides a kind of and quickly opens the method broadcasting Internet video, including:
The TS mark acquisition comprised in stream TS download instruction that transmits according to detecting is marked with described TS
Know first corresponding TS section file;
According to default some sliced time, described first TS section file is at least divided into two or
Plural TS cuts into slices stream;
TS section stream after described first TS section file division is distributed to client according to playing sequence
End, so that described client can start video playback after two described TS section streams of local cache.
Wherein, obtain and described TS mark according to the TS mark comprised in the TS download instruction detected
Know first corresponding TS section file, including:
Obtain the M3U8 file forming described TS according to described TS mark, resolve described M3U8
File, with obtain all section files of the TS corresponding to described M3U8 file slice address and
The playing sequence of the section file that described slice address is corresponding;Wherein, described playing sequence is for playing institute
When stating TS, the broadcasting sequencing of the section file in described TS, according to described slice address pair
The playing sequence of the section file answered obtains first TS section file.
Wherein, according to default some sliced time, described first TS section file is at least divided into
Two or more TS cut into slices stream, also include:
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 6S, then file division of being cut into slices by described first TS is 3 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 2 TS sections by described first TS section file division
Stream, the time span of each TS section stream is 3S;
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 10S, then file division of being cut into slices by described first TS is 5 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 4 TS sections by described first TS section file division
Stream, wherein, the time span of two section streams is 2S, and the time span of two TS section streams is 3S.
Wherein, according to default some sliced time, described first TS section file is at least divided into
After two or more TS section stream, also include:
It is crucial by coding video frames corresponding for each split position in described first TS section file
Frame, extracts each key frame information, and described key frame information includes that described key frame is in described video
Corresponding timestamp.
Wherein, described method also includes:
Playing sequence according to section file corresponding to described slice address sequentially obtains follow-up TS section
File, according to default some sliced time, is at least divided into two or two by follow-up TS section file
Individual above TS section stream;And by the TS section stream after follow-up TS section file division according to broadcasting
Order is distributed to client.
The application also provides for a kind of device quickly opening and broadcasting Internet video, including:
Acquisition module, for obtaining according to the TS mark comprised in stream TS download instruction that transmits detected
Take first the TS section file corresponding with described TS mark;
Segmentation module, for according to some sliced time preset, cutting into slices file extremely by described first TS
It is divided into two or more TS section stream less;
Distribution module, for flowing the TS section after described first TS section file division according to broadcasting
Order is distributed to client, so that described client is after two described TS section streams of local cache
Video playback can be started.
Wherein, described acquisition module specifically for:
Obtain the M3U8 file forming described TS according to described TS mark, resolve described M3U8
File, with obtain all section files of the TS corresponding to described M3U8 file slice address and
The playing sequence of the section file that described slice address is corresponding;Wherein, described playing sequence is for playing institute
When stating TS, the broadcasting sequencing of the section file in described TS, according to described slice address pair
The playing sequence of the section file answered obtains first TS section file.
Wherein, described segmentation module specifically for:
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 6S, then file division of being cut into slices by described first TS is 3 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 2 TS sections by described first TS section file division
Stream, the time span of each TS section stream is 3S;
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 10S, then file division of being cut into slices by described first TS is 5 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 4 TS sections by described first TS section file division
Stream, wherein, the time span of two section streams is 2S, and the time span of two TS section streams is 3S.
Wherein, described device also includes:
Key frame coding module is used for: by each split position pair in described first TS section file
The coding video frames answered is key frame, extracts each key frame information, and described key frame information includes institute
State the timestamp that key frame is corresponding in described video.
Described acquisition module, be additionally operable to according to described slice address corresponding section file playing sequence by
Sequence obtains follow-up TS section file;
Described segmentation module, is additionally operable to according to some sliced time preset, file of being cut into slices by follow-up TS
At least it is divided into two or more TS section stream;
Described distribution module, the TS section stream after being additionally operable to follow-up TS section file division is according to broadcasting
Put forward sequence and be distributed to client.
First TS section file, according to some sliced time preset, is at least split by the embodiment of the present invention
For two or more TS section stream;And by the TS after described first TS section file division
Section stream is distributed to client according to playing sequence, so that described client is described in local cache two
Video playback can be started after TS section stream.Before having only to have cached due to client several smaller
After TS section stream, can commence play out video, the content making needs cache reduces, and decreases user
Stand-by period.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes of the application
Point, the schematic description and description of the application is used for explaining the application, is not intended that the application's
Improper restriction.In the accompanying drawings:
Fig. 1 is a kind of flow process signal quickly opening the method broadcasting Internet video that the embodiment of the present application provides
Figure;
Fig. 2 is a kind of structural representation quickly opening the device broadcasting Internet video that the embodiment of the present application provides
Figure.
Detailed description of the invention
Embodiments of the present invention are described in detail, thereby to the present invention below in conjunction with drawings and Examples
How application technology means solve technical problem and reach the process that realizes of technology effect and can fully understand
And implement according to this.
In a typical configuration, calculating equipment include one or more processor (CPU), input/
Output interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
(RAM) and/or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by
Any method or technology realize information storage.Information can be computer-readable instruction, data structure,
The module of program or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other
The random access memory (RAM) of type, read-only storage (ROM), electrically erasable is read-only deposits
Reservoir (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage
(CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be counted
The information that calculation equipment accesses.According to defining herein, computer-readable medium does not include non-temporary computer
Readable media (transitory media), such as data-signal and the carrier wave of modulation.
As have invoked some vocabulary in the middle of specification and claim to censure specific components.This area skill
Art personnel are it is to be appreciated that hardware manufacturer may call same assembly with different nouns.This explanation
In the way of book and claim not difference by title is used as distinguishing assembly, but with assembly in function
On difference be used as distinguish criterion." bag as mentioned by the middle of specification in the whole text and claim
Contain " it is an open language, therefore " comprise but be not limited to " should be construed to." substantially " refer to can
In the error range received, those skilled in the art can solve described technology in the range of certain error and ask
Topic, basically reaches described technique effect.Additionally, " coupling " word comprises any direct and indirect at this
Electric property coupling means.Therefore, if a first device is coupled to one second device described in literary composition, then represent
Described first device can directly be electrically coupled to described second device, or pass through other devices or couple means
Indirectly it is electrically coupled to described second device.Specification subsequent descriptions is to implement the preferable enforcement of the present invention
Mode, for the purpose of right described description is the rule so that the present invention to be described, is not limited to the present invention
Scope.Protection scope of the present invention is when being as the criterion depending on the defined person of claims.
Also, it should be noted term " includes ", " comprising " or its any other variant are intended to contain
Comprising of lid nonexcludability, so that include that the commodity of a series of key element or system not only include those
Key element, but also include other key elements being not expressly set out, or also include for this commodity or
The key element that system is intrinsic.In the case of there is no more restriction, statement " including ... " limit
Fixed key element, it is not excluded that there is also other identical want in the commodity including described key element or system
Element.
Inventor finds during realizing the present invention:
When watching Internet video, netcast equipment, generally can be by after obtaining M3U8 file
Download according to URL therein and after two TS section files of local cache, start broadcasting of Internet video
Put.At present, the time span of TS section file is usually 6s/ sheet or 10s/ sheet.This means to start
When playing video, need the caching video of at least 12 seconds to 20 seconds.Therefore, it may appear that user opens and regards
After frequency plays the page, need to wait a moment again and just can see video, the buffer time that i.e. we often say.
In order to improve user experience, the embodiment of the present invention is according to some sliced time preset, by first
TS section file is at least divided into two or more TS section stream;And by described first TS
TS section stream after section file division is distributed to client according to playing sequence, so that described client
Video playback can be started after two described TS section streams of local cache.Owing to client has only to
Before having cached after several smaller TS section stream, can commence play out video, make that needs cache is interior
Hold and reduce, decrease the stand-by period of user.
Fig. 1 is a kind of flow process signal quickly opening the method broadcasting Internet video that the embodiment of the present application provides
Figure, as it is shown in figure 1, include:
101, obtain with described according to the TS mark comprised in stream TS download instruction that transmits detected
First TS section file that TS mark is corresponding;
When implementing, step 101 such as includes:
Obtain the M3U8 file forming described TS according to described TS mark, resolve described M3U8
File, with obtain all section files of the TS corresponding to described M3U8 file slice address and
The playing sequence of the section file that described slice address is corresponding;Wherein, described playing sequence is for playing institute
When stating TS, the broadcasting sequencing of the section file in described TS, according to described slice address pair
The playing sequence of the section file answered obtains first TS section file.
102, according to some sliced time preset, described first TS section file is at least divided into two
Individual or plural TS section stream;
When implementing, step 102 such as includes:
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 6S, then file division of being cut into slices by described first TS is 3 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 2 TS sections by described first TS section file division
Stream, the time span of each TS section stream is 3S;
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 10S, then file division of being cut into slices by described first TS is 5 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 4 TS sections by described first TS section file division
Stream, wherein, the time span of two section streams is 2S, and the time span of two TS section streams is 3S.
Further, described first TS section file is at least divided into two or more TS
After section stream, also include:
It is crucial by coding video frames corresponding for each split position in described first TS section file
Frame, extracts each key frame information, and described key frame information includes that described key frame is in described video
Corresponding timestamp.
103, the TS section stream after described first TS section file division is distributed according to playing sequence
To client, regard so that described client can start after two described TS section streams of local cache
Frequency is play.
Further, also include after step 103:
Playing sequence according to section file corresponding to described slice address sequentially obtains follow-up TS section
File, according to default some sliced time, is at least divided into two or two by follow-up TS section file
Individual above TS section stream;And by the TS section stream after follow-up TS section file division according to broadcasting
Order is distributed to client.
Below by specific implementation, technical scheme is described in detail:
Such as, electronic equipment (such as mobile phone, notebook, IPAD etc.) receives user to video recommendations window
The triggering of the icon of any one video file in Kou, generates and comprises the TS corresponding to this video file
The download instruction of the TS of mark;Electronic equipment, after download instruction being detected, can send to comprise and needs
The downloading request message of the TS of the TS mark downloaded is to server.
Server obtains the M3U8 file that TS mark is corresponding, wherein, comprises M3U8 in M3U8 file
The slice address of all section files of the TS corresponding to file, M3U8 file can be a M3U8
Listing file, comprises the slice address of all section files of TS in this M3U8 listing file, and
And, the slice address of all section files of TS in this M3U8 listing file according to section file
Play sequencing to arrange.Such as, the playing sequence of the section file that slice address is corresponding is for playing
During described TS, the broadcasting sequencing of the section file in described TS.Server resolves described M3U8
File, obtains slice address and the institute of all section files of TS corresponding to described M3U8 file
State the playing sequence of section file corresponding to slice address, according to the section file that described slice address is corresponding
Playing sequence obtain first TS and cut into slices file.
Server determines first TS section file division position according to Preset Time point (such as 2 seconds),
It is key frame coding video frames corresponding for this position, so just can cut from this position during section, and
Obtain the TS section of setting time (such as 2 seconds).From the position cutting of this key frame, by original
One TS section is divided at least two panels.Continue to follow-up TS section file further according to Preset Time
Segmentation.
TS section stream after segmentation is as shown in table 1:
Or, the Preset Time point of each cutting can be different, as shown in table 2:
The M3U8 file got, after first TS cutting file of segmentation, is issued to by server
This electronic equipment.
Wherein, electronic equipment can get the cutting of all section files of the TS corresponding to M3U8 file
Sheet address, and each slice address both corresponds to a network address information.Therefore, electronic equipment can
To download the section stream of first section file according to first slice address, in the embodiment of the present invention, only
Needing to flow down the first two section of first section file that load (such as 4S) is complete can be started broadcasting and regard
Frequently, compared with in prior art, need by first section file and second section file download (as
12S) complete just opening broadcasts video, and the content making needs cache greatly reduces, and therefore decreases buffer time
With the stand-by period of user, be greatly improved user experience.
In actual applications, the section stream of all section files that download is obtained by electronic equipment stores to this
Ground;Further, electronic equipment can according to slice address corresponding section file playing sequence, depend on
The secondary section stream downloading each section file respectively, then according still further to the section file that slice address is corresponding
Section stream playing sequence respectively download is obtained section file section stream store to this locality.
Wherein, i.e. the cut into slices section stream of file of the locally stored address of the section stream of section file sets at electronics
The standby storage positional information in locally stored space.
Wherein, electronic equipment can be by the locally stored address of the section stream of section file according to locally stored
The sequencing of the broadcasting of the section stream of the section file corresponding to address, is sequentially arranged in M3U8 local
In list, in order to electronic equipment, can according to locally stored address at M3U8 originally when playing this TS
The sequencing of arrangement in ground list, reads the section of section file according to corresponding locally stored address
Stream, and by playing the section stream of all section files in TS continuously, it is achieved the complete stream of TS
Smooth broadcasting.
In embodiments of the present invention, locally stored address putting in order in described M3U8 local list
During for playing described TS, the broadcasting of the section stream of the section file corresponding to each locally stored address is first
Rear order.It should be noted that owing to the player of electronic equipment only can identify video flowing to be played
The network address, then reads and plays corresponding video flowing, therefore electronics according to the network address recognized
The player of equipment is None-identified to the locally stored address in M3U8 local list, and then cannot root
Read according to the locally stored address in M3U8 local list and play TS's.Therefore, in order to ensure electricity
The player of subset can identify the locally stored address in M3U8 local list, the embodiment of the present invention
In, electronic equipment needs the form by the locally stored address in M3U8 local list to be changed to virtual net
The form of network address, and make putting in order and playing of virtual network address in M3U8 local list
The most corresponding.Wherein, in embodiments of the present invention, virtual network address arranges in described M3U8 this locality
In table when putting in order as playing described TS, the section file corresponding to each virtual network address
The broadcasting sequencing of section stream.Concrete, electronic equipment can set up a this locality in the electronic device
Hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) server S erver,
Then by HTTP Server, the form of the locally stored address in M3U8 local list is changed to
The form of virtual network address.Wherein, this locality in M3U8 local list is deposited by HTTP Server
The concrete grammar of the form that the form of storage address is changed to virtual network address is referred in prior art
The form of locally stored address is changed to the associated description of the form of virtual network address, and the present invention implements
Example repeats no more here.Electronic equipment is after the play instruction of TS being detected, according to M3U8 local list
In the putting in order of each virtual network address, play according to different virtual network address successively and cut accordingly
The section stream of sheet file.Wherein, can be directly according to through HTTP due to the player of electronic equipment
After Server revision, locally stored address (virtual network address) is read from locally stored space accordingly
The section stream of section file, therefore, electronic equipment, can be by after the play instruction of TS being detected
According to the putting in order, according to each virtual network address successively of virtual network address in M3U8 local list
Play the section stream of each section file.
Fig. 2 is a kind of structural representation quickly opening the device broadcasting Internet video that the embodiment of the present application provides
Figure, as in figure 2 it is shown, include:
Acquisition module 21, for transmitting, according to detect, the TS mark comprised in stream TS download instruction
Obtain first the TS section file corresponding with described TS mark;
Segmentation module 22, for according to some sliced time preset, by described first TS section file
At least it is divided into two or more TS section stream;
Distribution module 23, for by the TS section stream after described first TS section file division according to
Playing sequence is distributed to client, so that described client is at two described TS section streams of local cache
After can start video playback.
Described acquisition module 21 specifically for:
Obtain the M3U8 file forming described TS according to described TS mark, resolve described M3U8
File, with obtain all section files of the TS corresponding to described M3U8 file slice address and
The playing sequence of the section file that described slice address is corresponding;Wherein, described playing sequence is for playing institute
When stating TS, the broadcasting sequencing of the section file in described TS, according to described slice address pair
The playing sequence of the section file answered obtains first TS section file.
Described segmentation module 22 specifically for:
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 6S, then file division of being cut into slices by described first TS is 3 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 2 TS sections by described first TS section file division
Stream, the time span of each TS section stream is 3S;
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 10S, then file division of being cut into slices by described first TS is 5 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 4 TS sections by described first TS section file division
Stream, wherein, the time span of two section streams is 2S, and the time span of two TS section streams is 3S.
Described device also includes:
Key frame coding module 24 is used for: by each split position in described first TS section file
Corresponding coding video frames is key frame, extracts each key frame information, and described key frame information includes
The timestamp that described key frame is corresponding in described video.
Described acquisition module 21, the broadcasting being additionally operable to the section file corresponding according to described slice address is suitable
Sequence sequentially obtains follow-up TS section file;
Described segmentation module 22, is additionally operable to according to some sliced time preset, by follow-up TS section literary composition
Part is at least divided into two or more TS section stream;
Described distribution module 23, the TS section stream after being additionally operable to follow-up TS section file division by
It is distributed to client according to playing sequence.
Device shown in Fig. 2 can perform the method shown in Fig. 1, and it realizes principle and technique effect no longer
Repeat.
Described above illustrate and describes some preferred embodiments of the present invention, but as previously mentioned, it should reason
Solve the present invention and be not limited to form disclosed herein, be not to be taken as the eliminating to other embodiments,
And can be used for various other combination, amendment and environment, and can in invention contemplated scope described herein,
It is modified by above-mentioned teaching or the technology of association area or knowledge.And those skilled in the art are carried out changes
Move and change is without departing from the spirit and scope of the present invention, the most all should be in the protection of claims of the present invention
In the range of.
Claims (10)
1. one kind is quickly opened the method broadcasting Internet video, it is characterised in that including:
The TS mark acquisition comprised in stream TS download instruction that transmits according to detecting is marked with described TS
Know first corresponding TS section file;
According to default some sliced time, described first TS section file is at least divided into two or
Plural TS cuts into slices stream;
TS section stream after described first TS section file division is distributed to client according to playing sequence
End, so that described client can start video playback after two described TS section streams of local cache.
2. the method for claim 1, it is characterised in that download according to the TS detected and refer to
The TS mark comprised in order obtains first the TS section file corresponding with described TS mark, including:
Obtain the M3U8 file forming described TS according to described TS mark, resolve described M3U8
File, with obtain all section files of the TS corresponding to described M3U8 file slice address and
The playing sequence of the section file that described slice address is corresponding;Wherein, described playing sequence is for playing institute
When stating TS, the broadcasting sequencing of the section file in described TS, according to described slice address pair
The playing sequence of the section file answered obtains first TS section file.
3. the method for claim 1, it is characterised in that according to default some sliced time,
Described first TS section file is at least divided into two or more TS section stream, also includes:
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 6S, then file division of being cut into slices by described first TS is 3 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 2 TS sections by described first TS section file division
Stream, the time span of each TS section stream is 3S;
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 10S, then file division of being cut into slices by described first TS is 5 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 4 TS sections by described first TS section file division
Stream, wherein, the time span of two section streams is 2S, and the time span of two TS section streams is 3S.
4. method as claimed in claim 3, it is characterised in that according to default some sliced time,
After described first TS section file is at least divided into two or more TS section stream, also
Including:
It is crucial by coding video frames corresponding for each split position in described first TS section file
Frame, extracts each key frame information, and described key frame information includes that described key frame is in described video
Corresponding timestamp.
5. the method as according to any one of claim 1-4, it is characterised in that also include:
Playing sequence according to section file corresponding to described slice address sequentially obtains follow-up TS section
File, according to default some sliced time, is at least divided into two or two by follow-up TS section file
Individual above TS section stream;And by the TS section stream after follow-up TS section file division according to broadcasting
Order is distributed to client.
6. one kind is quickly opened the device broadcasting Internet video, it is characterised in that including:
Acquisition module, for obtaining according to the TS mark comprised in stream TS download instruction that transmits detected
Take first the TS section file corresponding with described TS mark;
Segmentation module, for according to some sliced time preset, cutting into slices file extremely by described first TS
It is divided into two or more TS section stream less;
Distribution module, for flowing the TS section after described first TS section file division according to broadcasting
Order is distributed to client, so that described client is after two described TS section streams of local cache
Video playback can be started.
7. device as claimed in claim 6, it is characterised in that described acquisition module specifically for:
Obtain the M3U8 file forming described TS according to described TS mark, resolve described M3U8
File, with obtain all section files of the TS corresponding to described M3U8 file slice address and
The playing sequence of the section file that described slice address is corresponding;Wherein, described playing sequence is for playing institute
When stating TS, the broadcasting sequencing of the section file in described TS, according to described slice address pair
The playing sequence of the section file answered obtains first TS section file.
8. device as claimed in claim 6, it is characterised in that described segmentation module specifically for:
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 6S, then file division of being cut into slices by described first TS is 3 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 2 TS sections by described first TS section file division
Stream, the time span of each TS section stream is 3S;
If some sliced time preset includes 2S or 3S, and the time of described first TS section file is long
Degree is 10S, then file division of being cut into slices by described first TS is 5 TS section streams, and each TS cuts
The time span of sheet stream is 2S;Or it is 4 TS sections by described first TS section file division
Stream, wherein, the time span of two section streams is 2S, and the time span of two TS section streams is 3S.
9. device as claimed in claim 8, it is characterised in that also include:
Key frame coding module is used for: by each split position pair in described first TS section file
The coding video frames answered is key frame, extracts each key frame information, and described key frame information includes institute
State the timestamp that key frame is corresponding in described video.
10. the device as according to any one of claim 6-9, it is characterised in that:
Described acquisition module, be additionally operable to according to described slice address corresponding section file playing sequence by
Sequence obtains follow-up TS section file;
Described segmentation module, is additionally operable to according to some sliced time preset, file of being cut into slices by follow-up TS
At least it is divided into two or more TS section stream;
Described distribution module, the TS section stream after being additionally operable to follow-up TS section file division is according to broadcasting
Put forward sequence and be distributed to client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510926131.7A CN105898380A (en) | 2015-12-14 | 2015-12-14 | Rapid network video play starting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510926131.7A CN105898380A (en) | 2015-12-14 | 2015-12-14 | Rapid network video play starting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105898380A true CN105898380A (en) | 2016-08-24 |
Family
ID=57002996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510926131.7A Pending CN105898380A (en) | 2015-12-14 | 2015-12-14 | Rapid network video play starting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105898380A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106358047A (en) * | 2016-10-09 | 2017-01-25 | 天脉聚源(北京)科技有限公司 | Method and device for playing streaming media video |
CN109218745A (en) * | 2018-10-31 | 2019-01-15 | 网宿科技股份有限公司 | A kind of live broadcasting method, server, client and readable storage medium storing program for executing |
CN109889917A (en) * | 2017-12-06 | 2019-06-14 | 上海交通大学 | A kind of video transmission method based on caching coding |
CN110856047A (en) * | 2019-12-05 | 2020-02-28 | 湖南省农业信息与工程研究所 | Decomposition method of traceability video file, streaming media server and client |
WO2021042936A1 (en) * | 2019-09-04 | 2021-03-11 | 北京字节跳动网络技术有限公司 | Video data processing method, apparatus, electronic device and computer-readable medium |
CN112954445A (en) * | 2021-03-16 | 2021-06-11 | 深圳市迅雷网络技术有限公司 | Streaming media file playing method and device, computer equipment and storage medium |
CN113259695A (en) * | 2021-04-29 | 2021-08-13 | 广州虎牙科技有限公司 | Video playing method and device, electronic equipment and storage medium |
CN113329267A (en) * | 2021-05-27 | 2021-08-31 | 北京奇艺世纪科技有限公司 | Video playing method and device, terminal equipment and storage medium |
CN114422831A (en) * | 2022-01-20 | 2022-04-29 | 北京奇艺世纪科技有限公司 | Media playing method and device, electronic equipment and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102238434A (en) * | 2011-07-22 | 2011-11-09 | 中兴通讯股份有限公司 | Method and system for segmenting internet protocol television (IPTV) stream media file virtually |
WO2012035728A1 (en) * | 2010-09-16 | 2012-03-22 | パナソニック株式会社 | Image decoding device and image encoding device, methods therefor, programs thereof, integrated circuit, and transcoding device |
CN102611945A (en) * | 2011-12-19 | 2012-07-25 | 北京蓝汛通信技术有限责任公司 | Streaming media slicing method, slicing server and streaming media demand system |
CN103702171A (en) * | 2013-12-12 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Method for downloading video stream and electronic equipment |
CN104243430A (en) * | 2013-06-20 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Streaming media playing method and device |
CN104980795A (en) * | 2014-04-09 | 2015-10-14 | 北大方正集团有限公司 | Multi-terminal video file processing method and system |
-
2015
- 2015-12-14 CN CN201510926131.7A patent/CN105898380A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012035728A1 (en) * | 2010-09-16 | 2012-03-22 | パナソニック株式会社 | Image decoding device and image encoding device, methods therefor, programs thereof, integrated circuit, and transcoding device |
CN102238434A (en) * | 2011-07-22 | 2011-11-09 | 中兴通讯股份有限公司 | Method and system for segmenting internet protocol television (IPTV) stream media file virtually |
CN102611945A (en) * | 2011-12-19 | 2012-07-25 | 北京蓝汛通信技术有限责任公司 | Streaming media slicing method, slicing server and streaming media demand system |
CN104243430A (en) * | 2013-06-20 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Streaming media playing method and device |
CN103702171A (en) * | 2013-12-12 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Method for downloading video stream and electronic equipment |
CN104980795A (en) * | 2014-04-09 | 2015-10-14 | 北大方正集团有限公司 | Multi-terminal video file processing method and system |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106358047A (en) * | 2016-10-09 | 2017-01-25 | 天脉聚源(北京)科技有限公司 | Method and device for playing streaming media video |
CN109889917A (en) * | 2017-12-06 | 2019-06-14 | 上海交通大学 | A kind of video transmission method based on caching coding |
CN109889917B (en) * | 2017-12-06 | 2020-07-14 | 上海交通大学 | Video transmission method based on cache coding |
CN109218745A (en) * | 2018-10-31 | 2019-01-15 | 网宿科技股份有限公司 | A kind of live broadcasting method, server, client and readable storage medium storing program for executing |
CN109218745B (en) * | 2018-10-31 | 2021-07-23 | 网宿科技股份有限公司 | Live broadcast method, server, client and readable storage medium |
JP2022536387A (en) * | 2019-09-04 | 2022-08-15 | 北京字節跳動網絡技術有限公司 | Video data processing method, apparatus, electronic equipment and computer readable medium |
WO2021042936A1 (en) * | 2019-09-04 | 2021-03-11 | 北京字节跳动网络技术有限公司 | Video data processing method, apparatus, electronic device and computer-readable medium |
CN110856047A (en) * | 2019-12-05 | 2020-02-28 | 湖南省农业信息与工程研究所 | Decomposition method of traceability video file, streaming media server and client |
CN112954445A (en) * | 2021-03-16 | 2021-06-11 | 深圳市迅雷网络技术有限公司 | Streaming media file playing method and device, computer equipment and storage medium |
CN113259695A (en) * | 2021-04-29 | 2021-08-13 | 广州虎牙科技有限公司 | Video playing method and device, electronic equipment and storage medium |
CN113329267A (en) * | 2021-05-27 | 2021-08-31 | 北京奇艺世纪科技有限公司 | Video playing method and device, terminal equipment and storage medium |
CN113329267B (en) * | 2021-05-27 | 2023-03-24 | 北京奇艺世纪科技有限公司 | Video playing method and device, terminal equipment and storage medium |
CN114422831A (en) * | 2022-01-20 | 2022-04-29 | 北京奇艺世纪科技有限公司 | Media playing method and device, electronic equipment and readable storage medium |
CN114422831B (en) * | 2022-01-20 | 2024-03-19 | 北京奇艺世纪科技有限公司 | Media playing method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105898380A (en) | Rapid network video play starting method and device | |
US8510317B2 (en) | Providing search results based on keyword detection in media content | |
US10454983B2 (en) | Non-chronological buffering of segments of a media file | |
US8892634B2 (en) | Extensible video player selection via server-side detection of client application | |
US20130318157A1 (en) | Relevancy improvement through targeting of information based on data gathered from a networked device associated with a security sandbox of a client device | |
US20120110201A1 (en) | Method and apparatus for updating http content descriptions | |
US20070294265A1 (en) | Identification of content downloaded from the internet and its source location | |
CN102111685A (en) | Acceleration method, equipment and system for network video loading | |
US20190286684A1 (en) | Reception device, information processing method in reception device, transmission device, information processing device, and information processing method | |
CN103605808B (en) | Based on the method and system that the UGC of search recommends | |
CN105187950B (en) | A kind of method, apparatus and system that video file plays | |
CN107801051B (en) | Virtual sliced sheet information transferring method and device, video server | |
CN107809684B (en) | Video segment generation method and device, cache server | |
CN104702978B (en) | A kind of method and netcast equipment of video data positioning | |
US20170300293A1 (en) | Voice synthesizer for digital magazine playback | |
US20080059478A1 (en) | Methods, systems, and computer program products for organizing and sharing content | |
CN107888941B (en) | Video segment transmission method, device and system | |
CN104023046B (en) | Mobile terminal recognition method and device | |
CN107911712A (en) | Data buffering method and electronic equipment | |
CN109587517B (en) | Multimedia file playing method and device, server and storage medium | |
CN110771172B (en) | System and storage medium for dynamic multimedia stream insertion from multiple sources | |
US10992615B2 (en) | Dynamic open graph module for posting content one or more platforms | |
US20160353176A1 (en) | Contextual content programming | |
EP2902924A1 (en) | Method for automatically selecting a real-time video stream among a plurality of available real-time video streams, and associated system | |
US20140122573A1 (en) | Method and system for processing data through network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160824 |
|
WD01 | Invention patent application deemed withdrawn after publication |