CN104717507A - Video transcoding method and device - Google Patents

Video transcoding method and device Download PDF

Info

Publication number
CN104717507A
CN104717507A CN201510147848.1A CN201510147848A CN104717507A CN 104717507 A CN104717507 A CN 104717507A CN 201510147848 A CN201510147848 A CN 201510147848A CN 104717507 A CN104717507 A CN 104717507A
Authority
CN
China
Prior art keywords
task
video
encoded
data
code
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.)
Pending
Application number
CN201510147848.1A
Other languages
Chinese (zh)
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 CN201510147848.1A priority Critical patent/CN104717507A/en
Publication of CN104717507A publication Critical patent/CN104717507A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a video transcoding method and device. The method comprises the following steps: determining a set of video transcoding tasks of the same source video; decoding the source video to obtain decoded data of the source video; determining to-be-coded data corresponding to each video transcoding task in the set; selecting one task from the set; coding the to-be-coded code corresponding to the task; extracting coding information of a coded video frame corresponding to the task from the coding result; coding the to-be-coded data corresponding to the tasks not selected in the set according to the coding information of the coded video frame corresponding to the selected task; and acquiring a plurality of target videos corresponding to the source video. According to the technical scheme, the method has the advantages that the video transcoding rate can be increased, and the coding algorithm of the target video is not limited by the coding algorithm of the source video, so that the generality is improved.

Description

