CN104159127B - A kind of video transcoding method, apparatus and system - Google Patents

A kind of video transcoding method, apparatus and system Download PDF

Info

Publication number
CN104159127B
CN104159127B CN201410415885.1A CN201410415885A CN104159127B CN 104159127 B CN104159127 B CN 104159127B CN 201410415885 A CN201410415885 A CN 201410415885A CN 104159127 B CN104159127 B CN 104159127B
Authority
CN
China
Prior art keywords
video
transcoder
file
transcoded
transcoding
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.)
Active
Application number
CN201410415885.1A
Other languages
Chinese (zh)
Other versions
CN104159127A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201410415885.1A priority Critical patent/CN104159127B/en
Publication of CN104159127A publication Critical patent/CN104159127A/en
Application granted granted Critical
Publication of CN104159127B publication Critical patent/CN104159127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the invention discloses a kind of video transcoding method, apparatus and system, a kind of video transcoding method, comprising: obtain the target bit rate of video file to be transcoded and the video file to be transcoded;The video file to be transcoded is split, at least two video subfiles are obtained;The video subfile that segmentation obtains is distributed into more transcoders, and the target bit rate of the video file to be transcoded is sent to the transcoder for being assigned video subfile, so that the transcoder for being assigned video subfile carries out transcoding to the video subfile that distribution obtains according to the target bit rate of the video file to be transcoded, the video subfile with target bit rate is generated;Wherein, any one video subfile is only assigned to a transcoder.Using above-mentioned technical proposal, the embodiment of the present invention can call more transcoders to carry out transcoding to a video file simultaneously, therefore can shorten the transcoding time, and improve transcoding efficiency.

Description

