CN105872564A - Intra-frame prediction mode determination method and system for transcoding from H.264/AVC to H.265/HEVC - Google Patents

Intra-frame prediction mode determination method and system for transcoding from H.264/AVC to H.265/HEVC Download PDF

Info

Publication number
CN105872564A
CN105872564A CN201610363865.3A CN201610363865A CN105872564A CN 105872564 A CN105872564 A CN 105872564A CN 201610363865 A CN201610363865 A CN 201610363865A CN 105872564 A CN105872564 A CN 105872564A
Authority
CN
China
Prior art keywords
hevc
prediction mode
avc
intra prediction
intra
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610363865.3A
Other languages
Chinese (zh)
Other versions
CN105872564B (en
Inventor
刘凌志
何辉
汪志冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Tuo Bao Science And Technology Co Ltd
Original Assignee
Wuhan Tuo Bao 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 Wuhan Tuo Bao Science And Technology Co Ltd filed Critical Wuhan Tuo Bao Science And Technology Co Ltd
Priority to CN201610363865.3A priority Critical patent/CN105872564B/en
Publication of CN105872564A publication Critical patent/CN105872564A/en
Application granted granted Critical
Publication of CN105872564B publication Critical patent/CN105872564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/147Data rate or code amount at the encoder output according to rate distortion criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/40Methods 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses an intra-frame prediction mode determination method for transcoding from H.264/AVC to H.265/HEVC. The method comprises steps as follows: judging macroblock segmentation modes of H.265/HEVC requiring for mode determination; finding out intra-frame prediction modes of H.264/AVC macroblocks in corresponding positions according to intra-frame prediction mode information of H.264/AVC in code stream; selecting a group of specific intra-frame prediction modes for rate-distortion calculation according to the intra-frame prediction modes of the found H.264/AVC macroblocks so as to obtain an optimal mode, and utilizing the obtained optimal mode as the intra-frame prediction mode of current H.265/HEVC sub-segmentation. According to the method, the pre-determined macroblock segmentation modes of H.265/HEVC and the intra-frame prediction mode information of H.264/AVC in the code stream are analyzed, the macroblocks and the intra-frame prediction mode information in H.264 code stream are effectively utilized, and the obtained optimal prediction mode is taken as the intra-frame prediction mode of the current H.265/HEVC sub-segmentation, so that the transcoding speed is increased.

Description

H.264/AVC intra prediction mode determining method and the system of H.265/HEVC transcoding are arrived
Technical field
The present invention relates to digital video decoding, H.264/AVC arrive H.265/HEVC in particular to one The intra prediction mode determining method of transcoding.
Background technology
Last decade, the universal and ultra high-definition of HD video is watched the appearance of frequency attentively, has been promoted video energetically The development of encoding and decoding technique, ISO and the ITU Liang great world is organized in 2013 and has formally issued HEVC New-generation digital video encoding and decoding standard, to adapt to network transmission and the development of high-quality video application. HEVC is extending further and expanding in H.264 technical foundation, starts draft collection from 2005 Since, by countries in the world hundreds expert's R & D Cooperation, until 2013 by Liang great International Standards Organization ITU and ISO announces to external world formally becomes video encoding and decoding standard of future generation, lasts for 8 years, Therebetween through repeatedly revising and perfect.
Video code conversion is to process compression video flowing end to end, and the input/output of transcoder is all compression Data, the compressed bit stream after transcoding is suitable for the requirement of transmission bandwidth and receiving terminal.
At present, the existing HEVC transcoder that H.264 arrives is at tradition tandem type pixel domain code conversion device In (Cascade Pixel Domain Transcoder, CPDT), decoder and encoder are separate, With this type of transcoder carry out H.264 standard to the transcoding of HEVC standard time, first decode H.264 video Stream, then recompiles, is finally compressed into HEVC video code flow, and its transcoder structure is shown in Fig. 1. In this transcoder, owing to not utilizing the effective information in H.264 code stream to accelerate HEVC coding Process, therefore transcoding process is computationally intensive, and transcoding efficiency is restricted.
Summary of the invention
Present invention aim to overcome that above-mentioned the deficiencies in the prior art provide one H.264/AVC to arrive H.265/HEVC the intra prediction mode determining method of transcoding, the method is predetermined by analysis H.265/HEVC macroblock partition pattern, and the intra prediction mode H.264/AVC in code stream Information, effectively utilizes H.264 macro block and intraframe prediction information in code stream, the optimum prediction mould that will draw Formula is as the current intra prediction mode that H.265/HEVC son divides, thus accelerates the speed of transcoding.
Realize the object of the invention to employed technical scheme comprise that H.264/AVC one arrives and H.265/HEVC turn The intra prediction mode determining method of code, the method includes:
Judge to need the macroblock partition pattern H.265/HEVC of decision pattern;
According to the intraprediction mode information H.264/AVC in input code flow, find out correspondence position H.264/AVC the intra prediction mode of macro block;
The intra prediction mode of the described H.264/AVC macro block found out is carried out rate distortion computation, obtains Optimization model, using the optimization model that obtains as the current infra-frame prediction mould that the most H.265/HEVC son divides Formula.
In technique scheme, division size as sub-in certain in described H.265/HEVC macro block is more than 16x16, then find out all of infra-frame prediction of all H.264/AVC macro blocks that its correspondence position is covered Pattern, percent of pass distortion computation goes out pattern optimum in these patterns as current H.265/HEVC son The intra prediction mode divided;
Division size as sub-in certain in described H.265/HEVC macro block is less than 16x16, then find out its corresponding position The intra prediction mode of the H.264/AVC macro block put, if this intra prediction mode is DC or Plane, Then calculating DC, Planner, level, vertical 4 kinds of patterns are compared in percent of pass distortion, find out in optimal frames The intra prediction mode as the division of current H.265/HEVC son of predictive mode;If this infra-frame prediction Pattern is not DC or Plane, then choose this pattern and about closest to 4 patterns as candidate Pattern, candidate pattern described in percent of pass distortion computation, show that optimal prediction modes is as currently H.265/HEVC the intra prediction mode that son divides.
Additionally, the present invention also provides for a kind of infra-frame prediction H.264/AVC arriving H.265/HEVC transcoding Mode determining system, this system includes:
H.264/AVC decoder, for decoding the H.264 video code flow of input;
Macroblock partition mode module, needs the macro block H.265/HEVC of decision pattern to divide for judgement Cut pattern, obtain the positional information of macro block;Then according in the H.264 video code flow of described input H.264/AVC intraprediction mode information, finds out in the frame of H.264/AVC macro block of correspondence position Predictive mode;The intra prediction mode of the described H.264/AVC macro block found out is carried out rate distortion computation, Obtain optimal frames inner estimation mode,
H.265/HEVC encoder, for according to using described optimization model as current the most H.265/HEVC The intra prediction mode that son divides encodes.
The macroblock partition pattern H.265/HEVC that this method is predetermined by analysis, and code stream In intraprediction mode information H.264/AVC, be effectively utilized H.264 macro block and frame in code stream Interior information of forecasting, accelerate the speed of transcoding, it is to avoid prior art is the most encoded Journey needs to redefine the problem of the Fractionation regimen of each macro block, thus decreases computation complexity, And can guarantee that high-quality encoding efficiency.
Accompanying drawing explanation
Fig. 1 is the structural representation of existing transcoder.
Fig. 2 is H.265/HEVC macroblock partition pattern diagram.
Fig. 3 is macroblock partition pattern diagram H.264/AVC.
Fig. 4 is H.265/HEVC intra prediction mode schematic diagram.
Fig. 5 is H.264/AVC intra prediction mode schematic diagram.
Fig. 6 is the intra prediction mode decision side that H.264/AVC present invention arrives H.265/HEVC transcoding The flow chart of method.
Fig. 7 is the structural representation of transcoder of the present invention.
Detailed description of the invention
The present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings.
Before elaborating technical solution of the present invention, first illustrate defined below:
1, block partition mode H.265/HEVC
In H.265/HEVC, the size of block extend to 64x64 from 16x16 H.264/AVC, So that the compression of high-resolution video.Meanwhile, have employed more flexibly coding structure to improve volume Code efficiency, including coding unit (Coding Unit), predicting unit (Predict Unit) and converter unit (Transform Unit), as shown in Figure 3.
The concept of the macro block during wherein H.264/AVC coding unit is similar to, for the process of coding, Predicting unit is by the elementary cell of prediction, and converter unit is by the elementary cell of transform and quantization. The separation of these three unit so that convert, predict and encode each processing links more flexible, also have The division being beneficial to each link more conforms to the textural characteristics of video image, and beneficially unit more optimizes Complete respective function.
From the point of view of infra-frame prediction, the division of coding unit has 2Nx2N and NxN both of which, therefore Sub-division size that may be present is 64x64,32x32,16x16,8x8 and 4x4.
2, macroblock partition pattern H.264/AVC is as shown in Figure 4, divides in frame H.264/AVC Plant analogy H.265/HEVC few, only 3 kinds patterns, use in intraframe coding H.264/AVC Macroblock partition and the method for sub-split, each piece can by 16 × 16,8 × 8,4x4 segmentation.
3, infra-frame prediction
Infra-frame prediction is as prediction reference signal with decoded boundary pixel before adjacent on spatial domain The predictive mode carried out.
3.1, H.265/HEVC intra prediction mode
As shown in Figure 4, H.265/HEVC the block from 4x4 to 32x32 is defined 33 different The prediction of directivity, additionally defines two non-directional prediction planar and DC patterns.
3.2, H.264/AVC intra prediction mode
As it is shown in figure 5, the infra-frame prediction of 4 × 4 and 8x8 luminance block H.264/AVC has 9 kinds in advance Survey pattern, and it is respectively arranged with 4 kinds at the predictive mode of 16 × 16 luminance block.
As shown in Figure 6, H.264/AVC the present invention arrives the intra prediction mode of H.265/HEVC transcoding Determining method, the method includes:
S100, judge to need the macroblock partition pattern H.265/HEVC of decision pattern
In the inventive solutions, first, it is determined that H.265/HEVC certain sub-segmentation is big in macro block It is little whether more than 16x16, if it is, i.e. this son is divided into 32x32 or 64x64;If it is not, Then this son is divided into 16x16,8x8 and 4x4.
S200, according to the intraprediction mode information H.264/AVC in code stream, find out correspondence position The intra prediction mode of H.264/AVC macro block, specifically include:
If certain sub-division is more than 16x16 in S201 H.265/HEVC macro block, then find out its corresponding position Put all of intra prediction mode of all H.264/AVC macro blocks covered.
If certain sub-division size is not more than 16x16 in S202 H.265/HEVC macro block, then it is right to find out Answer the intra prediction mode of the H.264/AVC macro block of position.
S300, intra prediction mode to the H.264/AVC macro block found out in previous step carry out rate mistake True calculating, obtains optimization model, the optimization model obtained is divided as current the most H.265/HEVC son Intra prediction mode, specific as follows:
S301, for the intra prediction mode found out in step S201, percent of pass distortion computation goes out these Pattern optimum in pattern is as the current frame mode that H.265/HEVC son divides.
S302, for the intra prediction mode found out in step S202, if this intra prediction mode DC or Plane, then percent of pass distortion compare calculating DC, Planner, level, vertical etc. 4 The pattern of kind, show that optimization model is as H.265/HEVC intra prediction mode;If it is pre-in this frame Survey pattern is not DC or Plane, then choose this pattern and the most closest 4 patterns as candidate Pattern, percent of pass distortion computation show that optimization model is as H.265/HEVC intra prediction mode.
Realize system structure that said method used as it is shown in fig. 7, comprises:
H.264/AVC decoder, for decoding the H.264 video code flow of input.
Macroblock partition mode module, needs the macro block H.265/HEVC of decision pattern to divide for judgement Cut pattern, obtain the positional information of macro block;Then according in the H.264 video code flow of described input H.264/AVC intraprediction mode information, finds out in the frame of H.264/AVC macro block of correspondence position Predictive mode;The intra prediction mode of the described H.264/AVC macro block found out is carried out rate distortion computation, Obtain optimal frames inner estimation mode.This module realizes above-mentioned steps by software or hardware module Process in S100~S300.
H.265/HEVC encoder, for according to sub as current .265/HEVC using described optimization model The intra prediction mode divided encodes.

Claims (3)

1. H.264/AVC arrive an intra prediction mode determining method for H.265/HEVC transcoding, its It is characterised by, including:
Judge to need the macroblock partition pattern H.265/HEVC of decision pattern;
According to the intraprediction mode information H.264/AVC in input code flow, find out correspondence position H.264/AVC the intra prediction mode of macro block;
The intra prediction mode of the described H.264/AVC macro block found out is carried out rate distortion computation, obtains Optimization model, using the optimization model that obtains as the current infra-frame prediction mould that the most H.265/HEVC son divides Formula.
The most H.264/AVC the infra-frame prediction mould of H.265/HEVC transcoding is arrived Formula determining method, it is characterised in that:
Division size as sub-in certain in described H.265/HEVC macro block is more than 16x16, then find out its corresponding position Put all of intra prediction mode of all H.264/AVC macro blocks covered, percent of pass distortion computation Go out pattern optimum in these patterns as the current intra prediction mode that H.265/HEVC son divides;
Division size as sub-in certain in described H.265/HEVC macro block is less than 16x16, then find out its corresponding position The intra prediction mode of the H.264/AVC macro block put, if this intra prediction mode is DC or Plane, Then calculating DC, Planner, level, vertical 4 kinds of patterns are compared in percent of pass distortion, find out in optimal frames The intra prediction mode as the division of current H.265/HEVC son of predictive mode;If this infra-frame prediction Pattern is not DC or Plane, then choose this pattern and about closest to 4 patterns as candidate Pattern, candidate pattern described in percent of pass distortion computation, show that optimal prediction modes is as currently H.265/HEVC the intra prediction mode that son divides.
3. H.264/AVC arrive an intra prediction mode decision systems for H.265/HEVC transcoding, its It is characterised by, including:
H.264/AVC decoder, for decoding the H.264 video code flow of input;
Macroblock partition mode module, needs to determine intra prediction mode H.265/HEVC for judgement Macroblock partition pattern, obtain the positional information of macro block;Then according to the H.264 video of described input Intraprediction mode information H.264/AVC in code stream, finds out the grandest of correspondence position The intra prediction mode of block;The intra prediction mode of the described H.264/AVC macro block found out is carried out rate Distortion computation, obtains optimal frames inner estimation mode,
H.265/HEVC encoder, for according to using described optimization model as current the most H.265/HEVC The intra prediction mode that son divides encodes.
CN201610363865.3A 2016-05-27 2016-05-27 H.264/AVC the intra prediction mode determining method and system of H.265/HEVC transcoding are arrived Active CN105872564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610363865.3A CN105872564B (en) 2016-05-27 2016-05-27 H.264/AVC the intra prediction mode determining method and system of H.265/HEVC transcoding are arrived

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610363865.3A CN105872564B (en) 2016-05-27 2016-05-27 H.264/AVC the intra prediction mode determining method and system of H.265/HEVC transcoding are arrived

Publications (2)

Publication Number Publication Date
CN105872564A true CN105872564A (en) 2016-08-17
CN105872564B CN105872564B (en) 2019-02-19

Family

ID=56642329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610363865.3A Active CN105872564B (en) 2016-05-27 2016-05-27 H.264/AVC the intra prediction mode determining method and system of H.265/HEVC transcoding are arrived

Country Status (1)

Country Link
CN (1) CN105872564B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110720218A (en) * 2017-06-15 2020-01-21 高通股份有限公司 Intra-frame filtering applied with transform processing in video coding
CN111541898A (en) * 2020-05-07 2020-08-14 广州市百果园信息技术有限公司 Method, device, server and storage medium for determining coding mode

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248893A (en) * 2013-05-10 2013-08-14 四川大学 Method for quick inter-frame transcoding from H. 264/AVC standard to HEVC standard and transcoder thereof
US20140119454A1 (en) * 2012-10-25 2014-05-01 Magnum Semiconductor, Inc. Rate-distortion optimizers and optimization techniques including joint optimization of multiple color components
CN103796023A (en) * 2014-03-05 2014-05-14 武汉拓宝电子***有限公司 H.265/HEVC transcoding method and transcoder based on H.264/AVC macro block structure and texture
CN104038764A (en) * 2014-06-27 2014-09-10 华中师范大学 H.264-to-H.265 video transcoding method and transcoder
CN104243997A (en) * 2014-09-05 2014-12-24 南京邮电大学 Method for quality scalable HEVC (high efficiency video coding)
CN104539954A (en) * 2014-12-01 2015-04-22 上海交通大学 Cascading method for speeding up high efficiency video coding (HEVC)
CN105430418A (en) * 2015-11-13 2016-03-23 山东大学 Method for rapidly transcoding from H.264/AVC to HEVC

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140119454A1 (en) * 2012-10-25 2014-05-01 Magnum Semiconductor, Inc. Rate-distortion optimizers and optimization techniques including joint optimization of multiple color components
CN103248893A (en) * 2013-05-10 2013-08-14 四川大学 Method for quick inter-frame transcoding from H. 264/AVC standard to HEVC standard and transcoder thereof
CN103796023A (en) * 2014-03-05 2014-05-14 武汉拓宝电子***有限公司 H.265/HEVC transcoding method and transcoder based on H.264/AVC macro block structure and texture
CN104038764A (en) * 2014-06-27 2014-09-10 华中师范大学 H.264-to-H.265 video transcoding method and transcoder
CN104243997A (en) * 2014-09-05 2014-12-24 南京邮电大学 Method for quality scalable HEVC (high efficiency video coding)
CN104539954A (en) * 2014-12-01 2015-04-22 上海交通大学 Cascading method for speeding up high efficiency video coding (HEVC)
CN105430418A (en) * 2015-11-13 2016-03-23 山东大学 Method for rapidly transcoding from H.264/AVC to HEVC

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110720218A (en) * 2017-06-15 2020-01-21 高通股份有限公司 Intra-frame filtering applied with transform processing in video coding
CN111541898A (en) * 2020-05-07 2020-08-14 广州市百果园信息技术有限公司 Method, device, server and storage medium for determining coding mode

Also Published As

Publication number Publication date
CN105872564B (en) 2019-02-19

Similar Documents

Publication Publication Date Title
CN100534194C (en) Methods and apparatus for video intraprediction encoding and decoding
CN103069800B (en) For the method and apparatus of encoded video and coding/decoding method and equipment
CN103563389B (en) Intra prediction mode decoding with directionality subregion
KR100940444B1 (en) Method of constituting intra prediction mode using spatial edge detection
CN107979756A (en) Method for video coding and device used in a kind of video coding system
US10798414B2 (en) Method and device for selective multi-sample intra-prediction
CN104954788B (en) HEVC method for choosing frame inner forecast mode and device
CN103380622A (en) Intra prediction mode encoding/decoding method and apparatus for same
CN103891283A (en) Method and device for intra prediction
CN103796023B (en) H.265/HEVC transcoding method and transcoder based on H.264/AVC macro block structure and texture
CN103636214B (en) Image processing equipment and image processing method
CN104025601A (en) Method And Device For Encoding Three-Dimensional Image, And Decoding Method And Device
CN103988506A (en) Method for intra prediction and device thereof
Shen et al. Ultra fast H. 264/AVC to HEVC transcoder
CN104038764A (en) H.264-to-H.265 video transcoding method and transcoder
CN102196272B (en) P frame encoding method and device
CN103348681A (en) Method and device for determining reference unit
CN111919442A (en) Intra-frame mode prediction method and device for image block
CN101663895B (en) Video coding mode selection using estimated coding costs
US11962803B2 (en) Method and device for intra-prediction
CN101854554A (en) Video encoding and decoding system based on image inpainting predication
EP3725077A1 (en) Deep learning based image partitioning for video compression
CN104954787A (en) HEVC interframe prediction mode selection method and apparatus
KR101885885B1 (en) Parallel intra prediction method for video data
CN105872564A (en) Intra-frame prediction mode determination method and system for transcoding from H.264/AVC to H.265/HEVC

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: H. Method and system for determining intra prediction mode in 264/AVC to H.265/HEVC transcoding

Effective date of registration: 20230919

Granted publication date: 20190219

Pledgee: Wuhan Guanggu Branch of Hubei Bank Co.,Ltd.

Pledgor: WUHAN TURBO TECHNOLOGIES Corp.

Registration number: Y2023980057502

PE01 Entry into force of the registration of the contract for pledge of patent right