Cloud code-transferring method and the system of video file
Technical field
The present invention relates to the file code-transferring method, relate in particular to code-transferring method and the system for video file that can significantly improve transcoding speed.
Background technology
Video file has the Multi-encoding form, the form of dissimilar player supports also is not quite similar, therefore the provider of internet video business is in order to satisfy the video playback demand of the user on the different platform, often the coded format of video file need to be changed, video code conversion work is the work of Internet enterprises normalization.
In the prior art; when carrying out transcoding; same video file is undertaken by a transcoding machine; but the defective of this code-transferring method also is apparent; when this video file is very huge; the time that transcoding needs will become very long, often can be because transcoding delays the time that new video is shown.
Summary of the invention
The object of the invention is to address the above problem, a kind of cloud code-transferring method and system of video file is provided, can significantly improve transcoding speed, promote transcoding efficiency.
Technical scheme of the present invention is: the present invention has disclosed a kind of cloud code-transferring method of video file, comprising:
Be the file of a plurality of intermediate forms that can be identified by the transcoding machine with the video file cutting;
Carry out transcoding for many transcoding machines the file allocation of a plurality of intermediate forms after the cutting;
File behind the transcoding is synthesized.
According to an embodiment of the cloud code-transferring method of video file of the present invention, the cutting process of video file further comprises:
Video file is divided into a plurality of video-frequency bands;
From the file header of video file, find respectively the description document corresponding with each video-frequency band;
Each video-frequency band and corresponding description document are synthesized the file of intermediate form.
The present invention has disclosed a kind of cloud trans-coding system of video file, comprising:
The video file cutting device is the file of a plurality of intermediate forms that can be identified by the transcoding machine with the video file cutting;
File transcoding distributor carries out transcoding for many transcoding machines the file allocation of a plurality of intermediate forms after the cutting;
Transcoding file synthesis device synthesizes the file behind the transcoding.
According to an embodiment of the cloud trans-coding system of video file of the present invention, the video file cutting device comprises:
The video-frequency band cutting unit is divided into a plurality of video-frequency bands with video file;
Description document is searched the unit, finds respectively the description document corresponding with each video-frequency band from the file header of video file;
The intermediate file synthesis unit synthesizes each video-frequency band and corresponding description document the file of intermediate form.
The present invention contrasts prior art following beneficial effect: the solution of the present invention is the file that former video file is cut into a plurality of intermediate forms, carry out transcoding for many transcoding machines the file allocation of a plurality of intermediate forms after the cutting, at last the video file behind the transcoding is synthesized.Compared to prior art, the solution of the present invention can significantly improve transcoding speed, promotes transcoding efficiency, has avoided delaying the time that new video is shown because of the transcoding overlong time.
Description of drawings
Fig. 1 shows the flow chart of preferred embodiment of the cloud code-transferring method of video file of the present invention.
Fig. 2 shows the schematic diagram of preferred embodiment of the cloud trans-coding system of video file of the present invention.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
Fig. 1 shows the flow process of preferred embodiment of the cloud code-transferring method of video file of the present invention.See also Fig. 1, the below is the detailed description to the implementation step of the cloud code-transferring method of the video file of present embodiment.
Step S10: video file is divided into a plurality of video-frequency bands.
Video file is made of file header and video-frequency band, when cutting, according to predetermined cutting scheme video file is divided into a plurality of video-frequency bands.
Step S12: from the file header of video file, find respectively the description document corresponding with each video-frequency band.
Comprise the description document corresponding with each video-frequency band in the file header of video file, from file header, search description document corresponding to each video-frequency band.
Step S14: the file that each video-frequency band and corresponding description document is synthesized intermediate form.
Step S16: carry out transcoding for many transcoding machines the file allocation of a plurality of intermediate forms after the cutting.
The file of these intermediate forms can be identified by the transcoding machine, plays but can not be played device identification, makes concurrently transcoding and process in many transcoding machines.
Step S18: the file behind the transcoding is synthesized.
Fig. 2 shows the principle of preferred embodiment of the cloud trans-coding system of video file of the present invention.See also Fig. 2, the system of present embodiment comprises: video file cutting device 1, the file transcoding distributor 2 that is connected with video file cutting device 1, the transcoding file synthesis device 3 that is connected with file transcoding distributor 2.
Video file cutting device 1 is the file of a plurality of intermediate forms that can be identified by the transcoding machine with the video file cutting.Video file cutting device 1 comprises: video-frequency band cutting unit 10, the description document that is connected with video-frequency band cutting unit 10 are searched unit 12, are searched the intermediate file synthesis unit 14 that unit 12 is connected with description document.
Video-frequency band cutting unit 10 is divided into a plurality of video-frequency bands with video file.Description document is searched unit 12 and find respectively the description document corresponding with each video-frequency band from the file header of video file.Intermediate file synthesis unit 14 synthesizes each video-frequency band and corresponding description document the file of intermediate form.
File transcoding distributor 2 carries out transcoding for many transcoding machines the file allocation of a plurality of intermediate forms after the cutting.
Transcoding file synthesis device 3 synthesizes the file behind the transcoding.
Above-described embodiment provides to those of ordinary skills and realizes and use of the present invention; those of ordinary skills can be in the situation that does not break away from invention thought of the present invention; above-described embodiment is made various modifications or variation; thereby protection scope of the present invention do not limit by above-described embodiment, and should be the maximum magnitude that meets the inventive features that claims mention.