CN103813185B - A kind of method that segment programs are quickly distributed, server and client - Google Patents
A kind of method that segment programs are quickly distributed, server and client Download PDFInfo
- Publication number
- CN103813185B CN103813185B CN201410037902.2A CN201410037902A CN103813185B CN 103813185 B CN103813185 B CN 103813185B CN 201410037902 A CN201410037902 A CN 201410037902A CN 103813185 B CN103813185 B CN 103813185B
- Authority
- CN
- China
- Prior art keywords
- index
- segmented
- segmented index
- distribution
- response
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
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/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
- H04N21/658—Transmission by the client directed to the server
- H04N21/6581—Reference data, e.g. a movie identifier for ordering a movie or a product identifier in a home shopping application
-
- 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/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26258—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
-
- 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 kind of methods that segment programs are quickly distributed, server and client side, wherein this method comprises: program source is divided into multiple continuous segment programs and segmented index, establishes the corresponding relationship of each segmented index and one or more segment programs;Client is received to request the distribution of a certain segmented index;Distribution response is returned to the client, the segmented index and the corresponding one or more segment programs of the segmented index are carried in the response body of the distribution response.Method of the invention, server and client side can reduce the time of entire program distribution, reduce the waste to network bandwidth, improve user experience quality.
Description
Technical field
The present invention relates to Streaming Media fields, and in particular to a kind of method that segment programs are quickly distributed, server and client
End.
Background technique
With the development of communication technology, the application of multimedia technology is more and more wider.Traditional streaming media service is to be based on
RTSP (Real Time Streaming Protocol, real-time streaming protocol)/RTP (Real-timeTransport
Protocol, real-time transport protocol).But since both agreements are the disadvantages of passing through firewall there are problems, in recent years
It develops based on hypertext transfer protocol and streaming media service is provided, i.e. DASH (Dynamic adaptive streaming
Over HTTP, the dynamic based on hypertext transfer protocol adjust streaming media service).As other streaming media services, DASH is same
Sample supports program request and direct broadcast service.
For the ease of the function of realizing direct playing and playback and seen in downloading, usually programme content is physically or logically being divided
At many subsections, each segmentation corresponding segments index, all indexes string together form program index table (Media
Presentation Description, MPD, the information such as index comprising partitioning), content obtains segmentation when issuing first
Then index obtains corresponding segment program according to segmented index.This mode can easily modify to programme content and
Replacement, and existing content distributing network (Content Delivery Network, abbreviation CDN) system can be compatible with.
The present invention has head response, responds in body comprising segmented index and segment programs.
The distribution flow of existing segment programs obtains divide first as shown in Figure 1, when client obtains a segment programs
Segment index, server can return to distribution response to client, and the structure of distribution response is as shown in Figure 2, comprising: responsive trip, sound
Head and response body are answered, what is carried in response body is segmented index information, includes that segmented index is corresponding in the segmented index information
Segment programs, then client parses segmented index information, obtains corresponding segment programs according to index information.But with
The content that the increase of program source contents will lead to segment programs and segmented index increases, on network, especially Bandwidth-Constrained
Segmented index and program are constantly transmitted on mobile network, the time that entire program is distributed completely is increasing, continuous to transmit
Segmented index and parsing index waste network bandwidth and also increase whole time delay, the final speed for reducing program distribution, timeliness
Property is not also high.
Summary of the invention
The technical problem to be solved by the invention is to provide a kind of method that segment programs are quickly distributed, server and clients
End, can reduce the time of entire program distribution, reduce the waste to network bandwidth, improve user experience quality.
In order to solve the above-mentioned technical problems, the present invention provides a kind of methods that segment programs are quickly distributed, and are applied to clothes
Business device end, comprising:
Program source is divided into multiple continuous segment programs and segmented index, establishes each segmented index and one or more
The corresponding relationship of segment programs;
Client is received to request the distribution of a certain segmented index;
To the client return distribution response, it is described distribution response response body in carry the segmented index and
The corresponding one or more segment programs of the segmented index.
Further, program source is divided into multiple continuous segment programs and segmented index, establishes each segmented index
After the corresponding relationship of one or more segment programs, further includes:
It generates a uniform resource position mark URL and identifies the segmented index, and notify the client;
It receives the client to request the distribution of a certain segmented index, carries this corresponding point in the distribution request
The URL of segment index;
The distribution response is returned to the client according to the URL.
It is further, described to generate a uniform resource position mark URL identified segments index, comprising:
It generates a URL and identifies first segmented index;Alternatively,
By being interacted with the client, generates a URL and identify a certain segment programs that the client request issues
Corresponding segmented index.
Further, the method also includes:
Receive the client carries first segmented index of mark or the corresponding segmentation rope of a certain segment programs
The distribution of the URL drawn is requested;
To the client return distribution response, it is described distribution response head response in identify the segmented index whether be
The last one segmented index in index file, if it is, indicating that this segmented index is the last one segmentation rope in index file
Draw;If it is not, then indicating next segmented index;
Alternatively, indicating the sequence of the last one segmented index in the index file in the head response of the distribution response
Number.
Further, a certain segmented index is the first segmented index or index text in the index file
Non- first segmented index in part, the index file include all index segmentations.
In order to solve the above-mentioned technical problems, the present invention provides a kind of methods that segment programs are quickly distributed, and are applied to visitor
Family end, comprising:
The distribution request for obtaining a certain segmented index is sent to server end;
The distribution response that the server end returns is received, carries the segmentation rope in the response body of the distribution response
Regard it as and the corresponding one or more segment programs of the segmented index;
The segment programs are successively stored according to the sequence number in the segmented index indexed file.
Further, before the distribution request that a certain segmented index of acquisition is sent to server end, comprising:
Receive the uniform resource position mark URL for first segmented index of mark that the server is sent;Or
By being interacted with the server, receive the mark client request that the server is sent issue it is a certain
The URL of the corresponding segmented index of segment programs.
Further, it when the distribution for sending a certain segmented index of acquisition to server end is requested, is asked in the distribution
Seek the middle URL for carrying and identifying a certain segmented index;
The URL of the mark a certain segmented index, comprising:
Identify the URL of first segmented index;Alternatively,
Identify the URL for the corresponding segmented index of a certain segment programs that the client request issues.
Further, the method also includes:
The distribution response that the server end returns is received, is identified with the segmentation rope in the head response of the distribution response
Whether be in index file the last one segmented index, if it is, indicating that this segmented index is last in index file if drawing
A segmented index;If it is not, then indicating next segmented index;
If the head response instruction has next segmented index, is sent to the server and obtain next segmentation rope
The distribution drawn is requested, and carries the URL for identifying next segmented index in the distribution request;If the head response refers to
Show that this segmented index is the last one segmented index in the index file, does not then send distribution request to the server;
The segment programs of all acquisitions are successively stored according to sequence number of the segmented index in the index file.
Further, the method also includes:
The distribution response that the server end returns is received, the head response middle finger of the distribution response is shown with index file
The last one segmented index sequence number;
The client successively sends second segmented index of acquisition to the server or a certain segment programs are corresponding
The distribution request of next segmented index of segmented index to the last segmented index, the distribution request in carry mark
Next segmented index to the last one for knowing second segmented index or the corresponding segmented index of a certain segment programs
The URL of segmented index;
The distribution response that the server end successively returns is received, and by the segment programs of all acquisitions according to segmented index
Sequence number in the index file is successively stored.
Further, the method also includes:
The distribution response that the server end returns is received, carries segmented index in the head response of the distribution response
The name list of corresponding segment programs;
The segment programs are successively stored according to the name list of corresponding segment programs in the segmented index.
Further, a certain segmented index is the first segmented index or index text in the index file
Non- first segmented index in part, the index file include all index segmentations.
In order to solve the above-mentioned technical problem, the present invention also provides a kind of servers, quickly distribute for segment programs, packet
It includes:
Segmentation module establishes each segmentation rope for program source to be divided into multiple continuous segment programs and segmented index
Draw the corresponding relationship with one or more segment programs;
Receiving module requests the distribution of a certain segmented index for receiving client;
Distribute respond module, for returning to distribution response to the client, is carried in the response body of the distribution response
There are the segmented index and the corresponding one or more segment programs of the segmented index.
Further, the segmentation module is also used to program source being divided into multiple continuous segment programs and segmentation rope
Draw, establishes after the corresponding relationship of each segmented index and one or more segment programs, generate a uniform resource locator
URL identifies the segmented index, and notifies the client;
The receiving module is also used to receive the client and requests the distribution of a certain segmented index, the distribution
The URL of the corresponding segmented index is carried in request;
The distribution respond module is also used to return to the distribution response to the client according to the URL.
Further, the segmentation module is also used to generate a uniform resource position mark URL identified segments index, packet
It includes:
It generates a URL and identifies first segmented index;Alternatively,
By being interacted with the client, generates a URL and identify a certain segment programs that the client request issues
Corresponding segmented index.
Further, the receiving module, be also used to receive the client carries first segmentation rope of mark
Draw or the distribution of the URL of the corresponding segmented index of a certain segment programs is requested;
The distribution respond module is also used to return to distribution response to the client, in the response of the distribution response
Identify whether the segmented index is the last one segmented index in index file in head, if it is, indicating that this segmented index is
The last one segmented index in index file;If it is not, then indicating next segmented index;
Alternatively, indicating the sequence of the last one segmented index in the index file in the head response of the distribution response
Number.
Further, a certain segmented index is the first segmented index or index text in the index file
Non- first segmented index in part, the index file include all index segmentations.
In order to solve the above-mentioned technical problem, the present invention also provides a kind of clients, quickly distribute for segment programs, packet
It includes:
Distribute request module, for sending the distribution request for obtaining a certain segmented index to server end;
Receiving module is responded for receiving the distribution that the server end returns, and is taken in the response body of the distribution response
With the corresponding one or more segment programs of the segmented index and the segmented index;
Memory module, for depositing the segment programs according to the sequence number in the segmented index indexed file
Storage.
Further, the client further includes the interactive module being connected with the distribution request module, in which:
The interactive module, for receiving the unified resource positioning of first segmented index of mark that the server is sent
Accord with URL;Alternatively, receiving what the mark client request that the server is sent issued by interacting with the server
The URL of the corresponding segmented index of a certain segment programs.
Further, the distribution request module, the distribution for sending a certain segmented index of acquisition to server end are asked
When, the URL for identifying the segmented index is carried in the distribution request;
The URL of the mark a certain segmented index, comprising:
Identify the URL of first segmented index;Alternatively,
Identify the URL for the corresponding segmented index of a certain segment programs that the client request issues.
Further, the receiving module is also used to receive the distribution response that the server end returns, wherein described
Distribute in the head response of response and is identified with whether the segmented index is the last one segmented index in index file, if it is,
Indicate that this segmented index is the last one segmented index in index file;If it is not, then indicating next segmented index;
The distribution request module, if being also used to the head response instruction has next segmented index, to the clothes
Business device sends the distribution request for obtaining next segmented index, carries in the distribution request and identifies next segmentation rope
The URL drawn;If the head response indicates that this segmented index is the last one segmented index in the index file, not to institute
It states server and sends distribution request;
The memory module is also used to the segment programs of all acquisitions according to segmented index in the index file
Sequence number is successively stored.
Further, the receiving module, is also used to receive the distribution response that the server end returns, and the distribution is rung
The head response middle finger answered is shown with the sequence number of the last one segmented index of index file;
The distribution request module is also used to successively send second segmented index of acquisition or a certain point to the server
The distribution request of next segmented index of the corresponding segmented index of section program to the last segmented index, the distribution are asked
The next segmented index for identifying second segmented index or the corresponding segmented index of a certain segment programs is carried in asking
The to the last URL of a segmented index;
The memory module, in the distribution response for successively returning to the server end segment programs that carry according to
Sequence number of the segmented index in the index file is successively stored.
Further, the receiving module, is also used to receive the distribution response that the server end returns, and the distribution is rung
The name list of the corresponding segment programs of segmented index is carried in the head response answered;
The memory module is also used to the name by the segment programs according to corresponding segment programs in the segmented index
List is claimed successively to be stored.
Further, a certain segmented index is the first segmented index or index text in the index file
Non- first segmented index in part, the index file include all index segmentations.
Compared with prior art, segment programs provided by the invention are quickly distributed method, server and client side, work as visitor
When some segmented index is requested at family end, segmented index can be pushed to simultaneously by server end with corresponding segment programs in index
Client, reduce traditional continuous parsing segmented index obtain network delay in segment programs and parsing segmented index when
Prolong, also increase the utilization rate of network bandwidth, improve user experience, is finally reached a kind of effect quickly distributed.
Detailed description of the invention
Fig. 1 is the schematic diagram of segment programs distribution in the prior art;
Fig. 2 is the distribution response structure schematic diagram that server is returned to client in the prior art;
Fig. 3 is the schematic diagram that segment programs are distributed in the present embodiment
Fig. 4 is the structure chart of server in embodiment;
Fig. 5 is the structure chart of client in embodiment;
Fig. 6 is networking schematic diagram in embodiment;
Fig. 7 is configuration diagram in embodiment;
Fig. 8 is the method flow diagram that the segment programs in embodiment applied to server end are quickly distributed.
Fig. 9 is the method flow diagram that the segment programs in embodiment applied to client are quickly distributed.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Embodiment:
The core concept of this implementation is exactly: establishing each segmented index and one or more segment programs in server end
Corresponding relationship, when some segmented index of client request, server end in the different field in response body by distinguishing
Corresponding segment programs in segmented index and index are carried, so that segmented index be pushed away simultaneously with corresponding segment programs in index
Client is given, client realizes the distribution to whole segment programs by all segmented indexes of continuation requests, such as Fig. 3 institute
Show, provides the schematic diagram that segment programs are distributed in the present embodiment.Distribute in the present embodiment response field structure and existing skill
It is identical in art, as shown in Figure 2, comprising: responsive trip, head response and response body, still, the letter that head response and response body are carried
Breath changes, and in the present embodiment, head response can carry instruction information, comprising: identify whether the segmented index is rope
The last one segmented index in quotation part, if it is, indicating that this segmented index is the last one segmented index in index file;
If it is not, then indicating next segmented index;Alternatively, indicating the sequence of the last one segmented index in the index file
Number;The name list of the corresponding segment programs of segmented index can also be carried in head response;In the response body of the distribution response
Carry the segmented index and the corresponding one or more segment programs of the segmented index.
As shown in figure 4, present embodiments providing a kind of server, quickly distribute for segment programs, comprising:
Segmentation module establishes each segmentation rope for program source to be divided into multiple continuous segment programs and segmented index
Draw the corresponding relationship with one or more segment programs;
Receiving module requests the distribution of a certain segmented index for receiving client;
Distribute respond module, for returning to distribution response to the client, is carried in the response body of the distribution response
There are the segmented index and the corresponding one or more segment programs of the segmented index.
Wherein, the segmentation module is also used to program source being divided into multiple continuous segment programs and segmented index, build
After the corresponding relationship for founding each segmented index and one or more segment programs, a uniform resource position mark URL mark is generated
Know the segmented index, and notifies the client;
Wherein, a uniform resource position mark URL identified segments index is generated, comprising:
It generates a URL and identifies first segmented index;Alternatively,
By being interacted with the client, generates a URL and identify a certain segment programs that the client request issues
Corresponding segmented index.
The receiving module is also used to receive the client and requests the distribution of a certain segmented index, the distribution
The URL of the corresponding segmented index is carried in request;
The distribution respond module is also used to return to the distribution response to the client according to the URL.
As a preferred mode, the receiving module, be also used to receive the client carries mark
The distribution of the URL of one segmented index or the corresponding segmented index of a certain segment programs is requested;
The distribution respond module is also used to return to distribution response to the client, in the response of the distribution response
Identify whether the segmented index is the last one segmented index in index file in head, if it is, indicating that this segmented index is
The last one segmented index in index file;If it is not, then indicating next segmented index;
Alternatively, indicating the sequence of the last one segmented index in the index file in the head response of the distribution response
Number.
Wherein, a certain segmented index is in the first segmented index or the index file in the index file
Non- first segmented index, the index file includes all index segmentations.
As shown in figure 5, present embodiments providing client, quickly distribute for segment programs, comprising:
Distribute request module, for sending the distribution request for obtaining a certain segmented index to server end;
Receiving module is responded for receiving the distribution that the server end returns, and is taken in the response body of the distribution response
With the corresponding one or more segment programs of the segmented index and the segmented index;
Memory module, for depositing the segment programs according to the sequence number in the segmented index indexed file
Storage.
As a preferred mode, the client further includes the interactive module being connected with the distribution request module,
Wherein:
The interactive module, for receiving the unified resource positioning of first segmented index of mark that the server is sent
Accord with URL;Alternatively, receiving what the mark client request that the server is sent issued by interacting with the server
The URL of the corresponding segmented index of a certain segment programs.
Wherein, the distribution request module, when for sending the distribution request for obtaining a certain segmented index to server end,
The URL for identifying a certain segmented index is carried in the distribution request;
As a preferred mode, the URL of the mark a certain segmented index, comprising:
Identify the URL of first segmented index;Alternatively,
Identify the URL for the corresponding segmented index of a certain segment programs that the client request issues.
In addition, as a preferred mode, the receiving module is also used to receive the distribution that the server end returns
Response, wherein be identified with whether the segmented index is that the last one in index file is segmented in the head response of the distribution response
Index, if it is, indicating that this segmented index is the last one segmented index in index file;If it is not, then instruction is next
A segmented index;
The distribution request module, if being also used to the head response instruction has next segmented index, to the clothes
Business device sends the distribution request for obtaining next segmented index, carries in the distribution request and identifies next segmentation rope
The URL drawn;If the head response indicates that this segmented index is the last one segmented index in the index file, not to institute
It states server and sends distribution request;
The memory module is also used to the segment programs of all acquisitions according to segmented index in the index file
Sequence number is successively stored.
As another preferred mode, the receiving module is also used to receive the distribution that the server end returns and rings
It answers, the head response middle finger of the distribution response is shown with the sequence number of the last one segmented index of index file;
The distribution request module is also used to successively send second segmented index of acquisition or a certain point to the server
The distribution request of next segmented index of the corresponding segmented index of section program to the last segmented index, the distribution are asked
The next segmented index for identifying second segmented index or the corresponding segmented index of a certain segment programs is carried in asking
The to the last URL of a segmented index;
The memory module, in the distribution response for successively returning to the server end segment programs that carry according to
Sequence number of the segmented index in the index file is successively stored.
In addition, the receiving module, is also used to receive the distribution response that the server end returns, the distribution response
The name list of the corresponding segment programs of segmented index is carried in head response;
The memory module is also used to the name by the segment programs according to corresponding segment programs in the segmented index
List is claimed successively to be stored.
Wherein, a certain segmented index is in the first segmented index or the index file in the index file
Non- first segmented index, the index file includes all index segmentations.
Wherein, in actual implementation, as shown in fig. 6, central site network is the server end in the present embodiment, edge network
Client as in the present embodiment;As also shown in fig. 7, central node is the server end in the present embodiment, fringe node
Client as in the present embodiment, it is in fringe node that the segment programs of all acquisitions are literary in the index according to segmented index
Sequence number in part is sequentially stored on disk, provides complete program for user terminal.The user terminal can be machine top
Box, VLC player or mobile phone etc..
As shown in figure 8, present embodiments providing a kind of method that segment programs are quickly distributed, it is applied to server end, packet
Include following steps:
S101: program source is divided into multiple continuous segment programs and segmented index, establishes each segmented index and one
Or the corresponding relationship of multiple segment programs;
Wherein, each segment programs include program decoded information and random access units information, guarantee each segmentation
Program can independently decode broadcasting so that it is convenient to which other media services, such as point can be provided separately in the segment programs after distributing
It broadcasts.Divided segment programs are continuously arranged successively.
S102: it receives client and the distribution of a certain segmented index is requested;
Wherein, a certain segmented index is in the first segmented index or the index file in the index file
Non- first segmented index, the index file includes all index segmentations.
By receiving the lasting distribution request of client section, the distribution to whole segment programs is realized.
S103: distribution response is returned to the client, carries the segmentation rope in the response body of the distribution response
Regard it as and the corresponding one or more segment programs of the segmented index.
Wherein, in step s101, after the corresponding relationship for establishing each segmented index and one or more segment programs,
Further include:
It generates a uniform resource position mark URL and identifies corresponding segmented index, and notify the client;
In step S102 and step S103, server receives the client and asks to the distribution of a certain segmented index
It asks, the URL of the corresponding segmented index is carried in the distribution request;Described point is returned to the client according to the URL
It makes sound and answers.
Wherein it is preferred to which described generate the corresponding segmented index of uniform resource position mark URL mark, comprising:
A URL identified segments index list is generated, the segmented index list includes segmentation all in index file
Index;Alternatively,
It generates a URL and identifies first segmented index;Alternatively,
By being interacted with the client, generates a URL and identify a certain segment programs that the client request issues
Corresponding segmented index.
For example, customizing URL for client, user end to server sends POST message, requests a certain segment programs, services
Device end parses to obtain the corresponding segmented index of the segment programs, constructs a URL to client and identifies the segmented index;Then,
Client can be indexed according to the URL to server demand staging.
As a preferred mode, in step s 102, if receive the client carries mark first
The distribution of the URL of a segmented index or the corresponding segmented index of a certain segment programs is requested;
In step s 103, the server returns to distribution response to the client, in the response of the distribution response
Identify whether the segmented index is the last one segmented index in index file in head, if it is, indicating that this segmented index is
The last one segmented index in index file;If it is not, then indicating next segmented index;
Alternatively, indicating the sequence of the last one segmented index in the index file in the head response of the distribution response
Number.
Client can obtain whether to continue demand staging index according to the distribution response that server issues in this way, with
And the URL of next segmented index is obtained to request the segmented index and corresponding segment programs.
As shown in figure 9, present embodiments providing a kind of method that segment programs are quickly distributed, it is applied to client, including
Following steps:
S201: the distribution request for obtaining a certain segmented index is sent to server end;
Wherein, a certain segmented index is in the first segmented index or the index file in the index file
Non- first segmented index, the index file includes all index segmentations.
Wherein, when the client sends the distribution request for obtaining a certain segmented index to the server end, described
The URL for identifying the segmented index is carried in distribution request.
The URL of the mark segmented index is received by interacting with server from server, and there are many sides
Formula, it may for example comprise:
The URL of identified segments index list, the segmented index list include segmented index all in index file;Or
Person,
Identify the URL of first segmented index;Alternatively,
By interacting with server, a certain segmentation that the mark client request that the server is sent issues is received
The URL of the corresponding segmented index of program.
S202: the distribution response that the server end returns is received, is carried in the response body of the distribution response described
Segmented index and the corresponding one or more segment programs of the segmented index;
S203: the segment programs are stored according to the sequence number in the segmented index indexed file.
Wherein, a kind of preferably to receive the distribution response that the server end returns, the distribution response
It is identified with whether the segmented index is the last one segmented index in index file in head response, if it is, indicating this segmentation
Index is the last one segmented index in index file;If it is not, then indicating next segmented index;
If the head response instruction has next segmented index, is sent to the server and obtain next segmentation rope
The distribution drawn is requested, and carries the URL for identifying next segmented index in the distribution request;If the head response refers to
Show that this segmented index is the last one segmented index in the index file, does not then send distribution request to the server;
The segment programs of all acquisitions are successively stored according to sequence number of the segmented index in the index file.
Wherein, another preferably to receive the distribution response that the server end returns, the distribution responds
Head response middle finger be shown with index file the last one segmented index sequence number;
The client successively sends second segmented index of acquisition to the server or a certain segment programs are corresponding
The distribution request of next segmented index of segmented index to the last segmented index, the distribution request in carry mark
Next segmented index to the last one for knowing second segmented index or the corresponding segmented index of a certain segment programs
The URL of segmented index;
The distribution response that the server end successively returns is received, and by the segment programs of all acquisitions according to segmented index
Sequence number in the index file is successively stored.
In an application example, in DASH (Dynamic adaptive streaming over HTTP, based on super
The dynamic of text transfer protocol adjusts streaming media service) transmit segment programs in system for, be based on http protocol, use
MPEG-2TS stream file is as data source, the entitled file.ts of file.
Program source is segmented according to the following steps in server end according to the method in the present embodiment, generates multiple segmentations
Index and segment programs:
It 1, according to time cutting is the multiple of 10 seconds length by file f ile.ts since the position of video image key frame
Segment data, each segment data are MPEG-2TS file, and the decoding unit of each segment data is with image key
Frame starts, and the multiple segmentation TS files obtained in this way are respectively designated as 1.ts, 2.ts ..., 100.ts;
2, the corresponding index file of each small TS file is generated using XML format, when broadcasting for describing small TS file
It is long, the information such as filename.To put it more simply, in this application example by the correspondence setting of segment programs and segmented index be one
To one, for example 1.index corresponds to 1.ts;
3, construction unified resource positions URL.
By multiple small TS file 1.ts, the 2.ts after segmentation ... 100.ts and segmented index file 1.index,
2.index ... 100.index is placed in the storage equipment of HTTP WEB server, while generating unified resource positioning URL mark
First segmented index.
http://ip:port/path/1.index。
Program is distributed by the following method in client according to the method in the present embodiment:
1, URL is positioned according to unified resource and first segmented index 1.index and 1.ts is obtained by HTTP GET method;
2, from the filename and index file for parsing segment programs in http protocol head response and response body respectively most
The sequence number of the latter segmented index, in this application example, obtaining the corresponding segment programs of first segmented index is 1.ts,
The Serial No. 100 of the last one segmented index of index file;
Client is after obtaining the sequence number of the last one index file, so that it may since second segmented index successively
Index file all segmented index and its corresponding segment programs are obtained, to the last a segmented index.
3, second is obtained to the last one segmented index by URL below;http://ip:port/path/
2.index
http://ip:port/path/3.index
……
http://ip:port/path/100.index
By the above process, client gets all segmental files, i.e. segmented index and its corresponding segment programs, and
The filename of segment programs is parsed from http protocol head response, corresponding segment programs are 2.ts, 3.ts, 4.ts ...
100.ts;
4, it finally, all segmental files that will acquire successively are stored according to the sequence number of index file, or will obtain
All segmental files taken are stored according to segment programs name list.
Method and apparatus provided by the embodiment similarly suitable other transport protocols, such as RTSP etc., it is of the invention in this way
Using can be generalized to Streaming Media other systems, it is not limited to DASH system.
From above-described embodiment as can be seen that compared with the existing technology, the segment programs provided in above-described embodiment quickly divide
The method of hair, server and client side, when some segmented index of client request, server end can be by segmented index with rope
Corresponding segment programs while it being pushed to client in drawing, reduces traditional continuous parsing segmented index and obtain in segment programs
Network delay and parsing segmented index time delay, also increase the utilization rate of network bandwidth, improve user experience, finally reach
The effect quickly distributed to one kind.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program
Related hardware is completed, and described program can store in computer readable storage medium, such as read-only memory, disk or CD
Deng.Optionally, one or more integrated circuits can be used also to realize in all or part of the steps of above-described embodiment.Accordingly
Ground, each module/unit in above-described embodiment can take the form of hardware realization, can also use the shape of software function module
Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.According to
Summary of the invention of the invention can also have other various embodiments, without deviating from the spirit and substance of the present invention, be familiar with
Those skilled in the art makes various corresponding changes and modifications in accordance with the present invention, all in the spirit and principles in the present invention
Within, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (24)
1. a kind of method that segment programs are quickly distributed is applied to server end, comprising:
Program source is divided into multiple continuous segment programs and segmented index, establishes each segmented index and one or more segmentations
The corresponding relationship of program;
Client is received to request the distribution of a certain segmented index;
Distribution response is returned to the client, carries the segmented index and this point in the response body of the distribution response
The corresponding one or more segment programs of segment index.
2. the method as described in claim 1, it is characterised in that: program source is being divided into multiple continuous segment programs and segmentation
Index is established after the corresponding relationship of each segmented index and one or more segment programs, further includes:
It generates a uniform resource position mark URL and identifies the segmented index, and notify the client;
It receives the client to request the distribution of a certain segmented index, carries the corresponding segmentation rope in the distribution request
The URL drawn;
The distribution response is returned to the client according to the URL.
3. method according to claim 2, it is characterised in that:
It is described to generate a uniform resource position mark URL identified segments index, comprising:
It generates a URL and identifies first segmented index;Alternatively,
By being interacted with the client, generates a URL and identify a certain segment programs correspondence that the client request issues
Segmented index.
4. method as claimed in claim 3, it is characterised in that: the method also includes:
Receive the client carries first segmented index of mark or a certain segment programs corresponding segmented indexes
The distribution of URL is requested;
Distribution response is returned to the client, identifies whether the segmented index is index in the head response of the distribution response
The last one segmented index in file, if it is, indicating that this segmented index is the last one segmented index in index file;Such as
Fruit is not then to indicate next segmented index;
Alternatively, indicating the sequence number of the last one segmented index in the index file in the head response of the distribution response.
5. method according to claim 1 or 2, it is characterised in that:
The a certain segmented index is non-first segmentation in the first segmented index or the index file in index file
Index, the index file include all index segmentations.
6. a kind of method that segment programs are quickly distributed is applied to client, comprising:
The distribution request for obtaining a certain segmented index is sent to server end;
Receive the distribution response that the server end returns, carried in the response body of the distribution response segmented index with
And the corresponding one or more segment programs of the segmented index;
The segment programs are successively stored according to the sequence number in the segmented index indexed file.
7. method as claimed in claim 6, it is characterised in that:
Before the distribution request for sending a certain segmented index of acquisition to server end, comprising:
Receive the uniform resource position mark URL for first segmented index of mark that the server is sent;Or
By interacting with the server, a certain segmentation that the mark client request that the server is sent issues is received
The URL of the corresponding segmented index of program.
8. the method for claim 7, it is characterised in that:
When the distribution for sending a certain segmented index of acquisition to server end is requested, mark institute is carried in distribution request
State the URL of a certain segmented index;
The URL of the mark a certain segmented index, comprising:
Identify the URL of first segmented index;Alternatively,
Identify the URL for the corresponding segmented index of a certain segment programs that the client request issues.
9. method according to claim 8, it is characterised in that: the method also includes:
The distribution response that the server end returns is received, being identified with the segmented index in the head response of the distribution response is
No is the last one segmented index in index file, if it is, indicating that this segmented index is the last one in index file point
Segment index;If it is not, then indicating next segmented index;
If the head response instruction has next segmented index, is sent to the server and obtain next segmented index
Distribution is requested, and carries the URL for identifying next segmented index in the distribution request;If the head response instruction is originally
Segmented index is the last one segmented index in the index file, then does not send distribution request to the server;
The segment programs of all acquisitions are successively stored according to sequence number of the segmented index in the index file.
10. method according to claim 8, it is characterised in that: the method also includes:
The distribution response that the server end returns is received, the head response middle finger of the distribution response is shown with index file most
The sequence number of the latter segmented index;
The client successively sends to the server and obtains second segmented index or the corresponding segmentation of a certain segment programs
The distribution request of next segmented index of index to the last segmented index carries in the distribution request and identifies institute
State next segmented index to the last segmentation of second segmented index or the corresponding segmented index of a certain segment programs
The URL of index;
Receive the distribution response that the server end successively returns, and by the segment programs of all acquisitions according to segmented index in institute
The sequence number stated in index file is successively stored.
11. the method as described in claim 6~10 any one claim, it is characterised in that: the method also includes:
The distribution response that the server end returns is received, it is corresponding to carry segmented index in the head response of the distribution response
Segment programs name list;
The segment programs are successively stored according to the name list of corresponding segment programs in the segmented index.
12. method according to claim 6 or 7, it is characterised in that:
The a certain segmented index is non-first in the first segmented index or the index file in the index file
Segmented index, the index file include all index segmentations.
13. a kind of server is quickly distributed for segment programs, comprising:
Segmentation module, for program source to be divided into multiple continuous segment programs and segmented index, establish each segmented index with
The corresponding relationship of one or more segment programs;
Receiving module requests the distribution of a certain segmented index for receiving client;
Distribute respond module, for returning to distribution response to the client, is carried in the response body of the distribution response
State segmented index and the corresponding one or more segment programs of the segmented index.
14. server as claimed in claim 13, it is characterised in that:
The segmentation module is also used to program source being divided into multiple continuous segment programs and segmented index, establishes each point
After the corresponding relationship of segment index and one or more segment programs, described point of uniform resource position mark URL mark is generated
Segment index, and notify the client;
The receiving module is also used to receive the client and requests the distribution of a certain segmented index, the distribution request
In carry the URL of the corresponding segmented index;
The distribution respond module is also used to return to the distribution response to the client according to the URL.
15. server as claimed in claim 14, it is characterised in that:
The segmentation module is also used to generate a uniform resource position mark URL identified segments index, comprising:
It generates a URL and identifies first segmented index;Alternatively,
By being interacted with the client, generates a URL and identify a certain segment programs correspondence that the client request issues
Segmented index.
16. server as claimed in claim 15, it is characterised in that:
The receiving module, be also used to receive the client carries first segmented index of mark or a certain segmentation section
The distribution of the URL of the corresponding segmented index of mesh is requested;
The distribution respond module is also used to return to distribution response to the client, in the head response of the distribution response
Identify whether the segmented index is the last one segmented index in index file, if it is, indicating this segmented index for index
The last one segmented index in file;If it is not, then indicating next segmented index;
Alternatively, indicating the sequence number of the last one segmented index in the index file in the head response of the distribution response.
17. server according to claim 13 or 14, it is characterised in that:
The a certain segmented index is non-first segmentation in the first segmented index or the index file in index file
Index, the index file include all index segmentations.
18. a kind of client is quickly distributed for segment programs, comprising:
Distribute request module, for sending the distribution request for obtaining a certain segmented index to server end;
Receiving module is responded for receiving the distribution that the server end returns, and is carried in the response body of the distribution response
The segmented index and the corresponding one or more segment programs of the segmented index;
Memory module, for storing the segment programs according to the sequence number in the segmented index indexed file.
19. client as claimed in claim 18, it is characterised in that: the client further includes and the distribution request module
Connected interactive module, in which:
The interactive module, for receiving the uniform resource locator for first segmented index of mark that the server is sent
URL;Alternatively, by interacting with the server, certain that the mark client request that the server is sent issues is received
The URL of the corresponding segmented index of one segment programs.
20. client as claimed in claim 19, it is characterised in that:
The distribution request module, when the distribution for sending a certain segmented index of acquisition to server end is asked, in the distribution
The URL for identifying the segmented index is carried in request;
The URL of the mark a certain segmented index, comprising:
Identify the URL of first segmented index;Alternatively,
Identify the URL for the corresponding segmented index of a certain segment programs that the client request issues.
21. client as claimed in claim 20, it is characterised in that:
The receiving module is also used to receive the distribution response that the server end returns, wherein the response of the distribution response
It is identified with whether the segmented index is the last one segmented index in index file in head, if it is, indicating this segmented index
For the last one segmented index in index file;If it is not, then indicating next segmented index;
The distribution request module, if being also used to the head response instruction has next segmented index, to the server
The distribution request for obtaining next segmented index is sent, carries mark next segmented index in the distribution request
URL;If the head response indicates that this segmented index is the last one segmented index in the index file, not to the clothes
Business device sends distribution request;
The memory module is also used to the sequence by the segment programs of all acquisitions according to segmented index in the index file
It number is successively stored.
22. client as claimed in claim 20, it is characterised in that:
The receiving module is also used to receive the distribution response that the server end returns, described to distribute in the head response responded
Indicate the sequence number for having the last one segmented index of index file;
The distribution request module is also used to successively send second segmented index of acquisition or a certain segmentation section to the server
The distribution request of next segmented index of the corresponding segmented index of mesh to the last segmented index, during the distribution is requested
Carry identify next segmented index of second segmented index or the corresponding segmented index of a certain segment programs until
The URL of the last one segmented index;
The memory module distributes the segment programs carried in response according to segmentation for successively return to the server end
The sequence number indexed in the index file is successively stored.
23. the client as described in claim 18~22 any one claim, it is characterised in that:
The receiving module is also used to receive the distribution response that the server end returns, described to distribute in the head response responded
Carry the name list of the corresponding segment programs of segmented index;
The memory module is also used to the name column by the segment programs according to corresponding segment programs in the segmented index
Table is successively stored.
24. the client as described in claim 18 or 19, it is characterised in that:
The a certain segmented index is non-first in the first segmented index or the index file in the index file
Segmented index, the index file include all index segmentations.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410037902.2A CN103813185B (en) | 2014-01-26 | 2014-01-26 | A kind of method that segment programs are quickly distributed, server and client |
PCT/CN2014/085193 WO2015109847A1 (en) | 2014-01-26 | 2014-08-26 | Method for rapidly delivering segmented programs, server and client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410037902.2A CN103813185B (en) | 2014-01-26 | 2014-01-26 | A kind of method that segment programs are quickly distributed, server and client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103813185A CN103813185A (en) | 2014-05-21 |
CN103813185B true CN103813185B (en) | 2019-01-25 |
Family
ID=50709313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410037902.2A Active CN103813185B (en) | 2014-01-26 | 2014-01-26 | A kind of method that segment programs are quickly distributed, server and client |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103813185B (en) |
WO (1) | WO2015109847A1 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103813185B (en) * | 2014-01-26 | 2019-01-25 | 中兴通讯股份有限公司 | A kind of method that segment programs are quickly distributed, server and client |
CN103796035B (en) * | 2014-01-27 | 2019-11-05 | 南京中兴软件有限责任公司 | A kind of method, server and client device handling segment programs |
CN104320679B (en) * | 2014-10-11 | 2019-02-15 | 中兴通讯股份有限公司 | A kind of user information acquiring method and server based on HLS protocol |
CN105812831B (en) * | 2014-12-31 | 2020-06-09 | 中兴通讯股份有限公司 | Network program recording method, device and system and playing method and device |
CN106464985B (en) * | 2015-04-30 | 2019-04-12 | 华为技术有限公司 | A kind of media stream transmission method and device |
CN106685942B (en) * | 2016-12-20 | 2020-07-24 | 徐亮 | Video live broadcast playback system and video live broadcast playback method |
CN106953892B (en) * | 2017-02-14 | 2020-08-07 | 北京时间股份有限公司 | Method, device and system for acquiring file |
CN107483546A (en) * | 2017-07-21 | 2017-12-15 | 北京供销科技有限公司 | A kind of file memory method and file storage device |
CN108347625B (en) * | 2018-03-09 | 2020-10-13 | 北京数码视讯软件技术发展有限公司 | Method and device for positioning TS streaming media |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101938483A (en) * | 2010-09-03 | 2011-01-05 | 中兴通讯股份有限公司 | Method and system for distributing live broadcast contents |
CN101951412A (en) * | 2010-10-15 | 2011-01-19 | 上海交通大学 | Multi-sub-stream media transmission system based on HTTP protocol and transmission method thereof |
CN102487454A (en) * | 2010-12-03 | 2012-06-06 | 中兴通讯股份有限公司 | Method and system for rapidly starting segment programs |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102130936B (en) * | 2010-08-17 | 2013-10-09 | 华为技术有限公司 | Method and device for supporting time shifting and look back in dynamic hyper text transport protocol (HTTP) streaming transmission scheme |
CN102238434B (en) * | 2011-07-22 | 2017-12-19 | 中兴通讯股份有限公司 | A kind of IPTV files in stream media virtual segmentation and the method and system used |
CN102572555B (en) * | 2012-01-16 | 2014-06-18 | 深圳市龙视传媒有限公司 | Method and system for realizing live video playback at HTTP live streaming (HLS) client |
CN103813185B (en) * | 2014-01-26 | 2019-01-25 | 中兴通讯股份有限公司 | A kind of method that segment programs are quickly distributed, server and client |
-
2014
- 2014-01-26 CN CN201410037902.2A patent/CN103813185B/en active Active
- 2014-08-26 WO PCT/CN2014/085193 patent/WO2015109847A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101938483A (en) * | 2010-09-03 | 2011-01-05 | 中兴通讯股份有限公司 | Method and system for distributing live broadcast contents |
CN101951412A (en) * | 2010-10-15 | 2011-01-19 | 上海交通大学 | Multi-sub-stream media transmission system based on HTTP protocol and transmission method thereof |
CN102487454A (en) * | 2010-12-03 | 2012-06-06 | 中兴通讯股份有限公司 | Method and system for rapidly starting segment programs |
Also Published As
Publication number | Publication date |
---|---|
WO2015109847A1 (en) | 2015-07-30 |
CN103813185A (en) | 2014-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103813185B (en) | A kind of method that segment programs are quickly distributed, server and client | |
EP3446461B1 (en) | Just in time transcoding and packaging in ipv6 networks | |
CN106170095B (en) | Content distribution network system and method | |
CN104125516B (en) | Media file reception, media file sending method and apparatus and system | |
CN109286820B (en) | Stream media ordering method and system based on distributed memory system | |
CN102055718B (en) | Method, device and system for layering request content in http streaming system | |
CN105828096B (en) | Method and device for processing media stream file | |
US11252478B2 (en) | Distribution device, distribution method, reception device, reception method, program, and content distribution system | |
CN108200444B (en) | Video live broadcast method, device and system | |
WO2017080427A1 (en) | Media playing method, terminal, system and computer storage medium | |
US20210203709A1 (en) | Embedding MQTT messages in media streams | |
WO2017185601A1 (en) | Method and device for providing and downloading video | |
EP3310065B1 (en) | Receiving device, transmission device and data processing method | |
KR102428142B1 (en) | Reception device, transmission device, and data processing method | |
CN103796035B (en) | A kind of method, server and client device handling segment programs | |
JP6597604B2 (en) | Reception device, transmission device, data communication method, and data processing method | |
KR102123208B1 (en) | Content supply device, content supply method, program, terminal device, and content supply system | |
WO2016090912A1 (en) | Method, device, terminal and system for generating and playing live video | |
EP3048802A1 (en) | Content provision device, content provision method, program, terminal device and content provision system | |
RU2658672C2 (en) | Content provision device, program, terminal device and content provision system | |
WO2017071524A1 (en) | Multimedia resource publishing method and apparatus | |
CN106303587A (en) | A kind of method and device downloading audio, video data | |
Badhe et al. | MOBILE VIDEO STREAMING WITH HLS | |
CN108206957A (en) | A kind of method that HLS plays NGOD video files |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |