JP4793150B2 - Video signal processing apparatus, video signal information processing method, and program - Google Patents

Video signal processing apparatus, video signal information processing method, and program Download PDF

Info

Publication number
JP4793150B2
JP4793150B2 JP2006194677A JP2006194677A JP4793150B2 JP 4793150 B2 JP4793150 B2 JP 4793150B2 JP 2006194677 A JP2006194677 A JP 2006194677A JP 2006194677 A JP2006194677 A JP 2006194677A JP 4793150 B2 JP4793150 B2 JP 4793150B2
Authority
JP
Japan
Prior art keywords
video signal
gop
encoding
encoded
information
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.)
Expired - Fee Related
Application number
JP2006194677A
Other languages
Japanese (ja)
Other versions
JP2008022476A (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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2006194677A priority Critical patent/JP4793150B2/en
Publication of JP2008022476A publication Critical patent/JP2008022476A/en
Application granted granted Critical
Publication of JP4793150B2 publication Critical patent/JP4793150B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、ビデオ信号処理装置およびビデオ信号情報処理方法、並びにプログラムに関し、特に、符号化ビデオ信号を復号し、再び符号化する場合に用いて好適なビデオ信号処理装置およびビデオ信号情報処理方法、並びにプログラムに関する。   The present invention relates to a video signal processing device, a video signal information processing method, and a program, and in particular, a video signal processing device and a video signal information processing method suitable for use when decoding and re-encoding an encoded video signal, And the program.

例えばMPEG2方式などによって圧縮符号化されているビデオ信号(以下、符号化ビデオ信号と称する)から所定の区間を抽出するような編集を行う場合、GOP(Group of Pictures)単位で抽出するときには、符号化ビデオ信号を復号することなく比較的少ない演算量で当該編集を行うことができる。   For example, when editing is performed such that a predetermined section is extracted from a video signal (hereinafter, referred to as an encoded video signal) that has been compression-encoded by the MPEG2 method or the like, when extracting in GOP (Group of Pictures) units, The editing can be performed with a relatively small amount of calculation without decoding the video signal.

これに対して、GOP単位よりも細かくフレーム単位で抽出するときには、各ピクチャ間で参照関係があるので復号処理は必須である。最も容易な方法は、符号化データを全て復号した後に所定の区間を抽出することである。   On the other hand, when extracting in frame units more finely than in GOP units, there is a reference relationship between pictures, so decoding processing is essential. The simplest method is to extract a predetermined section after decoding all the encoded data.

しかしながら、符号化データを全て復号しても、抽出後に再び符号化する必要があるので、無駄な演算を行っていることがあり、一連の処理を終えるのに時間を要してしまう。   However, even if all of the encoded data is decoded, it is necessary to encode again after extraction, and therefore a wasteful calculation may be performed, and it takes time to complete a series of processing.

そこで、符号化ビデオ信号からフレーム単位の所定の区間を抽出するような編集をできる限り速やかに実行する方法として、スマートレンダリング編集と称する技法が存在する(例えば、特許文献1参照)。   Thus, there is a technique called smart rendering editing as a method for executing editing as quickly as possible to extract a predetermined section in frame units from an encoded video signal (see, for example, Patent Document 1).

スマートレンダリング編集においては、例えば図1Aに示すような連続した符号化ビデオ信号から任意の区間を抽出する編集を行う場合、抽出区間のうち、先端と終端をそれぞれ含むGOPだけをそれぞれ復号して所望のフレームを抽出し、再び符号化するようにする。   In smart rendering editing, for example, when editing is performed to extract an arbitrary section from a continuous encoded video signal as shown in FIG. 1A, only GOPs each including a leading end and a terminal end are decoded and desired. Are extracted and encoded again.

他方、抽出区間のうち、先端のGOPと終端のGOP以外の中間部分については、符号化ビデオ信号そのままで復号することなく抽出するようにする。   On the other hand, in the extraction section, an intermediate portion other than the leading GOP and the terminating GOP is extracted without decoding the encoded video signal as it is.

このように、抽出区間の中間部分の復号処理と再符号化処理を省略することにより、編集に要する演算量を削減し、より速やかに抽出を実行することができる。   Thus, by omitting the decoding process and the re-encoding process of the intermediate part of the extraction section, the amount of calculation required for editing can be reduced and the extraction can be executed more quickly.

特開2004−104361号公報JP 2004-104361 A

上述したスマートレンダリング編集を行うと、その編集結果は図1Bに示すように、抽出区間の先端と終端には再符号化部分が生じ、これらに挟まれた、再符号化されずにそのまま出力される中間部分が存在することになる。   When the smart rendering editing described above is performed, the editing result is output as it is without being re-encoded as shown in FIG. 1B. There will be an intermediate part.

通常、符号化ビデオ信号を復号して再符号化した場合、再符号化のビットレートを編集前の符号化ビデオ信号と同じにしても、編集前の符号化ビデオ信号に比較して画質が劣化してしまうことが知られている。   Normally, when the encoded video signal is decoded and re-encoded, the image quality deteriorates compared to the encoded video signal before editing, even if the re-encoding bit rate is the same as that of the encoded video signal before editing. It is known to end up.

したがって、特に対策を施すことなくスマートレンダリング編集を行い、編集後の符号化ビデオ信号を再生すると、抽出区間の再符号化部分の画質が劣化していて印象が悪く、さらに再符号化部分と中間部分の境が明確となり視覚上目立ってしまうことになる。   Therefore, when smart rendering editing is performed without taking any special measures and the encoded video signal is reproduced after editing, the image quality of the re-encoded part of the extracted section is deteriorated and the impression is poor, and the re-encoded part and the intermediate The boundary of the part becomes clear and it becomes visually conspicuous.

特に、編集前の符号化ビデオ信号を符号化したエンコーダと、再符号化を行うエンコーダが同一ではなく、それぞれの目指す絵づくりのテイストが異なる場合、上述した問題はより顕著に表れてしまう。   In particular, when the encoder that encodes the encoded video signal before editing and the encoder that performs re-encoding are not the same, and the tastes of picture creation are different from each other, the above-described problem appears more prominently.

本発明はこのような状況に鑑みてなされたものであり、符号化ビデオ信号の編集において、再符号化部分の画質劣化を抑止できるようにするものである。   The present invention has been made in view of such circumstances, and is intended to prevent image quality deterioration of a re-encoded portion in editing of an encoded video signal.

本発明の一側面であるビデオ信号処理装置は、符号化ビデオ信号を復号し、その結果得られるビデオ信号を符号化するビデオ信号処理装置において、入力された符号化ビデオ信号を復号する復号手段と、入力された符号化ビデオ信号から、前記符号化ビデオ信号が符号化されたときの符号化設定にかかわる符号化情報を検出する検出手段と、検出された前記符号化情報に基づいて再符号化のときに用いる再符号化情報を生成する再符号化情報生成手段と、生成された前記再符号化情報に従い、復号結果のビデオ信号を符号化する符号化手段とを含み、前記検出手段および前記再符号化情報生成手段は、第1の画質劣化低減処理として、前記検出手段が、入力された符号化ビデオ信号から、処理対象とするGOPの平均ビットレートAおよび平均量子化値Bを符号化情報として検出し、前記再符号化情報生成手段が、前記GOPの前記平均ビットレートAおよび前記平均量子化値Bに基づいて、再符号化情報として、再符号化のときに用いる設定ビットレートCおよび初期量子化値DをC=A×B/D、C≧Aを満たすように生成し、第2の画質劣化低減処理として、前記検出手段が、入力された符号化ビデオ信号から、前記GOPのフレーム毎の符号量Ejおよび量子化値Qjを符号化情報として検出し、前記再符号化情報生成手段が、検出された前記GOPのフレーム毎の前記符号量Ejおよび前記量子化値Qjに基づいて、再符号化情報として、各ピクチャタイプの量子化オフセット値Qoi,Qop,Qobを次式
Qoi=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qop=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qob=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のBピクチャのフレームの総和を示す)
に従って生成する
A video signal processing apparatus according to one aspect of the present invention includes a decoding unit that decodes an input encoded video signal in a video signal processing apparatus that decodes an encoded video signal and encodes the resulting video signal. Detection means for detecting encoding information related to encoding settings when the encoded video signal is encoded from the input encoded video signal, and re-encoding based on the detected encoding information and re-encoding information generating means for generating a re-coded information to be used when, in accordance with the generated the re-encoded information, see contains an encoding means for encoding a video signal of the decoding result, said detecting means and The re-encoded information generating means is a first image quality deterioration reducing process in which the detecting means uses the input encoded video signal from the input encoded video signal as the GOP average bit rate A and average amount to be processed. When the re-encoding information generating means detects re-encoding information as re-encoding information based on the average bit rate A and the average quantized value B of the GOP. The set bit rate C and the initial quantized value D used in the above are generated so as to satisfy C = A × B / D, C ≧ A, and as the second image quality deterioration reduction process, the detection means A code amount Ej and a quantized value Qj for each frame of the GOP are detected as encoded information from a video signal, and the re-encoding information generation unit detects the code amount Ej for each frame of the detected GOP and the Based on the quantization value Qj, the quantization offset values Qoi, Qop, Qob of each picture type are expressed as
Qoi = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qop = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qob = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of B picture frames in the GOP)
Generate according to

本発明の一側面であるビデオ信号処理装置は、一連の符号化ビデオ信号のストリームを、再符号化する再符号化部分と、前記再符号化部分に挟まれた再符号化しない中間部分に分離する分離手段をさらに含むことができる。   A video signal processing apparatus according to an aspect of the present invention separates a series of encoded video signal streams into a re-encoded portion that is re-encoded and an intermediate portion that is sandwiched between the re-encoded portions and is not re-encoded. Separating means may be further included.

本発明の一側面であるビデオ信号処理方法は、符号化ビデオ信号を復号し、その結果得られるビデオ信号を符号化するビデオ信号処理装置のビデオ信号処理方法において、入力された符号化ビデオ信号を復号する復号ステップと入力された符号化ビデオ信号から、処理対象とするGOPの平均ビットレートAおよび平均量子化値Bを符号化情報として検出し、前記GOPの前記平均ビットレートAおよび前記平均量子化値Bに基づいて、再符号化情報として、再符号化のときに用いる設定ビットレートCおよび初期量子化値DをC=A×B/D、C≧Aを満たすように生成する第1の画質劣化低減処理ステップと、入力された符号化ビデオ信号から、前記GOPのフレーム毎の符号量Ejおよび量子化値Qjを符号化情報として検出し、検出された前記GOPのフレーム毎の前記符号量Ejおよび前記量子化値Qjに基づいて、再符号化情報として、各ピクチャタイプの量子化オフセット値Qoi,Qop,Qobを次式
Qoi=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qop=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qob=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のBピクチャのフレームの総和を示す)
に従って生成する第2の画質劣化低減処理ステップと、
生成された前記再符号化情報に従い、復号結果のビデオ信号を符号化する符号化ステップとを含む。
A video signal processing method according to one aspect of the present invention is a video signal processing method of a video signal processing apparatus that decodes an encoded video signal and encodes the resulting video signal. A decoding step for decoding, and an average bit rate A and an average quantization value B of a GOP to be processed are detected as encoding information from the input encoded video signal, and the average bit rate A and the average of the GOP Based on the quantized value B, as the re-encoded information, a set bit rate C and an initial quantized value D used for re-encoding are generated so as to satisfy C = A × B / D, C ≧ A. The image quality degradation reduction processing step 1 and the input encoded video signal are used to detect the code amount Ej and quantized value Qj for each frame of the GOP as encoded information, and the detected GO Based on the code amount Ej and the quantization value Qj for each P frame, the quantization offset values Qoi, Qop, Qob of each picture type are expressed as
Qoi = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qop = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qob = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of B picture frames in the GOP)
A second image quality degradation reduction processing step generated according to
An encoding step of encoding a video signal as a decoding result according to the generated re-encoding information.

本発明の一側面であるプログラムは、符号化ビデオ信号を復号し、その結果得られるビデオ信号を符号化するビデオ信号処理装置の制御用のプログラムであって、入力された符号化ビデオ信号を復号する復号ステップと入力された符号化ビデオ信号から、処理対象とするGOPの平均ビットレートAおよび平均量子化値Bを符号化情報として検出し、前記GOPの前記平均ビットレートAおよび前記平均量子化値Bに基づいて、再符号化情報として、再符号化のときに用いる設定ビットレートCおよび初期量子化値DをC=A×B/D、C≧Aを満たすように生成する第1の画質劣化低減処理ステップと、入力された符号化ビデオ信号から、前記GOPのフレーム毎の符号量Ejおよび量子化値Qjを符号化情報として検出し、検出された前記GOPのフレーム毎の前記符号量Ejおよび前記量子化値Qjに基づいて、再符号化情報として、各ピクチャタイプの量子化オフセット値Qoi,Qop,Qobを次式
Qoi=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qop=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qob=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のBピクチャのフレームの総和を示す)
に従って生成する第2の画質劣化低減処理ステップと、
生成された前記再符号化情報に従い、復号結果のビデオ信号を符号化する符号化ステップとを含む処理をビデオ信号処理装置のコンピュータに実行させる。
A program according to one aspect of the present invention is a program for controlling a video signal processing device that decodes an encoded video signal and encodes the resultant video signal, and decodes the input encoded video signal A decoding step, and an average bit rate A and an average quantization value B of a GOP to be processed are detected as encoded information from an input encoded video signal, and the average bit rate A and the average quantum of the GOP are detected. Based on the quantized value B, as the re-encoded information, a set bit rate C and an initial quantized value D used for re-encoding are generated so as to satisfy C = A × B / D, C ≧ A The image quality degradation reduction processing step of the GOP and the input encoded video signal are used to detect the code amount Ej and quantized value Qj for each frame of the GOP as encoding information, and the detected frame of the GOP is detected. Based on the code amount Ej and the quantization value Qj for each arm, as the re-encoding information, the following equation each picture type of the quantization offset value Qol, Qop, the Qob
Qoi = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qop = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qob = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of B picture frames in the GOP)
A second image quality degradation reduction processing step generated according to
In accordance with the generated re-encoding information, the computer of the video signal processing apparatus executes a process including an encoding step of encoding the video signal as a decoding result.

本発明の一側面においては、入力された符号化ビデオ信号復号され入力された符号化ビデオ信号から、処理対象とするGOPの平均ビットレートAおよび平均量子化値Bが符号化情報として検出され、GOPの平均ビットレートAおよび平均量子化値Bに基づいて、再符号化情報として、再符号化のときに用いる設定ビットレートCおよび初期量子化値DがC=A×B/D、C≧Aを満たすように生成される。また、入力された符号化ビデオ信号から、GOPのフレーム毎の符号量Ejおよび量子化値Qjが符号化情報として検出し、検出されたGOPのフレーム毎の符号量Ejおよび量子化値Qjに基づいて、再符号化情報として、各ピクチャタイプの量子化オフセット値Qoi,Qop,Qobが次式
Qoi=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qop=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qob=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のBピクチャのフレームの総和を示す)
に従って生成される。さらに、生成された再符号化情報に従い、復号結果のビデオ信号が符号化される。
In one aspect of the present invention, it is decoded by the input coded video signal, from the input encoded video signal, the average of the GOP to be processed bit rate A and the average quantization value B detected as encoded information Based on the average bit rate A and average quantization value B of the GOP, the set bit rate C and the initial quantization value D used at the time of re-encoding are C = A × B / D, as re-encoding information, It is generated so as to satisfy C ≧ A. Also, the code amount Ej and quantized value Qj for each GOP frame are detected as encoded information from the input encoded video signal, and based on the detected code amount Ej and quantized value Qj for each GOP frame. As re-encoding information, the quantization offset values Qoi, Qop, Qob of each picture type are
Qoi = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qop = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qob = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of B picture frames in the GOP)
Is generated according to Further, the decoded video signal is encoded according to the generated re-encoding information.

本発明の一側面によれば、符号化ビデオ信号の編集において、再符号化部分の画質劣化を抑止することが可能となる。また、編集結果における再符号化部分の境が目立たないようにすることができる。   According to one aspect of the present invention, it is possible to suppress deterioration in image quality of a re-encoded portion when editing an encoded video signal. In addition, the boundary of the re-encoded part in the edited result can be made inconspicuous.

以下、本発明を適用した具体的な実施の形態について、図面を参照しながら詳細に説明する。   Hereinafter, specific embodiments to which the present invention is applied will be described in detail with reference to the drawings.

図2は、本発明の一実施の形態である編集装置の第1の構成例を示している。この編集装置10は、前段から入力される符号化ビデオ信号をスマートレンダリング編集するものであり、再符号化に際して後述する第1の劣化低減処理を実行することによってスマートレンダリング編集に伴う再符号化部分の画質劣化を抑止するようになされている。さらに、第2の劣化低減処理を実行することによってスマートレンダリング編集に伴う再符号化部分の絵づくりのテイストを、編集前の符号化ビデオ信号の絵づくりのテイストに基づいて調整することによって、再符号化部分と中間部分の境を目立たせなくするようになされている。   FIG. 2 shows a first configuration example of an editing apparatus according to an embodiment of the present invention. The editing apparatus 10 performs smart rendering editing of the encoded video signal input from the previous stage, and performs a first deterioration reduction process described later in the re-encoding, thereby performing a re-encoding portion accompanying the smart rendering editing. Image quality degradation is suppressed. Furthermore, by performing the second deterioration reduction process, the re-encoding portion painting taste associated with smart rendering editing is adjusted based on the pre-editing coding video signal taste. The boundary between the encoded part and the intermediate part is made inconspicuous.

なお、入力される符号化ビデオ信号は、H.264/AVC方式で符号化されていることを想定する。以下、入力される符号化ビデオ信号を、入力H.264/AVCストリームとも記述する。入力H.264/AVCストリームを符号化したエンコーダの目指す絵づくりのテイストと、この編集装置10に内蔵されるエンコーダ(再符号化部14)の目指す絵づくりのテイストとは、必ずしも一致している必要はない。   It is assumed that the input encoded video signal is encoded by the H.264 / AVC format. Hereinafter, the input encoded video signal is also described as an input H.264 / AVC stream. The taste of picture creation aimed by the encoder that encodes the input H.264 / AVC stream and the taste of picture creation aimed by the encoder (re-encoding unit 14) built in the editing apparatus 10 are not necessarily the same. There is no need.

編集装置10は、抽出区間を指定するユーザの操作を入力する操作入力部11、入力H.264/AVCストリームのうち、再符号化を行う抽出区間の先端のピクチャを含むGOPの符号化ビデオ信号と、抽出区間の終端のフレームを含むGOPの符号化ビデオ信号を復号部13および情報抽出部15に出力し、抽出区間のうちの再符号化しない中間部分の符号化ビデオ信号を結合部17に出力する切換部12、切換部12から入力される符号化ビデオ信号を復号する復号部13、復号結果のビデオ信号のうち、抽出区間に含まれるフレームを、情報解析部16から通知される設定情報に従って再符号化する再符号化部14、切換部12から入力される符号化ビデオ信号から所定の情報を抽出する情報抽出部15、抽出された所定の情報にも基づいて再符号化時の設定情報を決定する情報解析部16、および、再符号化結果の符号化ビデオ信号と、再符号化されない中間部分の符号化ビデオ信号とを結合して出力H.264/AVCストリームとして後段に出力する結合部17から構成される。   The editing apparatus 10 includes an operation input unit 11 for inputting a user operation for designating an extraction section, and a GOP encoded video signal including a picture at the leading end of the extraction section to be re-encoded from the input H.264 / AVC stream. And the GOP encoded video signal including the frame at the end of the extraction interval to the decoding unit 13 and the information extraction unit 15, and the encoded video signal of the intermediate portion of the extraction interval that is not re-encoded to the combining unit 17. Setting information notified from the information analysis unit 16 of a frame included in the extraction section of the decoding unit 13 that decodes the encoded video signal input from the switching unit 12 to be output, the decoding unit 12, and the decoding result video signal The re-encoding unit 14 for re-encoding according to the above, the information extracting unit 15 for extracting predetermined information from the encoded video signal input from the switching unit 12, and the re-encoding based on the extracted predetermined information The information analysis unit 16 that determines constant information, and the encoded video signal of the re-encoded result and the encoded video signal of the intermediate part that is not re-encoded are combined and output to the subsequent stage as an output H.264 / AVC stream It is comprised from the coupling | bond part 17 which does.

次に図3は、本発明の一実施の形態である編集装置の第2の構成例を示している。この第2の構成例は、第1の構成例における復号部13と情報抽出部15を一体化して、復号情報抽出部21としたものである。その他の構成要素については、第1の構成例を同様であり、同一の符号を付しているので、その説明は省略する。   Next, FIG. 3 shows a second configuration example of the editing apparatus according to the embodiment of the present invention. In the second configuration example, the decoding unit 13 and the information extraction unit 15 in the first configuration example are integrated to form a decoded information extraction unit 21. The other components are the same as those in the first configuration example, and are given the same reference numerals, and the description thereof is omitted.

次に、本発明の一実施の形態である編集装置10によるスマートレンダリング編集処理について、図4のフローチャートを参照して説明する。   Next, smart rendering editing processing by the editing apparatus 10 according to an embodiment of the present invention will be described with reference to the flowchart of FIG.

ステップS1において、操作入力部11は、一連の入力H.264/AVCストリームから抽出する区間を指定するユーザの操作を受け付け、指定された抽出区間を切換部12に通知する。この通知に対応し、切換部12は、入力H.264/AVCストリームのうち、再符号化を行う抽出区間の先端のフレームを含むGOPの符号化ビデオ信号と、抽出区間の終端のフレームを含むGOPの符号化ビデオ信号を復号部13および情報抽出部15に出力し、抽出区間のうちの再符号化しない中間部分の符号化ビデオ信号を結合部17に出力する。   In step S <b> 1, the operation input unit 11 accepts a user operation that specifies a section to be extracted from a series of input H.264 / AVC streams, and notifies the switching unit 12 of the specified extraction section. In response to this notification, the switching unit 12 includes, from the input H.264 / AVC stream, a GOP encoded video signal including a frame at the head of the extraction section to be re-encoded and a frame at the end of the extraction section. The GOP encoded video signal is output to the decoding unit 13 and the information extracting unit 15, and the encoded video signal of the intermediate part that is not re-encoded in the extracted section is output to the combining unit 17.

ステップS2において、復号部13は、切換部12から入力された抽出区間の先端部分のGOPまたは終端部分のGOPの符号化ビデオ信号を復号し、その結果得られるビデオ信号を再符号化部14に出力する。   In step S <b> 2, the decoding unit 13 decodes the encoded video signal of the GOP of the leading end portion or the GOP of the terminal end portion of the extraction section input from the switching unit 12, and sends the resulting video signal to the re-encoding unit 14. Output.

ステップS3において、情報抽出部15および情報解析部16は、第1の劣化低減処理を実行し、再符号化における設定情報を決定して再符号化部14に通知する。ステップS4において、情報抽出部15および情報解析部16は、第2の劣化低減処理を実行し、再符号化における設定情報を決定して再符号化部14に通知する。なお、第1および第2の劣化低減処理については後述する。   In step S3, the information extraction unit 15 and the information analysis unit 16 execute a first deterioration reduction process, determine setting information in re-encoding, and notify the re-encoding unit 14. In step S4, the information extraction unit 15 and the information analysis unit 16 execute a second deterioration reduction process, determine setting information in re-encoding, and notify the re-encoding unit 14. The first and second deterioration reduction processes will be described later.

ステップS5において、再符号化部14は、復号結果のビデオ信号のうち、抽出区間に含まれるピクチャを、第1および第2の劣化低減処理によって決定された設定情報に従って再符号化し、その結果得られる符号化ビデオ信号を結合部17に出力する。結合部17は、再符号化結果の符号化ビデオ信号と、再符号化されない中間部分の符号化ビデオ信号とを結合して出力H.264/AVCストリームとして後段に出力する。   In step S5, the re-encoding unit 14 re-encodes the pictures included in the extraction interval in the decoded video signal according to the setting information determined by the first and second deterioration reduction processes, and obtains the result. The encoded video signal is output to the combining unit 17. The combining unit 17 combines the encoded video signal as a result of re-encoding and the encoded video signal of the intermediate part that is not re-encoded, and outputs it as an output H.264 / AVC stream to the subsequent stage.

以上のように、編集装置10によるスマートレンダリング編集では、第1および第2の劣化低減処理により再符号化時の設定情報が決定されるので、再符号化部分を再生した時の画質劣化を抑止することができる。また、再符号化部分と再符号化しない部分の境が目立つ事態を防ぐことができる。   As described above, in smart rendering editing by the editing apparatus 10, setting information at the time of re-encoding is determined by the first and second deterioration reduction processes, so that deterioration in image quality when the re-encoded portion is reproduced is suppressed. can do. In addition, it is possible to prevent a situation where the boundary between the re-encoded portion and the portion not re-encoded is conspicuous.

なお、上述した説明では、第1および第2の劣化低減処理の両方を実行するものとして説明したが、第1または第2の劣化低減処理の少なくとも一方を実行するだけでもよい。   In the above description, it has been described that both the first and second deterioration reduction processes are executed. However, at least one of the first or second deterioration reduction process may be executed.

次に、ステップS3における第1の劣化低減処理について、図5のフローチャートを参照して詳述する。   Next, the first deterioration reduction process in step S3 will be described in detail with reference to the flowchart of FIG.

ステップS11において、情報抽出部15は、切換部12から入力された再符号化する先端部分のGOP(または終端部分のGOP)の符号化ビデオ信号を必要に応じて部分的に復号し、その平均ビットレートAと平均量子化値Bとを抽出して情報解析部16に出力する。ステップS12において、情報解析部16は、抽出された平均ビットレートAと平均量子化値Bとを次式に適用して、再符号化時の設定ビットレートCと初期量子化値Dを演算し、演算結果を設定情報として再符号化部14に出力する。   In step S11, the information extraction unit 15 partially decodes the encoded video signal of the GOP (or GOP of the end portion) to be re-encoded and input from the switching unit 12 as necessary, and averages The bit rate A and the average quantized value B are extracted and output to the information analysis unit 16. In step S12, the information analysis unit 16 applies the extracted average bit rate A and average quantized value B to the following equation, and calculates the set bit rate C and initial quantized value D during re-encoding. The calculation result is output to the re-encoding unit 14 as setting information.

C=A*B/最小量子化値; D=最小量子化値;   C = A * B / minimum quantization value; D = minimum quantization value;

ただし、設定ビットレートCと初期量子化値Dを求める式は、上記以外であっても構わない。運用上許される最大ビットレートを超えないようにしてもよいし、許容できる画質を維持する上で必要な最小量子化値を下回らないようにしてもよい。   However, the formula for obtaining the set bit rate C and the initial quantization value D may be other than the above. The maximum bit rate allowed for operation may not be exceeded, or the minimum quantization value necessary for maintaining acceptable image quality may not be exceeded.

ここで、最小量子化値は視覚的に画質の劣化を感じない量子化値を指す。この演算結果である設定ビットレートCと初期量子化値Dは、平均ビットレートAと平均量子化値Bに比較して以下の関係が成立するので、再符号化部分の画質劣化を視覚的に抑止することができる。
設定ビットレートC ≧ 平均ビットレートA
初期量子化値D < 平均量子化値B
Here, the minimum quantized value refers to a quantized value that does not visually cause deterioration in image quality. The set bit rate C and the initial quantized value D, which are the results of this calculation, have the following relationship compared to the average bit rate A and the average quantized value B. Can be deterred.
Set bit rate C ≥ Average bit rate A
Initial quantization value D <average quantization value B

なお、編集前のGOP先頭のピクチャの量子化値を平均量子化値Bにしておけば、復号部13の復号処理に対する、情報抽出部15および情報解析部16による第1の劣化低減処理の遅延量を減らすことができる。   If the quantized value of the GOP head picture before editing is set to the average quantized value B, the delay of the first deterioration reducing process by the information extracting unit 15 and the information analyzing unit 16 with respect to the decoding process of the decoding unit 13 will be described. The amount can be reduced.

なお、設定ビットレートCと初期量子化値Dの算出に、平均ビットレートAや平均量子化値B以外を用いることにしてもよい。例えば、動きベクトルの個数や大きさを抽出し、それらの符号化情報を加味して決めてもよい。   Note that other than the average bit rate A and the average quantized value B may be used for calculating the set bit rate C and the initial quantized value D. For example, the number and size of motion vectors may be extracted and determined by taking into account their encoding information.

次に、ステップS4における第2の劣化低減処理の第1の動作例について、図6のフローチャートを参照して詳述する。   Next, a first operation example of the second deterioration reduction process in step S4 will be described in detail with reference to the flowchart of FIG.

ステップS21において、情報抽出部15は、切換部12から入力された再符号化する先端部分のGOP(または終端部分のGOP)の符号化ビデオ信号を必要に応じて部分的に復号し、GOP全体の平均量子化値Bと、当該GOPに含まれるI,P,Bピクチャそれぞれの平均量子化値Qi,Qp,Qbとを抽出して情報解析部16に出力する。なお、GOP全体の平均量子化値Bについては、第1の劣化低減処理で抽出した値を流用することができる。あるいは、GOP内のIピクチャの平均量子化値をBとして近似することもできる。   In step S21, the information extraction unit 15 partially decodes the encoded video signal of the front-end GOP (or the final-end GOP) to be re-encoded, which is input from the switching unit 12, as necessary, and the entire GOP And the average quantized values Qi, Qp, and Qb of the I, P, and B pictures included in the GOP are extracted and output to the information analysis unit 16. For the average quantization value B of the entire GOP, the value extracted in the first deterioration reduction process can be used. Alternatively, the average quantization value of the I picture in the GOP can be approximated as B.

ステップS22において、情報解析部16は、抽出されたGOP全体の平均量子化値Bと当該GOPに含まれるI,P,Bピクチャそれぞれの平均量子化値Qi,Qp,Qbとを次式に適用して、再符号化時のI,P,Bピクチャそれぞれの量子化オフセット値Qoi,Qop,Qobを演算し、演算結果を設定情報として再符号化部14に出力する。
Qoi=Qi−B
Qop=Qp−B
Qob=Qb−B
In step S22, the information analysis unit 16 applies the extracted average quantization value B of the entire GOP and the average quantization values Qi, Qp, and Qb of the I, P, and B pictures included in the GOP to the following equations. Then, the quantization offset values Qoi, Qop, and Qob of the I, P, and B pictures at the time of re-encoding are calculated, and the calculation result is output to the re-encoding unit 14 as setting information.
Qoi = Qi-B
Qop = Qp-B
Qob = Qb-B

ただし、量子化オフセット値Qoi,Qop,Qobを求める式は、上記以外であっても構わない。   However, the expression for obtaining the quantization offset values Qoi, Qop, Qob may be other than the above.

この設定情報に基づき、再符号化部14では、I,P,Bピクチャそれぞれ本来の量子化値baseQi,baseQp,baseQbに量子化オフセット値Qoi,Qop,Qobが加算されて、再符号化における量子化が行われる。
Iピクチャの量子化値=baseQi+Qoi
Pピクチャの量子化値=baseQp+Qop
Bピクチャの量子化値=baseQb+Qob
Based on this setting information, the re-encoding unit 14 adds the quantized offset values Qoi, Qop, Qob to the original quantized values baseQi, baseQp, baseQb for the I, P, B pictures, respectively, and re-quantizes Is done.
Quantized value of I picture = baseQi + Qoi
P picture quantization value = baseQp + Qop
B picture quantization value = baseQb + Qob

この第2の劣化低減処理の第1の動作例により、編集前の符号化ビデオ信号において各ピクチャのビット割り当ての比が再符号化結果にも反映される。したがって、編集前の符号化ビデオ信号の絵づくりのテイストを再符号化結果に継続させることできる。したがって、再符号化部分と中間部分の境を目立たなくすることができる。   By the first operation example of the second deterioration reduction process, the bit allocation ratio of each picture in the encoded video signal before editing is reflected in the re-encoding result. Therefore, the picture-making taste of the encoded video signal before editing can be continued in the re-encoding result. Therefore, the boundary between the re-encoded part and the intermediate part can be made inconspicuous.

次に、ステップS4における第2の劣化低減処理の第2の動作例について、図7のフローチャートを参照して詳述する。   Next, a second operation example of the second deterioration reduction process in step S4 will be described in detail with reference to the flowchart of FIG.

ステップS31において、情報抽出部15は、切換部12から入力された再符号化する先端部分のGOP(または終端部分のGOP)の符号化ビデオ信号を必要に応じて部分的に復号し、GOP全体の平均量子化値Bと、当該GOPに含まれる各フレームの符号量Ejと量子化値Qjとを抽出して情報解析部16に出力する。GOP全体の平均量子化値Bについては、第1の劣化低減処理で抽出した値を流用することができる。各フレームの符号量Ejと量子化値Qjは、スキップマクロブロックやCPB=0の情報を参照するとより正確に抽出することができる。   In step S31, the information extraction unit 15 partially decodes the encoded video signal of the front-end GOP (or the end-part GOP) to be re-encoded, which is input from the switching unit 12, as necessary, and the entire GOP The average quantization value B, the code amount Ej of each frame included in the GOP, and the quantization value Qj are extracted and output to the information analysis unit 16. As the average quantization value B of the entire GOP, the value extracted in the first deterioration reduction process can be used. The code amount Ej and the quantized value Qj of each frame can be extracted more accurately by referring to the skip macroblock and CPB = 0 information.

ステップS32において、情報解析部16は、抽出されたGOP全体の平均量子化値Bと、当該GOPに含まれる各フレームの符号量Ejと量子化値Qjとを次式に適用して、I,P,Bピクチャそれぞれの平均量子化値AvQi,AvQp,AvQbを演算する。
AvQi=Σ(Ej*Qj)/Σ(Ej)
ΣはGOP内のIピクチャのフレームの総和を示す。
AvQp=Σ(Ej*Qj)/Σ(Ej)
ΣはGOP内のPピクチャのフレームの総和を示す
AvQb=Σ(Ej*Qj)/Σ(Ej)
ΣはGOP内のBピクチャのフレームの総和を示す
In step S32, the information analysis unit 16 applies the average quantization value B of the entire extracted GOP, the code amount Ej of each frame included in the GOP, and the quantization value Qj to the following equations, The average quantization values AvQi, AvQp, AvQb of the P and B pictures are calculated.
AvQi = Σ (Ej * Qj) / Σ (Ej)
Σ indicates the sum total of the frames of the I picture in the GOP.
AvQp = Σ (Ej * Qj) / Σ (Ej)
Σ indicates the sum of frames of P picture in GOP AvQb = Σ (Ej * Qj) / Σ (Ej)
Σ indicates the sum of B picture frames in the GOP

さらに、演算した平均量子化値AvQi,AvQp,AvQbを次式に適用して再符号化時のI,P,Bピクチャそれぞれの量子化オフセット値Qoi,Qop,Qobを演算し、演算結果を設定情報として再符号化部14に出力する。
Qoi=AvQi−B
Qop=AvQp−B
Qob=AvQb−B
Further, the calculated average quantization values AvQi, AvQp, and AvQb are applied to the following equations to calculate the quantization offset values Qoi, Qop, and Qob of the I, P, and B pictures at the time of re-encoding, and the calculation result is set. Information is output to the re-encoding unit 14.
Qoi = AvQi-B
Qop = AvQp-B
Qob = AvQb-B

ただし、量子化オフセット値Qoi,Qop,Qobを求める式は、上記以外であっても構わない。例えば、GOP全体の平均量子化値Bを、次式を用いて演算し、量子化オフセット値Qoi,Qop,Qobを求めてもよい。
B=Σ(Ej*Qj)/Σ(Ej)
ΣはGOP内のピクチャのフレームの総和を示す。
Qoi=Qi−B
Qop=Qp−B
Qob=Qb−B
However, the expression for obtaining the quantization offset values Qoi, Qop, Qob may be other than the above. For example, the average quantization value B of the entire GOP may be calculated using the following equation to obtain the quantization offset values Qoi, Qop, Qob.
B = Σ (Ej * Qj) / Σ (Ej)
Σ indicates the total sum of frames of pictures in the GOP.
Qoi = Qi-B
Qop = Qp-B
Qob = Qb-B

この設定情報に基づき、再符号化部14では、I,P,Bピクチャそれぞれ本来の量子化値baseQi,baseQp,baseQbに量子化オフセット値Qoi,Qop,Qobが加算されて、再符号化における量子化が行われる。
Iピクチャの量子化値=baseQi+Qoi
Pピクチャの量子化値=baseQp+Qop
Bピクチャの量子化値=baseQb+Qob
Based on this setting information, the re-encoding unit 14 adds the quantized offset values Qoi, Qop, Qob to the original quantized values baseQi, baseQp, baseQb for the I, P, B pictures, respectively, and re-quantizes Is done.
Quantized value of I picture = baseQi + Qoi
P picture quantization value = baseQp + Qop
B picture quantization value = baseQb + Qob

この第2の劣化低減処理の第2の動作例により、編集前の符号化ビデオ信号において各ピクチャに属するフレームの難易度に応じて、再符号化時の各ピクチャのビット割り当てが決定される。したがって、編集前の符号化ビデオ信号の絵づくりのテイストを再符号化結果に反映させることできる。したがって、再符号化部分と中間部分の境を目立たなくすることができる。   According to the second operation example of the second deterioration reduction process, the bit allocation of each picture at the time of re-encoding is determined according to the difficulty level of the frame belonging to each picture in the encoded video signal before editing. Therefore, it is possible to reflect the picture-making taste of the encoded video signal before editing in the re-encoding result. Therefore, the boundary between the re-encoded part and the intermediate part can be made inconspicuous.

なお、上述した説明では、GOPに含まれる各ピクチャの量子化オフセット量を求めることによって、再符号化前後においてピクチャ間の絵づくりのテイストを維持するようにしているが、上述した説明におけるGOPとピクチャを、それぞれピクチャとマクロブロックに置換することにより、再符号化前後においてピクチャ内の絵づくりのテイストを維持するようにすることができる。   In the above description, the quantization offset amount of each picture included in the GOP is obtained to maintain the taste of picture creation between pictures before and after re-encoding. By replacing the picture with a picture and a macroblock, respectively, it is possible to maintain the taste of picture creation in the picture before and after re-encoding.

第2の劣化低減処理においては、上述した第1または第2の動作例の一方を実行すればよい。   In the second deterioration reduction process, one of the first and second operation examples described above may be executed.

なお、本発明は、本実施の形態である編集装置10のようにスマートレンダリング編集処理を行う機器に限らず、符号化ビデオデータを復号し、再び符号化する処理を行うあらゆる機器に適用することができる。   Note that the present invention is not limited to a device that performs smart rendering editing processing, such as the editing apparatus 10 according to the present embodiment, but may be applied to any device that performs processing of decoding encoded video data and encoding again. Can do.

また、本発明は、H.264/AVC方式以外の符号化方式で符号化されている符号化ビデオ信号を編集する場合にも適用することができる。   The present invention can also be applied to the case of editing an encoded video signal encoded by an encoding method other than the H.264 / AVC method.

また、本発明は、例えば、符号化前の符号化方式と編集後の符号化方式が異なる場合(例えば符号化ビデオ信号をフォーマット変換するような場合)にも適用することができる。   The present invention can also be applied, for example, when the encoding method before encoding is different from the encoding method after editing (for example, when the encoded video signal is subjected to format conversion).

上述した一連の処理は、ハードウェアにより実行させることもできるが、ソフトウェアにより実行させることもできる。一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムが、専用のハードウェアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば図8に示すような汎用のパーソナルコンピュータなどに、記録媒体からインストールされる。   The series of processes described above can be executed by hardware, but can also be executed by software. When a series of processing is executed by software, a program constituting the software may execute various functions by installing a computer incorporated in dedicated hardware or various programs. For example, it is installed from a recording medium in a general-purpose personal computer as shown in FIG.

このパーソナルコンピュータ50は、CPU(Central Processing Unit)51を内蔵している。CPU51にはバス54を介して、入出力インタフェース55が接続されている。バス54には、ROM(Read Only Memory)52およびRAM(Random Access Memory)53が接続されている。   The personal computer 50 includes a CPU (Central Processing Unit) 51. An input / output interface 55 is connected to the CPU 51 via the bus 54. A ROM (Read Only Memory) 52 and a RAM (Random Access Memory) 53 are connected to the bus 54.

入出力インタフェース55には、ユーザが操作コマンドを入力するキーボード、マウス等の入力デバイスよりなる入力部56、再生したビデオ信号の映像や操作画面を表示するCRT(Cathode Ray Tube)またはLCD(Liquid Crystal Display)等のディスプレイよりなる出力部57、プログラムや各種データを格納するハードディスクドライブなどよりなる記憶部58、およびモデム、LAN(Local Area Network)アダプタなどよりなり、インタネットに代表されるネットワークを介した通信処理を実行する通信部59が接続されている。また、磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disc-Read Only Memory)、DVD(Digital Versatile Disc)を含む)、光磁気ディスク(MD(Mini Disc)を含む)、もしくは半導体メモリなどの記録媒体61に対してデータを読み書きするドライブ60が接続されている。   The input / output interface 55 includes an input unit 56 including an input device such as a keyboard and a mouse for a user to input an operation command, a CRT (Cathode Ray Tube) or an LCD (Liquid Crystal) for displaying a reproduced video signal image and an operation screen. Output unit 57 composed of a display such as a display), storage unit 58 composed of a hard disk drive for storing programs and various data, and a modem, a LAN (Local Area Network) adapter, etc., via a network represented by the Internet A communication unit 59 that executes communication processing is connected. Also, a magnetic disk (including a flexible disk), an optical disk (including a CD-ROM (Compact Disc-Read Only Memory), a DVD (Digital Versatile Disc)), a magneto-optical disk (including an MD (Mini Disc)), or a semiconductor A drive 60 for reading / writing data from / to a recording medium 61 such as a memory is connected.

このパーソナルコンピュータ50に上述した一連の処理を実行させるプログラムは、記録媒体61に格納された状態でパーソナルコンピュータ50に供給され、ドライブ60によって読み出されて記憶部58に内蔵されるハードディスクドライブにインストールされている。記憶部58にインストールされているプログラムは、入力部56に入力されるユーザからのコマンドに対応するCPU51の指令によって、記憶部58からRAM53にロードされて実行される。   A program for causing the personal computer 50 to execute the above-described series of processing is supplied to the personal computer 50 while being stored in the recording medium 61, read by the drive 60, and installed in a hard disk drive built in the storage unit 58. Has been. The program installed in the storage unit 58 is loaded from the storage unit 58 to the RAM 53 and executed by a command of the CPU 51 corresponding to a command from the user input to the input unit 56.

なお、本明細書において、プログラムに基づいて実行されるステップは、記載された順序に従って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。   In this specification, the steps executed based on the program are executed in parallel or individually even if they are not necessarily processed in time series, as well as processes executed in time series according to the described order. It also includes processing.

なお、本発明の実施の形態は、上述した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変更が可能である。   The embodiment of the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention.

スマートレンダリング編集を説明するための図である。It is a figure for demonstrating smart rendering edit. 本発明を適用した編集装置の第1の構成例を示すブロック図である。It is a block diagram which shows the 1st structural example of the editing apparatus to which this invention is applied. 本発明を適用した編集装置の第2の構成例を示すブロック図である。It is a block diagram which shows the 2nd structural example of the editing apparatus to which this invention is applied. スマートレンダリング編集処理を説明するフローチャートである。It is a flowchart explaining a smart rendering edit process. 第1の低減処理を説明するフローチャートである。It is a flowchart explaining a 1st reduction process. 第2の低減処理の第1の動作例を説明するフローチャートである。It is a flowchart explaining the 1st operation example of a 2nd reduction process. 第2の低減処理の第2の動作例を説明するフローチャートである。It is a flowchart explaining the 2nd operation example of a 2nd reduction process. 汎用パーソナルコンピュータの構成例を示すブロック図である。It is a block diagram which shows the structural example of a general purpose personal computer.

符号の説明Explanation of symbols

10 編集装置, 11 操作入力部, 12 切換部, 13復号部, 14 再符号化部, 15 情報抽出部, 16 情報解析部, 17 結合部, 21 復号情報抽出部, 50 パーソナルコンピュータ, 51 CPU   DESCRIPTION OF SYMBOLS 10 Editing apparatus, 11 Operation input part, 12 Switching part, 13 Decoding part, 14 Re-encoding part, 15 Information extraction part, 16 Information analysis part, 17 Connection part, 21 Decoding information extraction part, 50 Personal computer, 51 CPU

Claims (4)

符号化ビデオ信号を復号し、その結果得られるビデオ信号を符号化するビデオ信号処理装置において、
入力された符号化ビデオ信号を復号する復号手段と、
入力された符号化ビデオ信号から、前記符号化ビデオ信号が符号化されたときの符号化設定にかかわる符号化情報を検出する検出手段と、
検出された前記符号化情報に基づいて再符号化のときに用いる再符号化情報を生成する再符号化情報生成手段と、
生成された前記再符号化情報に従い、復号結果のビデオ信号を符号化する符号化手段と
を含み、
前記検出手段および前記再符号化情報生成手段は、
第1の画質劣化低減処理として、
前記検出手段が、入力された符号化ビデオ信号から、処理対象とするGOPの平均ビットレートAおよび平均量子化値Bを符号化情報として検出し、
前記再符号化情報生成手段が、前記GOPの前記平均ビットレートAおよび前記平均量子化値Bに基づいて、再符号化情報として、再符号化のときに用いる設定ビットレートCおよび初期量子化値DをC=A×B/D、C≧Aを満たすように生成し、
第2の画質劣化低減処理として、
前記検出手段が、入力された符号化ビデオ信号から、前記GOPのフレーム毎の符号量Ejおよび量子化値Qjを符号化情報として検出し、
前記再符号化情報生成手段が、検出された前記GOPのフレーム毎の前記符号量Ejおよび前記量子化値Qjに基づいて、再符号化情報として、各ピクチャタイプの量子化オフセット値Qoi,Qop,Qobを次式
Qoi=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qop=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qob=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のBピクチャのフレームの総和を示す)
に従って生成する
ビデオ信号処理装置。
In a video signal processing apparatus for decoding an encoded video signal and encoding the resulting video signal,
Decoding means for decoding the input encoded video signal;
Detecting means for detecting coding information related to coding settings when the coded video signal is coded from the inputted coded video signal;
Re-encoding information generating means for generating re-encoding information for use in re-encoding based on the detected encoding information;
According generated the re-encoded information, see contains an encoding means for encoding a video signal of the decoding result,
The detecting means and the re-encoded information generating means are
As the first image quality degradation reduction process,
The detection means detects the average bit rate A and average quantization value B of the GOP to be processed from the input encoded video signal as encoded information,
Based on the average bit rate A and the average quantized value B of the GOP, the re-encoded information generating means uses a set bit rate C and an initial quantized value used for re-encoding as re-encoded information. D is generated so as to satisfy C = A × B / D, C ≧ A,
As the second image quality degradation reduction process,
The detection means detects a code amount Ej and a quantization value Qj for each frame of the GOP as encoded information from the input encoded video signal,
Based on the detected code amount Ej and the quantized value Qj for each frame of the GOP, the re-encoded information generating means uses, as re-encoded information, quantized offset values Qoi, Qop, Qob is the following formula
Qoi = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qop = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qob = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of B picture frames in the GOP)
A video signal processing device that generates according to the above .
一連の符号化ビデオ信号のストリームを、再符号化する再符号化部分と、前記再符号化部分に挟まれた再符号化しない中間部分に分離する分離手段を
さらに含む請求項1に記載のビデオ信号処理装置。
The video according to claim 1, further comprising separation means for separating a series of encoded video signal streams into a re-encoded part to be re-encoded and an intermediate part between the re-encoded part and not to be re-encoded. Signal processing device.
符号化ビデオ信号を復号し、その結果得られるビデオ信号を符号化するビデオ信号処理装置のビデオ信号処理方法において、
入力された符号化ビデオ信号を復号する復号ステップと
入力された符号化ビデオ信号から、処理対象とするGOPの平均ビットレートAおよび平均量子化値Bを符号化情報として検出し、前記GOPの前記平均ビットレートAおよび前記平均量子化値Bに基づいて、再符号化情報として、再符号化のときに用いる設定ビットレートCおよび初期量子化値DをC=A×B/D、C≧Aを満たすように生成する第1の画質劣化低減処理ステップと、
入力された符号化ビデオ信号から、前記GOPのフレーム毎の符号量Ejおよび量子化値Qjを符号化情報として検出し、検出された前記GOPのフレーム毎の前記符号量Ejおよび前記量子化値Qjに基づいて、再符号化情報として、各ピクチャタイプの量子化オフセット値Qoi,Qop,Qobを次式
Qoi=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qop=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qob=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のBピクチャのフレームの総和を示す)
に従って生成する第2の画質劣化低減処理ステップと、
生成された前記再符号化情報に従い、復号結果のビデオ信号を符号化する符号化ステップと
含むビデオ信号処理方法。
In a video signal processing method of a video signal processing apparatus for decoding an encoded video signal and encoding a resulting video signal,
A decoding step of decoding the input encoded video signal;
An average bit rate A and an average quantization value B of a GOP to be processed are detected as encoded information from the input encoded video signal, and based on the average bit rate A and the average quantization value B of the GOP Thus, as the re-encoding information, the first image quality deterioration reduction process for generating the set bit rate C and the initial quantized value D used for re-encoding so as to satisfy C = A × B / D, C ≧ A Steps,
The code amount Ej and the quantized value Qj for each frame of the GOP are detected as encoded information from the input encoded video signal, and the code amount Ej and the quantized value Qj for each detected frame of the GOP are detected. Based on the above, the quantization offset values Qoi, Qop, Qob for each picture type are expressed as
Qoi = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qop = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qob = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of B picture frames in the GOP)
A second image quality degradation reduction processing step generated according to
An encoding step of encoding a video signal as a decoding result in accordance with the generated re-encoding information;
Video signal processing method, including.
符号化ビデオ信号を復号し、その結果得られるビデオ信号を符号化するビデオ信号処理装置の制御用のプログラムであって、
入力された符号化ビデオ信号を復号する復号ステップと
入力された符号化ビデオ信号から、処理対象とするGOPの平均ビットレートAおよび平均量子化値Bを符号化情報として検出し、前記GOPの前記平均ビットレートAおよび前記平均量子化値Bに基づいて、再符号化情報として、再符号化のときに用いる設定ビットレートCおよび初期量子化値DをC=A×B/D、C≧Aを満たすように生成する第1の画質劣化低減処理ステップと、
入力された符号化ビデオ信号から、前記GOPのフレーム毎の符号量Ejおよび量子化値Qjを符号化情報として検出し、検出された前記GOPのフレーム毎の前記符号量Ejおよび前記量子化値Qjに基づいて、再符号化情報として、各ピクチャタイプの量子化オフセット値Qoi,Qop,Qobを次式
Qoi=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qop=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のPピクチャのフレームの総和を示す)
Qob=Σ(Ej*Qj)/Σ(Ej)−B
(ΣはGOP内のBピクチャのフレームの総和を示す)
に従って生成する第2の画質劣化低減処理ステップと、
生成された前記再符号化情報に従い、復号結果のビデオ信号を符号化する符号化ステップと
を含む処理をビデオ信号処理装置のコンピュータに実行させるプログラム。
A program for controlling a video signal processing apparatus that decodes an encoded video signal and encodes the resulting video signal,
A decoding step of decoding the input encoded video signal;
An average bit rate A and an average quantization value B of a GOP to be processed are detected as encoded information from the input encoded video signal, and based on the average bit rate A and the average quantization value B of the GOP Thus, as the re-encoding information, the first image quality deterioration reduction process for generating the set bit rate C and the initial quantized value D used for re-encoding so as to satisfy C = A × B / D, C ≧ A Steps,
The code amount Ej and the quantized value Qj for each frame of the GOP are detected as encoded information from the input encoded video signal, and the code amount Ej and the quantized value Qj for each detected frame of the GOP are detected. Based on the above, the quantization offset values Qoi, Qop, Qob for each picture type are expressed as
Qoi = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qop = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of P picture frames in the GOP)
Qob = Σ (Ej * Qj) / Σ (Ej) −B
(Σ indicates the total sum of B picture frames in the GOP)
A second image quality degradation reduction processing step generated according to
A program for causing a computer of a video signal processing apparatus to execute a process including an encoding step of encoding a video signal as a decoding result according to the generated re-encoding information.
JP2006194677A 2006-07-14 2006-07-14 Video signal processing apparatus, video signal information processing method, and program Expired - Fee Related JP4793150B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006194677A JP4793150B2 (en) 2006-07-14 2006-07-14 Video signal processing apparatus, video signal information processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006194677A JP4793150B2 (en) 2006-07-14 2006-07-14 Video signal processing apparatus, video signal information processing method, and program

Publications (2)

Publication Number Publication Date
JP2008022476A JP2008022476A (en) 2008-01-31
JP4793150B2 true JP4793150B2 (en) 2011-10-12

Family

ID=39078082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006194677A Expired - Fee Related JP4793150B2 (en) 2006-07-14 2006-07-14 Video signal processing apparatus, video signal information processing method, and program

Country Status (1)

Country Link
JP (1) JP4793150B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5947325B2 (en) 2014-03-10 2016-07-06 エヌ・ティ・ティ・アドバンステクノロジ株式会社 Optical connector cleaning tool and optical connector surface observation system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3871840B2 (en) * 1999-12-24 2007-01-24 日本電気株式会社 Compressed video re-encoding device
JP2002152735A (en) * 2000-11-10 2002-05-24 Matsushita Electric Ind Co Ltd Image re-coder
JP2003244706A (en) * 2002-02-21 2003-08-29 Nec Corp Image encoded data conversion apparatus and conversion method, and conversion program
JP4174728B2 (en) * 2004-08-25 2008-11-05 ソニー株式会社 Information processing apparatus, information processing method, recording medium, and program
JP2006108785A (en) * 2004-09-30 2006-04-20 Victor Co Of Japan Ltd Image encoder

Also Published As

Publication number Publication date
JP2008022476A (en) 2008-01-31

Similar Documents

Publication Publication Date Title
US8588296B2 (en) Bitrate control algorithm for video transcoding systems
JP4528694B2 (en) Video encoding device
US8718138B2 (en) Image encoding apparatus and image encoding method that determine an encoding method, to be used for a block to be encoded, on the basis of an intra-frame-prediction evaluation value calculated using prediction errors between selected reference pixels and an input image
US8681877B2 (en) Decoding apparatus, decoding control apparatus, decoding method, and program
JP2005510149A (en) Method and system for detecting intra-coded pictures and extracting intra DC scheme and macroblock coding parameters from uncompressed digital video
JP2006074635A (en) Method and device for converting encoded video signal
CN106028031A (en) Video coding device, video coding method, video decoding device and video decoding method
WO2006040896A1 (en) Moving picture re-encoder, moving picture editor, program, and recording medium
EP2014099A2 (en) Method and apparatus for encoding/transcoding and decoding
JP2012054818A (en) Image processing apparatus and image processing method
JP4793150B2 (en) Video signal processing apparatus, video signal information processing method, and program
US8594195B2 (en) Method and apparatus for encoding and decoding at least one image frame that is artificially inserted into image sequence
JP4174728B2 (en) Information processing apparatus, information processing method, recording medium, and program
JP2005210502A (en) Image recompression device and method
JP5267542B2 (en) Encoded video signal conversion method and apparatus
JP3812808B2 (en) Skip region detection type moving image encoding apparatus and recording medium
US6810154B2 (en) Method and apparatus for automatic spatial resolution setting for moving images
JP2003069997A (en) Moving picture encoder
US10003826B2 (en) Method of reducing noise of video signal
JP4133581B2 (en) Telop synthesis device, telop synthesis method, and telop synthesis program
JP2008109259A (en) Moving image coding device and program
JP3896635B2 (en) Image data conversion apparatus and method, prediction coefficient generation apparatus and method
JP2007300557A (en) Image encoding device and image encoding method
JP4674767B2 (en) Moving image editing method and apparatus
JP3203617B2 (en) Interframe coding method for moving images

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090623

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101209

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110117

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110628

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110711

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140805

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees