CN108769689A - Skip macro blocks determination method, video transcoding method, electronic equipment and storage medium - Google Patents
Skip macro blocks determination method, video transcoding method, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN108769689A CN108769689A CN201810412997.XA CN201810412997A CN108769689A CN 108769689 A CN108769689 A CN 108769689A CN 201810412997 A CN201810412997 A CN 201810412997A CN 108769689 A CN108769689 A CN 108769689A
- Authority
- CN
- China
- Prior art keywords
- macro block
- encoder
- skip
- video
- macro
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/177—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a group of pictures [GOP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/40—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/44—Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses skip macro blocks determination method, video transcoding method, electronic equipment and storage mediums, wherein skip macro blocks determination method is used for video code conversion module, the video code conversion module includes for handling same video flowing, and the first encoder exported respectively and at least one second encoder, first encoder is for handling the first macro block, and the second encoder is for handling the second macro block;This method includes:The macro block (mb) type of target macroblock is obtained, the target macroblock is to be associated with the first macro block of current second macro block, and the macro block (mb) type of the target macroblock is calculated by the first encoder;If the macro block (mb) type of the target macroblock is skip types, current second macro block is skip macro blocks.Complicated calculations and judgement of the second encoder to skip macro blocks can be reduced, reduce the calculation amount of video code conversion, and the first encoder, second encoder can export the video of different code checks.
Description
Technical field
The present invention relates to video compression technology more particularly to skip macro blocks determination method, video transcoding method, electronic equipments
And storage medium.
Background technology
H.264/AVC, the video encoding standards such as HEVC/H.265 provide excellent coding efficiency.H.264/AVC it compresses
Technology mainly uses following several method and is compressed to video data.
1) intra prediction compresses, and solution is airspace data redundancy issue.
2) inter-prediction compresses, i.e. motion estimation and compensation, and solution is time domain data redundancy issue.
3) correlation spatially is become data unrelated on frequency domain and then carried out by integral discrete cosine transform, i.e. DCT
Quantization.
4) CABAC compresses.
Wherein, inter-prediction is produced from the picture frame of one or more previous codings using the motion compensation based on macro block
A raw prediction model.H.264 standard regulation is encoded macro block by Skip types if meeting following three conditions:
(1) optimal mode is selected as Inter16 × 16;
(2) final motion vector that MC is obtained is equal to predicted motion vector, i.e. the residual error of motion vector is 0;
(3) transformation coefficient is quantified as 0.
When image uses inter prediction encoding, the flat region of image is encoded in a manner of skip macro blocks.Skip types
Macro block include B_Skip type of mb and P_Skip type of mb.Upon decoding, B_Skip type of mb can pass through
Direct prediction modes (time or space) calculate forward and backward motion vector, are then directly obtained using forward and backward motion vector
To pixel predictors, i.e. pixel reconstruction value=pixel predictors;P_Skip type of mb then directly can utilize predicted motion to swear
Pixel predictors are measured, i.e. pixel reconstruction value=pixel predictors.
It follows that the size of encoded video data can be reduced by skip macro blocks, when can also reduce decoding
Calculation amount.But how coding when determine whether some macro block is that skip macro blocks need to spend larger computing resource, therefore
How fast and accurately to judge skip macro blocks, is in the urgent need to address ask with less encoding calculation amount, raising code efficiency
Topic.
A kind of scene of trans-coding system be one enter to have more, as shown in Figure 1, Video Decoder receive input video stream it
After decode, then decoded data are sent to rear class;Rear class includes multichannel transcoding task, is all individually used each transcoding stream
Video encoder carries out transcoding task all the way, completely without any contact between multichannel transcoding task.
It, can be by decoder by solutions such as the gop structure decoded, macro block mode, motion vectors for above-mentioned trans-coding system
Code information sends video encoder to, and video encoder comparatively fast judges skip macro blocks according to the decoded information passed over;Although
This optimal way can utilize association between video encoder and Video Decoder, encoder by using decoder
Know that information reduces the complexity of judgement of skip macro blocks, but this optimal way is for there is the field of code check variation in transcoding process
Scape cannot be applicable in.
Invention content
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide skip macro block determination methods, energy
It solves the problem of how fast and accurately to judge skip macro blocks with less encoding calculation amount, raising code efficiency.
The second object of the present invention is to provide video transcoding method can solve how fast and accurately to judge skip
Macro block with less encoding calculation amount, improves the problem of code efficiency.
The third object of the present invention is to provide electronic equipment, can solve how fast and accurately to judge skip macro blocks,
With less encoding calculation amount, improve the problem of code efficiency.
The fourth object of the present invention is to provide storage medium, is stored with computer program, can solve how quick, accurate
True judgement skip macro blocks with less encoding calculation amount, improve the problem of code efficiency.
An object of the present invention is realized using following technical scheme:
Skip macro block determination methods are used for video code conversion module, and the video code conversion module includes for handling same regard
Frequency flows, and the first encoder exported respectively and at least one second encoder, and first encoder is macro for handling first
Block, the second encoder is for handling the second macro block;
The skip macro blocks determination method includes the following steps:
The macro block (mb) type of target macroblock is obtained, the target macroblock is to be associated with the first macro block of current second macro block, institute
The macro block (mb) type for stating target macroblock is calculated by the first encoder;
If the macro block (mb) type of the target macroblock is skip types, current second macro block is skip macro blocks.
Further, first macro block for being associated with current second macro block, specially:Positioned at current second macro block
First macro block of corresponding position, or it is adjacent to the first macro block of the current second macro block corresponding position.
Further, the current second macro block corresponding position is specially the position according to current second macro block, with
And the calculating of the video scale information of second encoder and the first encoder.
Further, the video code conversion module further includes macro block judging unit, the macro block class for obtaining target macroblock
Type specifically includes following steps:
Macro block judging unit obtains the position of current second macro block from second encoder;
Macro block judging unit calculates the current second macro block corresponding position according to the position of current second macro block;
Macro block judging unit obtains the target macroblock according to the current second macro block corresponding position from the first encoder
Macro block (mb) type.
Further, if the macro block (mb) type of the target macroblock is skip types, current second macro block
For skip macro blocks, following steps are specifically included:
If the macro block (mb) type that the macro block judging unit obtains is skip types, transmission types judge information to described
Second encoder;
The second encoder judges that current second macro block is skip macro blocks according to the type decision information.
Further, further comprising the steps of before the macro block (mb) type for obtaining target macroblock:
Second encoder obtains frame type information from the first encoder.
The second object of the present invention is realized using following technical scheme:
Video transcoding method, be used for video code conversion module, the video code conversion module include for handling same video flowing,
And the first encoder exported respectively and at least one second encoder;
The video transcoding method includes the skip macro block determination methods as described in any one of claim 1-6.
Further, the video transcoding method is further comprising the steps of:
First encoder and second encoder will be transmitted to after the decoding video stream of acquisition.
Further, the video transcoding method is further comprising the steps of:
At least one in first encoder, second encoder will be transmitted to after decoded video flowing adjustment resolution ratio
A, the video flowing for being input to first encoder and second encoder has different resolution ratio.
The third object of the present invention is realized using following technical scheme:
Electronic equipment, including memory, processor and program stored in memory, described program be configured to by
Processor executes, and processor is realized when executing described program:
The step of above-mentioned skip macro blocks determination method;Or
The step of above-mentioned video transcoding method.
The fourth object of the present invention is realized using following technical scheme:
Storage medium, the storage medium are stored with computer program, real when the computer program is executed by processor
It is existing:
The step of above-mentioned skip macro blocks determination method;Or
The step of above-mentioned video transcoding method.
Compared with prior art, the advantageous effect of the embodiment of the present invention is:By using the macro block (mb) type of target macroblock, mesh
It is the first macro block for being associated with the second macro block to mark macro block, judges whether the second macro block is skip macro blocks, target in second encoder
The macro block (mb) type of macro block is calculated by the first encoder;Due to second encoder and the same video input of the first coder processes
Stream, the coding mode of a certain macro block can refer to the coding mode of respective macroblock in the first encoder in second encoder, when the
A certain second macro block coding mode of respective macroblock in the first encoder is skip types in two encoders, can directly really
Fixed second macro block is skip macro blocks, and with skip patterns to second macroblock coding;So as to reduce second encoder
Complicated calculations to skip macro blocks and judgement, reduce the calculation amount of video code conversion, and the first encoder, second encoder can be with
Export the video of different code checks.
Description of the drawings
Fig. 1 enters to have more the structural schematic diagram of trans-coding system for one;
Fig. 2 is the flow diagram of the skip macro block determination methods of the embodiment of the present invention one;
Fig. 3 is the structural schematic diagram of the video code conversion module of embodiment one;
Fig. 4 is associated with the schematic diagram of the first macro block of the second macro block;
Fig. 5 is the flow diagram of the skip macro block determination methods of the embodiment of the present invention two;
Fig. 6 is the structural schematic diagram of the video code conversion module of the embodiment of the present invention three;
Fig. 7 is the structural schematic diagram of the electronic equipment of the embodiment of the present invention four.
Specific implementation mode
In the following, in conjunction with attached drawing and specific implementation mode, the present invention is described further, it should be noted that not
Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
Embodiment one
Such as the flow diagram for the skip macro block determination methods that Fig. 2 is the present embodiment, it is suitable for video as shown in Figure 3 and turns
Code module.The video code conversion module includes and the first encoder for exporting respectively and at least one for handling same video flowing
Second encoder.First encoder and each second encoder carry out compressed encoding to the same input video stream;First compiles
Different code check control parameters may be used in code device, second encoder, so as to export the video flowing of different quality, such as exports
Video flowing 1- video flowings 3.
Macro block is the main bearer of video information, and a coded image is typically divided into multiple macro block compositions, macro block packet
Contain brightness and the chrominance information of each pixel.In h .264, macro block is in picture frame 16 × 16 pixel region, is fortune
The basic operation unit of dynamic compensation.In H.265, the size of macro block is extended to 64 × 64 from 16 × 16 H.264, so as to
In the compression of high-resolution video.
For ease of understanding, the macro block during the first coder processes input video stream is known as the first macro block;By second
Macro block during coder processes input video stream is known as the second macro block.
The skip macro block determination methods of the present embodiment include the following steps:
Step S110, the macro block (mb) type of target macroblock is obtained, the target macroblock is be associated with current second macro block the
One macro block, the macro block (mb) type of the target macroblock are calculated by the first encoder.
As preferred embodiment, the first encoder independently carries out the coding to input video stream, including to each first
Macro block carries out the judgement of coding mode, so that it is determined that the macro block (mb) type of each first macro block.There are some first macro blocks can be with skip
Type-scheme is encoded, and the macro block (mb) type of this kind of first macro block is skip types.
Second encoder needs to judge the corresponding forced coding pattern of second macro block when handling a certain second macro block.
Due to second encoder and the same input video stream of the first coder processes, the macro block (mb) type of the first macro block can be utilized to believe
It ceases the judgement to the second macro block forced coding pattern and reference is provided.
As preferred embodiment, target macroblock is associated with the first macro block of the second macro block, specially:Positioned at institute
The first macro block of the second macro block corresponding position is stated, or is adjacent to the first macro block of second macro block corresponding position.
As shown in figure 4, the first macro block for being associated with the second macro block 10 may include being located at 10 corresponding position of the second macro block
20 the first macro block 21.
As preferred embodiment, the current second macro block corresponding position is specially according to current second macro block
Position and the video scale information of second encoder and the first encoder calculate.Second encoder and first is compiled
Code device can handle different resolution, the ratio of width to height same video flowing, second encoder can be obtained according to resolution ratio, the ratio of width to height
With the video scale information of the first encoder, and then the position relationship of the second macro block 10 and a certain first macro block 21 is obtained.
It can be found according to the high scale information of the width of macro block by the coordinate of the second macro block 10 corresponding position 20 of second macro block 10
The macro block of second corresponding position 20 in the first encoder of macro block 10, i.e. the first macro block 21.
Since the coding mode of adjoining macro block can mutually provide reference, such as when the neighbouring macro block of a certain macro block is
When skip macro blocks, the macro block itself also has very that maximum probability is skip macro blocks, can be the same resolution decreasing or drop code check, because
This is associated with the first macro block of the second macro block, i.e., target macroblock, which can also be, is adjacent to second macro block, 10 corresponding position 20
First macro block 22.
In the present embodiment, the first macro block 22 for being adjacent to second macro block, 10 corresponding position 20 is specially positioned at described
First macro block 22 in the upper, lower, left, or right direction of the first macro block 21 of 10 corresponding position 20 of the second macro block, in another embodiment
In, the first macro block 22 for being adjacent to second macro block, 10 corresponding position 20 can also be positioned at 10 corresponding positions of the second macro block
The first macro block (figure is not noted) for setting 20 21 oblique angle direction of the first macro block, can also be positioned at 10 corresponding position of the second macro block
First macro block (not shown) of 20 21 the second circle of periphery of the first macro block.
According to target macroblock, that is, it is associated with the first macro block of the second macro block, so that it may to obtain the macro block (mb) type of target macroblock.
If the macro block (mb) type of step S120, the described target macroblock is skip types, current second macro block is
Skip macro blocks.
Due to second encoder and the same input video stream of the first coder processes, each frame image in second encoder is equal
The a certain frame image in the first encoder is can correspond to, therefore the coding mode of a certain macro block can refer in second encoder
The coding mode of respective macroblock in first encoder.If a certain second macro block phase in the first encoder in this second encoder
It is skip types to answer the coding mode of macro block, then can directly determine that second macro block is skip macro blocks, second macro block
Forced coding pattern also be skip types.If the target macroblock number that macro block (mb) type is skip types is less than preset quantity,
So second macro block may not be skip macro blocks, need the judgement that macro-block coding pattern is carried out according to normal coding flow.
Skip macro blocks determination method provided in an embodiment of the present invention, by using the macro block (mb) type of target macroblock, target macro
Block is the first macro block for being associated with the second macro block, judges whether the second macro block is skip macro blocks, target macroblock in second encoder
Macro block (mb) type be to be calculated by the first encoder;Due to second encoder and the same video input stream of the first coder processes,
The coding mode of a certain macro block can refer to the coding mode of respective macroblock in the first encoder in second encoder, when the second volume
A certain second macro block coding mode of respective macroblock in the first encoder is skip types in code device, and can directly determine should
Second macro block is skip macro blocks, and with skip patterns to second macroblock coding;So as to reduce second encoder pair
The complicated calculations of skip macro blocks and judgement reduce the calculation amount of video code conversion, and the first encoder, second encoder can be defeated
Go out the video of different code checks.
Embodiment two
Skip macro block determination methods as shown in Figure 5, include the following steps:
Step S210, second encoder obtains frame type information from the first encoder.
First encoder carry out input video stream coding when, can calculate picture group (Group of Pictures,
GOP) structure, picture group structure can embody the type of each frame, i.e. frame type information.Second encoder can be multiplexed from first and compile
The frame type information that code device obtains, to which second encoder need not carry out analysis calculating to frame type;And it can ensure
Two encoders, the first encoder are completely the same to the definition of each frame image type, to ensure second encoder using the first coding
The Stability and veracity of device macro block type information.
In another embodiment, can picture group structure be calculated by second encoder, can also realizes second encoder pair the
The utilization of one encoder macro block type information, only stability is slightly poor, and computational requirements are larger.
Step S220, the macro block (mb) type of target macroblock is obtained, the target macroblock is be associated with current second macro block the
One macro block, the macro block (mb) type of the target macroblock are calculated by the first encoder.
As preferred embodiment, in the present embodiment, video code conversion module further includes macro block judging unit, step
S220 obtains the macro block (mb) type of target macroblock, specifically includes following steps:
Step S221, macro block judging unit obtains the position of current second macro block from second encoder.
Step S222, macro block judging unit calculates the current second macro block phase according to the position of current second macro block
Answer position.
Step S223, macro block judging unit according to the current second macro block corresponding position from the first encoder obtain described in
The macro block (mb) type of target macroblock.
Judge that a certain second macro block whether be skip macro blocks is realized by the macro block judging unit except encoder, it is macro
The first macro block corresponding with current second macro block, i.e. target macroblock are found in the specific implementation of block judging unit, and are encoded from first
Device inquires the macro block (mb) type of target macroblock;In addition macro block judging unit also needs to be tied judgement according to the macro block (mb) type of target macroblock
Fruit is sent to second encoder.
If the macro block (mb) type of step S230, the described target macroblock is skip types, current second macro block is
Skip macro blocks.
As preferred embodiment, if the macro block (mb) type of the step S230 target macroblocks is skip types, institute
It is skip macro blocks to state current second macro block, specifically includes following steps:
If the macro block (mb) type that step S231, the described macro block judging unit obtains is skip types, transmission types judgement
Information to the second encoder, i.e. macro block judging unit also needs to judge that result is sent according to the macro block (mb) type of target macroblock
To second encoder.
Step S232, the described second encoder judges that current second macro block is skip according to the type decision information
Macro block.
Skip macro blocks determination method provided in an embodiment of the present invention is further multiplexed the first encoder by second encoder
Frame type information so that second encoder need not carry out frame type analysis calculating, and can ensure second encoder,
First encoder is completely the same to the definition of each frame image type, to ensure that second encoder utilizes the first encoder macro block (mb) type
The Stability and veracity of information.Also by that will judge whether a certain second macro block is that skip macro blocks this tasks gives encoder
Except macro block judging unit realize, can more fully utilize video code conversion module parallel processing capability, increase coding effect
Rate.
Embodiment three
An embodiment of the present invention provides video transcoding methods, are used for video code conversion module as shown in Figure 3.The video code conversion
Module includes and the first encoder exported respectively and at least one second encoder for handling same video flowing.
Video transcoding method is specially when second encoder carries out macro-block coding pattern judgement using embodiment one, implementation
The skip macro block determination methods that example two provides.
Such as H.264/AVC and HEVC/H.265 is regarded other steps of video transcoding method can be according to the prior art,
Frequency coding standard realizes that the embodiment of the present invention is not related to the improvement to the part, repeats no more.
As preferred embodiment, as shown in fig. 6, video code conversion module further includes Video Decoder, for that will input
Video flowing is converted to the data suitable for the first encoder, second encoder.Correspondingly, video transcoding method further includes following step
Suddenly:
First encoder and second encoder will be transmitted to after the decoding video stream of acquisition.
As preferred embodiment, video code conversion module further includes video scaling unit, and first is transmitted to for adjusting
Encoder, second encoder video data resolution ratio.Correspondingly, video transcoding method is further comprising the steps of:
At least one in first encoder, second encoder will be transmitted to after decoded video flowing adjustment resolution ratio
It is a.
It is appreciated that the first encoder and second encoder are transmitted to after can decoded video flowing being adjusted resolution ratio
In one of or it is multiple, can also decoded video flowing directly be handled by the first encoder or second encoder.?
I.e., it is possible to be transmitted separately to the first encoder and second encoder after decoded video flowing is adjusted by different resolution
In.Therefore the first encoder, second encoder can export the video of different resolution.
Video transcoding method provided in an embodiment of the present invention, by using the macro block (mb) type of target macroblock, target macroblock is
Be associated with the first macro block of the second macro block, judge in second encoder whether the second macro block is skip macro blocks, target macroblock it is macro
Block type is calculated by the first encoder;Due to second encoder and the same video input stream of the first coder processes, second
The coding mode of a certain macro block can refer to the coding mode of respective macroblock in the first encoder in encoder, work as second encoder
In a certain second macro block coding mode of respective macroblock in the first encoder be skip types, can directly determine this second
Macro block is skip macro blocks, and with skip patterns to second macroblock coding;It is macro to skip so as to reduce second encoder
The complicated calculations of block and judgement reduce the calculation amount of video code conversion, and the first encoder, second encoder can export difference
The video of code check.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
It is realized by the mode of software plus required general hardware platform.Based on this understanding, technical scheme of the present invention essence
On in other words the part that contributes to existing technology can be expressed in the form of software products, the computer software product
It can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment
(can be personal computer, server either network equipment etc.) executes the certain of each embodiment of the present invention or embodiment
Method described in part, such as:
Storage medium, the storage medium are stored with computer program, real when the computer program is executed by processor
It is existing:
The step of aforementioned skip macro blocks determination method;Or
The step of aforementioned video code-transferring method.
The present invention can be used in numerous general or special purpose computing system environments or configuration.Such as:Personal computer, service
Device computer, handheld device or portable device, laptop device, multicomputer system, microprocessor-based system, machine top
Box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer including any of the above system or equipment
Distributed computing environment etc., such as example IV.
Example IV
Electronic equipment as shown in Figure 7, including memory 200, processor 300 and the program being stored in memory 200,
Described program is configured to be executed by processor 300, and processor 300 is realized when executing described program:
The step of aforementioned skip macro blocks determination method;Or
The step of aforementioned video code-transferring method.
The method in electronic equipment and previous embodiment in the present embodiment is based on two sides under same inventive concept
Face is in front described in detail method implementation process, so those skilled in the art can be clear according to foregoing description
Understand to Chu the structure and implementation process of the system in this implementation, in order to illustrate the succinct of book, details are not described herein again.
Electronic equipment provided in an embodiment of the present invention can be by using the macro block (mb) type of target macroblock, target macroblock
Be associated with the first macro block of the second macro block, judge in second encoder whether the second macro block is skip macro blocks, target macroblock it is macro
Block type is calculated by the first encoder;Due to second encoder and the same video input stream of the first coder processes, second
The coding mode of a certain macro block can refer to the coding mode of respective macroblock in the first encoder in encoder, work as second encoder
In a certain second macro block coding mode of respective macroblock in the first encoder be skip types, can directly determine this second
Macro block is skip macro blocks, and with skip patterns to second macroblock coding;It is macro to skip so as to reduce second encoder
The complicated calculations of block and judgement reduce the calculation amount of video code conversion, and the first encoder, second encoder can export difference
The video of code check.
The above embodiment is only the preferred embodiment of the present invention, and the scope of protection of the present invention is not limited thereto,
The variation and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention
Claimed range.
Claims (11)
1.skip macro block determination methods, which is characterized in that be used for video code conversion module, the video code conversion module includes for locating
Same video flowing is managed, and the first encoder exported respectively and at least one second encoder, first encoder is for locating
The first macro block is managed, the second encoder is for handling the second macro block;
The skip macro blocks determination method includes the following steps:
The macro block (mb) type of target macroblock is obtained, the target macroblock is to be associated with the first macro block of current second macro block, the mesh
The macro block (mb) type for marking macro block is calculated by the first encoder;
If the macro block (mb) type of the target macroblock is skip types, current second macro block is skip macro blocks.
2. skip macro blocks determination method as described in claim 1, it is characterised in that:It is described to be associated with the of current second macro block
One macro block, specially:The first macro block positioned at the current second macro block corresponding position, or it is adjacent to current second macro block
First macro block of corresponding position.
3. skip macro blocks determination method as claimed in claim 2, it is characterised in that:The current second macro block corresponding position tool
Body is the video scale information meter according to the position of current second macro block and second encoder and the first encoder
It calculates.
4. skip macro blocks determination method as claimed in claim 3, it is characterised in that:The video code conversion module further includes macro block
Judging unit, the macro block (mb) type for obtaining target macroblock, specifically includes following steps:
Macro block judging unit obtains the position of current second macro block from second encoder;
Macro block judging unit calculates the current second macro block corresponding position according to the position of current second macro block;
Macro block judging unit obtains the macro of the target macroblock according to the current second macro block corresponding position from the first encoder
Block type.
5. skip macro blocks determination method as claimed in claim 4, it is characterised in that:If the macro block class of the target macroblock
Type is skip types, then current second macro block is skip macro blocks, specifically includes following steps:
If the macro block (mb) type that the macro block judging unit obtains is skip types, transmission types judge information to described second
Encoder;
The second encoder judges that current second macro block is skip macro blocks according to the type decision information.
6. the skip macro block determination methods as described in any one of claim 1-5, which is characterized in that the acquisition target macroblock
Macro block (mb) type before, it is further comprising the steps of:
Second encoder obtains frame type information from the first encoder.
7. video transcoding method, it is characterised in that:For video code conversion module, the video code conversion module includes same for handling
One video flowing, and the first encoder exported respectively and at least one second encoder;
The video transcoding method includes the skip macro block determination methods as described in any one of claim 1-6.
8. video transcoding method as claimed in claim 7, it is characterised in that:The video transcoding method further includes following step
Suddenly:
First encoder and second encoder will be transmitted to after the decoding video stream of acquisition.
9. video transcoding method as claimed in claim 7, it is characterised in that:The video transcoding method further includes following step
Suddenly:
It is transmitted at least one of first encoder, second encoder after decoded video flowing is adjusted resolution ratio,
The video flowing for being input to first encoder and second encoder has different resolution ratio.
10. electronic equipment, it is characterised in that:Including memory, processor and program stored in memory, described program
It is configured to be executed by processor, processor is realized when executing described program:
The step of skip macro block determination methods as described in any one of claim 1-6;Or
The step of video transcoding method as claimed in any one of claims 7-9.
11. storage medium, the storage medium is stored with computer program, it is characterised in that:The computer program is handled
Device is realized when executing:
The step of skip macro block determination methods as described in any one of claim 1-6;Or
The step of video transcoding method as claimed in any one of claims 7-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810412997.XA CN108769689A (en) | 2018-05-03 | 2018-05-03 | Skip macro blocks determination method, video transcoding method, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810412997.XA CN108769689A (en) | 2018-05-03 | 2018-05-03 | Skip macro blocks determination method, video transcoding method, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108769689A true CN108769689A (en) | 2018-11-06 |
Family
ID=64009492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810412997.XA Pending CN108769689A (en) | 2018-05-03 | 2018-05-03 | Skip macro blocks determination method, video transcoding method, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108769689A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110971903A (en) * | 2019-10-17 | 2020-04-07 | 西安万像电子科技有限公司 | Coding method, device and system |
CN111901591A (en) * | 2020-07-28 | 2020-11-06 | 有半岛(北京)信息科技有限公司 | Method, device, server and storage medium for determining coding mode |
CN113438486A (en) * | 2021-05-11 | 2021-09-24 | 中天恒星(上海)科技有限公司 | Multi-channel video coding method and coding device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110033748A (en) * | 2009-09-25 | 2011-03-31 | 목포대학교산학협력단 | H.264 to mpeg-2 transcoding considering features of variable blocks |
CN103546754A (en) * | 2012-07-16 | 2014-01-29 | 中国科学院声学研究所 | Spatially scalable method and system for transcoding from H.264/AVC to SVC |
CN103546751A (en) * | 2012-07-10 | 2014-01-29 | 美国博通公司 | Video coding method and system |
CN104469399A (en) * | 2014-12-12 | 2015-03-25 | 山东电子职业技术学院 | Method for macro block SKIP type selection in spatial resolution video transcoding |
CN106231315A (en) * | 2016-08-05 | 2016-12-14 | 北京数码视讯科技股份有限公司 | A kind of video coding system and the method for video coding of this system of application |
CN107404648A (en) * | 2017-08-24 | 2017-11-28 | 中南大学 | A kind of multi-channel video code-transferring method based on HEVC |
-
2018
- 2018-05-03 CN CN201810412997.XA patent/CN108769689A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110033748A (en) * | 2009-09-25 | 2011-03-31 | 목포대학교산학협력단 | H.264 to mpeg-2 transcoding considering features of variable blocks |
CN103546751A (en) * | 2012-07-10 | 2014-01-29 | 美国博通公司 | Video coding method and system |
CN103546754A (en) * | 2012-07-16 | 2014-01-29 | 中国科学院声学研究所 | Spatially scalable method and system for transcoding from H.264/AVC to SVC |
CN104469399A (en) * | 2014-12-12 | 2015-03-25 | 山东电子职业技术学院 | Method for macro block SKIP type selection in spatial resolution video transcoding |
CN106231315A (en) * | 2016-08-05 | 2016-12-14 | 北京数码视讯科技股份有限公司 | A kind of video coding system and the method for video coding of this system of application |
CN107404648A (en) * | 2017-08-24 | 2017-11-28 | 中南大学 | A kind of multi-channel video code-transferring method based on HEVC |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110971903A (en) * | 2019-10-17 | 2020-04-07 | 西安万像电子科技有限公司 | Coding method, device and system |
CN111901591A (en) * | 2020-07-28 | 2020-11-06 | 有半岛(北京)信息科技有限公司 | Method, device, server and storage medium for determining coding mode |
CN111901591B (en) * | 2020-07-28 | 2023-07-18 | 有半岛(北京)信息科技有限公司 | Method, device, server and storage medium for determining coding mode |
CN113438486A (en) * | 2021-05-11 | 2021-09-24 | 中天恒星(上海)科技有限公司 | Multi-channel video coding method and coding device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102165288B1 (en) | Video encoding/decoding method and apparatus using prediction based on in-loop filtering | |
Wiegand et al. | Lagrange multiplier selection in hybrid video coder control | |
CN100593955C (en) | Method and device for coding a video picture in inter or intra mode | |
CN103548356B (en) | Picture decoding method using dancing mode and the device using this method | |
CN114501010B (en) | Image encoding method, image decoding method and related devices | |
CN101115208A (en) | Picture coding apparatus | |
CN102932642B (en) | Interframe coding quick mode selection method | |
US20160105675A1 (en) | Metadata hints to support best effort decoding for green mpeg applications | |
CN106170092A (en) | Fast encoding method for lossless coding | |
CN103118262B (en) | Rate distortion optimization method and device, and video coding method and system | |
CN108769689A (en) | Skip macro blocks determination method, video transcoding method, electronic equipment and storage medium | |
CN104429062A (en) | Apparatus for coding a bit stream representing a three-dimensional video | |
CA2886995C (en) | Rate-distortion optimizers and optimization techniques including joint optimization of multiple color components | |
CN111669589B (en) | Image encoding method, image encoding device, computer device, and storage medium | |
CN103596004A (en) | Intra-frame prediction method and device based on mathematical statistics and classification training in HEVC | |
WO2022121786A1 (en) | Video predictive coding method and apparatus | |
CN103702122B (en) | Coding mode selection method, device and encoder | |
CN105681797A (en) | Prediction residual based DVC-HEVC (Distributed Video Coding-High Efficiency Video Coding) video transcoding method | |
CN108401185A (en) | Reference frame selecting method, video transcoding method, electronic equipment and storage medium | |
CN108600757A (en) | Macro block (mb) type determination method, video transcoding method, electronic equipment and storage medium | |
CN113497937B (en) | Image encoding method, image decoding method and related devices | |
CN109302616A (en) | A kind of HEVC Inter Prediction High-speed Algorithm based on RC prediction | |
EP2661079A1 (en) | H264 transcoding method by multiplexing code stream information | |
CN107277519A (en) | The method and electronic equipment of a kind of frame type for judging frame of video | |
CN110351552B (en) | Fast coding method in video coding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181106 |
|
RJ01 | Rejection of invention patent application after publication |