A kind of video transcoding method, apparatus and system
Technical field
The present invention relates to technical field of video processing, in particular to a kind of video transcoding method, apparatus and system.
Background technique
With the fast development of network multimedia technology, the broadcasting form of video file is no longer limited to certain specific view Gradually there is SD video code flow, HD video code stream, ultra high-definition video code flow etc. and meets heterogeneous networks broadcasting ring in frequency code stream The video code flow in border.This just needs video service provider to carry out transcoding to video file, to obtain the view of various clarity Frequency code stream, so that video player plays out.
Existing Video Transcoding Technology is assigned to a transcoding when carrying out video code conversion, by a complete video file Transcoding is carried out on device.Since video file is larger, a complete video file carries out transcoding in a transcoder will It takes a long time, efficiency is lower.Especially in the biggish transcoding task of execution code rate, the above problem is especially prominent.
If it is possible to propose a kind of quick code-transferring method, it undoubtedly can be to the system of the high bit-rate video of Video service quotient Make generation positive effect.
Summary of the invention
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of video transcoding method, apparatus and system, specific skills Art scheme is as follows:
A kind of video transcoding method, comprising:
Obtain the target bit rate of video file to be transcoded and the video file to be transcoded;
The video file to be transcoded is split, at least two video subfiles are obtained;
The video subfile that segmentation obtains is distributed into more transcoders, and is sent out to the transcoder for being assigned video subfile The target bit rate of the video file to be transcoded is sent, so that the transcoder for being assigned video subfile is according to described to be transcoded The target bit rate of video file carries out transcoding to the video subfile that distribution obtains, and generates the video Ziwen with target bit rate Part;Wherein, any one video subfile is only assigned to a transcoder.
Optionally, further includes:
Obtain to the more transcoder transcodings, the video subfile with target bit rate merges, and obtains complete Target bit rate video file.
Optionally, described that the video file to be transcoded is split, obtain at least two video subfiles, comprising:
The video file to be transcoded is split according to duration, obtains at least two video with identical duration File;
Or
The video file to be transcoded is split according to file size, obtaining at least two has same file size Video subfile.
Optionally, described that the video file to be transcoded is split, obtain at least two video subfiles, comprising:
The video file to be transcoded for being more than threshold value to file size is split, and obtains at least two video subfiles.
Optionally, further includes:
Obtain the transcoding progress of each transcoder in the more transcoders;
It determines that transcoding progress has abnormal transcoder, and transcoding progress is existed to the video Ziwen in abnormal transcoder Part is assigned in another transcoder and carries out transcoding.
Optionally, another transcoder is the idle transcoder for not carrying out transcoding at current time.
Optionally, the transcoding progress for obtaining each transcoder in the more transcoders, comprising:
Periodically acquire the transcoding progress of each transcoder in the more transcoders;
Or
Receive the transcoding progress that each transcoder uploads in the more transcoders.
Optionally, obtained each video subfile of dividing includes that at least one strategy influences coding quality GOP, institute Stating the first frame in GOP is key frame.
A kind of video code conversion device, comprising:
Data obtaining module, for obtaining the target bit rate of video file to be transcoded and the video file to be transcoded;
File division module, the video file to be transcoded for obtaining to the data obtaining module are split, obtain At least two video subfiles;
File distribution module, the video subfile for obtaining the file division module segmentation distribute to more transcodings Device, and the target bit rate of the video file to be transcoded is sent to the transcoder for being assigned video subfile, so that the distribution Have the transcoder of video subfile according to the video file to be transcoded target bit rate to the obtained video subfile of distribution into Row transcoding generates the video subfile with target bit rate;Wherein, any one video subfile is only assigned to a transcoding Device.
Optionally, further includes:
File combination module, for video subfile being obtained to the more transcoder transcodings, with target bit rate It merges, obtains complete target bit rate video file.
Optionally, the file division module, is specifically used for:
The video file to be transcoded that the data obtaining module obtains is split according to duration, obtains at least two tools There is the video subfile of identical duration;
Or
The video file to be transcoded that the data obtaining module obtains is split according to file size, obtains at least two A video subfile with same file size.
Optionally, the file division module, is specifically used for:
The video file to be transcoded that the file size that the data obtaining module obtains is more than threshold value is split, is obtained At least two video subfiles.
Optionally, further includes:
Progress obtains module, for obtaining the transcoding progress of each transcoder in the more transcoders;
Task allocating module determines that transcoding progress is deposited for the transcoding progress according to acquired in progress acquisition module It is assigned in another transcoder in abnormal transcoder, and by transcoding progress in the presence of the video subfile in abnormal transcoder Carry out transcoding.
Optionally, another transcoder is the idle transcoder for not carrying out transcoding at current time.
Optionally, the progress obtains module, is specifically used for:
Periodically acquire the transcoding progress of each transcoder in the more transcoders;
Or
Receive the transcoding progress that each transcoder uploads in the more transcoders.
Optionally, each video subfile that the file division module segmentation obtains includes that at least one strategy influences to compile First frame in code quality GOP, the GOP is key frame.
A kind of video code conversion system, comprising:
Video code conversion device and more transcoders;Wherein, the video code conversion device and the more transcoder communication links It connects, the video code conversion device includes:
Data obtaining module, for obtaining the target bit rate of video file to be transcoded and the video file to be transcoded;
File division module, the video file to be transcoded for obtaining to the data obtaining module are split, obtain At least two video subfiles;
File distribution module, the video subfile for obtaining the file division module segmentation distribute to more transcodings Device, and the target bit rate of the video file to be transcoded is sent to the transcoder for being assigned video subfile, so that the distribution Have the transcoder of video subfile according to the video file to be transcoded target bit rate to the obtained video subfile of distribution into Row transcoding generates the video subfile with target bit rate;Wherein, any one video subfile is only assigned to a transcoding Device.
Using above-mentioned technical proposal, video transcoding method provided in an embodiment of the present invention, apparatus and system can be treated and turn Code video file is split, and the video subfile that segmentation obtains is distributed to different transcoders, so that more transcoders Transcoded video file is treated simultaneously carries out transcoding.The embodiment of the present invention can call more transcoders simultaneously to a video file Transcoding is carried out, therefore the transcoding time can be shortened, and improve transcoding efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of video transcoding method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another video transcoding method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another video transcoding method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of video code conversion device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another video code conversion device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another video code conversion device provided in an embodiment of the present invention.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in the present invention, implement below in conjunction with the present invention Attached drawing in example, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment Only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, the common skill in this field Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects It encloses.
Universal and network bandwidth with Online Video service is continuously increased, and Online Video service provider is faced with More and more high definitions or ultra high-definition video code conversion demand.Since the high resolution of HD video and ultra high-definition video, code rate are big, Transcoding complexity is the several times of SD video.Transcoding is carried out to video file based on the video transcoding method of single machine using existing When, with the increase of code rate, the transcoding time linearly increases, and the transcoding process of video file takes a long time, and transcoding efficiency is lower, To solve the above-mentioned problems, the embodiment of the invention provides a kind of video transcoding methods, apparatus and system.
A kind of video transcoding method provided in an embodiment of the present invention is introduced first below.
It should be noted that video code conversion device of the present invention method suitable for video code conversion system, in reality In the application of border, which may include: video code conversion device and more transcoders, which can be Electronic equipment with control function.
As shown in Figure 1, a kind of video transcoding method provided in an embodiment of the present invention, may include:
S101 obtains the target bit rate of video file to be transcoded and video file to be transcoded.
Code rate in the embodiment of the present invention can be understood as data transmission when the unit time transmission data bits, usually with Kbps is unit expression.To a certain extent, the code rate of video file is higher, and the resolution ratio of video is also higher, the picture of video Face quality is better, is thus also just understood that for same video file, the code rate of the optimal ultra high-definition video of image quality It is worth larger, the code rate value of HD video is taken second place, and the code rate value of SD video is smaller.
In addition, the calculation formula based on video code rate: the current code rate of video=(video file size * 8*1024)/broadcasting Time, for the video file that a playing duration is fixed, the current code rate of video is higher, and the file of video file is bigger, than A length of TV play in 1 hour when such as a collection, the file size of HD video is about 10 times of the file of SD video.
Optionally, in one embodiment of the embodiment of the present invention, when needing to carry out transcoding to video file, Ke Yizhi Connect the equipment to video file to be transcoded is stored with, the request video file to be transcoded.
It optionally,, can be with when needing to carry out transcoding to video file in an embodiment of the embodiment of the present invention The equipment for being stored with video file to be transcoded is waited to send the video file to be transcoded automatically.
S102 treats transcoded video file and is split, and obtains at least two video subfiles.
It optionally, can be according to duration to the video text to be transcoded in an embodiment of the embodiment of the present invention Part is split, and obtains at least two video subfiles with identical duration.Such as the electricity for being 60 minutes for playing duration Depending on play, it can divide to obtain a length of 6 minutes at 10 video subfiles.
It optionally, can be according to file size to the view to be transcoded in an embodiment of the embodiment of the present invention Frequency file is split, and obtains at least two video subfiles with same file size.Such as video file size For the film of 700M, can divide to obtain the video subfile that 10 file sizes are 70M.
It should be noted that treating transcoded video file according to duration or file size is split the only present invention Two kinds of embodiments of embodiment, furthermore, it is possible to be set according to actual conditions to above-mentioned duration and file size value.
It is understood that a video file includes that multiple strategies influence coding quality GOP, each GOP is understood that For a series of continuous video frames, key frame of video I frame is contained at least one in each GOP.Particularly, in order to avoid to video Broadcasting pictures effect impacts, and when treating transcoded video file and being split, the video subfile for guaranteeing that segmentation obtains is equal Comprising at least one complete GOP, and the first frame in the GOP is I frame.In order to avoid unsweet sound phenomenon appearance, can treat Before transcoded video file is split, the audio of above-mentioned video file to be transcoded is encoded.
In practical applications, based on the considerations of transcoding efficiency, a Filtering system can be increased, which can lead to The file size for judging video file is crossed, to decide whether to be split processing.Preferably, it can choose to file size Video file to be transcoded more than threshold value is split, and obtains at least two video subfiles.It should be noted that can basis Actual conditions set the value of the threshold value in the embodiment of the present invention, and the embodiment of the present invention is not construed as limiting this.
It should be noted that each video subfile that the segmentation in the embodiment of the present invention obtains is continuous one section of content Video file.
The obtained video subfile of segmentation is distributed to more transcoders by S103, and to being assigned turning for video subfile Code device sends the target bit rate of video file to be transcoded, so as to be assigned the transcoder of video subfile according to video text to be transcoded The target bit rate of part carries out transcoding to the video subfile that distribution obtains, and generates the video subfile with target bit rate;Wherein, Any one video subfile is only assigned to a transcoder.
Transcoder in the embodiment of the present invention can be the electronic equipment for having video code conversion function, it can be according to target Video file transcoding is the video with target bit rate by code rate.
In embodiments of the present invention, it is split treating transcoded video file, it, can be by institute after obtaining video subfile The video subfile of acquisition distributes to more transcoders, for example, including 10 transcodings in a very small video code conversion system Machine, a video file to be transcoded are divided into 5 video subfiles, then 5 video subfiles can be distributed to 5 Machine, every machine assignment obtain 1 video subfile.
Furthermore, it is necessary to target bit rate be sent to the transcoder for being assigned video subfile, so that the transcoder is according to target Code rate carries out transcoding to the video subfile that distribution obtains, for example, the target bit rate of video file to be transcoded is 4933kbps, Need for target bit rate to be sent to 5 transcoders for being assigned video subfile, this 5 transcoders, will be upper according to target bit rate Stating 5 video subfile transcodings is the video that code rate is 4933kbps.
Preferably, the video file to be transcoded in the embodiment of the present invention can carry priority tag and/or type mark Know.Each video subfile can also carry the priority tag and/or type mark for being split preceding video file to be transcoded Know.
The video file to be transcoded for carrying priority tag is split, the video subfile of acquisition carries excellent First grade mark;Further, when carrying out transcoding to video subfile, it can control transcoder to the view for carrying priority tag Frequency subfile carries out preferential transcoding.
The video file to be transcoded for carrying type identification is split, the video subfile of acquisition carries type Mark;Further, the video file to be transcoded for carrying preset kind mark can be split and/or transcoding first. It is of course also possible to which the video subfile that the video file to be transcoded for carrying different type mark is divided is distributed to respectively Different transcoders.Such as: the video Ziwen that the video file to be transcoded for carrying first kind mark is split Part distributes to each transcoder in the first transcoder group;The video file to be transcoded for carrying Second Type mark is split Obtained video subfile distributes to each transcoder in the second transcoder group.In this way, each transcoder can be with single to carry out The transcoder of type transcoding, this transcoder are lower compared to cost for the transcoder that can carry out multiple types transcoding It is honest and clean, simultaneously because having a single function, therefore transcoding efficiency is higher.
It corresponds in practical application, above situation can be summarized with the concept in transcoding channel, i.e., it is different types of It is video file, can be handled using the different transcoding processes of different transcoder or same transcoder.
It can be seen that video transcoding method provided in an embodiment of the present invention, can treat transcoded video file and be split, And the video subfile that segmentation obtains is distributed into different transcoders, so that more transcoders treat transcoded video file simultaneously Carry out transcoding.The embodiment of the present invention can call more transcoders to carry out transcoding to a video file simultaneously, therefore can contract The short transcoding time, and improve transcoding efficiency.
Optionally, in one embodiment of the invention, as shown in Fig. 2, after above-mentioned S103, can also include:
S104 obtains the transcoding progress of each transcoder in the more transcoders.
Transcoding progress in the embodiment of the present invention is the transcoding task amount that transcoder has been completed in preset duration, such as For the video file of a 30M, transcoder transcoding 15M in 5 minutes, it can be said that transcoding progress is 50%.
Optionally, it in an embodiment of the embodiment of the present invention, can periodically acquire in the more transcoders The transcoding progress of each transcoder.For example, the transcoding progress an of transcoder can be obtained every 50s.
Optionally, in an embodiment of the embodiment of the present invention, each turn is can receive in the more transcoders The transcoding progress that code device uploads.
In practical applications, the concept that transcoding heartbeat can be used summarizes above embodiment, i.e., each heartbeat, Obtain the transcoding progress an of transcoder.
Since video code conversion is an intensive business, the transcoding progress of transcoder is monitored, once transcoder goes out Existing delay machine etc. is abnormal, can handle it in time.Furthermore, it is possible to which the information obtained to monitoring arranges, next time encounters class again As transcoding task, the usage amount of machine resources can be estimated, for the reasonable distribution of machine resources have guidance anticipate Justice.
S105 determines that transcoding progress has abnormal transcoder, and transcoding progress is existed to the view in abnormal transcoder Frequency subfile is assigned in another transcoder and carries out transcoding.
Optionally, another transcoder can be the higher transcoder of CPU frequency;
Optionally, another transcoder can not carry out the idle transcoder of transcoding for current time;
In embodiments of the present invention, in the transcoding progress exception of the initiations such as transcoder delay machine or transcoding process interrupt, energy It is enough video file is distributed into the higher transcoder of CPU frequency or current time automatically not carry out the idle transcoder of transcoding and carry out Transcoding, so that the influence that transcoder operation irregularity operates video code conversion is reduced, dependable with function with higher.
Optionally, in one embodiment of the invention, as shown in figure 3, after above-mentioned S103, can also include:
S106, obtain to the more transcoder transcodings, the video subfile with target bit rate merge, and obtain Complete target bit rate video file.
In embodiments of the present invention, more transcoder transcodings of assigned video subfile being obtained, have mesh The video subfile of coding rate merges into a complete target bit rate video file, to facilitate backstage editor to the target bit rate Video file is audited.
Additionally it is possible to generate corresponding different video player according to the above-mentioned video subfile with target bit rate Video metadata, for example the m3u8 file corresponding to video player in ios operating system can be generated.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of video code conversion devices.
As shown in figure 4, a kind of video code conversion device provided in an embodiment of the present invention, may include:
Data obtaining module 401, for obtaining the target bit rate of video file to be transcoded and the video file to be transcoded;
File division module 402, the video file to be transcoded for obtaining to the data obtaining module 401 divide It cuts, obtains at least two video subfiles;
File distribution module 403, the video subfile for obtaining the file division module 402 segmentation are distributed to more Platform transcoder, and the target bit rate of the video file to be transcoded is sent to the transcoder for being assigned video subfile, so that institute It states and is assigned video that the transcoder of video subfile obtains distribution according to the target bit rate of the video file to be transcoded File carries out transcoding, generates the video subfile with target bit rate;Wherein, any one video subfile is only assigned to one Transcoder.
Optionally, in an embodiment of the embodiment of the present invention, the file division module 402 can be specifically same In:
It is split according to the video file to be transcoded that duration obtains the data obtaining module 401, obtains at least two A video subfile with identical duration;
Or
The video file to be transcoded that the data obtaining module 401 obtains is split according to file size, is obtained To at least two video subfiles with same file size.
Optionally, in an embodiment of the embodiment of the present invention, the file division module 402 can be used specifically In:
The video file to be transcoded that the file size that the data obtaining module 401 obtains is more than threshold value is split, Obtain at least two video subfiles.
Optionally, in one embodiment of the invention, as shown in figure 5, can also include:
Progress obtains module 404, for obtaining the transcoding progress of each transcoder in the more transcoders;
Task allocating module 405 determines transcoding for the transcoding progress according to acquired in progress acquisition module 404 There is abnormal transcoder in progress, and transcoding progress is existed to the video subfile in abnormal transcoder, be assigned to another turn Transcoding is carried out in code device.
Preferably, another transcoder is the idle transcoder for not carrying out transcoding at current time.
Optionally, in an embodiment of the embodiment of the present invention, the progress obtains module 404, can be with:
Periodically acquire the transcoding progress of each transcoder in the more transcoders;
Or
Receive the transcoding progress that each transcoder uploads in the more transcoders.
Optionally, in one embodiment of the invention, as shown in fig. 6, the device can also include:
File combination module 406, for video Ziwen being obtained to the more transcoder transcodings, with target bit rate Part merges, and obtains complete target bit rate video file.
Optionally, in one embodiment of the invention, the file division module 402 divides obtained each video Ziwen Part includes that at least one strategy influences coding quality GOP, and the first frame in the GOP is key frame.
It can be seen that video code conversion device provided in an embodiment of the present invention, can treat transcoded video file and be split, And the video subfile that segmentation obtains is distributed into different transcoders, so that more transcoders treat transcoded video file simultaneously Carry out transcoding.The embodiment of the present invention can call more transcoders to carry out transcoding to a video file simultaneously, therefore can contract The short transcoding time, and improve transcoding efficiency.
Corresponding to devices above embodiment, the embodiment of the invention also provides a kind of video code conversion systems, may include:
Video code conversion device and more transcoders;The video code conversion device and the more transcoders communicate to connect.Institute Video code conversion device is stated, may include: data obtaining module, file division module and file distribution module;
The data obtaining module, for obtaining the object code of video file to be transcoded and the video file to be transcoded Rate;
The file division module, the video file to be transcoded for obtaining to the data obtaining module are split, Obtain at least two video subfiles;
The file distribution module, the video subfile for obtaining the file division module segmentation distribute to more Transcoder, and the target bit rate of the video file to be transcoded is sent to the transcoder for being assigned video subfile, so that described It is assigned the video Ziwen that the transcoder of video subfile obtains distribution according to the target bit rate of the video file to be transcoded Part carries out transcoding, generates the video subfile with target bit rate;Wherein, any one video subfile is only assigned to one turn Code device.
The communication connection mode of the video code conversion device and more transcoders, may include: wired connection mode, and/ Or radio connection.
It can be seen that video code conversion system provided in an embodiment of the present invention, can treat transcoded video file and be split, And the video subfile that segmentation obtains is distributed into different transcoders, so that more transcoders treat transcoded video file simultaneously Carry out transcoding.The embodiment of the present invention can call more transcoders to carry out transcoding to a video file simultaneously, therefore can contract The short transcoding time, and improve transcoding efficiency.
For apparatus and system embodiment, since it is substantially similar to the method embodiment, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
For convenience of description, it describes apparatus above and when system is divided into various modules with function and describes respectively.Certainly, exist Implement to realize the function of each module in the same or multiple software and or hardware when the present invention.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
Those of ordinary skill in the art will appreciate that all or part of the steps in realization above method embodiment is can It is completed with instructing relevant hardware by program, the program can store in computer-readable storage medium, The storage medium designated herein obtained, such as: ROM/RAM, magnetic disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (15)

