CN103813185A - Method, server and client for quickly distributing segmented programs - Google Patents

Method, server and client for quickly distributing segmented programs Download PDF

Info

Publication number
CN103813185A
CN103813185A CN201410037902.2A CN201410037902A CN103813185A CN 103813185 A CN103813185 A CN 103813185A CN 201410037902 A CN201410037902 A CN 201410037902A CN 103813185 A CN103813185 A CN 103813185A
Authority
CN
China
Prior art keywords
index
segmented index
segmented
response
url
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410037902.2A
Other languages
Chinese (zh)
Other versions
CN103813185B (en
Inventor
周美艳
陈光亮
王芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201410037902.2A priority Critical patent/CN103813185B/en
Publication of CN103813185A publication Critical patent/CN103813185A/en
Priority to PCT/CN2014/085193 priority patent/WO2015109847A1/en
Application granted granted Critical
Publication of CN103813185B publication Critical patent/CN103813185B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network 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/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6581Reference data, e.g. a movie identifier for ordering a movie or a product identifier in a home shopping application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management 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/262Content 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/26258Content 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a server and a client for quickly distributing segmented programs, wherein the method comprises the steps of dividing a program source into a plurality of continuous segmented programs and segment indexes and establishing a corresponding relation of each segment index to one or more segmented programs, receiving a distribution request for a segment index from the client, and returning distribution response to the client wherein the response body of the distribution response carries the segment index and one or more segmented programs corresponding to the segment index. The method, the server and the client are capable of reducing the distribution time of the whole program, reducing the waste of network bandwidth and enhancing the experience quality of a user.

Description

A kind of segment programs is method, server and the client of distribution fast
Technical field
The present invention relates to Streaming Media field, be specifically related to a kind of segment programs method, server and client of distribution fast.
Background technology
Along with the development of the communication technology, the application of multimedia technology is more and more wider.Traditional streaming media service is based on RTSP(Real Time Streaming Protocol, real-time streaming protocol)/RTP(Real-time Transport Protocol, RTP).But because these two kinds of agreements are in shortcomings such as passing fire wall existing problems, developed based on HTML (Hypertext Markup Language) streaming media service was provided in recent years, be DASH(Dynamic adaptive streaming over HTTP, based on the dynamic adjustment streaming media service of HTML (Hypertext Markup Language)).The same with other streaming media services, DASH supports program request and direct broadcast service equally.
The function of seeing for the ease of realizing direct playing and playback and download limit, limit, conventionally by programme content at physics or be divided in logic a lot of subsections, each segmentation corresponding segments index, all index string together form program index table (Media Presentation Description, MPD, the information such as the index that comprises partitioning), when issuing, content first obtains segmented index, then obtain corresponding segment program according to segmented index.This mode can be modified to programme content easily and replace, and can compatible existing content distributing network (Content Delivery Network is called for short CDN) system.
Supplement the field of an existing response, content, only has in head response and response body and comprises segmented index,
The present invention has head response, response to comprise segmented index and segment programs in body
The distribution flow of existing segment programs as shown in Figure 1, when client is obtained a segment programs, first obtain segmented index, server can return to distribution response to client, and the structure of this distribution response as shown in Figure 2, comprising: responsive trip, head response and response body, what in response body, carry is segmented index information, in this segmented index information, include the segment programs that segmented index is corresponding, then client is resolved segmented index information, obtains corresponding segment programs according to index information.But along with can causing the content of segment programs and segmented index, the increase of program source content increases, on network, particularly on the mobile network of Bandwidth-Constrained, constantly transmit segmented index and program, the time that whole program is distributed is completely increasing, constantly the network bandwidth wasted in transmission segmented index and parsing index has also increased overall time delay, the final speed that reduces program distribution is ageing not high yet.
Summary of the invention
The technical issues that need to address of the present invention are to provide a kind of segment programs method, server and client side of distribution fast, can reduce the time of whole program distribution, reduce the waste to the network bandwidth, improve user experience quality.
In order to solve the problems of the technologies described above, the invention provides a kind of segment programs method of distribution fast, be applied to server end, comprising:
Program source is divided into multiple continuous segment programs and segmented index, sets up the corresponding relation of each segmented index and one or more segment programs;
Receive the dispense request of client to a certain segmented index;
Return to distribution response to described client, in the response body of described distribution response, carry described segmented index and one or more segment programs corresponding to this segmented index.
Further, program source is being divided into multiple continuous segment programs and segmented index, after setting up the corresponding relation of each segmented index and one or more segment programs, is also comprising:
Generate a uniform resource position mark URL and identify described segmented index, and notify described client;
Receive the dispense request of described client to a certain segmented index, in described dispense request, carry URL that should segmented index;
Return to described distribution response according to described URL to described client.
Further, uniform resource position mark URL mark segmented index of described generation, comprising:
Generate a URL and identify first segmented index; Or,
By mutual with described client, generate a URL and identify segmented index corresponding to a certain segment programs that described client-requested issues.
Further, described method also comprises:
Receive the dispense request of the URL that carries first segmented index of mark or segmented index corresponding to a certain segment programs of described client;
Whether return to distribution response to described client, in the head response of described distribution response, identifying this segmented index is last segmented index in index file, and if so, indicating this segmented index is last segmented index in index file; If not, indicate next segmented index;
Or, in the head response of described distribution response, indicate described index file in the sequence number of last segmented index.
Further, described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
In order to solve the problems of the technologies described above, the invention provides a kind of segment programs method of distribution fast, be applied to client, comprising:
Send the dispense request of obtaining a certain segmented index to server end;
Receive the distribution response that described server end returns, in the response body of described distribution response, carry described segmented index and one or more segment programs corresponding to this segmented index;
Described segment programs is stored successively according to the sequence number in described segmented index indexed file.
Further, described to server end send obtain the dispense request of a certain segmented index before, comprising:
Receive the uniform resource position mark URL of first segmented index of mark of described server transmission; Or
By with described server interaction, receive the URL of the segmented index that a certain segment programs that the described client-requested of mark that described server sends issues is corresponding.
Further, describedly send while obtaining the dispense request of a certain segmented index to server end, in described dispense request, carry the URL of the described a certain segmented index of mark;
The URL of the described a certain segmented index of described mark, comprising:
Identify the URL of first segmented index; Or,
Identify the URL of the segmented index that a certain segment programs that described client-requested issues is corresponding.
Further, described method also comprises:
Receive the distribution response that described server end returns, in the head response of described distribution response, mark has whether this segmented index is last segmented index in index file, and if so, indicating this segmented index is last segmented index in index file; If not, indicate next segmented index;
If described head response indication has next segmented index, send to described server the dispense request of obtaining next segmented index, in described dispense request, carry the URL of the described next segmented index of mark; If it is last segmented index in described index file that described head response is indicated this segmented index, do not send dispense request to described server;
By all segment programs that obtain according to segmented index the sequence number in described index file store successively.
Further, described method also comprises:
Receive the distribution response that described server end returns, the head response middle finger of described distribution response is shown with the sequence number of last segmented index of index file;
Described client sends to described server the to the last dispense request of a segmented index of next segmented index of obtaining second segmented index or segmented index corresponding to a certain segment programs successively, carries the to the last URL of a segmented index of next segmented index of the segmented index that described second segmented index of mark or a certain segment programs are corresponding in described dispense request;
Receive the distribution response that described server end returns successively, and by all segment programs that obtain according to segmented index the sequence number in described index file store successively.
Further, described method also comprises:
Receive the distribution response that described server end returns, in the head response of described distribution response, carry the name list of the segment programs that segmented index is corresponding;
Described segment programs is stored successively according to the name list of segment programs corresponding in described segmented index.
Further, described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
In order to solve the problems of the technologies described above, the present invention also provides a kind of server, distributes fast for segment programs, comprising:
Segmentation module, for program source being divided into multiple continuous segment programs and segmented index, sets up the corresponding relation of each segmented index and one or more segment programs;
Receiver module, for receiving the dispense request of client to a certain segmented index;
Distribution respond module, for return to distribution response to described client, carries described segmented index and one or more segment programs corresponding to this segmented index in the response body of described distribution response.
Further, described segmentation module, also for program source being divided into multiple continuous segment programs and segmented index, after setting up the corresponding relation of each segmented index and one or more segment programs, generate a uniform resource position mark URL and identify described segmented index, and notify described client;
Described receiver module, also for receiving the dispense request of described client to a certain segmented index, carries in described dispense request URL that should segmented index;
Described distribution respond module, also for returning to described distribution response according to described URL to described client.
Further, described segmentation module, also, for generating a uniform resource position mark URL mark segmented index, comprising:
Generate a URL and identify first segmented index; Or,
By mutual with described client, generate a URL and identify segmented index corresponding to a certain segment programs that described client-requested issues.
Further, described receiver module, also for receiving the dispense request of the URL that carries first segmented index of mark or segmented index corresponding to a certain segment programs of described client;
Described distribution respond module, also for return to distribution response to described client, whether be in index file last segmented index, if so, indicating this segmented index is last segmented index in index file if in the head response of described distribution response, identifying this segmented index; If not, indicate next segmented index;
Or, in the head response of described distribution response, indicate described index file in the sequence number of last segmented index.
Further, described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
In order to solve the problems of the technologies described above, the present invention also provides a kind of client, distributes fast for segment programs, comprising:
Dispense request module, for sending the dispense request of obtaining a certain segmented index to server end;
Receiver module, the distribution response of returning for receiving described server end, carries described segmented index and one or more segment programs corresponding to this segmented index in the response body of described distribution response;
Memory module, for storing described segment programs according to the sequence number of described segmented index indexed file.
Further, described client also comprises the interactive module being connected with described dispense request module, wherein:
Described interactive module, for receiving the uniform resource position mark URL of first segmented index of mark that described server sends; Or, by with described server interaction, receive the URL of the segmented index that a certain segment programs that the described client-requested of mark that described server sends issues is corresponding.
Further, described dispense request module while asking, is carried the URL of the described segmented index of mark for sending the distribution of obtaining a certain segmented index to server end in described dispense request;
The URL of the described a certain segmented index of described mark, comprising:
Identify the URL of first segmented index; Or,
Identify the URL of the segmented index that a certain segment programs that described client-requested issues is corresponding.
Further, described receiver module, the distribution response of also returning for receiving described server end, wherein, in the head response of described distribution response, mark has whether this segmented index is last segmented index in index file, if so, indicating this segmented index is last segmented index in index file; If not, indicate next segmented index;
Described dispense request module, if also have next segmented index for described head response indication, sends to described server the dispense request of obtaining next segmented index, carries the URL of the described next segmented index of mark in described dispense request; If it is last segmented index in described index file that described head response is indicated this segmented index, do not send dispense request to described server;
Described memory module, also for storing all segment programs that obtain successively at the sequence number of described index file according to segmented index.
Further, described receiver module, the distribution response of also returning for receiving described server end, the head response middle finger of described distribution response is shown with the sequence number of last segmented index of index file;
Described dispense request module, also, for sending to described server the to the last dispense request of a segmented index of next segmented index of obtaining second segmented index or segmented index corresponding to a certain segment programs successively, in described dispense request, carry the to the last URL of a segmented index of next segmented index of the segmented index that described second segmented index of mark or a certain segment programs are corresponding;
Described memory module, for the distribution that described server end is returned successively respond the segment programs carrying according to segmented index the sequence number in described index file store successively.
Further, described receiver module, also, for receiving the distribution response that described server end returns, carries the name list of the segment programs that segmented index is corresponding in the head response of described distribution response;
Described memory module, also for storing described segment programs successively according to the name list of segment programs corresponding to described segmented index.
Further, described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
Compared with prior art, segment programs provided by the invention is method, the server and client side of distribution fast, in the time of the some segmented indexes of client-requested, server end can be pushed to client with segment programs corresponding in index by segmented index simultaneously, reduce the time delay that traditional continuous parsing segmented index obtains the network delay in segment programs and resolves segmented index, also increase the utilance of the network bandwidth, improved user's experience, finally reached a kind of effect of quick distribution.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of segment programs distribution in prior art;
Fig. 2 is the distribution response structure schematic diagram that in prior art, server returns to client;
Fig. 3 is the schematic diagram of segment programs distribution 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 segment programs method flow diagram of distribution fast that is applied to server end in embodiment.
Fig. 9 is the segment programs method flow diagram of distribution fast that is applied to client in embodiment.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, hereinafter in connection with accompanying drawing, embodiments of the invention are elaborated.It should be noted that, in the situation that not conflicting, the combination in any mutually of the feature in embodiment and embodiment in the application.
Embodiment:
The core concept of this enforcement is exactly: the corresponding relation of setting up each segmented index and one or more segment programs at server end, in the time of the some segmented indexes of client-requested, server end is by corresponding segment programs in carrying respectively segmented index and index in the different field in response body, thereby segmented index is pushed to client with segment programs corresponding in index simultaneously, client realizes the distribution to whole segment programs by continuing all segmented indexes of request, the schematic diagram of segment programs distribution in the present embodiment is provided as shown in Figure 3.In the present embodiment, the field structure of distribution response is with of the prior art identical, as shown in Figure 2, comprise: responsive trip, head response and response body, but, head response and the information that response body carries are changed, in the present embodiment, head response can carry indication information, comprise: whether identify this segmented index is last segmented index in index file, if so, indicating this segmented index is last segmented index in index file; If not, indicate next segmented index; Or, indicate the sequence number of last segmented index in described index file; In head response, can also carry the name list of the segment programs that segmented index is corresponding; In the response body of described distribution response, carry described segmented index and one or more segment programs corresponding to this segmented index
As shown in Figure 4, the present embodiment provides a kind of server, distributes fast for segment programs, comprising:
Segmentation module, for program source being divided into multiple continuous segment programs and segmented index, sets up the corresponding relation of each segmented index and one or more segment programs;
Receiver module, for receiving the dispense request of client to a certain segmented index;
Distribution respond module, for return to distribution response to described client, carries described segmented index and one or more segment programs corresponding to this segmented index in the response body of described distribution response.
Wherein, described segmentation module, also for program source being divided into multiple continuous segment programs and segmented index, after setting up the corresponding relation of each segmented index and one or more segment programs, generate a uniform resource position mark URL and identify described segmented index, and notify described client;
Wherein, generate a uniform resource position mark URL mark segmented index, comprising:
Generate a URL and identify first segmented index; Or,
By mutual with described client, generate a URL and identify segmented index corresponding to a certain segment programs that described client-requested issues.
Described receiver module, also for receiving the dispense request of described client to a certain segmented index, carries in described dispense request URL that should segmented index;
Described distribution respond module, also for returning to described distribution response according to described URL to described client.
As the preferred mode of one, described receiver module, also for receiving the dispense request of the URL that carries first segmented index of mark or segmented index corresponding to a certain segment programs of described client;
Described distribution respond module, also for return to distribution response to described client, whether be in index file last segmented index, if so, indicating this segmented index is last segmented index in index file if in the head response of described distribution response, identifying this segmented index; If not, indicate next segmented index;
Or, in the head response of described distribution response, indicate described index file in the sequence number of last segmented index.
Wherein, described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
As shown in Figure 5, the present embodiment provides client, distributes fast for segment programs, comprising:
Dispense request module, for sending the dispense request of obtaining a certain segmented index to server end;
Receiver module, the distribution response of returning for receiving described server end, carries described segmented index and one or more segment programs corresponding to this segmented index in the response body of described distribution response;
Memory module, for storing described segment programs according to the sequence number of described segmented index indexed file.
As the preferred mode of one, described client also comprises the interactive module being connected with described dispense request module, wherein:
Described interactive module, for receiving the uniform resource position mark URL of first segmented index of mark that described server sends; Or, by with described server interaction, receive the URL of the segmented index that a certain segment programs that the described client-requested of mark that described server sends issues is corresponding.
Wherein, described dispense request module while obtaining the dispense request of a certain segmented index, is carried the URL of the described a certain segmented index of mark for sending to server end in described dispense request;
As the preferred mode of one, the URL of the described a certain segmented index of described mark, comprising:
Identify the URL of first segmented index; Or,
Identify the URL of the segmented index that a certain segment programs that described client-requested issues is corresponding.
In addition, as the preferred mode of one, described receiver module, the distribution response of also returning for receiving described server end, wherein, in the head response of described distribution response, mark has whether this segmented index is last segmented index in index file, and if so, indicating this segmented index is last segmented index in index file; If not, indicate next segmented index;
Described dispense request module, if also have next segmented index for described head response indication, sends to described server the dispense request of obtaining next segmented index, carries the URL of the described next segmented index of mark in described dispense request; If it is last segmented index in described index file that described head response is indicated this segmented index, do not send dispense request to described server;
Described memory module, also for storing all segment programs that obtain successively at the sequence number of described index file according to segmented index.
As the preferred mode of another kind, described receiver module, the distribution response of also returning for receiving described server end, the head response middle finger of described distribution response is shown with the sequence number of last segmented index of index file;
Described dispense request module, also, for sending to described server the to the last dispense request of a segmented index of next segmented index of obtaining second segmented index or segmented index corresponding to a certain segment programs successively, in described dispense request, carry the to the last URL of a segmented index of next segmented index of the segmented index that described second segmented index of mark or a certain segment programs are corresponding;
Described memory module, for the distribution that described server end is returned successively respond the segment programs carrying according to segmented index the sequence number in described index file store successively.
In addition, described receiver module, also, for receiving the distribution response that described server end returns, carries the name list of the segment programs that segmented index is corresponding in the head response of described distribution response;
Described memory module, also for storing described segment programs successively according to the name list of segment programs corresponding to described segmented index.
Wherein, described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
Wherein, in the time that reality is implemented, as shown in Figure 6, central site network is the server end in the present embodiment, and edge network is the client in the present embodiment; Again as shown in Figure 7, Centroid is the server end in the present embodiment, fringe node is the client in the present embodiment, at fringe node, by all segment programs that obtain, according to segmented index, the sequence number in described index file is stored on disk successively, for user terminal provides complete program.Described user terminal can be Set Top Box, VLC player or mobile phone etc.
As shown in Figure 8, the present embodiment provides a kind of segment programs method of distribution fast, is applied to server end, comprises the following steps:
S101: program source is divided into multiple continuous segment programs and segmented index, sets up the corresponding relation of each segmented index and one or more segment programs;
Wherein, each segment programs comprises program decoded information and random access unit information, guarantees the broadcasting of can independently decoding of each segment programs, and the segment programs after convenient like this distribution can provide separately other media services, such as program request.The segment programs being divided is arranged in order continuously.
S102: receive the dispense request of client to a certain segmented index;
Wherein, described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
By receiving the lasting dispense request of client section, realize the distribution to whole segment programs.
S103: return to distribution response to described client, carry described segmented index and one or more segment programs corresponding to this segmented index in the response body of described distribution response.
Wherein, in step S101, setting up after the corresponding relation of each segmented index and one or more segment programs, also comprising:
Generate a uniform resource position mark URL and identify corresponding segmented index, and notify described client;
In step S102 and step S103, server receives the dispense request of described client to a certain segmented index, carries URL that should segmented index in described dispense request; Return to described distribution response according to described URL to described client.
Wherein, preferably, uniform resource position mark URL of described generation identifies corresponding segmented index, comprising:
Generate the list of a URL mark segmented index, described segmented index list comprises segmented indexes all in index file; Or,
Generate a URL and identify first segmented index; Or,
By mutual with described client, generate a URL and identify segmented index corresponding to a certain segment programs that described client-requested issues.
Such as, be client terminal to customize URL, user end to server sends POST message, asks a certain segment programs, and server end is resolved and is obtained the segmented index that this segment programs is corresponding, and to client structure, a URL identifies this segmented index; Then, client just can be according to this URL to server request segmented index.
As the preferred mode of one, in step S102, if receive the dispense request of the URL that carries first segmented index of mark or segmented index corresponding to a certain segment programs of described client;
In step S103, described server returns to distribution response to described client, whether be in index file last segmented index, if so, indicating this segmented index is last segmented index in index file if in the head response of described distribution response, identifying this segmented index; If not, indicate next segmented index;
Or, in the head response of described distribution response, indicate described index file in the sequence number of last segmented index.
Client just can issue according to server like this distribution response obtains whether will continue demand staging index, and the URL that obtains next segmented index asks this segmented index and corresponding segment programs.
As shown in Figure 9, the present embodiment provides a kind of segment programs method of distribution fast, is applied to client, comprises the following steps:
S201: send the dispense request of obtaining a certain segmented index to server end;
Wherein, described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
Wherein, when described client is obtained the dispense request of a certain segmented index to described server end transmission, in described dispense request, carry the URL of the described segmented index of mark.
The URL of the described segmented index of described mark, by receiving from server with server interaction, has various ways, for example, comprising:
The URL of mark segmented index list, described segmented index list comprises segmented indexes all in index file; Or,
Identify the URL of first segmented index; Or,
By with server interaction, receive the URL of the segmented index that a certain segment programs that the described client-requested of mark that described server sends issues is corresponding.
S202: receive the distribution response that described server end returns, carry described segmented index and one or more segment programs corresponding to this segmented index in the response body of described distribution response;
S203: described segment programs is stored according to the sequence number in described segmented index indexed file.
Wherein, a kind of preferred mode is, receives the distribution response that described server end returns, and in the head response of described distribution response, mark has whether this segmented index is last segmented index in index file, if so, indicating this segmented index is last segmented index in index file; If not, indicate next segmented index;
If described head response indication has next segmented index, send to described server the dispense request of obtaining next segmented index, in described dispense request, carry the URL of the described next segmented index of mark; If it is last segmented index in described index file that described head response is indicated this segmented index, do not send dispense request to described server;
By all segment programs that obtain according to segmented index the sequence number in described index file store successively.
Wherein, another kind of preferred mode is, receives the distribution response that described server end returns, and the head response middle finger of described distribution response is shown with the sequence number of last segmented index of index file;
Described client sends to described server the to the last dispense request of a segmented index of next segmented index of obtaining second segmented index or segmented index corresponding to a certain segment programs successively, carries the to the last URL of a segmented index of next segmented index of the segmented index that described second segmented index of mark or a certain segment programs are corresponding in described dispense request;
Receive the distribution response that described server end returns successively, and by all segment programs that obtain according to segmented index the sequence number in described index file store successively.
In an application example, with at DASH(Dynamic adaptive streaming over HTTP, based on the dynamic adjustment streaming media service of HTML (Hypertext Markup Language)) to transmit segment programs in system be example, based on http protocol, adopt MPEG-2TS stream file as data source, file is called file.ts.
According to the following steps program source is carried out to segmentation according to the method in the present embodiment at server end, generates multiple segmented indexes and segment programs:
1, starting from the position of video image key frame file f ile.ts is multiple segment datas of 10 seconds length according to time cutting, each segment data is MPEG-2TS file, the decoding unit of each segment data all starts with image key frame, the multiple segmentation TS files that obtain like this, called after 1.ts respectively, 2.ts ..., 100.ts;
2, utilize XML form to generate index file corresponding to each little TS file, be used for describing the playing duration of little TS file, the information such as filename.In order to simplify, in this application example by the correspondence setting of segment programs and segmented index for one to one, such as the corresponding 1.ts of 1.index;
3, structure unified resource location URL.
By the multiple little TS file 1.ts after segmentation, 2.ts ... 100.ts and segmented index file 1.index, 2.index ... 100.index is placed on the memory device of HTTP WEB server, generates unified resource location URL simultaneously and identifies 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, obtain first segmented index 1.index and 1.ts according to unified resource location URL by HTTP GET method;
2, parse respectively the sequence number of last segmented index in the filename of segment programs and index file body from http protocol head response and response, in this application example, obtaining the segment programs that first segmented index is corresponding is 1.ts, and the sequence number of last segmented index of index file is 100;
Client is obtaining after the sequence number of last index file, just can obtain successively all segmented indexes of index file and corresponding segment programs thereof, a to the last segmented index since second segmented index.
3, obtain second to last segmented index by following URL;
http://ip:port/path/2.index
http://ip:port/path/3.index
……
http://ip:port/path/100.index
Through said process, client gets all segmental files, i.e. segmented index and corresponding segment programs thereof, and from http protocol head response, parse the filename of segment programs, corresponding segment programs is 2.ts, 3.ts, 4.ts ... 100.ts;
4, last, all segmental files that obtain are stored successively according to the sequence number of index file, or all segmental files that obtain are stored according to segment programs name list.
The method and apparatus that this enforcement provides is applicable to other host-host protocol equally, and such as RTSP etc., application of the present invention like this can be generalized to Streaming Media other system, is not limited to DASH system.
Can find out from above-described embodiment, with respect to prior art, the segment programs providing in above-described embodiment is method, the server and client side of distribution fast, in the time of the some segmented indexes of client-requested, server end can be pushed to client with segment programs corresponding in index by segmented index simultaneously, reduce the time delay that traditional continuous parsing segmented index obtains the network delay in segment programs and resolves segmented index, also increased the utilance of the network bandwidth, improve user's experience, finally reached a kind of effect of quick distribution
One of ordinary skill in the art will appreciate that all or part of step in said method can carry out instruction related hardware by program and complete, described program can be stored in computer-readable recording medium, as read-only memory, disk or CD etc.Alternatively, all or part of step of above-described embodiment also can realize with one or more integrated circuits.Correspondingly, the each module/unit in above-described embodiment can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
The foregoing is only the preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.According to summary of the invention of the present invention; also can there be other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion; within the spirit and principles in the present invention all; any modification of doing, be equal to replacement, improvement etc., within protection scope of the present invention all should be included in.

Claims (24)

1. a segment programs method for distribution fast, is applied to server end, comprising:
Program source is divided into multiple continuous segment programs and segmented index, sets up the corresponding relation of each segmented index and one or more segment programs;
Receive the dispense request of client to a certain segmented index;
Return to distribution response to described client, in the response body of described distribution response, carry described segmented index and one or more segment programs corresponding to this segmented index.
2. the method for claim 1, is characterized in that: program source is being divided into multiple continuous segment programs and segmented index, after setting up the corresponding relation of each segmented index and one or more segment programs, is also comprising:
Generate a uniform resource position mark URL and identify described segmented index, and notify described client;
Receive the dispense request of described client to a certain segmented index, in described dispense request, carry URL that should segmented index;
Return to described distribution response according to described URL to described client.
3. method as claimed in claim 2, is characterized in that:
Uniform resource position mark URL mark segmented index of described generation, comprising:
Generate a URL and identify first segmented index; Or,
By mutual with described client, generate a URL and identify segmented index corresponding to a certain segment programs that described client-requested issues.
4. method as claimed in claim 3, is characterized in that: described method also comprises:
Receive the dispense request of the URL that carries first segmented index of mark or segmented index corresponding to a certain segment programs of described client;
Whether return to distribution response to described client, in the head response of described distribution response, identifying this segmented index is last segmented index in index file, and if so, indicating this segmented index is last segmented index in index file; If not, indicate next segmented index;
Or, in the head response of described distribution response, indicate described index file in the sequence number of last segmented index.
5. method as claimed in claim 1 or 2, is characterized in that:
Described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
6. a segment programs method for distribution fast, is applied to client, comprising:
Send the dispense request of obtaining a certain segmented index to server end;
Receive the distribution response that described server end returns, in the response body of described distribution response, carry described segmented index and one or more segment programs corresponding to this segmented index;
Described segment programs is stored successively according to the sequence number in described segmented index indexed file.
7. method as claimed in claim 6, is characterized in that:
Described to server end send obtain the dispense request of a certain segmented index before, comprising:
Receive the uniform resource position mark URL of first segmented index of mark of described server transmission; Or
By with described server interaction, receive the URL of the segmented index that a certain segment programs that the described client-requested of mark that described server sends issues is corresponding.
8. method as claimed in claim 7, is characterized in that:
Describedly send while obtaining the dispense request of a certain segmented index to server end, in described dispense request, carry the URL of the described a certain segmented index of mark;
The URL of the described a certain segmented index of described mark, comprising:
Identify the URL of first segmented index; Or,
Identify the URL of the segmented index that a certain segment programs that described client-requested issues is corresponding.
9. method as claimed in claim 8, is characterized in that: described method also comprises:
Receive the distribution response that described server end returns, in the head response of described distribution response, mark has whether this segmented index is last segmented index in index file, and if so, indicating this segmented index is last segmented index in index file; If not, indicate next segmented index;
If described head response indication has next segmented index, send to described server the dispense request of obtaining next segmented index, in described dispense request, carry the URL of the described next segmented index of mark; If it is last segmented index in described index file that described head response is indicated this segmented index, do not send dispense request to described server;
By all segment programs that obtain according to segmented index the sequence number in described index file store successively.
10. method as claimed in claim 8, is characterized in that: described method also comprises:
Receive the distribution response that described server end returns, the head response middle finger of described distribution response is shown with the sequence number of last segmented index of index file;
Described client sends to described server the to the last dispense request of a segmented index of next segmented index of obtaining second segmented index or segmented index corresponding to a certain segment programs successively, carries the to the last URL of a segmented index of next segmented index of the segmented index that described second segmented index of mark or a certain segment programs are corresponding in described dispense request;
Receive the distribution response that described server end returns successively, and by all segment programs that obtain according to segmented index the sequence number in described index file store successively.
11. methods as described in claim 6~10 any one claim, is characterized in that: described method also comprises:
Receive the distribution response that described server end returns, in the head response of described distribution response, carry the name list of the segment programs that segmented index is corresponding;
Described segment programs is stored successively according to the name list of segment programs corresponding in described segmented index.
12. methods as described in claim 6 or 7, is characterized in that:
Described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
13. 1 kinds of servers, distribute fast for segment programs, comprising:
Segmentation module, for program source being divided into multiple continuous segment programs and segmented index, sets up the corresponding relation of each segmented index and one or more segment programs;
Receiver module, for receiving the dispense request of client to a certain segmented index;
Distribution respond module, for return to distribution response to described client, carries described segmented index and one or more segment programs corresponding to this segmented index in the response body of described distribution response.
14. servers as claimed in claim 13, is characterized in that:
Described segmentation module, also for program source being divided into multiple continuous segment programs and segmented index, after setting up the corresponding relation of each segmented index and one or more segment programs, generate a uniform resource position mark URL and identify described segmented index, and notify described client;
Described receiver module, also for receiving the dispense request of described client to a certain segmented index, carries in described dispense request URL that should segmented index;
Described distribution respond module, also for returning to described distribution response according to described URL to described client.
15. servers as claimed in claim 14, is characterized in that:
Described segmentation module, also, for generating a uniform resource position mark URL mark segmented index, comprising:
Generate a URL and identify first segmented index; Or,
By mutual with described client, generate a URL and identify segmented index corresponding to a certain segment programs that described client-requested issues.
16. servers as claimed in claim 15, is characterized in that:
Described receiver module, also for receiving the dispense request of the URL that carries first segmented index of mark or segmented index corresponding to a certain segment programs of described client;
Described distribution respond module, also for return to distribution response to described client, whether be in index file last segmented index, if so, indicating this segmented index is last segmented index in index file if in the head response of described distribution response, identifying this segmented index; If not, indicate next segmented index;
Or, in the head response of described distribution response, indicate described index file in the sequence number of last segmented index.
17. servers as described in claim 13 or 14, is characterized in that:
Described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
18. 1 kinds of clients, distribute fast for segment programs, comprising:
Dispense request module, for sending the dispense request of obtaining a certain segmented index to server end;
Receiver module, the distribution response of returning for receiving described server end, carries described segmented index and one or more segment programs corresponding to this segmented index in the response body of described distribution response;
Memory module, for storing described segment programs according to the sequence number of described segmented index indexed file.
19. clients as claimed in claim 18, is characterized in that: described client also comprises the interactive module being connected with described dispense request module, wherein:
Described interactive module, for receiving the uniform resource position mark URL of first segmented index of mark that described server sends; Or, by with described server interaction, receive the URL of the segmented index that a certain segment programs that the described client-requested of mark that described server sends issues is corresponding.
20. clients as claimed in claim 19, is characterized in that:
Described dispense request module while asking, is carried the URL of the described segmented index of mark for sending the distribution of obtaining a certain segmented index to server end in described dispense request;
The URL of the described a certain segmented index of described mark, comprising:
Identify the URL of first segmented index; Or,
Identify the URL of the segmented index that a certain segment programs that described client-requested issues is corresponding.
21. clients as claimed in claim 20, is characterized in that:
Described receiver module, the distribution response of also returning for receiving described server end, wherein, in the head response of described distribution response, mark has whether this segmented index is last segmented index in index file, if so, indicating this segmented index is last segmented index in index file; If not, indicate next segmented index;
Described dispense request module, if also have next segmented index for described head response indication, sends to described server the dispense request of obtaining next segmented index, carries the URL of the described next segmented index of mark in described dispense request; If it is last segmented index in described index file that described head response is indicated this segmented index, do not send dispense request to described server;
Described memory module, also for storing all segment programs that obtain successively at the sequence number of described index file according to segmented index.
22. clients as claimed in claim 20, is characterized in that:
Described receiver module, the distribution response of also returning for receiving described server end, the head response middle finger of described distribution response is shown with the sequence number of last segmented index of index file;
Described dispense request module, also, for sending to described server the to the last dispense request of a segmented index of next segmented index of obtaining second segmented index or segmented index corresponding to a certain segment programs successively, in described dispense request, carry the to the last URL of a segmented index of next segmented index of the segmented index that described second segmented index of mark or a certain segment programs are corresponding;
Described memory module, for the distribution that described server end is returned successively respond the segment programs carrying according to segmented index the sequence number in described index file store successively.
23. clients as described in claim 18~22 any one claim, is characterized in that:
Described receiver module, also, for receiving the distribution response that described server end returns, carries the name list of the segment programs that segmented index is corresponding in the head response of described distribution response;
Described memory module, also for storing described segment programs successively according to the name list of segment programs corresponding to described segmented index.
24. clients as described in claim 18 or 19, is characterized in that:
Described a certain segmented index is non-the first segmented index in the first segmented index or the described index file in described index file, and described index file comprises all index segmentations.
CN201410037902.2A 2014-01-26 2014-01-26 A kind of method that segment programs are quickly distributed, server and client Active CN103813185B (en)

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 true CN103813185A (en) 2014-05-21
CN103813185B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103796035A (en) * 2014-01-27 2014-05-14 中兴通讯股份有限公司 Method for processing segmented programs, server and client device
CN104320679A (en) * 2014-10-11 2015-01-28 中兴通讯股份有限公司 Method for obtaining user information based on HLS protocol and server
WO2015109847A1 (en) * 2014-01-26 2015-07-30 中兴通讯股份有限公司 Method for rapidly delivering segmented programs, server and client
WO2016107197A1 (en) * 2014-12-31 2016-07-07 中兴通讯股份有限公司 Network program recording method, device and system, and recorded-program playing method and device
WO2016172967A1 (en) * 2015-04-30 2016-11-03 华为技术有限公司 Media stream transmission method and device
CN106685942A (en) * 2016-12-20 2017-05-17 徐亮 Video live and replaying system and video live and replaying method
CN106953892A (en) * 2017-02-14 2017-07-14 北京时间股份有限公司 A kind of method for obtaining file, apparatus and system
CN107483546A (en) * 2017-07-21 2017-12-15 北京供销科技有限公司 A kind of file memory method and file storage device
CN108347625A (en) * 2018-03-09 2018-07-31 北京数码视讯软件技术发展有限公司 A kind of method and apparatus of TS Streaming Medias positioning

Citations (6)

* Cited by examiner, † Cited by third party
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
CN102238434A (en) * 2011-07-22 2011-11-09 中兴通讯股份有限公司 Method and system for segmenting internet protocol television (IPTV) stream media file virtually
CN102487454A (en) * 2010-12-03 2012-06-06 中兴通讯股份有限公司 Method and system for rapidly starting segment programs
CN102572555A (en) * 2012-01-16 2012-07-11 深圳市同洲视讯传媒有限公司 Method and system for realizing live video playback at HTTP live streaming (HLS) client
US20130159421A1 (en) * 2010-08-17 2013-06-20 Huawei Technologies Co., Ltd. Method and Apparatus for Supporting Time Shift Playback in Adaptive HTTP Streaming Transmission Solution

Family Cites Families (1)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130159421A1 (en) * 2010-08-17 2013-06-20 Huawei Technologies Co., Ltd. Method and Apparatus for Supporting Time Shift Playback in Adaptive HTTP Streaming Transmission Solution
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
CN102238434A (en) * 2011-07-22 2011-11-09 中兴通讯股份有限公司 Method and system for segmenting internet protocol television (IPTV) stream media file virtually
CN102572555A (en) * 2012-01-16 2012-07-11 深圳市同洲视讯传媒有限公司 Method and system for realizing live video playback at HTTP live streaming (HLS) client

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015109847A1 (en) * 2014-01-26 2015-07-30 中兴通讯股份有限公司 Method for rapidly delivering segmented programs, server and client
CN103796035A (en) * 2014-01-27 2014-05-14 中兴通讯股份有限公司 Method for processing segmented programs, server and client device
WO2015109842A1 (en) * 2014-01-27 2015-07-30 中兴通讯股份有限公司 Method for processing segmented programs, server and client device
CN104320679B (en) * 2014-10-11 2019-02-15 中兴通讯股份有限公司 A kind of user information acquiring method and server based on HLS protocol
CN104320679A (en) * 2014-10-11 2015-01-28 中兴通讯股份有限公司 Method for obtaining user information based on HLS protocol and server
WO2016054923A1 (en) * 2014-10-11 2016-04-14 中兴通讯股份有限公司 Hls protocol-based user information acquisition method and server
WO2016107197A1 (en) * 2014-12-31 2016-07-07 中兴通讯股份有限公司 Network program recording method, device and system, and recorded-program playing method and device
CN106464985B (en) * 2015-04-30 2019-04-12 华为技术有限公司 A kind of media stream transmission method and device
CN106464985A (en) * 2015-04-30 2017-02-22 华为技术有限公司 Media stream transmission method and device
WO2016172967A1 (en) * 2015-04-30 2016-11-03 华为技术有限公司 Media stream transmission method and device
CN106685942A (en) * 2016-12-20 2017-05-17 徐亮 Video live and replaying system and video live and replaying method
CN106685942B (en) * 2016-12-20 2020-07-24 徐亮 Video live broadcast playback system and video live broadcast playback method
CN106953892A (en) * 2017-02-14 2017-07-14 北京时间股份有限公司 A kind of method for obtaining file, apparatus and system
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
CN108347625A (en) * 2018-03-09 2018-07-31 北京数码视讯软件技术发展有限公司 A kind of method and apparatus of TS Streaming Medias positioning
CN108347625B (en) * 2018-03-09 2020-10-13 北京数码视讯软件技术发展有限公司 Method and device for positioning TS streaming media

Also Published As

Publication number Publication date
CN103813185B (en) 2019-01-25
WO2015109847A1 (en) 2015-07-30

Similar Documents

Publication Publication Date Title
CN103813185A (en) Method, server and client for quickly distributing segmented programs
US20180227648A1 (en) Method for live broadcast based on hls protocol and electronic device
US9882937B2 (en) Communication receiver
US11553018B2 (en) Dynamically switched multicast delivery
CN102215116B (en) Method, equipment and system that time migration is served are provided in a digital broadcasting system
US20170195744A1 (en) Live-stream video advertisement system
CN103348691B (en) The method, apparatus and system of distribution live content
CN104125516B (en) Media file reception, media file sending method and apparatus and system
WO2016058411A1 (en) Splicing method and splicing system for http live streaming media fragmentation
US10277660B1 (en) Apparatus and method for providing streaming content
US10225319B2 (en) System and method of a link surfed http live streaming broadcasting system
US20180227605A1 (en) Transmission apparatus, transmission method, reception apparatus, and reception method
US20150172353A1 (en) Method and apparatus for interacting with a media presentation description that describes a summary media presentation and an original media presentation
WO2017080427A1 (en) Media playing method, terminal, system and computer storage medium
KR101705898B1 (en) Method and system for providing timeshift service in digital broadcasting system
CN103747285A (en) Program playing method, server side and client
EP3310065B1 (en) Receiving device, transmission device and data processing method
CN109644286B (en) Distribution apparatus and method, reception apparatus and method, medium, and content distribution system
CN112243158B (en) Media file processing method and device, computer readable medium and electronic equipment
JP6597604B2 (en) Reception device, transmission device, data communication method, and data processing method
CN103796035B (en) A kind of method, server and client device handling segment programs
WO2016082806A1 (en) Video processing method and device
KR20190130868A (en) Method, apparatus and computer program for providing advertisement
CN106303587A (en) A kind of method and device downloading audio, video data
KR102275872B1 (en) Hybrid radio service providing server and method of providing the same

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