KR100930344B1 - Initial Quantization Parameter Determination Method - Google Patents
Initial Quantization Parameter Determination Method Download PDFInfo
- Publication number
- KR100930344B1 KR100930344B1 KR1020070090466A KR20070090466A KR100930344B1 KR 100930344 B1 KR100930344 B1 KR 100930344B1 KR 1020070090466 A KR1020070090466 A KR 1020070090466A KR 20070090466 A KR20070090466 A KR 20070090466A KR 100930344 B1 KR100930344 B1 KR 100930344B1
- Authority
- KR
- South Korea
- Prior art keywords
- value
- initial
- bit rate
- amount
- quantization parameter
- Prior art date
Links
Images
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/134—Methods 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/136—Incoming video signal characteristics or properties
-
- 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/102—Methods 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/124—Quantisation
-
- 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/134—Methods 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/164—Feedback from the receiver or from the transmission channel
-
- 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]
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
본 발명은 영상의 특징을 고려한 초기 QP 값의 결정으로 입력 영상에 적응하는 시간을 줄이고 화질 변화를 줄일 수 있는 최적에 가까운 초기 양자화 파라미터(Quantization Parameter : QP) 값을 결정하는 방법을 제공하기 위한 것으로서, 프레임 레이트(frame rate), 화면 크기, 비트율에 따라서 정의된 다수개의 값 중에서 하나를 선택하여 초기 양자화 파라미터(Quantization Parameter : QP) 값으로 정의하는 단계와, 상기 정의된 초기 QP 값으로 첫 프레임을 부호화하여 비트양(bitrate)을 산출하는 단계와, 상기 산출된 비트양을 기반으로 검출된 입력 영상의 특징을 이용해서 새로운 초기 QP 값을 생성하는 단계를 포함하는데 있다.An object of the present invention is to provide a method for determining a near-optimal initial quantization parameter (QP) value that can reduce the time to adapt to an input image and reduce the change in image quality by determining the initial QP value considering the characteristics of the image. Selecting one of a plurality of values defined according to a frame rate, a screen size, and a bit rate to define an initial quantization parameter (QP) value; and defining the first frame with the initial QP value defined above. And calculating a bit rate by encoding, and generating a new initial QP value by using the detected feature of the input image based on the calculated bit amount.
영상 압축, rate control, H.264/AVC, 양자화 파라미터(QP), 초기 QP값 Image Compression, Rate Control, H.264 / AVC, Quantization Parameters (QP), Initial QP Values
Description
본 발명은 초기 양자화 파라미터(Quantization Parameter : QP) 결정 방법에 관한 것으로, 특히 영상의 특징에 따라 적응하는 시간을 줄이고 화질 변화를 줄이기 위한 초기 QP 값을 결정하는 방법에 관한 것이다. The present invention relates to a method for determining an initial quantization parameter (QP), and more particularly, to a method for determining an initial QP value for reducing adaptation time and reducing image quality change according to an image characteristic.
비디오 압축 표준은 ITU-T와 ISO/IEC 두 단체를 양축으로 표준화 작업이 이루어지고 있는데, 그 중에서 ITU-T의 권고(recommendation)는 주로 비디오-회의(video-conferencing)나 비디오-통신(video-telephony) 같은 실시간 비디오 통신(Real-Time video communication)을 위해 디자인 되었고, ISO/IEC가 채택한 MPEG-X(MPEG-1, MPEG-2 and MPEG-4) 표준은 대부분 저장(storage)이나 방송(broadcast) 또는 스트리밍(streaming)(video over Internet, video over Wireless) 등에 적합하도록 디자인 된 특징을 지니고 있다. 지향점이 상이한 연유로 대부분의 표준화 작업에서 H.262/MPEG-2와 같은 예외적인 표준화 작업을 제외하고는 두 단체는 독립적이고 상이한 표준화 작업을 진행시켜 나가고 있다. The video compression standard is being standardized by two organizations, ITU-T and ISO / IEC. Among them, ITU-T's recommendation is mainly video-conferencing or video-communication. Designed for real-time video communication such as telephony, the MPEG-X (MPEG-1, MPEG-2 and MPEG-4) standard adopted by ISO / IEC is mostly used for storage and broadcast. ) Or designed for streaming (video over Internet, video over Wireless). Because of the different orientations, the two groups are moving forward with independent and different standardizations, with the exception of exceptional standardizations such as H.262 / MPEG-2 in most standardizations.
H.264/AVC는 이러한 배경 속에서 ITU-T와 ISO/IEC가 함께 표준화 과정을 진 행시켜 얻어낸 새로운 비디오 압축 표준으로 비디오 응용(video application)의 모든 영역(DVD, digital cinema, low bit rate wireless application 등)에의 적용이 가능한 상당 수준의 성능의 개선이 이루어진 새로운 표준안이다.H.264 / AVC is a new video compression standard that is achieved by the standardization process of ITU-T and ISO / IEC in this background. It is a new standard with significant performance improvements that can be applied to applications.
이와 같은 H.264/AVC 표준 기술에서는 초기 QP(Quantization Parameter) 값을 정의할 때 프레임 레이트(frame rate), 화면 크기, 비트율에 따라서 4개의 값(10, 20, 25, 35) 중에서 하나를 선택하는 비트율 제어 방식을 이용한다.In the H.264 / AVC standard technology, one of four values (10, 20, 25, 35) is selected according to the frame rate, screen size, and bit rate when defining the initial QP (Quantization Parameter) value. A bit rate control scheme is used.
상기 H.264/AVC 비트율 제어방식을 이용한 초기 QP 값을 선택하는 방법을 다음 수학식 1 및 수학식 2를 이용해서 설명하면 다음과 같다.A method of selecting an initial QP value using the H.264 / AVC bit rate control scheme will be described below using
먼저, 수학식 1을 이용하여 픽셀 당 비트수(bpp)를 산출한다.First, the number of bits per pixel bpp is calculated using
상기 수학식 1에서 “bpp(Bit Per Pixel)”는 픽셀 당 비트수를 말하고, “TargetBitRate”는 목표 비트율을, “FrameSize”는 화면 크기(height× width)를 나타내고, “FrameRate”는 초당 부호화되는 프레임 수이다.In
이렇게 구해진 “bpp”값을 4개의 범위로 나누어서 수학식 2를 이용하여 초기 QP값(QP0)을 정의하게 된다.The “bpp” value thus obtained is divided into four ranges to define an initial QP value (QP 0 ) using Equation 2.
상기 수학식 2에서 기재된 값은 표준안에서 권장되는 값으로 다음 표 1과 같이 jm12.2에서의 화면 크기에 따라 설정된다. 참고로 QP0의 값과 값은 표준화가 완료된 후에도 계속 바뀌고 있다.As described in Equation 2 The value is recommended in the standard and is set according to the screen size in jm12.2 as shown in Table 1. For reference, the value of QP 0 The value continues to change even after standardization is complete.
이처럼 프레임 레이트(frame rate), 화면 크기, 비트율에 따라서 4개의 값(10, 20, 25, 35) 중 하나의 값으로 첫 프레임에 대한 QP 값을 고정시켜 놓기 때문에 현재 권장되고 있는 적응적인 H.264/AVC 비트율 제어 방법은 입력 영상에 적응하기 위해, 즉 비트율 제어가 이루어지기 위해서 몇 초간의 시간이 필요하게 된다.As such, the adaptive H. currently recommended because the QP value for the first frame is fixed to one of four values (10, 20, 25, 35) according to the frame rate, screen size, and bit rate. The 264 / AVC bit rate control method requires several seconds to adapt to the input image, that is, to perform the bit rate control.
이 과정에서 오버플로우(overflow)나 언더플로우(underflow)가 많이 발생하고 화질 열화가 심하고, 화질 변화 또한 심해지게 된다.In this process, overflow or underflow occurs a lot, image quality deteriorates, and image quality changes also become severe.
예를 들어, QCIF(Quater Common Intermedicate Format) 크기의 이미지를 목표 비트가 544 Kbps이고, 초당 30프레임으로 부호화 하였을 경우, 상기 수학식 1 및 수학식 2에 적용하여 산출하면, 영상에 상관없이 초기 QP 값이 “10”으로 고정이 된다. 이런 경우, “football", "carphone" QCIF(176× 144) 영상을 1초당 30프레임, 지상파 DMB 표준 비트율인 544 Kbps로 부호화한 영상의 프레임별 PSNR 값과 부호화된 비트율을 살펴보면, 도 1 및 도 2와 같다. For example, when a target common intermedicate format (QCIF) size image is 544 Kbps and is encoded at 30 frames per second, it is applied to
즉 도 1을 통해 프레임 변화에 따른 PSNR을 살펴보면, 화질 변화가 크며, 신호 대 잡음 전력비(Power Signal-to-Noise Ratio : PSNR) 값 또한 변화가 크고 평균값으로도 화질 열화를 나타내는 것을 볼 수 있다. 또한 약 13번의 GOP(Group of Picture)에서 4번의 GOP가 목표 비트 양을 초과하였고, 7번의 GOP에서 목표 비트 양보다 훨씬 적은 비트수로 부호화 된 것을 볼 수 있다. 결과적으로 "football" 영상에 대해서는 비트율 제어를 실패한 것으로 볼 수 있다. In other words, referring to the PSNR according to the frame change through FIG. 1, the change in image quality is large, and the signal-to-noise ratio (PSNR) value is also large and the image quality deteriorates even as an average value. In addition, four GOPs exceeded the target bit amount in about 13 GOPs (Group of Picture), and 7 GOPs were encoded with a much smaller number of bits than the target bit amount. As a result, it can be seen that bit rate control has failed for the "football" image.
아울러, 도 2를 통해 프레임 변화에 따른 부호화된 비트율을 살펴보면, “carphone" 영상의 경우도 초기 30프레임까지는 프레임 간의 화질 변화가 급격한 것을 볼 수 있다.In addition, referring to the encoded bit rate according to the frame change through FIG. 2, even in the case of the “carphone” image, the image quality change between the frames is sharp up to the initial 30 frames.
이처럼 종래에 초기 QP 값 결정시 영상의 특징을 고려하지 않는 비트율 제어방법으로 인해 효율적인 비트율 제어가 이루어지지 못하게 되어 화질의 열화가 심해지고, 또한 화질 변화가 심해지게 됨을 알 수 있다.As described above, the bit rate control method, which does not consider the characteristics of the image when determining the initial QP value, prevents the effective bit rate control from occurring and thus deteriorates the image quality and the image quality.
따라서 본 발명은 상기와 같은 문제점을 해결하기 위해 안출한 것으로서, 영상의 특징을 고려한 초기 QP 값의 결정으로 입력 영상에 적응하는 시간을 줄이고 화질 변화를 줄일 수 있는 최적에 가까운 초기 양자화 파라미터(Quantization Parameter : QP) 값을 결정하는 방법을 제공하는데 그 목적이 있다.Accordingly, the present invention has been made to solve the above-mentioned problems, the initial quantization parameter (Quantization Parameter) close to the optimal to reduce the time to adapt to the input image and the image quality change by the determination of the initial QP value considering the characteristics of the image Its purpose is to provide a method for determining QP) values.
본 발명의 다른 목적은 첫 프레임을 부호한 후 나온 비트양을 기준으로 입력 영상의 특징을 예측하고 이 값을 이용해서 최적에 가까운 새로운 초기 QP 값을 예 측하는 방법을 제공하는데 있다.Another object of the present invention is to provide a method of predicting a feature of an input image based on the amount of bits after the first frame is coded, and using this value to predict a new initial QP value that is near optimal.
본 발명의 또 다른 목적은 H.264/AVC 비트율 제어 방식을 사용해서 고정된 초기 QP 값으로 부호화 후 나온 비트양이 기준 이상이나 이하일 경우 오버플로우(overflow)나 언더플로우(underflow)가 발생할 확률이 크므로 선형 QP 예측 모델(a linear QP prediction model)로 새로운 초기 QP 값을 정의하는 방법을 제공하는데 있다.It is still another object of the present invention that there is a possibility that overflow or underflow will occur if the amount of bits obtained after encoding with a fixed initial QP value using the H.264 / AVC bit rate control scheme is above or below the reference. The present invention provides a method for defining a new initial QP value with a linear QP prediction model.
상기와 같은 목적을 달성하기 위한 본 발명에 따른 초기 양자화 파라미터 결정 방법의 특징은 (A) 프레임 레이트(frame rate), 화면 크기, 비트율에 따라서 정의된 다수개의 값 중에서 하나를 선택하여 초기 양자화 파라미터(Quantization Parameter : QP) 값으로 정의하는 단계와, (B) 상기 정의된 초기 QP 값으로 첫 프레임을 부호화하여 비트양(bitrate)을 산출하는 단계와, (C) 상기 산출된 비트양을 기반으로 검출된 입력 영상의 특징을 이용해서 새로운 초기 QP 값을 생성하는 단계를 포함하는데 있다.A feature of the method for determining an initial quantization parameter according to the present invention for achieving the above object is (A) selecting an initial quantization parameter from one of a plurality of values defined according to frame rate, screen size, and bit rate. Defining a Quantization Parameter (QP) value, (B) calculating a bit rate by encoding the first frame with the defined initial QP value, and (C) detecting the bit rate based on the calculated bit amount And generating a new initial QP value using the features of the input image.
바람직하게 상기 (C) 단계는 상기 산출된 비트양을 임계치와 비교하는 단계와, 상기 비교결과 산출된 비트양이 임계치보다 크면, 상기 정의된 초기 QP 값을 더 큰 값으로 생성하는 단계와, 상기 비교결과 산출된 비트양이 임계치보다 작으면, 상기 정의된 초기 QP 값을 더 작은 값으로 생성하는 단계를 포함하는 것을 특징으로 한다.Preferably, the step (C) comprises the step of comparing the calculated amount of bits with a threshold value, and if the amount of bits calculated as a result of the comparison is greater than a threshold value, generating the defined initial QP value as a larger value; If the amount of bits calculated as a result of the comparison is smaller than the threshold value, generating the defined initial QP value to a smaller value.
바람직하게 상기 (C) 단계는 수학식 및 에 적용하여 새로운 초기 QP 값()을 생성하는 것을 특징으로 한다. (단, EncodedBits : 첫 프레임의 비트양, : 선형 관계 변수이다.)Preferably step (C) is And Is applied to the new initial QP value ( ) Is generated. (However, EncodedBits: bit amount of first frame, : Linear relational variable.)
이상에서 설명한 바와 같은 본 발명에 따른 초기 양자화 파라미터 결정 방법은 초기 QP 값 결정시 영상의 특징을 고려한 비트율 제어방법으로 인해 동영상 부호화시 픽쳐 형태에 따른 화질 저하의 정도를 균등하게 함으로써, 최적의 화질을 얻을 수 있는 효과가 있다.As described above, the method for determining an initial quantization parameter according to the present invention provides an optimal image quality by equalizing the degree of image quality deterioration according to the shape of a picture during video encoding due to a bit rate control method considering the characteristics of an image when determining an initial QP value. There is an effect that can be obtained.
또한, 이로 인해 궁극적으로 압축효율이 높은 동영상 부호화기를 구현할 수 있는 것이다.In addition, this can ultimately implement a video encoder with high compression efficiency.
본 발명의 다른 목적, 특성 및 이점들은 첨부한 도면을 참조한 실시예들의 상세한 설명을 통해 명백해질 것이다.Other objects, features and advantages of the present invention will become apparent from the following detailed description of embodiments with reference to the accompanying drawings.
본 발명에 따른 초기 양자화 파라미터 결정 방법의 바람직한 실시예에 대하여 첨부한 도면을 참조하여 설명하면 다음과 같다. 그러나 본 발명은 이하에서 개시되는 실시예에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있으며, 단지 본 실시예는 본 발명의 개시가 완전하도록 하며 통상의 지식을 가진자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이다.A preferred embodiment of the initial quantization parameter determination method according to the present invention will be described with reference to the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, but can be implemented in various different forms, only the embodiments to complete the disclosure of the present invention and complete the scope of the invention to those skilled in the art. It is provided to inform you.
도 3 은 본 발명의 실시예에 따른 H.264/AVC를 위한 초기 양자화 파라미터 결정 방법을 나타낸 흐름도이다.3 is a flowchart illustrating a method of determining an initial quantization parameter for H.264 / AVC according to an embodiment of the present invention.
도 3을 참조하여 설명하면, 먼저 H.264/AVC 비트율 제어방식으로 상기 수학식 1 및 수학식 2를 이용하여 프레임 레이트(frame rate), 화면 크기, 비트율에 따라서 4개의 값(10, 20, 25, 35) 중에서 하나를 선택하여 초기 양자화 파라미터(Quantization Parameter : 이하 “QP”라고 칭함) 값으로 정의한다(S10).Referring to FIG. 3, first, four values (10, 20, 3) according to frame rate, screen size, and bit
이어 상기 정의된 초기 QP 값으로 첫 프레임을 부호화(인코딩)하여 비트양(bitrate)을 산출한다(S20). 상기 첫 프레임의 부호화된 결과 산출된 비트양은 각 픽쳐에 대해 할당된 비트의 양으로서 각 픽쳐 형태에 따른 픽쳐 복잡도와 GOP(Group of Picture)내의 남은 비트의 양, 그리고 GOP내의 남은 픽쳐 수의 상관관계를 이용하여 산출한다.Subsequently, the first frame is encoded (encoded) using the defined initial QP value to calculate a bit rate (S20). The amount of bits calculated as the result of the encoding of the first frame is the amount of bits allocated for each picture, and the correlation between the picture complexity according to each picture type, the amount of bits remaining in the group of pictures, and the number of pictures remaining in the GOP Calculate using
이때 비트율(bitrate)과 QP 사이에는 반비례 관계가 있어서, QP 값이 증가하면 비트율은 감소하고, 반대로 QP 값이 감소하면 비트율은 증가하게 된다. 참고로, H.264/AVC에서는 통계적으로 QP 값이 12% 증가하면 비트율이 거의 12% 감소한다. 이처럼, 상기 첫 프레임의 부호화된 결과 산출된 비트양의 값과 최적의 초기 QP 값은 비례 관계에 있음을 알 수 있다. 따라서 상기 첫 프레임의 부호화된 결과 나온 비트양을 이용해서 최적의 초기 QP 값을 예측 할 수 있다. At this time, there is an inverse relationship between bitrate and QP. As the QP value increases, the bit rate decreases. On the contrary, when the QP value decreases, the bit rate increases. For reference, in H.264 / AVC, if the QP value increases by 12%, the bit rate decreases by almost 12%. As such, it can be seen that the value of the bit amount calculated as the result of the encoding of the first frame and the optimal initial QP value are in a proportional relationship. Therefore, the optimal initial QP value can be predicted using the amount of bits resulting from the coding of the first frame.
그러기 위해 상기 산출된 비트양을 임계치와 비교한다. 이때, 상기 임계치는 H.264/AVC의 표준화 과정 시에 정의된 목표 비트율(TargetBitRate)에 따라 정해지는 값으로서, PSNR 값 및 비트율 제어를 조절하기 위한 기준이 되는 값이다.To do this, the calculated amount of bits is compared with a threshold. In this case, the threshold value is determined according to a target bit rate (TargetBitRate) defined during the standardization process of H.264 / AVC, and is a reference value for adjusting the PSNR value and the bit rate control.
그리고 상기 비교결과 산출된 비트양이 임계치보다 크면(S40), 입력 영상에 적응하기 위해 GOP가 오버플로우(overflow)로 발생할 확률이 큰 것으로 판단하여 상기 정의된 초기 QP 값을 더 큰 값으로 정의하여 새로운 초기 QP 값을 생성한다(S50).If the amount of bits calculated as a result of the comparison is greater than the threshold value (S40), it is determined that the GOP is likely to overflow due to an overflow in order to adapt to the input image, and the defined initial QP value is defined as a larger value. A new initial QP value is generated (S50).
또한, 상기 비교결과 산출된 비트양이 임계치보다 작으면(S40), 입력 영상에 적응하기 위해 GOP가 언더플로우(underflow)로 발생할 확률이 큰 것으로 판단하여 상기 정의된 초기 QP 값을 더 작은 값으로 정의하여 새로운 초기 QP 값을 생성한다(S60).In addition, if the bit amount calculated as a result of the comparison is smaller than the threshold value (S40), it is determined that the GOP is likely to underflow to adapt to the input image, and thus the initial QP value defined as a smaller value is determined. Define to generate a new initial QP value (S60).
상기 새로운 초기 QP 값을 생성하는 방법을 상세히 설명하면 다음과 같다.A method of generating the new initial QP value will now be described in detail.
앞에서 살펴본 바와 같이 부호화된 비트양과 새로운 초기 QP 값 사이에는 다음 수학식 3 및 수학식 4와 같은 선형적인 관계가 있다. 즉, 새로운 초기 QP 값을 생성하기 위한 선형 QP 예측 모델은 첫 프레임을 부호화한 후 나온 비트양을 입력으로 하여 새로운 QP 값을 예측하는 선형 함수이다.As described above, there is a linear relationship between the encoded amount of bits and the new initial QP value as shown in Equations 3 and 4 below. That is, the linear QP prediction model for generating a new initial QP value is a linear function that predicts a new QP value by inputting the amount of bits output after encoding the first frame.
여기서 는 새로운 초기 QP 값이고, EncodedBits는 H.264/AVC 비트율 제어 방식으로 부호화된 첫 프레임의 비트양을 나타낸다. 그리고 의 경우는 선 형 관계 변수로 이미지와 부호화 조건에 따라서 변하는 변수이다. here Is the new initial QP value, and EncodedBits represents the bit amount of the first frame encoded by the H.264 / AVC bit rate control scheme. And Is a linear relationship variable that varies with image and encoding conditions.
한편 QP 값은 1 ~ 51 사이의 값이므로 상기 수학식 4를 이용해서 범위를 제한한다. 그리고 선형 관계 변수인 의 경우 부호화 조건에 따라 변하므로 다양한 영상에 대해서 실험을 수행하여 휴리스틱(Heuristic)하게 구해지는 것이 바람직하다. Meanwhile, since the QP value is a value between 1 and 51, the range is limited using Equation 4. And the linear relationship variable Since it varies depending on the encoding conditions, it is desirable to obtain a heuristic by performing experiments on various images.
다음 표 2는 현재 H.264/AVC가 사용되는 지상파 DMB 표준에서 주로 사용되는 영상의 크기인 QCIF에 대한 선형 관계 변수를 제시하였다. 표 2와 같이, 영상에 따라 조금의 차이는 있지만 대부분이 수학식 3의 선형 예측 관계를 유지하는 것을 확인하였다.Table 2 below presents the linear relationship variables for QCIF, the size of the image mainly used in the terrestrial DMB standard currently using H.264 / AVC. As shown in Table 2, although there are some differences depending on the image, it was confirmed that most of them maintain the linear prediction relationship of Equation 3.
실시예로서 QCIF(Quater Common Intermedicate Format) 크기의 영상 “Football"을 초당 30프레임에 비트율이 544Kbps로 부호화를 한다면 기존의 방법은 초기 QP 값을 ”10“으로 선택하지만 본 발명에 따른 방식은 다음 수학식 5에 의해 구하게 된다.According to an embodiment, if a video “Football” having a size of QCIF (Quater Common Intermedicate Format) is encoded at 30 frames per second at a bit rate of 544 Kbps, the conventional method selects an initial QP value of “10”, but the method according to the present invention is It is obtained by Equation 5.
상기 수학식 5와 같이, 첫 프레임을 Intra 프레임으로 기존의 방법으로 초기 QP를 “10”으로 부호화해서 나온 비트양이 “143272”비트이고, 선형 변수 값을 상기 표 2의 값을 사용하면, 최적의 초기 값은 “27”로 구해진다. As shown in Equation 5, the first frame is an Intra frame, and the amount of bits obtained by encoding the initial QP as “10” by the conventional method is “143272” bits, and a linear variable. Using the values in Table 2 above, the optimal initial The value is obtained as "27".
그리고 이렇게 구해진 새로운 초기 QP 값으로 첫 프레임을 재 부호화한 후(S70), 비트율 제어를 수행함으로서, 도 4 및 도 5와 같이 효율적인 비트율 제어의 결과를 얻을 수 있다(S80).After the first frame is re-encoded with the new initial QP value thus obtained (S70), by performing bit rate control, the result of efficient bit rate control can be obtained as shown in FIGS. 4 and 5 (S80).
도 4 는 본 발명의 실시예에 따른 “football" 및 "carphone" 영상을 비교하여 프레임 변화에 따른 PSNR 값을 나타낸 그래프이고, 도 5 는 본 발명의 실시예에 따른 “football" 및 "carphone" 영상을 비교하여 프레임 변화에 따른 부호화된 비트율을 나타낸 그래프이다.4 is a graph illustrating PSNR values according to frame changes by comparing “football” and “carphone” images according to an embodiment of the present invention, and FIG. 5 is a “football” and “carphone” image according to an embodiment of the present invention. Is a graph showing the coded bit rate according to the frame change.
즉, 도 4를 참조하여 프레임 변화에 따른 PSNR을 살펴보면, 화질 변화가 작으며, 신호 대 잡음 전력비(Power Signal-to-Noise Ratio : PSNR) 값 또한 변화가 작고 평균값으로는 화질 열화가 거의 없는 것으로 나타내는 것을 볼 수 있다. 또한 약 4번의 GOP(Group of Picture)에서 모두 적절하게 부호화 된 것을 볼 수 있다. 결과적으로 "football" 영상에 대해서는 비트율 제어가 적절히 잘 이루어진 것으로 볼 수 있다. That is, referring to FIG. 4, the PSNR according to the frame change is small, and the change in image quality is small, and the signal signal-to-noise ratio (PSNR) value is also small and there is almost no deterioration in image quality. You can see what it represents. In addition, it can be seen that all four GOPs (Group of Picture) are properly coded. As a result, the bitrate control can be regarded as well performed for the "football" image.
아울러, 도 5를 참조하여 프레임 변화에 따른 부호화된 비트율을 살펴보면, “carphone" 영상의 경우도 프레임 간의 화질 변화가 거의 없는 것을 볼 수 있다.In addition, referring to FIG. 5, when the encoded bit rate according to the frame change is examined, it may be seen that there is almost no change in image quality between frames even in a “carphone” image.
상기에서 설명한 본 발명의 기술적 사상은 바람직한 실시예에서 구체적으로 기술되었으나, 상기한 실시예는 그 설명을 위한 것이며 그 제한을 위한 것이 아님 을 주의하여야 한다. 또한, 본 발명의 기술적 분야의 통상의 지식을 가진자라면 본 발명의 기술적 사상의 범위 내에서 다양한 실시예가 가능함을 이해할 수 있을 것이다. 따라서 본 발명의 진정한 기술적 보호 범위는 첨부된 특허청구범위의 기술적 사상에 의해 정해져야 할 것이다. Although the technical spirit of the present invention described above has been described in detail in a preferred embodiment, it should be noted that the above-described embodiment is for the purpose of description and not of limitation. In addition, those skilled in the art will understand that various embodiments are possible within the scope of the technical idea of the present invention. Therefore, the true technical protection scope of the present invention will be defined by the technical spirit of the appended claims.
도 1 은 종래 기술에 따른 “football" 및 "carphone" 영상을 비교하여 프레임 변화에 따른 PSNR 값을 나타낸 그래프 1 is a graph illustrating PSNR values according to frame changes by comparing “football” and “carphone” images according to the prior art.
도 2 는 종래 기술에 따른“football" 및 "carphone" 영상을 비교하여 프레임 변화에 따른 부호화된 비트율을 나타낸 그래프2 is a graph illustrating encoded bit rates according to frame changes by comparing "football" and "carphone" images according to the prior art.
도 3 은 본 발명의 실시예에 따른 H.264/AVC를 위한 초기 양자화 파라미터 결정 방법을 나타낸 흐름도3 is a flowchart illustrating a method of determining an initial quantization parameter for H.264 / AVC according to an embodiment of the present invention.
도 4 는 본 발명의 실시예에 따른 “football" 및 "carphone" 영상을 비교하여 프레임 변화에 따른 PSNR 값을 나타낸 그래프4 is a graph showing PSNR values according to frame changes by comparing “football” and “carphone” images according to an embodiment of the present invention.
도 5 는 본 발명의 실시예에 따른 “football" 및 "carphone" 영상을 비교하여 프레임 변화에 따른 부호화된 비트율을 나타낸 그래프5 is a graph illustrating encoded bit rates according to frame changes by comparing “football” and “carphone” images according to an embodiment of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070090466A KR100930344B1 (en) | 2007-09-06 | 2007-09-06 | Initial Quantization Parameter Determination Method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070090466A KR100930344B1 (en) | 2007-09-06 | 2007-09-06 | Initial Quantization Parameter Determination Method |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20090025538A KR20090025538A (en) | 2009-03-11 |
KR100930344B1 true KR100930344B1 (en) | 2009-12-08 |
Family
ID=40693856
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020070090466A KR100930344B1 (en) | 2007-09-06 | 2007-09-06 | Initial Quantization Parameter Determination Method |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100930344B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10362307B2 (en) | 2016-09-09 | 2019-07-23 | Hanwha Techwin Co., Ltd. | Quantization parameter determination method and image capture apparatus |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
PT2811745T (en) | 2012-01-30 | 2018-12-17 | Samsung Electronics Co Ltd | Method and apparatus for hierarchical data unit-based video encoding and decoding comprising quantization parameter prediction |
US20160088298A1 (en) * | 2014-09-22 | 2016-03-24 | Ximin Zhang | Video coding rate control including target bitrate and quality control |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20000046467A (en) * | 1998-12-31 | 2000-07-25 | 윤종용 | Method for determining quantization step size |
KR100338725B1 (en) * | 1998-05-02 | 2002-07-18 | 윤종용 | Pictures coding method approximating coding bits to target coding bits and apparatus therefor |
-
2007
- 2007-09-06 KR KR1020070090466A patent/KR100930344B1/en not_active IP Right Cessation
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100338725B1 (en) * | 1998-05-02 | 2002-07-18 | 윤종용 | Pictures coding method approximating coding bits to target coding bits and apparatus therefor |
KR20000046467A (en) * | 1998-12-31 | 2000-07-25 | 윤종용 | Method for determining quantization step size |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10362307B2 (en) | 2016-09-09 | 2019-07-23 | Hanwha Techwin Co., Ltd. | Quantization parameter determination method and image capture apparatus |
US10999577B2 (en) | 2016-09-09 | 2021-05-04 | Hanwha Techwin Co., Ltd. | Quantization parameter determination method and image capture apparatus |
Also Published As
Publication number | Publication date |
---|---|
KR20090025538A (en) | 2009-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190297347A1 (en) | Picture-level rate control for video encoding | |
Wang et al. | Rate-distortion optimization of rate control for H. 264 with adaptive initial quantization parameter determination | |
JP5180294B2 (en) | Buffer-based rate control that utilizes frame complexity, buffer level, and intra-frame location in video encoding | |
US8406297B2 (en) | System and method for bit-allocation in video coding | |
US8179961B2 (en) | Method and apparatus for adapting a default encoding of a digital video signal during a scene change period | |
EP2293570A1 (en) | Content driven transcoder that orchestrates multimedia transcoding using content information | |
AU2006223416A1 (en) | Content adaptive multimedia processing | |
US20150288965A1 (en) | Adaptive quantization for video rate control | |
JP5133290B2 (en) | Video encoding apparatus and decoding apparatus | |
US8442113B2 (en) | Effective rate control for video encoding and transcoding | |
JP5649296B2 (en) | Image encoding device | |
KR100930344B1 (en) | Initial Quantization Parameter Determination Method | |
US9185420B2 (en) | Moving image coding apparatus and moving image coding method | |
de-Frutos-Lopez et al. | Two-level sliding-window VBR control algorithm for video on demand streaming | |
An et al. | Low-complexity motion estimation for H. 264/AVC through perceptual video coding. | |
JP5656575B2 (en) | Image encoding device | |
JP2005303555A (en) | Moving image encoding apparatus and its method | |
EP1921866A2 (en) | Content classification for multimedia processing | |
KR20010104058A (en) | Adaptive quantizer according to DCT mode in MPEG2 encoder | |
Miyaji et al. | A novel rate control method for H. 264 video coding | |
KR100939510B1 (en) | Bit rate control device of video encoder and bit rate control method the same | |
Pietrowcew et al. | Bit-rate control algorithm for ROI enabled video coding | |
Park | PSNR-based initial QP determination for low bit rate video coding | |
Kannur et al. | An enhanced rate control scheme with motion assisted slice grouping for low bit rate coding in H. 264 | |
Xie et al. | A novel parallel-friendly rate control scheme for HEVC |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20121119 Year of fee payment: 4 |
|
FPAY | Annual fee payment |
Payment date: 20131127 Year of fee payment: 5 |
|
FPAY | Annual fee payment |
Payment date: 20141125 Year of fee payment: 6 |
|
FPAY | Annual fee payment |
Payment date: 20151119 Year of fee payment: 7 |
|
FPAY | Annual fee payment |
Payment date: 20160928 Year of fee payment: 8 |
|
LAPS | Lapse due to unpaid annual fee |