1. a kind of video transcoding method characterized by comprising
Obtain the target bit rate of video file to be transcoded and the video file to be transcoded;Wherein, the video file to be transcoded In carry audio;
The audio of the video file to be transcoded is encoded;
The video file to be transcoded is split, at least two video subfiles are obtained;
The video subfile that segmentation obtains is distributed into more transcoders, and sends institute to the transcoder for being assigned video subfile The target bit rate of video file to be transcoded is stated, so that the transcoder for being assigned video subfile is according to the video to be transcoded The target bit rate of file carries out transcoding to the video subfile that distribution obtains, and generates the video subfile with target bit rate;Its In, any one video subfile is only assigned to a transcoder;
Obtain the transcoding progress of each transcoder in the more transcoders;
It determines that transcoding progress has abnormal transcoder, and transcoding progress is existed to the video subfile in abnormal transcoder, It is assigned in another transcoder and carries out transcoding;
Based on the transcoding progress of each transcoder obtained, the usage amount for generating the transcoder resource of each transcoder estimates letter Breath, to estimate information based on the usage amount come the to be transcoded video text new to this when receiving new video file to be transcoded The video subfile that part is divided is allocated.
2. the method according to claim 1, wherein further include:
Obtain to the more transcoder transcodings, the video subfile with target bit rate merges, and obtains complete mesh Coding rate video file.
3. being obtained the method according to claim 1, wherein described be split the video file to be transcoded To at least two video subfiles, comprising:
The video file to be transcoded is split according to duration, obtains at least two video Ziwens with identical duration Part;
Or
The video file to be transcoded is split according to file size, obtains at least two views with same file size Frequency subfile.
4. being obtained the method according to claim 1, wherein described be split the video file to be transcoded To at least two video subfiles, comprising:
The video file to be transcoded for being more than threshold value to file size is split, and obtains at least two video subfiles.
5. the method according to claim 1, wherein another transcoder is not carry out transcoding at current time Idle transcoder.
6. the method according to claim 1, wherein described obtain in the more transcoders each transcoder Transcoding progress, comprising:
Periodically acquire the transcoding progress of each transcoder in the more transcoders;
Or
Receive the transcoding progress that each transcoder uploads in the more transcoders.
7. method described in -6 any one according to claim 1, which is characterized in that described to divide obtained each video subfile Coding quality GOP is influenced comprising at least one strategy, the first frame in the GOP is key frame.
8. a kind of video code conversion device characterized by comprising
Data obtaining module, for obtaining the target bit rate of video file to be transcoded and the video file to be transcoded, and to institute The audio for stating video file to be transcoded is encoded;Wherein, audio is carried in the video file to be transcoded;
File division module, the video file to be transcoded for obtaining to the data obtaining module are split, obtain at least Two video subfiles;File distribution module, the video subfile for obtaining the file division module segmentation are distributed to More transcoders, and the target bit rate of the video file to be transcoded is sent to the transcoder for being assigned video subfile, so that The video that the transcoder for being assigned video subfile obtains distribution according to the target bit rate of the video file to be transcoded Subfile carries out transcoding, generates the video subfile with target bit rate;Wherein, any one video subfile is only assigned to one Platform transcoder;
Progress obtains module, for obtaining the transcoding progress of each transcoder in the more transcoders;
Task allocating module determines that there are different for transcoding progress for the transcoding progress according to acquired in progress acquisition module Normal transcoder, and transcoding progress is assigned in another transcoder and is carried out in the presence of the video subfile in abnormal transcoder Transcoding;And the transcoding progress of each transcoder based on acquisition, the usage amount for generating the transcoder resource of each transcoder are estimated Information, to estimate information based on the usage amount come the to be transcoded video new to this when receiving new video file to be transcoded The video subfile that file is divided is allocated.
9. device according to claim 8, which is characterized in that further include:
File combination module is carried out for video subfile obtain to the more transcoder transcodings, with target bit rate Merge, obtains complete target bit rate video file.
10. device according to claim 8, which is characterized in that the file division module is specifically used for:
The video file to be transcoded that the data obtaining module obtains is split according to duration, obtaining at least two has phase With the video subfile of duration;
Or
The video file to be transcoded that the data obtaining module obtains is split according to file size, obtains at least two tools There is the video subfile of same file size.
11. device according to claim 8, which is characterized in that the file division module is specifically used for:
The video file to be transcoded that the file size that the data obtaining module obtains is more than threshold value is split, is obtained at least Two video subfiles.
12. device according to claim 8, which is characterized in that another transcoder is not carry out transcoding at current time Idle transcoder.
13. device according to claim 8, which is characterized in that the progress obtains module, is specifically used for:
Periodically acquire the transcoding progress of each transcoder in the more transcoders;
Or
Receive the transcoding progress that each transcoder uploads in the more transcoders.
14. according to device described in claim 8-13 any one, which is characterized in that the file division module segmentation obtains Each video subfile include that at least one strategy influences coding quality GOP, the first frame in the GOP is key frame.
15. a kind of video code conversion system characterized by comprising
Video code conversion device and more transcoders;Wherein, the video code conversion device and the more transcoders communicate to connect, The video code conversion device includes:
Data obtaining module, for obtaining the target bit rate of video file to be transcoded and the video file to be transcoded, and to institute The audio for stating video file to be transcoded is encoded;Wherein, audio is carried in the video file to be transcoded;
File division module, the video file to be transcoded for obtaining to the data obtaining module are split, obtain at least Two video subfiles;File distribution module, the video subfile for obtaining the file division module segmentation are distributed to More transcoders, and the target bit rate of the video file to be transcoded is sent to the transcoder for being assigned video subfile, so that The video that the transcoder for being assigned video subfile obtains distribution according to the target bit rate of the video file to be transcoded Subfile carries out transcoding, generates the video subfile with target bit rate;Wherein, any one video subfile is only assigned to one Platform transcoder;
Progress obtains module, for obtaining the transcoding progress of each transcoder in the more transcoders;
Task allocating module determines that there are different for transcoding progress for the transcoding progress according to acquired in progress acquisition module Normal transcoder, and transcoding progress is assigned in another transcoder and is carried out in the presence of the video subfile in abnormal transcoder Transcoding;And the transcoding progress of each transcoder based on acquisition, the usage amount for generating the transcoder resource of each transcoder are estimated Information, to estimate information based on the usage amount come the to be transcoded video new to this when receiving new video file to be transcoded The video subfile that file is divided is allocated.
CN201410415885.1A 2014-08-21 2014-08-21 A kind of video transcoding method, apparatus and system Active CN104159127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410415885.1A CN104159127B (en) 2014-08-21 2014-08-21 A kind of video transcoding method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410415885.1A CN104159127B (en) 2014-08-21 2014-08-21 A kind of video transcoding method, apparatus and system

