Summary of the invention
The object of the present invention is to provide a kind of media resource transmission method, it is slow to be intended to solve the media resource transmission speed that exists in the prior art, does not make full use of the problem that other servers of storing same media asset transmit.
Another object of the present invention is to provide a kind of media resource transmission system.
Another purpose of the present invention is to provide a kind of set-top box.
The object of the present invention is achieved like this, and a kind of media resource transmission method said method comprising the steps of:
Set-top box is obtained can be for the Media Resource List information of downloading;
Set-top box is carried out intelligent piecemeal according to the file type of required media resource, the disposal ability of Media Resource Server to required media resource data;
Set-top box selects relative medium resource server to connect according to described Media Resource List information and piecemeal result;
Set-top box is sent corresponding request with relative medium resource server respectively, identifies the original position of required media resource data, and carries out end position control;
In different Media Resource Servers, carry out piecemeal and download required media resource data.
Another object of the present invention is achieved in that a kind of media resource transmission system, and described system comprises:
A plurality of Media Resource Servers are used for the medium resource;
Retrieval server, being used for retrieve stored has the Media Resource Server of media resource, and according to result for retrieval, establishment can be for the Media Resource List information of downloading, described Media Resource List packets of information contains the sign of multimedia resource, and the address information of the respective media Resource Server at described multimedia resource place;
Set-top box is used for the file type according to required media resource, the disposal ability of Media Resource Server is carried out intelligent piecemeal to required media resource data; Select relative medium resource server to connect according to described Media Resource List information and piecemeal result; Send corresponding request with relative medium resource server respectively, identify the original position of required media resource data, and carry out end position control; In different Media Resource Servers, carry out piecemeal and download required media resource data; And
Authentication server is used for can carrying out authentication operations for the set-top box of the Media Resource List information of downloading to obtaining.
Another purpose of the present invention is achieved in that a kind of set-top box, and described set-top box comprises:
The retrieval acquisition module, being used to obtain can be for the Media Resource List information of downloading;
File intelligence piecemeal module is used for the file type according to required media resource, the disposal ability of Media Resource Server is carried out piecemeal with required media resource data, with the original position and the end position of each piecemeal part identification data; And
The resource selection download module is used for sending corresponding request with relative medium resource server respectively, identifies the original position of required media resource data, and carries out end position control; In different Media Resource Servers, carry out piecemeal and download required media resource data.
In the present invention, when downloading the receiving media resource data, adopt the multiserver transmission technology, optimized Algorithm to greatest extent, intelligence splits downloads required media resource, multiple spot parallel transmission media resource data.The present invention efficiently utilizes Internet resources, and it is stable, quick that the media resource data are downloaded, thereby makes the user experience better effects if of Streaming Media.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, because often all providing on multiple servers, downloads and order program service identical media resource, set-top box just can not be to download or the on-demand media resource by a station server like this, but by storing the server of same media asset on the retrieval server retrieval network, thereby, set-top box is carried out piecemeal respectively and is downloaded or the required media resource of program request on Duo Tai stores the server of required media resource, thereby the speed that the present invention is being downloaded, download in the control of content, all will will improve a lot than download or program request on the separate unit server.
Fig. 1 shows the realization flow of the media resource transmission method that the embodiment of the invention provides, and details are as follows:
In step S101, set-top box is carried out authentication operations;
The flow process of set-top box being carried out authentication operations is: set-top box sends authentication request information to authentication server; Authentication server carries out authentication according to described authentication request information to set-top box, if authentication is passed through, then sends key to set-top box; If authentication is not passed through, then end operation.
In embodiments of the present invention, after download finished required media resource or the required media resource of end program request, set-top box can send this operation of message informing authentication server and finish, thereby has guaranteed the access control of authentication server to client.Yet authentication server also can provide key to be used for visit to retrieval server to set-top box according to authenticating result.
In step S102, obtaining can be for the Media Resource List information of downloading;
After the authentication of set-top box process authentication server is passed through, obtain key, and send retrieval request information, carry key in this retrieval request information to retrieval server; The media resource information that retrieval server is required according to the retrieval request information retrieval, and result for retrieval returned to set-top box; Set-top box gets access to the Media Resource List information of Gong the download that retrieval server provides, this Media Resource List packets of information contains the sign (can be the title of multimedia resource) of multimedia resource, and the respective media Resource Server information at multimedia resource place etc., as the address information of Media Resource Server.
In embodiments of the present invention, retrieval server provides can be for the Media Resource List information of downloading to set-top box, and set-top box can be set up and being connected of each Media Resource Server as required, sets up program request or download channel.Set-top box can announcement media resource acquisition situation (whether can supply services such as download or program request on corresponding server as media resource) be notified retrieval server, obtain simultaneously the new result for retrieval of retrieval server again, renewal can be for the Media Resource List information of downloading.
In step S103, attempt and the Media Resource Server download media resource that connects;
Acquisition can be for after the Media Resource List information of downloading, and set-top box is attempted and the Media Resource Server download media resource that connects; Set-top box can be set up and being connected of each Media Resource Server as required, sets up program request or download channel.
The trial operating process is:
Steps A: set-top box set up with Media Resource List information in a Media Resource Server be connected the trial download media resource;
Step B:, then notify the current resource of retrieval server to use if download successfully; Get nowhere if download, then notify the current resource of retrieval server unavailable;
Step C:, so then proceed to attempt the A-B step if also have the Media Resource Server of not attempting link in the Media Resource List information;
Step D: finish if all Media Resource Servers in the Media Resource List information are all attempted retrieval, then end operation.
As one embodiment of the invention, can one timer be set at the set-top box end, according to user's needs setting-up time trigger point, when time trigger point one obtains the Media Resource List information of new Gong download in the retrieval server to promptly triggering set-top box, set-top box is according to the Media Resource List information of Gong the download of the Media Resource List information updating local terminal of new Gong download.Yet set-top box can attempt being connected with new Media Resource Server, attempts download media resource.
In step S104, on relative medium resource server, carry out piecemeal and download required media resource.
Piecemeal is downloaded the realization flow of required media resource, and details are as follows:
Step 1: required media resource data are carried out intelligent piecemeal according to the file type of required media resource, the disposal ability of Media Resource Server;
Step 2: select relative medium resource server to connect according to the piecemeal result;
Step 3: send corresponding request (the Seek request of RTSP, the get request of HTTP etc.) with relative medium resource server respectively, identify the original position of required media resource data, and carry out end position control;
Step 4: in different Media Resource Servers, carry out piecemeal simultaneously and download required media resource data;
Step 5: required media resource data are sent in player or the memory device;
In embodiments of the present invention, adopt intelligent piecemeal technology that the media resource file is carried out automatic piecemeal, and select a plurality of optimum datas source (Media Resource Server), required media resource file block is downloaded in the buffer memory, after being buffered to a constant volume, transferring player to and play; If having memory device, set-top box can carry out the medium resource.
Fig. 2 shows the structure of the set-top box that the embodiment of the invention provides, and for convenience of explanation, only shows part related to the present invention.
Retrieval acquisition module 10 chained search servers, obtaining from retrieval server can be for the Media Resource List information of downloading, this Media Resource List packets of information contains the sign of multimedia resource, and the address information of the respective media Resource Server at multimedia resource place etc.File intelligencepiecemeal module 20 is carried out intelligent piecemeal according to the file type of required media resource, the disposal ability of Media Resource Server to required media resource data, this intelligence piecemeal is required media resource data to be merotomized the original position of each part identification data and end position; Resourceselection download module 30 bases can select relative medium resource server to connect byprotocol module 40 for the Media Resource List information and the piecemeal result that download, and carry out piecemeal and download required media resource.With the media resource metadata cache downloaded tomedia buffering module 50; And as required can be with the media resource storage downloaded to memory module 60.The media resource data of 80 pairs of downloads of decoder module are decoded, and carry out this decoded media resource of program request control bytransmit control module 90.
As one embodiment of the invention, can increase by atimer module 70 in set-top box, thistimer module 70 can regularly trigger the Media Resource List information thatacquisition module 10 obtains Gong the download of renewal in the retrieval server of retrieving according to the Time Triggered point that the user sets.
Fig. 3 shows the structure of the media resource transmission system that the embodiment of the invention provides, for convenience of explanation, only show part related to the present invention, this media resource transmission system mainly comprises: a plurality of Media Resource Servers, retrieval server, set-top box and authentication server.All store identical required media resource in a plurality of Media Resource Servers.The retrieval server retrieve stored has the Media Resource Server of media resource, and according to result for retrieval, establishment can be for the Media Resource List information of downloading, described Media Resource List packets of information contains the sign of multimedia resource, and the address information of the respective media Resource Server at described multimedia resource place.
Set-top box sends authentication request information to authentication server; Authentication server carries out authentication according to described authentication request information to set-top box, if authentication is passed through, then sends key to set-top box; If authentication is not passed through, then end operation.After the authentication of set-top box process authentication server is passed through, obtain key, and send retrieval request information, carry key in this retrieval request information to retrieval server; The media resource information that retrieval server is required according to the retrieval request information retrieval, and result for retrieval returned to set-top box; Set-top box gets access to the Media Resource List information of Gong the download that retrieval server provides, and the Media Resource List information of Gong the download that set-top box provides according to retrieval server is downloaded required media resource from corresponding a plurality of Media Resource Server piecemeals.
In embodiments of the present invention, be understandable that Media Resource Server can be the equipment on set-top box, client computer or other networks, as long as store required media resource and can both support the present invention for the equipment of the other-end shared resource on the network.
In embodiments of the present invention, set-top box adopts the multiserver transmission technology in video playback or when downloading the receiving media resource data, optimized Algorithm to greatest extent, and intelligence splits downloads required media resource, multiple spot parallel transmission media resource data.The present invention efficiently utilizes Internet resources, and it is stable, quick that the media resource data are downloaded, thereby makes the user experience better effects if of Streaming Media.While multiserver download technology has simultaneously improved the speed and the stability of video playback in Application in Set Top Box.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.