CN104159127A - Method, device and system of video transcoding - Google Patents

Method, device and system of video transcoding Download PDF

Info

Publication number
CN104159127A
CN104159127A CN201410415885.1A CN201410415885A CN104159127A CN 104159127 A CN104159127 A CN 104159127A CN 201410415885 A CN201410415885 A CN 201410415885A CN 104159127 A CN104159127 A CN 104159127A
Authority
CN
China
Prior art keywords
video
transcoding
file
transcoder
subfile
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.)
Granted
Application number
CN201410415885.1A
Other languages
Chinese (zh)
Other versions
CN104159127B (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

An embodiment of the invention discloses a method, a device and a system of video transcoding. The method of video transcoding comprises the following steps that: a video file to be transcoded and a target code rate of the video file to be transcoded are obtained; the video file to be transcoded is divided to obtain at least two video sub-files; and the video sub-files obtained by division are distributed to a plurality of transcoders and the target code rate of the video file to be transcoded is transmitted to the transcoders distributed with the video sub-files, so that the video sub-files obtained through distribution are transcoded by the transcoders distributed with the video sub-files according to the target code rate of the video file to be transcoded, and the video sub-files with the target code rate are generated, wherein any one video sub-file is only distributed to one transcoder. By applying the technical scheme, the embodiment of the invention is capable of transferring the transcoders to transcode one video file synchronously, so that the transcoding time is reduced and the transcoding efficiency is improved.

Description

A kind of video transcoding method, Apparatus and system
Technical field
The present invention relates to technical field of video processing, particularly a kind of video transcoding method, Apparatus and system.
Background technology
Along with the fast development of network multimedia technology, the broadcasting form of video file is no longer confined to certain specific video code flow, has progressively occurred that SD video code flow, HD video code stream, ultra high-definition video code flow etc. meet the video code flow of heterogeneous networks playing environment.This just needs Video service provider to carry out transcoding to video file, thereby obtains the video code flow of various definition, plays for video player.
Existing Video Transcoding Technology, in the time carrying out video code conversion, is assigned to a complete video file in a transcoder and carries out transcoding.Because video file is larger, therefore a complete video file carries out transcoding and will take a long time in a transcoder, and efficiency is lower.Particularly, in the time carrying out the larger transcoding task of code check, the problems referred to above are particularly outstanding.
Therefore,, if can propose one code-transferring method fast, can produce positive effect to the making of the high bit-rate video of Video service business undoubtedly.
Summary of the invention
In order to address the above problem, the embodiment of the invention discloses a kind of video transcoding method, Apparatus and system, concrete technical scheme is as follows:
A kind of video transcoding method, comprising:
Acquisition treat transcoding video file and described in treat the target bit rate of transcoding video file;
Treat that to described transcoding video file cuts apart, obtain at least two video subfiles;
Distribute to many transcoders by cutting apart the video subfile obtaining, and treat the target bit rate of transcoding video file described in sending to the transcoder that is assigned video subfile, so that described in be assigned video subfile transcoder according to the described target bit rate for the treatment of transcoding video file to distributing the video subfile obtaining to carry out transcoding, generate the video subfile with target bit rate; Wherein, any one video subfile is only distributed to a transcoder.
Optionally, also comprise:
Described many transcoder transcodings video subfile that obtain, that have target bit rate is merged, obtain complete target bit rate video file.
Optionally, describedly treat that to described transcoding video file cuts apart, obtain at least two video subfiles, comprising:
Treat that to described transcoding video file cuts apart according to duration, obtain at least two video subfiles with identical duration;
Or
Treat that to described transcoding video file cuts apart according to file size, obtain at least two video subfiles with same file size.
Optionally, describedly treat that to described transcoding video file cuts apart, obtain at least two video subfiles, comprising:
The transcoding video file for the treatment of that file size is exceeded to threshold value is cut apart, and obtains at least two video subfiles.
Optionally, also comprise:
Obtain the transcoding progress of each transcoder in described many transcoders;
Determine that transcoding progress exists abnormal transcoder, and transcoding progress is existed to the video subfile in abnormal transcoder, be assigned to and in another transcoder, carry out transcoding.
Optionally, described another transcoder is the idle transcoder that current time does not carry out transcoding.
Optionally, described in obtain the transcoding progress of each transcoder in described many transcoders, comprising:
Periodically obtain the transcoding progress of each transcoder in described many transcoders;
Or
Receive each the transcoding progress that transcoder is uploaded in described many transcoders.
Optionally, described in cut apart the each video subfile obtaining all comprise at least one strategy affect coding quality GOP, the first frame in described GOP is key frame.
A kind of video code conversion device, comprising:
Acquisition of information module, for obtain treat transcoding video file and described in treat the target bit rate of transcoding video file;
File division module, cuts apart for the transcoding video file for the treatment of that described acquisition of information module is obtained, and obtains at least two video subfiles;
File allocation module, distribute to many transcoders for the video subfile that described file division module segmentation is obtained, and treat the target bit rate of transcoding video file described in sending to the transcoder that is assigned video subfile, so that described in be assigned video subfile transcoder according to the described target bit rate for the treatment of transcoding video file to distributing the video subfile obtaining to carry out transcoding, generate the video subfile with target bit rate; Wherein, any one video subfile is only distributed to a transcoder.
Optionally, also comprise:
Piece file mergence module, for described many transcoder transcodings video subfile that obtain, that have target bit rate is merged, obtains complete target bit rate video file.
Optionally, described file division module, specifically for:
The transcoding video file for the treatment of described acquisition of information module being obtained according to duration is cut apart, and obtains at least two video subfiles with identical duration;
Or
The transcoding video file for the treatment of described acquisition of information module being obtained according to file size is cut apart, and obtains at least two video subfiles with same file size.
Optionally, described file division module, specifically for:
The transcoding video file for the treatment of that the file size of described acquisition of information module acquisition is exceeded to threshold value is cut apart, and obtains at least two video subfiles.
Optionally, also comprise:
Progress acquisition module, for obtaining the transcoding progress of each transcoder of described many transcoders;
Task distribution module, for the transcoding progress of obtaining according to described progress acquisition module, determines that transcoding progress exists abnormal transcoder, and transcoding progress is existed to the video subfile in abnormal transcoder, is assigned to and in another transcoder, carries out transcoding.
Optionally, described another transcoder is the idle transcoder that current time does not carry out transcoding.
Optionally, described progress acquisition module, specifically for:
Periodically obtain the transcoding progress of each transcoder in described many transcoders;
Or
Receive each the transcoding progress that transcoder is uploaded in described many transcoders.
Optionally, each video subfile that described file division module segmentation obtains all comprises at least one strategy affects coding quality GOP, and the first frame in described GOP is key frame.
A kind of video code conversion system, comprising:
Video code conversion device, and many transcoders; Wherein, described video code conversion device and described many transcoders communication connection, described video code conversion device comprises:
Acquisition of information module, for obtain treat transcoding video file and described in treat the target bit rate of transcoding video file;
File division module, cuts apart for the transcoding video file for the treatment of that described acquisition of information module is obtained, and obtains at least two video subfiles;
File allocation module, distribute to many transcoders for the video subfile that described file division module segmentation is obtained, and treat the target bit rate of transcoding video file described in sending to the transcoder that is assigned video subfile, so that described in be assigned video subfile transcoder according to the described target bit rate for the treatment of transcoding video file to distributing the video subfile obtaining to carry out transcoding, generate the video subfile with target bit rate; Wherein, any one video subfile is only distributed to a transcoder.
Application technique scheme, video transcoding method, Apparatus and system that the embodiment of the present invention provides, can treat transcoding video file and cut apart, and distribute to different transcoders by cutting apart the video subfile obtaining, carry out transcoding so that many transcoders are treated transcoding video file simultaneously.The embodiment of the present invention can be called many transcoders and a video file be carried out to transcoding simultaneously, therefore can shorten the transcoding time, and improve transcoding efficiency.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of a kind of video transcoding method that Fig. 1 provides for the embodiment of the present invention;
The flow chart of the another kind of video transcoding method that Fig. 2 provides for the embodiment of the present invention;
The flow chart of the another kind of video transcoding method that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of video code conversion device that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the another kind of video code conversion device that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the another kind of video code conversion device that Fig. 6 provides for the embodiment of the present invention.
Embodiment
In order to make those skilled in the art understand better the technical scheme in the present invention, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Along with the continuous increase of the universal and network bandwidth of Online Video service, Online Video service provider is faced with increasing high definition or ultra high-definition video code conversion demand.Because the resolution of HD video and ultra high-definition video is high, code check is large, transcoding complexity is the several times of SD video.While adopting the existing video transcoding method based on unit to carry out transcoding to video file, along with the increase of code check, the transcoding time is linear growth, the transcoding process of video file is consuming time longer, transcoding efficiency is lower, in order to address the above problem, the embodiment of the present invention provides a kind of video transcoding method, Apparatus and system.
First a kind of video transcoding method embodiment of the present invention being provided is below introduced.
It should be noted that, embodiment of the present invention method is applicable to the video code conversion device in video code conversion system, in actual applications, this video code conversion system can comprise: video code conversion device and many transcoders, this video code conversion device can be for having the electronic equipment of controlling function.
As shown in Figure 1, a kind of video transcoding method that the embodiment of the present invention provides, can comprise:
S101, obtains the target bit rate for the treatment of transcoding video file and treating transcoding video file.
The data bits that when code check in the embodiment of the present invention can be understood as transfer of data, the unit interval transmits, conventionally taking kbps as unit representation.To a certain extent, the code check of video file is higher, the resolution of video is also just higher, the image quality of video is just better, also be just understood that for same video file thus, the code check value of the ultra high-definition video of image quality optimum is larger, and the code check value of HD video is taken second place, and the code check value of SD video is less.
In addition, computing formula based on video code rate: the current code check of video=(video file size * 8*1024)/reproduction time, for a video file that playing duration is fixing, the current code check of video is higher, the file of video file is larger, such as a collection duration is the TV play of 1 hour, the file size of HD video is approximately 10 times of file of SD video.
Optionally, in execution mode of the embodiment of the present invention, in the time that needs carry out transcoding to video file, can be directly need the equipment of transcoding video file to storage, this treats transcoding video file acquisition request.
Optionally, in an execution mode of the embodiment of the present invention, in the time that needs carry out transcoding to video file, can wait for that storage needs the equipment of transcoding video file and automatically sends this and treat transcoding video file.
S102, treats transcoding video file and cuts apart, and obtains at least two video subfiles.
Optionally, in an execution mode of the embodiment of the present invention, can treat that to described transcoding video file cuts apart according to duration, obtain at least two video subfiles with identical duration.Such as being the TV play of 60 minutes for playing duration, can cut apart that to obtain 10 durations be the video subfile of 6 minutes.
Optionally, in an execution mode of the embodiment of the present invention, can treat that to described transcoding video file cuts apart according to file size, obtain at least two video subfiles with same file size.Such as being the film of 700M for video file size, can cut apart and obtain the video subfile that 10 file sizes are 70M.
It should be noted that, according to duration, or file size to treat that transcoding video file cuts apart be only two kinds of execution modes of the embodiment of the present invention, in addition, can, according to actual conditions, above-mentioned duration and file size value be set.
Be understandable that, a video file comprises multiple strategies affects coding quality GOP, and each GOP can be understood as a series of continuous frame of video, at least comprises a key frame of video I frame in each GOP.Especially, for fear of video playback picture effect is impacted, in the time treating transcoding video file and cut apart, ensure that cutting apart the video subfile obtaining all comprises at least one complete GOP, and the first frame in this GOP is I frame.Occur for fear of unsweet sound phenomenon, can, treating before transcoding video file cuts apart, the above-mentioned audio frequency for the treatment of transcoding video file be encoded.
In actual applications, based on the consideration of transcoding efficiency, can increase a screening mechanism, this screening mechanism can, by judging the file size of video file, determine whether carrying out dividing processing.Preferably, can select the transcoding video file for the treatment of that file size is exceeded to threshold value to cut apart, obtain at least two video subfiles.It should be noted that, can set the value of the threshold value in the embodiment of the present invention according to actual conditions, the embodiment of the present invention is not construed as limiting this.
It should be noted that, the each video subfile obtaining cutting apart in the embodiment of the present invention is one section of continuous video file of content.
S103, distribute to many transcoders by cutting apart the video subfile obtaining, and send to the transcoder that is assigned video subfile the target bit rate for the treatment of transcoding video file, so that the transcoder that is assigned video subfile according to the target bit rate for the treatment of transcoding video file to distributing the video subfile obtaining to carry out transcoding, generate the video subfile with target bit rate; Wherein, any one video subfile is only distributed to a transcoder.
Transcoder in the embodiment of the present invention can be for possessing the electronic equipment of video code conversion function, and it can be the video with target bit rate by video file transcoding according to target bit rate.
In embodiments of the present invention, cut apart treating transcoding video file, obtain after video subfile, obtained video subfile can be distributed to many transcoders, such as, in a very little video code conversion system, comprise 10 transcoding machines, a video file for the treatment of transcoding is split into 5 video subfiles, 5 video subfiles can be distributed to 5 machines, and every machine assignment obtains 1 video subfile.
In addition, need to send target bit rate to the transcoder that is assigned video subfile, so that this transcoder is according to target bit rate, carry out transcoding to distributing the video subfile obtaining, such as, the target bit rate for the treatment of transcoding video file is 4933kbps, target bit rate need to be sent to 5 transcoders that are assigned video subfile, these 5 transcoders, according to target bit rate, are that code check is the video of 4933kbps by above-mentioned 5 video subfile transcodings.
Preferably, the transcoding video file for the treatment of in the embodiment of the present invention can carry priority tag, and/or type identification.Each video subfile is treated the priority tag of transcoding video file before also can carrying and cutting apart, and/or type identification.
The transcoding video file for the treatment of that carries priority tag is cut apart, and the video subfile of acquisition all carries priority tag; Further, in the time that video subfile is carried out to transcoding, can control transcoder the video subfile of carrying priority tag is carried out to preferential transcoding.
The transcoding video file for the treatment of that carries type identification is cut apart, and the video subfile of acquisition all carries type identification; Further, can first cut apart and/or transcoding the transcoding video file for the treatment of that carries preset kind mark.Certainly, also can respectively the transcoding video file for the treatment of that carries dissimilar mark be cut apart to the video subfile obtaining and distribute to different transcoders.For example: the transcoding video file for the treatment of that carries first kind mark is cut apart to the video subfile obtaining and distributed to the each transcoder in the first transcoder group; The transcoding video file for the treatment of that carries Second Type mark is cut apart to the video subfile obtaining and distributed to the each transcoder in the second transcoder group.Like this, each transcoder just can be for carrying out the transcoder of single type transcoding, and this transcoder is cheaper compared to the transcoder cost that can carry out polytype transcoding, and simultaneously due to function singleness, therefore transcoding efficiency is higher.
Correspond in practical application, can summarize above-mentioned situation by the concept of transcoding passage, dissimilar is video file, can adopt the different transcoding processes of different transcoders or same transcoder to process.
As can be seen here, the video transcoding method that the embodiment of the present invention provides, can treat transcoding video file and cut apart, and distributes to different transcoders by cutting apart the video subfile obtaining, and carries out transcoding so that many transcoders are treated transcoding video file simultaneously.The embodiment of the present invention can be called many transcoders and a video file be carried out to transcoding simultaneously, therefore can shorten the transcoding time, and improve transcoding efficiency.
Optionally, in one embodiment of the invention, as shown in Figure 2, after above-mentioned S103, can also comprise:
S104, obtains the transcoding progress of each transcoder in described many transcoders.
Transcoding progress in the embodiment of the present invention transcoding task amount that to be transcoder completed in default duration, such as the video file for a 30M, transcoder in 5 minutes transcoding 15M, can say that transcoding progress is 50%.
Optionally, in an execution mode of the embodiment of the present invention, can periodically obtain the transcoding progress of each transcoder in described many transcoders.Such as, can be every 50s, obtain the transcoding progress of a transcoder.
Optionally, in an execution mode of the embodiment of the present invention, can receive each the transcoding progress that transcoder is uploaded in described many transcoders.
In actual applications, can use the concept of transcoding heartbeat to summarize above-mentioned execution mode, i.e. each heartbeat, obtains the transcoding progress of a transcoder.
Because video code conversion is an intensive business, the transcoding progress of transcoder is monitored, once that the machine of delaying etc. appears in transcoder is abnormal, can handle it in time.In addition, the information that can obtain monitoring arranges, and runs into similar transcoding task next time again, can estimate the use amount of machine resources, has directive significance for the reasonable distribution of machine resources.
S105, determines that transcoding progress exists abnormal transcoder, and transcoding progress is existed to the video subfile in abnormal transcoder, is assigned to and in another transcoder, carries out transcoding.
Optionally, described another transcoder can be the transcoder that CPU frequency is higher;
Optionally, described another transcoder can not carried out for current time the idle transcoder of transcoding;
In embodiments of the present invention, delay transcoding progress that machine or the interruption of transcoding process etc. cause when abnormal in transcoder, can automatically video file be distributed to the idle transcoder that transcoder that CPU frequency is higher or current time do not carry out transcoding and carry out transcoding, thereby reduce the impact of transcoder operation irregularity on video code conversion operation, there is higher dependable with function.
Optionally, in one embodiment of the invention, as shown in Figure 3, after above-mentioned S103, can also comprise:
S106, merges described many transcoder transcodings video subfile that obtain, that have target bit rate, obtains complete target bit rate video file.
In embodiments of the present invention, many the transcoder transcodings video subfile that obtain, that have target bit rate that is assigned with video subfile can be merged into a complete target bit rate video file, to facilitate backstage editor to audit this target bit rate video file.
In addition, can also, according to the above-mentioned video subfile with target bit rate, generate the video metadata of corresponding different video player, such as the m3u8 file that can generate corresponding to video player in ios operating system.
Corresponding to embodiment of the method above, the embodiment of the present invention also provides a kind of video code conversion device.
As shown in Figure 4, a kind of video code conversion device that the embodiment of the present invention provides, can comprise:
Acquisition of information module 401, for obtain treat transcoding video file and described in treat the target bit rate of transcoding video file;
File division module 402, cuts apart for the transcoding video file for the treatment of that described acquisition of information module 401 is obtained, and obtains at least two video subfiles;
File allocation module 403, for being cut apart to the video subfile obtaining, described file division module 402 distributes to many transcoders, and treat the target bit rate of transcoding video file described in sending to the transcoder that is assigned video subfile, so that described in be assigned video subfile transcoder according to the described target bit rate for the treatment of transcoding video file to distributing the video subfile obtaining to carry out transcoding, generate the video subfile with target bit rate; Wherein, any one video subfile is only distributed to a transcoder.
Optionally, in an execution mode of the embodiment of the present invention, described file division module 402, can specifically be same as:
The transcoding video file for the treatment of described acquisition of information module 401 being obtained according to duration is cut apart, and obtains at least two video subfiles with identical duration;
Or
Described in described acquisition of information module 401 being obtained according to file size, treat that transcoding video file cuts apart, obtain at least two video subfiles with same file size.
Optionally, in an execution mode of the embodiment of the present invention, described file division module 402, can be specifically for:
The transcoding video file for the treatment of that the file size that described acquisition of information module 401 is obtained exceedes threshold value is cut apart, and obtains at least two video subfiles.
Optionally, in one embodiment of the invention, as shown in Figure 5, can also comprise:
Progress acquisition module 404, for obtaining the transcoding progress of each transcoder of described many transcoders;
Task distribution module 405, for the transcoding progress of obtaining according to described progress acquisition module 404, determine that transcoding progress exists abnormal transcoder, and transcoding progress is existed to the video subfile in abnormal transcoder, be assigned to and in another transcoder, carry out transcoding.
Preferably, described another transcoder is the idle transcoder that current time does not carry out transcoding.
Optionally, in an execution mode of the embodiment of the present invention, described progress acquisition module 404, can:
Periodically obtain the transcoding progress of each transcoder in described many transcoders;
Or
Receive each the transcoding progress that transcoder is uploaded in described many transcoders.
Optionally, in one embodiment of the invention, as shown in Figure 6, this device can also comprise:
Piece file mergence module 406, for described many transcoder transcodings video subfile that obtain, that have target bit rate is merged, obtains complete target bit rate video file.
Optionally, in one embodiment of the invention, described file division module 402 cut apart the each video subfile obtaining all comprise at least one strategy affect coding quality GOP, the first frame in described GOP is key frame.
As can be seen here, the video code conversion device that the embodiment of the present invention provides, can treat transcoding video file and cut apart, and distributes to different transcoders by cutting apart the video subfile obtaining, and carries out transcoding so that many transcoders are treated transcoding video file simultaneously.The embodiment of the present invention can be called many transcoders and a video file be carried out to transcoding simultaneously, therefore can shorten the transcoding time, and improve transcoding efficiency.
Corresponding to device embodiment above, the embodiment of the present invention also provides a kind of video code conversion system, can comprise:
Video code conversion device and many transcoders; Described video code conversion device and described many transcoders communication connection.Described video code conversion device, can comprise: acquisition of information module, file division module and file allocation module;
Described acquisition of information module, for obtain treat transcoding video file and described in treat the target bit rate of transcoding video file;
Described file division module, cuts apart for the transcoding video file for the treatment of that described acquisition of information module is obtained, and obtains at least two video subfiles;
Described file allocation module, distribute to many transcoders for the video subfile that described file division module segmentation is obtained, and treat the target bit rate of transcoding video file described in sending to the transcoder that is assigned video subfile, so that described in be assigned video subfile transcoder according to the described target bit rate for the treatment of transcoding video file to distributing the video subfile obtaining to carry out transcoding, generate the video subfile with target bit rate; Wherein, any one video subfile is only distributed to a transcoder.
The communication connection mode of described video code conversion device and many transcoders, can comprise: wired connection mode, and/or wireless connections mode.
As can be seen here, the video code conversion system that the embodiment of the present invention provides, can treat transcoding video file and cut apart, and distributes to different transcoders by cutting apart the video subfile obtaining, and carries out transcoding so that many transcoders are treated transcoding video file simultaneously.The embodiment of the present invention can be called many transcoders and a video file be carried out to transcoding simultaneously, therefore can shorten the transcoding time, and improve transcoding efficiency.
For Apparatus and system embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
For convenience of description, while describing above Apparatus and system, being divided into various modules with function describes respectively.Certainly, in the time that enforcement is of the present invention, the function of each module can be realized in same or multiple software and/or hardware.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is and the difference of other embodiment.Especially,, for device embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method execution mode is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in computer read/write memory medium, here the alleged storage medium obtaining, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (17)

1. a video transcoding method, is characterized in that, comprising:
Acquisition treat transcoding video file and described in treat the target bit rate of transcoding video file;
Treat that to described transcoding video file cuts apart, obtain at least two video subfiles;
Distribute to many transcoders by cutting apart the video subfile obtaining, and treat the target bit rate of transcoding video file described in sending to the transcoder that is assigned video subfile, so that described in be assigned video subfile transcoder according to the described target bit rate for the treatment of transcoding video file to distributing the video subfile obtaining to carry out transcoding, generate the video subfile with target bit rate; Wherein, any one video subfile is only distributed to a transcoder.
2. method according to claim 1, is characterized in that, also comprises:
Described many transcoder transcodings video subfile that obtain, that have target bit rate is merged, obtain complete target bit rate video file.
3. method according to claim 1, is characterized in that, describedly treats that to described transcoding video file cuts apart, and obtains at least two video subfiles, comprising:
Treat that to described transcoding video file cuts apart according to duration, obtain at least two video subfiles with identical duration;
Or
Treat that to described transcoding video file cuts apart according to file size, obtain at least two video subfiles with same file size.
4. method according to claim 1, is characterized in that, describedly treats that to described transcoding video file cuts apart, and obtains at least two video subfiles, comprising:
The transcoding video file for the treatment of that file size is exceeded to threshold value is cut apart, and obtains at least two video subfiles.
5. method according to claim 1, is characterized in that, also comprises:
Obtain the transcoding progress of each transcoder in described many transcoders;
Determine that transcoding progress exists abnormal transcoder, and transcoding progress is existed to the video subfile in abnormal transcoder, be assigned to and in another transcoder, carry out transcoding.
6. method according to claim 5, is characterized in that, described another transcoder is the idle transcoder that current time does not carry out transcoding.
7. method according to claim 5, is characterized in that, described in obtain the transcoding progress of each transcoder in described many transcoders, comprising:
Periodically obtain the transcoding progress of each transcoder in described many transcoders;
Or
Receive each the transcoding progress that transcoder is uploaded in described many transcoders.
8. according to the method described in claim 1-7 any one, it is characterized in that, described in cut apart the each video subfile obtaining all comprise at least one strategy affect coding quality GOP, the first frame in described GOP is key frame.
9. a video code conversion device, is characterized in that, comprising:
Acquisition of information module, for obtain treat transcoding video file and described in treat the target bit rate of transcoding video file;
File division module, cuts apart for the transcoding video file for the treatment of that described acquisition of information module is obtained, and obtains at least two video subfiles;
File allocation module, distribute to many transcoders for the video subfile that described file division module segmentation is obtained, and treat the target bit rate of transcoding video file described in sending to the transcoder that is assigned video subfile, so that described in be assigned video subfile transcoder according to the described target bit rate for the treatment of transcoding video file to distributing the video subfile obtaining to carry out transcoding, generate the video subfile with target bit rate; Wherein, any one video subfile is only distributed to a transcoder.
10. device according to claim 9, is characterized in that, also comprises:
Piece file mergence module, for described many transcoder transcodings video subfile that obtain, that have target bit rate is merged, obtains complete target bit rate video file.
11. devices according to claim 9, is characterized in that, described file division module, specifically for:
The transcoding video file for the treatment of described acquisition of information module being obtained according to duration is cut apart, and obtains at least two video subfiles with identical duration;
Or
The transcoding video file for the treatment of described acquisition of information module being obtained according to file size is cut apart, and obtains at least two video subfiles with same file size.
12. devices according to claim 9, is characterized in that, described file division module, specifically for:
The transcoding video file for the treatment of that the file size of described acquisition of information module acquisition is exceeded to threshold value is cut apart, and obtains at least two video subfiles.
13. devices according to claim 9, is characterized in that, also comprise:
Progress acquisition module, for obtaining the transcoding progress of each transcoder of described many transcoders;
Task distribution module, for the transcoding progress of obtaining according to described progress acquisition module, determines that transcoding progress exists abnormal transcoder, and transcoding progress is existed to the video subfile in abnormal transcoder, is assigned to and in another transcoder, carries out transcoding.
14. devices according to claim 13, is characterized in that, described another transcoder is the idle transcoder that current time does not carry out transcoding.
15. devices according to claim 13, is characterized in that, described progress acquisition module, specifically for:
Periodically obtain the transcoding progress of each transcoder in described many transcoders;
Or
Receive each the transcoding progress that transcoder is uploaded in described many transcoders.
16. according to the device described in claim 9-15 any one, it is characterized in that, each video subfile that described file division module segmentation obtains all comprises at least one strategy affects coding quality GOP, and the first frame in described GOP is key frame.
17. 1 kinds of video code conversion systems, is characterized in that, comprising:
Video code conversion device, and many transcoders; Wherein, described video code conversion device and described many transcoders communication connection, described video code conversion device comprises:
Acquisition of information module, for obtain treat transcoding video file and described in treat the target bit rate of transcoding video file;
File division module, cuts apart for the transcoding video file for the treatment of that described acquisition of information module is obtained, and obtains at least two video subfiles;
File allocation module, distribute to many transcoders for the video subfile that described file division module segmentation is obtained, and treat the target bit rate of transcoding video file described in sending to the transcoder that is assigned video subfile, so that described in be assigned video subfile transcoder according to the described target bit rate for the treatment of transcoding video file to distributing the video subfile obtaining to carry out transcoding, generate the video subfile with target bit rate; Wherein, any one video subfile is only distributed to a transcoder.
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 true CN104159127A (en) 2014-11-19
CN104159127B 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)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581200A (en) * 2015-02-06 2015-04-29 网易传媒科技(北京)有限公司 Slice transcoding method and slice transcoding equipment
CN104796732A (en) * 2015-04-21 2015-07-22 无锡天脉聚源传媒科技有限公司 Audio and video editing method and device
CN105357593A (en) * 2015-10-30 2016-02-24 努比亚技术有限公司 Method, device and system for uploading video
CN105451031A (en) * 2015-11-18 2016-03-30 腾讯科技(深圳)有限公司 Video transcoding method and system thereof
CN105657449A (en) * 2014-12-03 2016-06-08 中国移动通信集团公司 Video transcode allocation method and device and video transcode system
CN105763886A (en) * 2016-03-01 2016-07-13 深圳市茁壮网络股份有限公司 Distributed transcoding method and apparatus
CN105898554A (en) * 2015-12-18 2016-08-24 乐视云计算有限公司 Real-time transcoding monitoring method and real-time transcoding system
WO2017080168A1 (en) * 2015-11-13 2017-05-18 乐视控股(北京)有限公司 Video reviewing method and system
WO2017101487A1 (en) * 2015-12-14 2017-06-22 乐视控股(北京)有限公司 Method and device for submitting transcoding attribute information
CN107277650A (en) * 2017-07-25 2017-10-20 中国华戎科技集团有限公司 video file cutting method and device
CN108174290A (en) * 2018-01-25 2018-06-15 北京百度网讯科技有限公司 For handling the method and apparatus of video
EP3579560A4 (en) * 2018-04-09 2019-12-18 Wangsu Science & Technology Co., Ltd. Transcoding task processing method and system, and task management server
CN111093095A (en) * 2019-12-16 2020-05-01 黔南民族师范学院 Video transcoding method and system based on spark platform
US10645140B2 (en) 2018-04-09 2020-05-05 Wangsu Science & Technology Co., Ltd. Method for processing transcoding task, system and task management server
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 (8)