Publications (2)

Publication Number Publication Date
CN104159127A CN104159127A (en) 2014-11-19
CN104159127B true CN104159127B (en) 2019-02-22

Family

ID=51884517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410415885.1A Active CN104159127B (en) 2014-08-21 2014-08-21 A kind of video transcoding method, apparatus and system

Country Status (1)

Country Link
CN (1) CN104159127B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657449B (en) * 2014-12-03 2018-12-28 中国移动通信集团公司 A kind of video code conversion distribution method, device and video code conversion system
CN104581200B (en) * 2015-02-06 2018-01-02 网易传媒科技(北京)有限公司 The method and apparatus of section transcoding
CN104796732B (en) * 2015-04-21 2018-05-08 无锡天脉聚源传媒科技有限公司 A kind of audio and video edit methods and device
CN105357593B (en) * 2015-10-30 2019-06-07 努比亚技术有限公司 A kind of methods, devices and systems of uploaded videos
CN105898414A (en) * 2015-11-13 2016-08-24 乐视云计算有限公司 Video reviewing method and system
CN105451031B (en) * 2015-11-18 2021-11-30 腾讯科技(深圳)有限公司 Video transcoding method and system
CN105898448A (en) * 2015-12-14 2016-08-24 乐视云计算有限公司 Submission method and device of transcoding attribute information
CN105898554A (en) * 2015-12-18 2016-08-24 乐视云计算有限公司 Real-time transcoding monitoring method and real-time transcoding system
CN105763886A (en) * 2016-03-01 2016-07-13 深圳市茁壮网络股份有限公司 Distributed transcoding method and apparatus
CN107277650B (en) * 2017-07-25 2020-01-21 中国华戎科技集团有限公司 Video file cutting method and device
CN108174290B (en) * 2018-01-25 2019-05-24 北京百度网讯科技有限公司 Method and apparatus for handling video
US10645140B2 (en) 2018-04-09 2020-05-05 Wangsu Science & Technology Co., Ltd. Method for processing transcoding task, system and task management server
CN108521421B (en) * 2018-04-09 2019-11-12 网宿科技股份有限公司 A kind of processing method, system and the task management server of transcoding task
CN111093095A (en) * 2019-12-16 2020-05-01 黔南民族师范学院 Video transcoding method and system based on spark platform
CN111246243A (en) * 2020-01-15 2020-06-05 天脉拓道(北京)科技有限公司 File encoding and decoding method and device, terminal and storage medium
CN112423024A (en) * 2020-11-18 2021-02-26 北京乐学帮网络技术有限公司 Video transcoding method and device, computer equipment and storage medium
CN114205647A (en) * 2021-12-02 2022-03-18 云知声智能科技股份有限公司 Alarm method and device based on video monitoring, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635854A (en) * 2009-08-26 2010-01-27 腾讯科技(深圳)有限公司 Method and device for realizing transcoding merging
CN102055965A (en) * 2009-10-28 2011-05-11 腾讯科技(深圳)有限公司 Media file transcoding system and method
CN102123279A (en) * 2010-12-28 2011-07-13 乐视网信息技术(北京)股份有限公司 Distributed real-time transcoding method and system
CN102868707A (en) * 2011-07-04 2013-01-09 腾讯科技(深圳)有限公司 Method and system for downloading and transcoding file
CN102882829A (en) * 2011-07-11 2013-01-16 腾讯科技(深圳)有限公司 Transcoding method and system
CN103379363A (en) * 2012-04-19 2013-10-30 腾讯科技(深圳)有限公司 Video processing method and apparatus, mobile terminal and system
CN103731678A (en) * 2013-12-30 2014-04-16 世纪龙信息网络有限责任公司 Video file parallel transcoding method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098483A (en) * 2007-07-19 2008-01-02 上海交通大学 Video cluster transcoding system using image group structure as parallel processing element

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635854A (en) * 2009-08-26 2010-01-27 腾讯科技(深圳)有限公司 Method and device for realizing transcoding merging
CN102055965A (en) * 2009-10-28 2011-05-11 腾讯科技(深圳)有限公司 Media file transcoding system and method
CN102123279A (en) * 2010-12-28 2011-07-13 乐视网信息技术(北京)股份有限公司 Distributed real-time transcoding method and system
CN102868707A (en) * 2011-07-04 2013-01-09 腾讯科技(深圳)有限公司 Method and system for downloading and transcoding file
CN102882829A (en) * 2011-07-11 2013-01-16 腾讯科技(深圳)有限公司 Transcoding method and system
WO2013007148A1 (en) * 2011-07-11 2013-01-17 腾讯科技(深圳)有限公司 Transcoding method and system
CN103379363A (en) * 2012-04-19 2013-10-30 腾讯科技(深圳)有限公司 Video processing method and apparatus, mobile terminal and system
CN103731678A (en) * 2013-12-30 2014-04-16 世纪龙信息网络有限责任公司 Video file parallel transcoding method and system

Also Published As

Publication number Publication date
CN104159127A (en) 2014-11-19

Similar Documents

Publication Publication Date Title
CN104159127B (en) A kind of video transcoding method, apparatus and system
EP2759113B1 (en) Method and apparatus for processing segments of media content
CN105392068B (en) The parallel distribution method of the more transmission channel network direct broadcasting videos of distribution and system
JP5147950B2 (en) Apparatus and method for performing simulcast over variable bandwidth channel
CN104135672A (en) HLS-based method for realizing seamless disaster recovery of video on demand
CN104581229B (en) A kind of transmission of flow media data device, method and system
CN105282627A (en) Method for acquiring a live video clip and server
CN105407361A (en) Audio and video live broadcast data processing method and device
CN105357591A (en) QoE monitoring and optimization method for adaptive code rate video direct broadcast
CN102739627A (en) Method and system for switching and playing video
WO2013017165A1 (en) Shaping media traffic based on manifest file in http adaptive streaming
EP2075932A3 (en) Apparatus and method for communicating programs over networks
CN102802021B (en) A kind of method of editing multimedia data and device
CN1859250A (en) Resource managing device, cut-in system and method for securing multiple service quality
CN107517411A (en) A kind of video broadcasting method based on GStreamer frameworks
CN104244025A (en) Cluster transcoding system and method thereof
Begen et al. Road to salvation: streaming clients and content delivery networks working together
CN101034968B (en) System, method and device for providing the bidirectional service in the separated bidirectional network
CN104935952A (en) Video transcoding method and system
WO2002009429A3 (en) System and method for adaptable, scalable multimedia broadcasting over a network
CN102098587A (en) IPTV quality of service guarantee method and media server
CN105763941A (en) Channel switching method and system
CN108965900A (en) new media live broadcast method and device and storage medium
EP3029870A1 (en) Information processing device, information processing method, and program
CN109168090A (en) The method for realizing H264 video circulation HLS video flowing using GPU

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant