A kind of multi-media transcoding dispatching device
Technical field
This utility model relates to multi-media processing field, espespecially multi-media transcoding dispatching device.
Background technology
The Internet is universal with each class of electronic devices so that the extensive degree of video transmission is unprecedented.One video content needs in multi-platform, multiple terminals repeatedly, concurrently plays.
Patent documentation CN102802024A is in a kind of code-transferring method realized at server end on November 28th, 2012, wherein said server end includes host side subsystem and has the transcoding processing subsystem of multiple core cpu, and described method includes: described host side subsystem is by the data code flow attribute information of data stream after call parameters configuration definition transcoding;Described host side subsystem will treat that transcoded data stream sends described transcoding processing subsystem to;Described transcoding processing subsystem treats transcoded data stream described in receiving, and treats that transcoded data stream is decoded to described, obtains with brightness and the data stream yuv data stream of chrominance representation;Described transcoding processing subsystem obtains described data code flow attribute information from described host side subsystem, encodes described yuv data stream according to described data code flow attribute information, and by the data stream after coding to network.
Patent documentation CN103024445A discloses multi-media transcoding method and the Cloud Server in a kind of high in the clouds on April 3rd, 2013, the method comprise the steps that Cloud Server is decoded obtaining multiple picture frames of video file to video file;Cloud Server judges that each of multiple picture frame is focus picture frame or background image frame respectively;If focus picture frame, then Cloud Server obtains focus area and the background area of focus picture frame, and carries out lossless and lossy coding respectively, to obtain the focus picture frame after encoding;If background image frame, then background image frame is carried out lossy coding, to obtain the background image frame after encoding;And the focus picture frame after coding and the background image frame after coding are synthesized transcoded video file and states the transmission of transcoded video file to mobile terminal.The program can improve the picture quality of transcoded video file while high efficiency transcoding, it is possible to provides the video file of different code check according to different terminals, promotes Consumer's Experience.
Currently, video service provider, when responding rapidly to multiple, the changeable video playback demand of user, occurs in that response not in time, the problem that response quality is unstable.
Utility model content
This utility model provides one to be used for promoting transcoding efficiency, improves the multi-media transcoding scheduler of Consumer's Experience.
The purpose of this utility model is achieved through the following technical solutions:
A kind of multi-media transcoding dispatching device, including: grader and transcoder, transcoder couples with grader;Grader receives original multimedia file and destination multimedia file attribute, output category multimedia file;Transcoder receives classification multimedia file, exports multimedia file transcoded data;The combiner that the transcoding server that the scheduler that described transcoder also includes the food slicer coupled with grader, couple with grader and food slicer respectively couples with scheduler couples with transcoding server;It is additionally provided with operational amplifier between described grader and food slicer;Described food slicer receives original multimedia file, the fragment of output original multimedia file;Described scheduler receives multimedia file, and the multimedia file of output distribution is to multiple stage transcoding server;Described operational amplifier receives original multimedia file, outputting standard format multi-media file;Described transcoding server receives multimedia file, the multimedia file of output transcoding;Described combiner receives Transcode Clip, exports destination multimedia file.
This utility model, by being classified by original multimedia file, determines transcoding strategy by class, thus can optimize transcoding server, by Optimized Operation strategy, on the premise of not increasing transcoding server hardware spending, it is achieved that fast transcoding.This utility model can cause video to call situation complicated when responding rapidly to multiple, the changeable video playback demand of user, in the case of video genre abundance, still can guarantee that video playback is smooth, improves Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the principle schematic of this utility model embodiment one multi-media transcoding scheduler;
Fig. 2 is the principle schematic of this utility model embodiment two multi-media transcoding scheduler;
Fig. 3 is the principle schematic of the video code conversion scheduler of this utility model embodiment.
Wherein: 10, grader;21, food slicer;22, scheduler;23, transcoding server;24;Combiner;25, preprocessor;26, multimedia storage server.
Detailed description of the invention
The utility model is described in further detail with preferred embodiment below in conjunction with the accompanying drawings.
This utility model provides a kind of multi-media transcoding dispatching device, shown in Figure 3, including: grader and transcoder, transcoder couples with grader;
Grader receives original multimedia file and destination multimedia file attribute, output category multimedia file;Transcoder receives classification multimedia file, exports multimedia file transcoded data;
The combiner that the transcoding server that the scheduler that described transcoder also includes the food slicer coupled with grader, couple with grader and food slicer respectively couples with scheduler couples with transcoding server;
It is additionally provided with operational amplifier between described grader and food slicer;
Described food slicer receives original multimedia file, the fragment of output original multimedia file;
Described scheduler receives multimedia file, and the multimedia file of output distribution is to multiple stage transcoding server;
Described operational amplifier receives original multimedia file, outputting standard format multi-media file;
Described transcoding server receives multimedia file, the multimedia file of output transcoding;
Described combiner receives Transcode Clip, exports destination multimedia file.
Preferably, it is additionally provided with operational amplifier between described grader and food slicer;Described operational amplifier receives original multimedia file, outputting standard format multi-media file.
It is also preferred that the left described transcoder also includes the scheduler coupled with grader;Described scheduler receives multimedia file, and the multimedia file of output distribution is to multiple stage transcoding server;
Optionally, described transcoder also includes the transcoding server coupled with scheduler;Described transcoding server receives multimedia file, the multimedia file of output transcoding.
In one embodiment, described transcoder also includes the multimedia storage server coupled with transcoding server;Described multimedia storage server receives destination multimedia file.
Embodiment one
As it is shown in figure 1, the multi-media transcoding scheduler of present embodiment, including:
Grader 10, the transcoder 20 coupled with grader 10.
Grader carries out classification process according to original multimedia file and destination multimedia file attribute to original multimedia file;Transcoder carries out transcoding process by classification to original multimedia file.
Grader and transcoder can use different server hardwares to realize.
This utility model, by being classified by original multimedia file, determines transcoding strategy by class, thus can optimize transcoding server, by Optimized Operation strategy, on the premise of not increasing transcoding server hardware spending, it is achieved that fast transcoding.This utility model can cause video to call situation complicated when responding rapidly to multiple, the changeable video playback demand of user, in the case of video genre abundance, still can guarantee that video playback is smooth, improves Consumer's Experience.If no special instructions, multimedia file described in the utility model is generally video and/or audio file.
Embodiment two
As in figure 2 it is shown, multi-media transcoding scheduler includes disclosed in present embodiment: grader, the transcoder coupled with grader.
Combiner that the transcoding server that the scheduler that described transcoder also includes the food slicer coupled with grader, couple with grader and food slicer respectively couples with scheduler couples with transcoding server, couple multimedia storage server with transcoding server and combiner respectively;It is additionally provided with preprocessor between described grader and food slicer;
Grader carries out classification process according to original multimedia file and destination multimedia file attribute to original multimedia file;Described food slicer for being cut at least two fragment by original multimedia file;The multimedia file of transcoding treated for the service behaviour of multiple stage transcoding server by described scheduler for distributing;Described preprocessor for being converted into default reference format by original multimedia file;Described transcoding server is for carrying out transcoding to multimedia file;Described combiner forms destination multimedia file for the fragment after transcoding being merged;Described multimedia storage server is used for storing destination multimedia file.
Present embodiment is complicated in view of system source video sequence to be processed, form and the situation of video are various, likely system is processed video content and bring burden, even some special format may cause follow-up processing module to process, therefore, for such video content, video format conversion is carried out by preprocessor, it is converted into suitable reference format, through such conversion, the most even can directly reduce video capacity, reduction system processing load, even if capacity changes little, also the problem that video content possibly cannot be identified can be solved at System Back-end.Scheduler can carry out parallel processing to the fragment of section respectively according to meeting the different transcoding server of situation flexible arrangement, can utilize hardware resource to greatest extent, improve again transcoding efficiency.
Embodiment three
Present embodiment is illustrated as a example by original multimedia file is as video file.
Multi-media transcoding scheduler disclosed in present embodiment includes following 7 kinds of structures:
Grader.Grader is responsible for classifying video-processing mode according to original multimedia file attribute, target video file attribute.Generally, there are 3 kinds: directly transcoding;Transcoding is sent after burst;After pretreatment, burst send transcoding again.
Preprocessor.The video file that preprocessor is responsible for needing section carries out pretreatment.Pretreated file can turn section.Purpose: in view of system source video sequence to be processed is complicated, form and the situation of video are various, likely system is processed video content and bring burden, even some special format may cause follow-up processing module to process, therefore, for such video content, video format conversion is carried out by preprocessor, it is converted into suitable reference format, through such conversion, the most even can directly reduce video capacity, reduction system processing load, even if capacity changes little, also the problem that video content possibly cannot be identified can be solved at System Back-end.
Food slicer.Food slicer is responsible for according to rule, video file is divided into multiple fragment.
If code check is uniform, video can be divided equally cutting
If code check is uneven, as video content be motion or static time code check different, when cutting, approximately the same carry out cutting for principle according to the time of transcoding consumption.
Scheduler.Scheduler is responsible for the service behaviour of multiple stage transcoding server and distributes the video file treating transcoding.
Transcoding server.There is multiple stage transcoding server.Transcoding server completes video file format conversion, including decoding and 2 processes of coding.
The service behaviour of multiple stage transcoding server can be variant, then the load balance of multiple stage transcoding server is by if desired for section, then food slicer and scheduler complete jointly, as need not section, is then mainly completed by scheduler
Combiner.Belong to a video file multiple bursts after transcoding, combiner be assembled into one section of complete video.
Video storage server.Video storage server is responsible for storing the video file of various form.
The code-transferring method job step of present embodiment Optimized Operation strategy is as follows:
The first step, according to original multimedia file attribute, target video file attribute, grader determines transcoding mode.
Generally, there are 3 kinds of transcoding strategy: a, as less in multiple video file contents, directly send scheduler.B, as many in multiple video file contents, send food slicer to send scheduler after cutting into slices.C, as video format is lack of standardization, is not suitable for direct slicing, then enter after original multimedia file is carried out pretreatment by preprocessor and send food slicer and scheduler.
Please supplement, the classifying rules of grader.
Second step, food slicer and scheduler are cut into slices according to the work efficiency of each transcoding server, then process the video distribution after section to corresponding transcoding server;
3rd step, after transcoding server transcoding, has multiple files of section mark to export to VRAM after being combined as a complete file in combiner;The file of mark of not cutting into slices is directly output to video server.
This utility model, when responding rapidly to multiple, the changeable video playback demand of user, causes video to call situation complicated, in the case of video genre abundance, still can guarantee that video playback is smooth, improves Consumer's Experience.
It should be noted that, in view of system source video sequence to be processed is complicated, form and the situation of video are various, likely system is processed video content and bring burden, even some special format may cause follow-up processing module to process, therefore, for such video content, video format conversion is carried out by preprocessor, it is converted into suitable reference format, through such conversion, the most even can directly reduce video capacity, reduction system processing load, even if capacity changes little, also the problem that video content possibly cannot be identified can be solved at System Back-end.This utility model, by being classified by original multimedia file, determines transcoding strategy by class, and by the load balance of multiple stage transcoding server, thus can optimize transcoding server, by Optimized Operation strategy, on the premise of not increasing transcoding server hardware spending, it is achieved that fast transcoding.This utility model can cause video to call situation complicated when responding rapidly to multiple, the changeable video playback demand of user, in the case of video genre abundance, still can guarantee that video playback is smooth, improves Consumer's Experience.
Above content is to combine concrete preferred implementation further detailed description of the utility model, it is impossible to assert that of the present utility model being embodied as is confined to these explanations.For this utility model person of an ordinary skill in the technical field, without departing from the concept of the premise utility, it is also possible to make some simple deduction or replace, all should be considered as belonging to protection domain of the present utility model.