Summary of the invention
Main purpose of the present invention is to solve problems of the prior art, and a kind of Online Video order method and system based on mobile platform is provided.
The object of the invention is to be achieved by following technical proposals:
An Online Video order method based on mobile platform, is characterized in that, comprising:
Subscription client sends video on-demand request information to dispatch server; In described video on-demand request information, at least comprise the identification code of order video and the screen size information of mobile platform;
Dispatch server, according to this video on-demand request information, is changed list by video and is searched the Download Info that is converted to this video after mobile video form in cloud transcoding server, and found Download Info is sent to subscription client; Described video conversion list is the corresponding lists between identification code and screen size information and the Download Info based on order video;
Subscription client is set up downloading task according to this Download Info, downloads this order video file being converted to after mobile video form by P2P mode from cloud transcoding server;
Subscription client is play the order video file after this download.
, specifically comprise according to being also provided with video determining step in the process of video on-demand request information searching Download Info at described dispatch server:
Dispatch server judges according to described video conversion list whether cloud transcoding server contains the video file after mobile video form that is converted to of order video that user asks;
If had, dispatch server, according to this video on-demand request information, is changed list by video and is searched the Download Info that is converted to this video after mobile video form in cloud transcoding server, and found Download Info is sent to subscription client; Described video conversion list is the corresponding lists between identification code and screen size information and the Download Info based on order video;
If no, dispatch server is searched and the corresponding video Download Info of identification code of described order video, and found Download Info is sent to subscription client.
Also comprise:
Dispatch server is set up popular order video list according to clicking rate;
Dispatch server is this hot topic order video list and described video conversion list relatively, T.G Grammar video lastest imformation, and this converting video lastest imformation is sent to described cloud transcoding server;
Cloud transcoding server is downloaded the order video file of required renewal according to this converting video lastest imformation;
Cloud transcoding server is converted to the video file of the required renewal of downloading the order video file of mobile video form;
The storage of cloud transcoding server is converted to the order video file after mobile video form;
The order video fileinfo of the mobile video form after conversion is sent to dispatch server by cloud transcoding server, with more new video conversion list.
The order video file of described mobile video form is the video file of mp4 or 3gp form.
Based on an on line video on demand system for mobile platform, it is characterized in that, comprising: subscription client, dispatch server and cloud transcoding server;
Described subscription client at least comprises: video on-demand request module, download management module and player; Described video on-demand request module, for sending video on-demand request information to dispatch server; In described video on-demand request information, at least comprise the identification code of order video and the screen size information of mobile platform; Described download management module, sets up downloading task for the Download Info returning according to dispatch server, downloads the order video file being converted to after mobile video form by P2P mode from cloud transcoding server; Described player, for playing the order video file after this download;
Described dispatch server at least comprises: video on-demand request respond module and video conversion list; Described video on-demand request respond module, be used for according to described video on-demand request information, change list by video and search the Download Info that is converted to this video after mobile video form in cloud transcoding server, and found Download Info is sent to subscription client; Described video conversion list is the corresponding lists between identification code and screen size information and the Download Info based on order video;
Described cloud transcoding server at least comprises: video format conversion module and order video file storage module; Described video format conversion module, for downloading program request video file, and is converted to downloaded program request video file the order video file of mobile video form; Described order video file storage module, for storing the order video file being converted to after mobile video form.
In described video on-demand request respond module, be also provided with video judge module;
Described video judge module, for judging according to described video conversion list whether cloud transcoding server contains the video file after mobile video form that is converted to of order video that user asks;
Described video on-demand request respond module is according to the judged result of video judge module; If had, according to video on-demand request information, change list by video and search the Download Info that is converted to this video after mobile video form in cloud transcoding server, and found Download Info is sent to subscription client; If no, search and the corresponding video Download Info of identification code of described order video, and found Download Info is sent to subscription client.
In described dispatch server, be also provided with popular order video list generation module and converting video lastest imformation generation module;
Described popular order video list generation module, for setting up popular order video list according to clicking rate;
Described converting video lastest imformation generation module, for relatively this hot topic order video list and described video conversion list, T.G Grammar video lastest imformation, and this converting video lastest imformation is sent to described cloud transcoding server;
Described video format conversion module, for downloading the order video file of required renewal according to this converting video lastest imformation, the video file of the required renewal of downloading is converted to the order video file of mobile video form, and the order video fileinfo of the mobile video form after conversion is sent to dispatch server, to upgrade described video conversion list;
Described order video file storage module, for storing the order video file being converted to after mobile video form.
The order video file of described mobile video form is the video file of mp4 or 3gp form.
Pass through the embodiment of the present invention, download by P2P the pressure that alleviates server on the one hand, be applicable to owing in advance video file being converted to the mobile video formatted file that mobile platform is play on the other hand, alleviate the decoding pressure of mobile terminal, reduce the consumption of flow, reduce the requirement of memory space, finally realized the object of smooth program request.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with execution mode and accompanying drawing, the present invention is described in further details.At this, exemplary embodiment of the present invention and explanation thereof are used for explaining the present invention, but not as a limitation of the invention.
In view of in existing P2P model, P2P server does not often have to provide the mobile video formatted file that is suitable for smooth playing on mobile platform for mobile platform.The invention provides one provides the cloud transcoding server of mobile video form (as mp4,3gp etc.) file specially for mobile platform.
Fig. 1 is the flow chart that the present invention is based on the Online Video order method of mobile platform.As shown in the figure, this Online Video order method, specifically comprises:
101, subscription client sends video on-demand request information to dispatch server; In described video on-demand request information, at least comprise the identification code of order video and the screen size information of mobile platform.
The identification code of described order video is the identification code for distinguishing different video file.This identification code is generally video file and calculates the cryptographic Hash generating through hash algorithm.Hash algorithm is mapped as the binary value of random length the less binary value of regular length.Finding hash is two different inputs of same value, on calculating, is impossible, so the cryptographic Hash that this calculating generates can be used for distinguishing different video files.
102, dispatch server, according to this video on-demand request information, is changed list by video and is searched the Download Info that is converted to this video after mobile video form in cloud transcoding server, and found Download Info is sent to subscription client; Described video conversion list is the corresponding lists between identification code and screen size information and the Download Info based on order video.
Described Download Info is a same video content, but the identification code of the suitable video file of code check and resolution can create the downloading task of downloading this video file by the identification code of this video file.
103, subscription client is set up downloading task according to this Download Info, downloads this order video file being converted to after mobile video form by P2P mode from cloud transcoding server.
104, subscription client is play the order video file after this download.
Online Video order method based on mobile platform provided by the present invention, be more suitable for the mobile video format video file that mobile platform plays and be stored in cloud transcoding server treating that order video is converted in advance by cloud transcoding server, and set up video between identification code and screen size information and the Download Info based on order video conversion list with this.When user needs Online Video point sowing time, by the video on-demand request information that includes the identification code of order video and the screen size information of mobile platform is sent to dispatch server, to search the corresponding Download Info that is converted to this video after mobile video form in cloud transcoding server, and download this order video file by P2P mode from cloud transcoding server, to play.By Online Video order method provided by the present invention, download by P2P the pressure that alleviates server on the one hand, be applicable to owing in advance video file being converted to the mobile video formatted file that mobile platform is play on the other hand, alleviate the decoding pressure of mobile terminal, reduce the consumption of flow, reduce the requirement of memory space, finally realized the object of smooth program request.
Due to, cloud transcoding server the video that can change in advance limited, can not meet the needs of user video program request completely.Therefore, as shown in Figure 2, the present invention is also provided with a video determining step in described dispatch server in described step 102, specific as follows:
102a, dispatch server judge according to described video conversion list whether cloud transcoding server contains the video file after mobile video form that is converted to of order video that user asks; If had, perform step 102b; If no, perform step 102c.
102b, dispatch server, according to this video on-demand request information, are changed list by video and are searched the Download Info that is converted to this video after mobile video form in cloud transcoding server, and found Download Info is sent to subscription client; Described video conversion list is the corresponding lists between identification code and screen size information and the Download Info based on order video.
102c, dispatch server are searched the corresponding video Download Info of identification code with described order video, and found Download Info is sent to subscription client.
Here, the Download Info in step 102b is different from the Download Info in step 102c.Download Info in step 102b is to be stored in the Download Info that has been converted to mobile video form rear video file in cloud transcoding server, is converted to compared with the Download Info of small video file.And Download Info in step 102c is user's Download Info of the video file of the order video of asking originally, do not carry out the Download Info of the former program request video file of format conversion.The subsequent video downloading process of this step 102c is in prior art for the video downloading process in the program request of mobile platform Online Video, and not the invention emphasis of this case, has just repeated no more at this.
In view of cloud transcoding server noted earlier limited this objective problem of video that can change in advance.For the service of smooth program request is better provided for client, the present invention has also designed by dispatch server and has added up popular order video, and instructs cloud transcoding server to download popular video with this, and changes.As described in Figure 3, this process is specific as follows:
301, dispatch server is set up popular order video list according to clicking rate.
Here, the screening principle of this hot topic order video list can be by artificially setting, as exceeded within a certain period of time the video of certain threshold values by video-on-demand times, or within a certain period of time by video of the maximum some of video-on-demand times etc.Its concrete screening principle is not applied to limit the scope of the invention.
302, relatively this hot topic order video list and described video conversion list of dispatch server, T.G Grammar video lastest imformation, and this converting video lastest imformation is sent to described cloud transcoding server.
Popular order video list is by adding up rear up-to-date popular list of videos.And video is changed list into the list of videos now having converted in cloud transcoding server.This wherein must have partial video to repeat mutually.Therefore, in this step, dispatch server compares two lists, to generate the lastest imformation that needs converting video, thus the workload of reduction cloud transcoding server foradownloaded video and converting video.
303, cloud transcoding server is downloaded the order video file of required renewal according to this converting video lastest imformation.
304, cloud transcoding server is converted to the video file of the required renewal of downloading the order video file of mobile video form.
305, the storage of cloud transcoding server is converted to the order video file after mobile video form.
Wherein, cloud transcoding server can be according to the needs of different mobile platform screen sizes, and conversion in advance generates the video file for different screen size.
306, the order video fileinfo of the mobile video form after conversion is sent to dispatch server by cloud transcoding server, with more new video conversion list.
By said method, the present invention can be the video file database of mobile video form according to the popular degree regular update cloud transcoding server internal conversion of recent video request program, obtains the needs of the smooth program request of Online Video to meet more users.
Fig. 4 is the structural representation that the present invention is based on the on line video on demand system of mobile platform.As shown in the figure, this on line video on demand system, comprising: subscription client, dispatch server and cloud transcoding server.
Described subscription client at least comprises: video on-demand request module, download management module and player.Described video on-demand request module, for sending video on-demand request information to dispatch server; In described video on-demand request information, at least comprise the identification code of order video and the screen size information of mobile platform.Described download management module, sets up downloading task for the Download Info returning according to dispatch server, downloads the order video file being converted to after mobile video form by P2P mode from cloud transcoding server.Described player, for playing the order video file after this download.
Described dispatch server at least comprises: video on-demand request respond module and video conversion list.Described video on-demand request respond module, be used for according to described video on-demand request information, change list by video and search the Download Info that is converted to this video after mobile video form in cloud transcoding server, and found Download Info is sent to subscription client.Described video conversion list is the corresponding lists between identification code and screen size information and the Download Info based on order video.
Described cloud transcoding server at least comprises: video format conversion module and order video file storage module.Described video format conversion module, for downloading program request video file, and is converted to downloaded program request video file the order video file of mobile video form.Described order video file storage module, for storing the order video file being converted to after mobile video form.
By on line video on demand system provided by the present invention, download by P2P the pressure that alleviates server on the one hand, be applicable to owing in advance video file being converted to the mobile video formatted file that mobile platform is play on the other hand, alleviate the decoding pressure of mobile terminal, reduce the consumption of flow, reduce the requirement of memory space, finally realized the object of smooth program request.
Due to, cloud transcoding server the video that can change in advance limited, can not meet the needs of user video program request completely.Therefore, the present invention is also provided with video judge module in described video on-demand request respond module.
Described video judge module, for judging according to described video conversion list whether cloud transcoding server contains the video file after mobile video form that is converted to of order video that user asks.
Described video on-demand request respond module is according to the judged result of video judge module; If had, according to video on-demand request information, change list by video and search the Download Info that is converted to this video after mobile video form in cloud transcoding server, and found Download Info is sent to subscription client; If no, search and the corresponding video Download Info of identification code of described order video, and found Download Info is sent to subscription client.
In view of cloud transcoding server noted earlier limited this objective problem of video that can change in advance.For the service of smooth program request is better provided for client, as shown in Figure 5, the present invention is also provided with popular order video list generation module and converting video lastest imformation generation module in described dispatch server.
Described popular order video list generation module, for setting up popular order video list according to clicking rate.
Here, the screening principle of this hot topic order video list can be by artificially setting, as exceeded within a certain period of time the video of certain threshold values by video-on-demand times, or within a certain period of time by video of the maximum some of video-on-demand times etc.Its concrete screening principle is not applied to limit the scope of the invention.
Described converting video lastest imformation generation module, for relatively this hot topic order video list and described video conversion list, T.G Grammar video lastest imformation, and this converting video lastest imformation is sent to described cloud transcoding server.
Popular order video list is by adding up rear up-to-date popular list of videos.And video is changed list into the list of videos now having converted in cloud transcoding server.This wherein must have partial video to repeat mutually.Therefore, in this step, dispatch server compares two lists, to generate the lastest imformation that needs converting video, thus the workload of reduction cloud transcoding server foradownloaded video and converting video.
Described video format conversion module, for downloading the order video file of required renewal according to this converting video lastest imformation, the video file of the required renewal of downloading is converted to the order video file of mobile video form, and the order video fileinfo of the mobile video form after conversion is sent to dispatch server, to upgrade described video conversion list.
Described order video file storage module, for storing the order video file being converted to after mobile video form.
By above-mentioned design, the present invention can be the video file database of mobile video form according to the popular degree regular update cloud transcoding server internal conversion of recent video request program, obtains the needs of the smooth program request of Online Video to meet more users.
In sum, the present invention by cloud transcoding server in advance by treat order video be converted to be more suitable for mobile platform play mobile video format video file be stored in cloud transcoding server, thereby existing C/S model and P2P model advantage are separately had concurrently, download by P2P the pressure that alleviates server on the one hand, be applicable to owing in advance video file being converted to the mobile video formatted file that mobile platform is play on the other hand, alleviate the decoding pressure of mobile terminal, finally realized the object of smooth program request.Persons skilled in the art any not creative transformation of doing under this design philosophy, all should be considered as within protection scope of the present invention.