A kind of video transcoding method and device
Technical field
The present invention relates to multimedia technology field, particularly a kind of video transcoding method and device.
Background technology
Video code conversion, refers to and converts the video code flow of compressed encoding to another video code flow, to adapt to the different network bandwidths, different terminals disposal ability and different user's requests.Video code conversion is the process of first decoding, a re-encoding in essence, so the video code flow before and after conversion may follow identical video coding algorithm, also may follow different video coding algorithms.
Video transcoding method general is at present, is original image by decoder by source video decode, then obtains data to be encoded after coding preliminary treatment, by encoder, data to be encoded is encoded to target video.This method is compatible strong, but transcoding speed is low.Along with the continuous renewal of video coding algorithm, various Video Applications is more and more extensive, and the demand of video code conversion is increasing, also more and more higher to the requirement of transcoding speed.
On video transcoding method basis general at present, existing a kind of video transcoding method improving transcoding speed is, utilizes the decoded information of source video code flow (as coding mode, motion vector etc.) to encode to data to be encoded.
This video transcoding method can improve transcoding speed to a certain extent, but because it needs the decoded information utilizing source video in the process of encoding to data to be encoded, so have certain requirement for the video coding algorithm corresponding to target video, need its video coding algorithm corresponding with source video to have certain correlation, versatility is restricted.
Summary of the invention
For solving the problem, the embodiment of the invention discloses a kind of video transcoding method and device.Technical scheme is as follows:
A kind of video transcoding method, comprising:
Determine the set of the video code conversion task for same source video, described set comprises at least two different video code conversion tasks, and the video coding algorithm corresponding to different task is identical, code requirement is different;
Described source video is decoded, obtains the decoded data of described source video;
According to obtained decoded data, determine the data to be encoded that in described set, each video code conversion task is corresponding;
From described set, select a task, the code requirement corresponding according to this task, the data to be encoded corresponding to this task carry out coded treatment, and from coding result, extract the coded message of encoded frame of video corresponding to this task;
For in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment;
According to coding result, obtain the multiple target videos corresponding with described source video.
In a kind of embodiment of the present invention, described from described set select a task, comprising:
Code requirement corresponding to different task, selects first task according to the selecting sequence preset from described set.
In a kind of embodiment of the present invention, described in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment, comprising:
Select successively the 2nd in described set, 3 ..., N number of task carries out coded treatment, N is the general assignment number in described set, wherein:
When n ∈ [2, N], for the n-th task, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to (n-1)th task, the data to be encoded corresponding to this task carry out coded treatment;
Further, when n ∈ [2, N-1], for the n-th task, from coding result, the coded message of encoded frame of video corresponding to this task is extracted.
In a kind of embodiment of the present invention, described code requirement is the demand to definition or code check, and described default selecting sequence is definition sequence or code check sequence.
In a kind of embodiment of the present invention, described in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment, comprising:
For in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to selected first task, the data to be encoded corresponding to this task carry out coded treatment.
In a kind of embodiment of the present invention, the coded message of described encoded frame of video comprises: one or more in the division of mode decision, encoding block, estimation, Rate Control.
A kind of video code conversion device, comprising:
Transcoding set of tasks determination module, for determining the set of the video code conversion task for same source video, described set comprises at least two different video code conversion tasks, and the video coding algorithm corresponding to different task is identical, code requirement is different;
Decoded data obtains module, for decoding to described source video, obtains the decoded data of described source video;
Data to be encoded determination module, for according to obtained decoded data, determines the data to be encoded that in described set, each video code conversion task is corresponding;
First coded treatment module, comprise task choosing submodule and the first coded treatment submodule, described task choosing submodule, for selecting a task from described set, described first coded treatment submodule, for the code requirement that selecting according to task choosing submodule of task is corresponding, the data to be encoded corresponding to this task carry out coded treatment, and from coding result, extract the coded message of encoded frame of video corresponding to this task;
Second coded treatment module, for in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment;
Target video obtains module, for according to coding result, obtains the multiple target videos corresponding with described source video.
In a kind of embodiment of the present invention, described task choosing submodule, specifically for:
Code requirement corresponding to different task, selects first task according to the selecting sequence preset from described set.
In a kind of embodiment of the present invention, described second coded treatment module, specifically for:
Select successively the 2nd in described set, 3 ..., N number of task carries out coded treatment, N is the general assignment number in described set, wherein:
When n ∈ [2, N], for the n-th task, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to (n-1)th task, the data to be encoded corresponding to this task carry out coded treatment;
Further, when n ∈ [2, N-1], for the n-th task, from coding result, the coded message of encoded frame of video corresponding to this task is extracted.
In a kind of embodiment of the present invention, described code requirement is the demand to definition or code check, and described default selecting sequence is definition sequence or code check sequence.
In a kind of embodiment of the present invention, described second coded treatment module, specifically for:
For in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to selected first task, the data to be encoded corresponding to this task carry out coded treatment.
In a kind of embodiment of the present invention, the coded message of described encoded frame of video comprises: one or more in the division of mode decision, encoding block, estimation, Rate Control.
The technical scheme that the application embodiment of the present invention provides, for each task still non-selected in transcoding set of tasks, with reference to the coded message of the encoded frame of video having selected task corresponding, and in conjunction with the code requirement corresponding to this task, the data to be encoded corresponding to this task carry out coded treatment, for the different transcoding tasks for same source video, between the frame of video of the identical frame number of the target video corresponding to different transcoding task, there is higher similitude, coded message with reference to encoded frame of video is encoded, the video code conversion speed of this task can be accelerated, especially when to need source Video Quality Metric be multiple target video, what transcoding speed improved is more obvious, and the encryption algorithm that target video uses need not be limited to the encryption algorithm that source video uses, versatility is stronger.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of implementing procedure figure of video transcoding method in the embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of coding process in the embodiment of the present invention;
Fig. 3 is the another kind of schematic diagram of coding process in the embodiment of the present invention;
Fig. 4 is a kind of structural representation of video code conversion device in the embodiment of the present invention.
Embodiment
First be described a kind of video transcoding method that the embodiment of the present invention provides, the method can comprise the following steps:
Determine the set of the video code conversion task for same source video, described set comprises at least two different video code conversion tasks, and the video coding algorithm corresponding to different task is identical, code requirement is different;
Described source video is decoded, obtains the decoded data of described source video;
According to obtained decoded data, determine the data to be encoded that in described set, each video code conversion task is corresponding;
From described set, select a task, the code requirement corresponding according to this task, the data to be encoded corresponding to this task carry out coded treatment, and from coding result, extract the coded message of encoded frame of video corresponding to this task;
For in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment;
According to coding result, obtain the multiple target videos corresponding with described source video.
Be understandable that, for the video of same content, according to different video coding algorithms or code requirement, multiple video can be converted into.For the video code conversion task of same source video, namely refer to same source Video Quality Metric to be several different target videos, the video coding algorithm of these different target videos is identical, but code requirement is different, the coding parameter that different code requirement is corresponding different.Such as, source video is UGC (User Generated Content, user's production content) class video, such video is that user uploads, various encryption algorithm may be had, in actual applications, what video website needed this kind of Video Quality Metric to support for website meets various code requirement and meets the video of the encryption algorithm that website is supported.
While determining transcoding set of tasks, namely determine the code requirement that will carry out the source video of transcoding process and the target video corresponding to transcoding task.Decode to source video, obtain the decoded data of source video, and according to this decoded data, can determine the data to be encoded that each transcoding task is corresponding, data to be encoded corresponding to each transcoding task respectively carry out coding can obtain corresponding target video.In actual treatment, except being except common coding during process first transcoding task, when processing other transcoding tasks, speech coding can be carried out.Concrete, first can select a task from set of tasks, the code requirement corresponding according to this task, the data to be encoded corresponding to this task carry out coded treatment, and from coding result, extract the coded message of encoded frame of video corresponding to this task, then in set of tasks not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment, after the transcoding task process in set of tasks completes, multiple target videos that source video is corresponding can be obtained.
The technical scheme that the application embodiment of the present invention provides, for each task still non-selected in transcoding set of tasks, with reference to the coded message of the encoded frame of video having selected task corresponding, and in conjunction with the code requirement corresponding to this task, the data to be encoded corresponding to this task carry out coded treatment, for the different transcoding tasks for same source video, between the frame of video of the identical frame number of the target video corresponding to different transcoding task, there is higher similitude, coded message with reference to encoded frame of video is encoded, the video code conversion speed of this task can be accelerated, especially when to need source Video Quality Metric be multiple target video, what transcoding speed improved is more obvious, and the encryption algorithm that target video uses need not be limited to the encryption algorithm that source video uses, versatility is stronger.
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art, 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 embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Shown in Figure 1, be the implementing procedure figure of a kind of video transcoding method that the embodiment of the present invention provides, the method can comprise the following steps:
S110: the set determining the video code conversion task for same source video;
Described set comprises at least two different video code conversion tasks, and the video coding algorithm corresponding to different task is identical, code requirement is different.
Video code conversion task is target video by source Video Quality Metric, processes the different transcoding tasks for same source video, can obtain different target videos.The video coding algorithm of the embodiment of the present invention to source video does not do requirement, but for same source video video code conversion task corresponding to target video video coding algorithm require identical.The code requirement difference that different transcoding task is corresponding, different code requirement can characterize with different coding parameters.The coding parameter of a video, refers to the parameters such as the code check of this video, frame per second, definition, coded format.Can encode according to different code requirement and obtain different target videos.Code requirement as corresponding in transcoding task is: code check a 0, frame per second b 0, definition c 0, coded format d 0, can obtain target video 1 after processing this transcoding task, code requirement corresponding to another transcoding task is: code check a 1, frame per second b 0, definition c 1, coded format d 0, after processing this transcoding task, target video 2 can be obtained.One or more coding parameter can be had in different code requirement different.
For convenience of understanding, be described there to be a different coding parameter in different code requirement:
Source video is the video that in video website, user uploads, video website needs to carry out transcoding process to this source video, to be such as that definition is respectively smooth by this source Video Quality Metric, SD, high definition, the target video of ultra high-definition, here, smooth, SD, high definition, ultra high-definition is respectively different code requirement, can be understood as different transcoding tasks and only have different requirements to coding parameter definition, require identical to other coding parameters, each definition is a corresponding transcoding task respectively, in this case, transcoding task for this source video is four, these four transcoding tasks form a set of tasks.
While determining transcoding set of tasks, also just determine each transcoding task for data to be encoded corresponding to source video, the target video corresponding to each transcoding task, each transcoding task encode time the video coding algorithm, the code requirement corresponding to each transcoding task that use.
S120: described source video is decoded, obtains the decoded data of described source video;
Source video is decoded, obtains the decoded data of this source video.It should be noted that, the embodiment of the present invention does not do requirement to video encoding/decoding method, and those skilled in the art can decode to source video according to the coding/decoding method of prior art.
S130: according to obtained decoded data, determines the data to be encoded that in described set, each video code conversion task is corresponding;
In step S120, source video is decoded, obtain the decoded data of source video, directly obtained decoded data can be defined as the data to be decoded that in set of tasks, each transcoding task is corresponding, pretreated data of encoding to decoded data can also be defined as the data to be encoded that in set of tasks, each transcoding task is corresponding, the so-called coding preliminary treatment to decoded data, refer to and each frame of video of decoded data is carried out image optimization (sharpening, noise reduction etc.), add the process such as captions, if code requirement corresponding to transcoding task is the adjustment of definition, resolution adjustment process can also be comprised at coding preprocessing process.For the identical coding preliminary treatment that different transcoding tasks is corresponding, can unify to carry out, save computational resource.
S140: select a task from described set, the code requirement corresponding according to this task, the data to be encoded corresponding to this task carry out coded treatment, and extract the coded message of encoded frame of video corresponding to this task from coding result;
A task is selected in the determined set of tasks of step S110, can Stochastic choice, can also code requirement corresponding to different task, select according to the selecting sequence preset, as the demand that code requirement is to definition or code check, then can select according to definition sequence the task that definition is minimum, or select according to code check sequence the task that code check is minimum, certainly, also the task that definition is the highest can be selected, or select the task that code check is the highest, concrete selecting sequence can be determined according to actual conditions, selected by the task of going out can as first task will carrying out coded treatment.If target video all has different requirement to multiple coding parameter, then can consider multiple coding parameter, preset selecting sequence, from set of tasks, select a task.
Select a task from set of tasks after, the code requirement corresponding according to this task, the data to be encoded corresponding to this task carry out coded treatment, and from coding result, extract the coded message of encoded frame of video corresponding to this task.The coded message of encoded frame of video can comprise: one or more in the division of mode decision, encoding block, estimation, Rate Control.
Be understandable that, if obtained decoded data is directly defined as the data to be decoded that in set of tasks, each transcoding task is corresponding by step S130, then can comprise the process that data to be encoded carry out coded treatment: coding preprocessing process and coding process.Coding preprocessing process is with above-mentioned coding preprocessing process, and different transcoding tasks carries out coding preliminary treatment separately; In coding process, according to the video coding algorithm preset, coded treatment is carried out to each frame of video of carrying out pretreated data, namely one by one coded treatment is carried out to each frame of video, often complete the coded treatment of one or several frame of video, the coded message of encoded frame of video corresponding to this task can be extracted from corresponding coding result.
S150: in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment;
In the determined set of tasks of step S110, has the video code conversion task that two different at least, a task is selected in step S140, and according to the code requirement of this task, the data to be encoded corresponding to this task have carried out coded treatment, and from coding result, be extracted the coded message of encoded frame of video corresponding to this task.Be understandable that to have very high similitude between the image of the same number of frames of the different target video that same source video is corresponding, the coding that the coded message of encoded frame of video can be supplied to corresponding video frame in other transcoding tasks makes reference.Coded message as the frame of video by a certain definition extracts, during coding video frames for other definition corresponding with reference to.For in set of tasks not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment.
In a kind of embodiment of the present invention, step S150 can comprise the following steps:
Select successively the 2nd in described set, 3 ..., N number of task carries out coded treatment, N is the general assignment number in described set.
Wherein, when n ∈ [2, N], for the n-th task, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to (n-1)th task, the data to be encoded corresponding to this task carry out coded treatment; Further, when n ∈ [2, N-1], for n task, from coding result, the coded message of encoded frame of video corresponding to this task is extracted.
That is when carrying out coded treatment to each transcoding task (first task except selecting), can with reference to the coded message of the corresponding encoded frame of video of a upper transcoding task, and, when carrying out coded treatment to each transcoding task (last task except selecting), the coded message of encoded frame of video corresponding to this task can be extracted, for the reference when encoding of next transcoding task.The startup of each transcoding task can be determined according to actual conditions opportunity, namely goes up a transcoding task and carries out some frames (as L frame) and start next transcoding task afterwards.
For convenience of understanding, illustrate.
Suppose in set of tasks, to have three transcoding tasks, be respectively transcoding task A, transcoding task B, transcoding task C.When performing the operation of step S140, first task of selection is transcoding task A, and is extracted the coded message of encoded frame of video corresponding to transcoding task A.Now, select transcoding task B as second task, the code requirement corresponding according to this task, and first task, the i.e. coded message of the encoded frame of video that transcoding task A is corresponding, the data to be encoded corresponding to this task carry out coded treatment, and from coding result, extract the coded message of encoded frame of video corresponding to this task, following selection transcoding task C is as the 3rd task, the code requirement corresponding according to this task, and second task, the i.e. coded message of the encoded frame of video that transcoding task B is corresponding, the data to be encoded corresponding to this task carry out coded treatment.
Concrete transcoding process can be shown in Figure 2.In fig. 2, the corresponding code requirement 1 of transcoding task 1, the data to be encoded corresponding to this task carry out common coding, extract the coded message of the encoded frame of video of transcoding task 1 correspondence simultaneously, at some frames (as L frame, can arrange according to actual conditions) after start to carry out speech coding to transcoding task 2, the corresponding code requirement 2 of transcoding task 2, extract the coded message of the encoded frame of video of transcoding task 2 correspondence simultaneously, equally, start after some frames transcoding task 3, 4, N carries out speech coding, respectively to transcoding task 3, 4, while N-1 carries out encoding, extract the coded message of encoded frame of video corresponding to these tasks.
In another kind of embodiment of the present invention, step S150 can comprise the following steps:
For in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to selected first task, the data to be encoded corresponding to this task carry out coded treatment.
Concrete cataloged procedure can be shown in Figure 3.In figure 3, the corresponding code requirement 1 of transcoding task 1, the data to be encoded corresponding to this task carry out common coding, extract the coded message of the encoded frame of video of transcoding task 1 correspondence simultaneously, at some frames (as M frame, can arrange according to actual conditions) after start to transcoding task 2,3 ..., N carries out speech coding, all with reference to the coded message of the encoded frame of video of transcoding task 1 correspondence in these task cataloged procedures.
Certainly, it should be noted that, in actual applications, still non-selected each task is being carried out in coding process, the coded message of encoded frame of video that can be corresponding with reference to any one task selected.
S160: according to coding result, obtains the multiple target videos corresponding with described source video.
After each transcoding task terminates, obtain final coding result, obtain the multiple target videos corresponding with described source video.As shown in Figure 2 or Figure 3, transcoding task 1 complete after acquisition target video 1, transcoding task 2 complete after acquisition target video 2 ..., transcoding task N complete after acquisition target video N.
The technical scheme that the application embodiment of the present invention provides, for each task still non-selected in transcoding set of tasks, with reference to the coded message of the encoded frame of video having selected task corresponding, and in conjunction with the code requirement corresponding to this task, the data to be encoded corresponding to this task carry out coded treatment, for the different transcoding tasks for same source video, between the frame of video of the identical frame number of the target video corresponding to different transcoding task, there is higher similitude, coded message with reference to encoded frame of video is encoded, the video code conversion speed of this task can be accelerated, especially when to need source Video Quality Metric be multiple target video, what transcoding speed improved is more obvious, and the encryption algorithm that target video uses need not be limited to the encryption algorithm that source video uses, versatility is stronger.
Corresponding to embodiment of the method above, the embodiment of the present invention additionally provides video code conversion device, shown in Figure 4, and this device can comprise with lower module:
Transcoding set of tasks determination module 210, for determining the set of the video code conversion task for same source video, described set comprises at least two different video code conversion tasks, and the video coding algorithm corresponding to different task is identical, code requirement is different;
Decoded data obtains module 220, for decoding to described source video, obtains the decoded data of described source video;
Data to be encoded determination module 230, for according to obtained decoded data, determines the data to be encoded that in described set, each video code conversion task is corresponding;
First coded treatment module 240, comprise task choosing submodule and the first coded treatment submodule, described task choosing submodule, for selecting a task from described set, described first coded treatment submodule, for the code requirement that selecting according to task choosing submodule of task is corresponding, the data to be encoded corresponding to this task carry out coded treatment, and from coding result, extract the coded message of encoded frame of video corresponding to this task;
Second coded treatment module 250, for in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment;
Target video obtains module 260, for according to coding result, obtains the multiple target videos corresponding with described source video.
In a kind of embodiment of the present invention, described task choosing submodule, specifically for:
Code requirement corresponding to different task, selects first task according to the selecting sequence preset from described set.
In a kind of embodiment of the present invention, described second coded treatment module 250, specifically for:
Select successively the 2nd in described set, 3 ..., N number of task carries out coded treatment, N is the general assignment number in described set, wherein:
When n ∈ [2, N], for the n-th task, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to (n-1)th task, the data to be encoded corresponding to this task carry out coded treatment;
Further, when n ∈ [2, N-1], for the n-th task, from coding result, the coded message of encoded frame of video corresponding to this task is extracted.
In a kind of embodiment of the present invention, described code requirement is the demand to definition or code check, and described default selecting sequence is definition sequence or code check sequence.
In a kind of embodiment of the present invention, described second coded treatment module 250, specifically for:
For in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to selected first task, the data to be encoded corresponding to this task carry out coded treatment.
In a kind of embodiment of the present invention, the coded message of described encoded frame of video comprises: one or more in the division of mode decision, encoding block, estimation, Rate Control.
The device that the application embodiment of the present invention provides, for each task still non-selected in transcoding set of tasks, with reference to the coded message of the encoded frame of video having selected task corresponding, and in conjunction with the code requirement corresponding to this task, the data to be encoded corresponding to this task carry out coded treatment, for the different transcoding tasks for same source video, between the frame of video of the identical frame number of the target video corresponding to different transcoding task, there is higher similitude, coded message with reference to encoded frame of video is encoded, the video code conversion speed of this task can be accelerated, especially when to need source Video Quality Metric be multiple target video, what transcoding speed improved is more obvious, and the encryption algorithm that target video uses need not be limited to the encryption algorithm that source video uses, versatility is stronger.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in said method execution mode is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, 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 done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (12)

1. a video transcoding method, is characterized in that, comprising:
Determine the set of the video code conversion task for same source video, described set comprises at least two different video code conversion tasks, and the video coding algorithm corresponding to different task is identical, code requirement is different;
Described source video is decoded, obtains the decoded data of described source video;
According to obtained decoded data, determine the data to be encoded that in described set, each video code conversion task is corresponding;
From described set, select a task, the code requirement corresponding according to this task, the data to be encoded corresponding to this task carry out coded treatment, and from coding result, extract the coded message of encoded frame of video corresponding to this task;
For in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment;
According to coding result, obtain the multiple target videos corresponding with described source video.
2. method according to claim 1, is characterized in that, described from described set select a task, comprising:
Code requirement corresponding to different task, selects first task according to the selecting sequence preset from described set.
3. method according to claim 2, it is characterized in that, described in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment, comprising:
Select successively the 2nd in described set, 3 ..., N number of task carries out coded treatment, N is the general assignment number in described set, wherein:
When n ∈ [2, N], for the n-th task, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to (n-1)th task, the data to be encoded corresponding to this task carry out coded treatment;
Further, when n ∈ [2, N-1], for the n-th task, from coding result, the coded message of encoded frame of video corresponding to this task is extracted.
4. method according to claim 2, is characterized in that, described code requirement is the demand to definition or code check, and described default selecting sequence is definition sequence or code check sequence.
5. method according to claim 1, it is characterized in that, described in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment, comprising:
For in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to selected first task, the data to be encoded corresponding to this task carry out coded treatment.
6. the method according to any one of claim 1 to 5, is characterized in that, the coded message of described encoded frame of video comprises: one or more in the division of mode decision, encoding block, estimation, Rate Control.
7. a video code conversion device, is characterized in that, comprising:
Transcoding set of tasks determination module, for determining the set of the video code conversion task for same source video, described set comprises at least two different video code conversion tasks, and the video coding algorithm corresponding to different task is identical, code requirement is different;
Decoded data obtains module, for decoding to described source video, obtains the decoded data of described source video;
Data to be encoded determination module, for according to obtained decoded data, determines the data to be encoded that in described set, each video code conversion task is corresponding;
First coded treatment module, comprise task choosing submodule and the first coded treatment submodule, described task choosing submodule, for selecting a task from described set, described first coded treatment submodule, for the code requirement that selecting according to task choosing submodule of task is corresponding, the data to be encoded corresponding to this task carry out coded treatment, and from coding result, extract the coded message of encoded frame of video corresponding to this task;
Second coded treatment module, for in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of the encoded frame of video having selected task corresponding, the data to be encoded corresponding to this task carry out coded treatment;
Target video obtains module, for according to coding result, obtains the multiple target videos corresponding with described source video.
8. device according to claim 7, is characterized in that, described task choosing submodule, specifically for:
Code requirement corresponding to different task, selects first task according to the selecting sequence preset from described set.
9. device according to claim 8, is characterized in that, described second coded treatment module, specifically for:
Select successively the 2nd in described set, 3 ..., N number of task carries out coded treatment, N is the general assignment number in described set, wherein:
When n ∈ [2, N], for the n-th task, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to (n-1)th task, the data to be encoded corresponding to this task carry out coded treatment;
Further, when n ∈ [2, N-1], for the n-th task, from coding result, the coded message of encoded frame of video corresponding to this task is extracted.
10. device according to claim 8, is characterized in that, described code requirement is the demand to definition or code check, and described default selecting sequence is definition sequence or code check sequence.
11. devices according to claim 7, is characterized in that, described second coded treatment module, specifically for:
For in described set not yet by each task selected, the code requirement corresponding according to this task, and the coded message of encoded frame of video corresponding to selected first task, the data to be encoded corresponding to this task carry out coded treatment.
12. devices according to any one of claim 7 to 11, it is characterized in that, the coded message of described encoded frame of video comprises: one or more in the division of mode decision, encoding block, estimation, Rate Control.
CN201510147848.1A 2015-03-31 2015-03-31 Video transcoding method and device Pending CN104717507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510147848.1A CN104717507A (en) 2015-03-31 2015-03-31 Video transcoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510147848.1A CN104717507A (en) 2015-03-31 2015-03-31 Video transcoding method and device

Publications (1)

Publication Number Publication Date
CN104717507A true CN104717507A (en) 2015-06-17

Family

ID=53416393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510147848.1A Pending CN104717507A (en) 2015-03-31 2015-03-31 Video transcoding method and device

Country Status (1)

Country Link
CN (1) CN104717507A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162174A (en) * 2016-08-31 2016-11-23 北京奇艺世纪科技有限公司 A kind of video multi-resolution encoding method and apparatus
CN107659819A (en) * 2017-10-30 2018-02-02 网宿科技股份有限公司 A kind of method and apparatus of video code conversion
CN108366293A (en) * 2017-01-03 2018-08-03 黑帆科技有限公司 VR video transcoding methods and device
CN109660825A (en) * 2017-10-10 2019-04-19 腾讯科技(深圳)有限公司 Video transcoding method, device, computer equipment and storage medium
CN111050175A (en) * 2018-10-15 2020-04-21 华为技术有限公司 Method and apparatus for video encoding
CN111901620A (en) * 2020-07-24 2020-11-06 北京达佳互联信息技术有限公司 Live broadcast playback generation method and device, electronic equipment and storage medium
CN112188285A (en) * 2020-09-28 2021-01-05 北京达佳互联信息技术有限公司 Video transcoding method, device, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1941903A (en) * 2006-03-31 2007-04-04 中山大学 Code-transferring system and method for realizing multiple code flow output simultaneouslly
CN103686207A (en) * 2013-12-04 2014-03-26 乐视网信息技术(北京)股份有限公司 Transcoding task scheduling method and system
CN103826138A (en) * 2014-03-12 2014-05-28 赛特斯信息科技股份有限公司 System and method for realizing cloud transcoding on various code rates and encoding formats of audio and video contents
CN103957428A (en) * 2014-05-16 2014-07-30 中国科学院上海高等研究院 Streaming media server with multi-code-rate transcoding function based on many-core processor
CN104349178A (en) * 2014-11-21 2015-02-11 赛特斯信息科技股份有限公司 System and method for required real-time transcoding and self-adaptive code rate stream media playing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1941903A (en) * 2006-03-31 2007-04-04 中山大学 Code-transferring system and method for realizing multiple code flow output simultaneouslly
CN103686207A (en) * 2013-12-04 2014-03-26 乐视网信息技术(北京)股份有限公司 Transcoding task scheduling method and system
CN103826138A (en) * 2014-03-12 2014-05-28 赛特斯信息科技股份有限公司 System and method for realizing cloud transcoding on various code rates and encoding formats of audio and video contents
CN103957428A (en) * 2014-05-16 2014-07-30 中国科学院上海高等研究院 Streaming media server with multi-code-rate transcoding function based on many-core processor
CN104349178A (en) * 2014-11-21 2015-02-11 赛特斯信息科技股份有限公司 System and method for required real-time transcoding and self-adaptive code rate stream media playing

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162174A (en) * 2016-08-31 2016-11-23 北京奇艺世纪科技有限公司 A kind of video multi-resolution encoding method and apparatus
CN106162174B (en) * 2016-08-31 2019-10-29 北京奇艺世纪科技有限公司 A kind of video multi-resolution encoding method and apparatus
CN108366293A (en) * 2017-01-03 2018-08-03 黑帆科技有限公司 VR video transcoding methods and device
CN109660825A (en) * 2017-10-10 2019-04-19 腾讯科技(深圳)有限公司 Video transcoding method, device, computer equipment and storage medium
CN109660825B (en) * 2017-10-10 2021-02-09 腾讯科技(深圳)有限公司 Video transcoding method and device, computer equipment and storage medium
US10951905B2 (en) 2017-10-10 2021-03-16 Tencent Technology (Shenzhen) Company Limited Video transcoding method, computer device, and storage medium
CN107659819A (en) * 2017-10-30 2018-02-02 网宿科技股份有限公司 A kind of method and apparatus of video code conversion
CN111050175A (en) * 2018-10-15 2020-04-21 华为技术有限公司 Method and apparatus for video encoding
CN111901620A (en) * 2020-07-24 2020-11-06 北京达佳互联信息技术有限公司 Live broadcast playback generation method and device, electronic equipment and storage medium
CN112188285A (en) * 2020-09-28 2021-01-05 北京达佳互联信息技术有限公司 Video transcoding method, device, system and storage medium

Similar Documents

Publication Publication Date Title
CN104717507A (en) Video transcoding method and device
US10666977B2 (en) Methods and apparatuses for coding and decoding depth map
CN102918844B (en) The intra prediction mode signaling strengthened
KR102284099B1 (en) Image encoding/decoding method and device
JP2020096342A (en) Video processing method and apparatus
US10051271B2 (en) Coding structure
CN105812804B (en) The method and device of optimum quantization value during a kind of determining RDOQ
US11955994B2 (en) Data processing apparatuses, methods, computer programs and computer-readable media
CN110401836B (en) Image decoding and encoding method, device and equipment
CN111263243B (en) Video coding method and device, computer readable medium and electronic equipment
CN103188494A (en) Apparatus and method for encoding depth image by skipping discrete cosine transform (DCT), and apparatus and method for decoding depth image by skipping DCT
MX2012004747A (en) Embedded graphics coding: reordered bitstream for parallel decoding.
US9167274B1 (en) Generating synchronized dictionaries for sparse coding
JP2017130894A (en) Image encoding device, method and program
CN104811730A (en) Video image intra-frame encoding unit texture analysis and encoding unit selection method
CN112004114B (en) Video processing method and device, readable storage medium and electronic equipment
CN105323636A (en) Video processing method and video processing device
JP2019110376A (en) Decode error detection estimation device, video decoding device, and program for the devices
CN105791819B (en) The decompression method and device of a kind of frame compression method of image, image
CN105163124A (en) Image coding method, image decoding method, image coding device and image decoding device
JP7411785B2 (en) Interpolation filtering method and device, computer program and electronic device for intra prediction
CN111787326A (en) Entropy coding and decoding method and device
CN105208396A (en) Video frame coding method, video frame decoding method, video frame coding device, and video frame decoding device
JP5929530B2 (en) Image data compression coding apparatus, image data compression coding method, and image data compression coding program
US20230070216A1 (en) Method, apparatus, and storage medium for compressing feature map

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150617