* 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
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

Patent Citations (9)

* 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
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

Cited By (22)

* 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
CN105657449A (en) * 2014-12-03 2016-06-08 中国移动通信集团公司 Video transcode allocation method and device and video transcode system
CN104581200A (en) * 2015-02-06 2015-04-29 网易传媒科技(北京)有限公司 Slice transcoding method and slice transcoding equipment
CN104796732A (en) * 2015-04-21 2015-07-22 无锡天脉聚源传媒科技有限公司 Audio and video editing method and device
CN104796732B (en) * 2015-04-21 2018-05-08 无锡天脉聚源传媒科技有限公司 A kind of audio and video edit methods and device
CN105357593A (en) * 2015-10-30 2016-02-24 努比亚技术有限公司 Method, device and system for uploading video
CN105357593B (en) * 2015-10-30 2019-06-07 努比亚技术有限公司 A kind of methods, devices and systems of uploaded videos
WO2017080168A1 (en) * 2015-11-13 2017-05-18 乐视控股(北京)有限公司 Video reviewing method and system
CN105451031A (en) * 2015-11-18 2016-03-30 腾讯科技(深圳)有限公司 Video transcoding method and system thereof
CN105451031B (en) * 2015-11-18 2021-11-30 腾讯科技(深圳)有限公司 Video transcoding method and system
WO2017101487A1 (en) * 2015-12-14 2017-06-22 乐视控股(北京)有限公司 Method and device for submitting 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
CN107277650A (en) * 2017-07-25 2017-10-20 中国华戎科技集团有限公司 video file cutting method and device
CN108174290B (en) * 2018-01-25 2019-05-24 北京百度网讯科技有限公司 Method and apparatus for handling video
CN108174290A (en) * 2018-01-25 2018-06-15 北京百度网讯科技有限公司 For handling the method and apparatus of video
EP3579560A4 (en) * 2018-04-09 2019-12-18 Wangsu Science & Technology Co., Ltd. Transcoding task processing method and system, and task management server
US10645140B2 (en) 2018-04-09 2020-05-05 Wangsu Science & Technology Co., Ltd. Method for processing transcoding task, system and task management server
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

Also Published As

Publication number Publication date
CN104159127B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN104159127A (en) Method, device and system of video transcoding
US10757158B2 (en) Feedback optimized video coding parameters
US20230254357A1 (en) Fast encoding of live streaming media content
US9635334B2 (en) Audio and video management for parallel transcoding
JP6016778B2 (en) How to recover content streamed in chunks
US10116971B2 (en) Method and system for fetching a portion of a live media stream before a first ad finishes playing to detect the subsequent ad indicator for live consecutive ad replacement
JP2016516323A (en) Method, device, and system for obtaining streaming media data
CN105592318B (en) System, equipment and method for realizing HLS channel review service
CN102882829A (en) Transcoding method and system
EP2779658A2 (en) Segmented content delivery
CN103348322A (en) Information processing device, information processing method, and program
CN105357591A (en) QoE monitoring and optimization method for adaptive code rate video direct broadcast
DE112012001770T5 (en) Real-time processing capability based quality adjustment
CN106657143A (en) Streaming media transmission method and device, server and terminal
JP2015520546A (en) Multimedia video data transmission and reception method and corresponding apparatus
WO2015196590A1 (en) Method and apparatus for playing desktop cloud video
US20240155171A1 (en) Methods and systems for managing content quality in a storage medium
CN102148747A (en) Media stream transmission method and device
CN106791860A (en) A kind of adaptive video coding control system and method
CN105191324A (en) Communication apparatus, communication data generation method, and communication data processing method
CN103905843A (en) Distributed audio/video processing device and method for continuous frame-I circumvention
CN110505499A (en) A kind of distributed trans-coding system and distributed trans-coding device
CN104333765A (en) Processing method and device of video live streams
CN103081487A (en) Method and apparatus for streaming media content using variable duration media segments
CN105323653B (en) A kind of method and apparatus playing segment video

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