JP2006311135A - Moving image encoding device - Google Patents

Moving image encoding device Download PDF

Info

Publication number
JP2006311135A
JP2006311135A JP2005130451A JP2005130451A JP2006311135A JP 2006311135 A JP2006311135 A JP 2006311135A JP 2005130451 A JP2005130451 A JP 2005130451A JP 2005130451 A JP2005130451 A JP 2005130451A JP 2006311135 A JP2006311135 A JP 2006311135A
Authority
JP
Japan
Prior art keywords
encoding
recording
video
pass
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.)
Pending
Application number
JP2005130451A
Other languages
Japanese (ja)
Inventor
Yasushi Nakagawa
裕史 中川
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2005130451A priority Critical patent/JP2006311135A/en
Publication of JP2006311135A publication Critical patent/JP2006311135A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To attain efficient reencoding by suppressing deterioration in picture quality due to reencoding. <P>SOLUTION: A moving image encoding device stores reencoding control information required for reencoding in an invalid packet of a transport stream to perform two-pass variable rate through a recording medium 3, and when performing the reencoding, redistributes encoding quantity to the whole one-pass recording signal to suppress deterioration in picture quality due to reencoding and attain efficient reencoding. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、MPEG等の符号化方式を用いた映像信号再符号化処理を行う動画像符号化装置に関するものである。   The present invention relates to a moving image encoding apparatus that performs video signal re-encoding processing using an encoding method such as MPEG.

従来、MPEG等の符号化方式を採用した、映像信号記録装置及び再生装置が検討されている。ここでMPEGについては、ビデオ規格はISO−IEC1172−2、ITU−TH.262/1SO−IEC13818−2に、システム規格はITU−TH.222/ISO−IEC13818−1に詳細な説明がなされているものである。この符号化方式で符号化された映像ストリームのレートを変換するために、このストリームを復号して出力された映像信号を再度復号する方法が考えられる。レート変換は通常低レートヘの変換が目的であり、記録媒体の容量、記録時間に応じたレート設定が行われる。   2. Description of the Related Art Conventionally, video signal recording devices and playback devices that employ an encoding method such as MPEG have been studied. As for MPEG, the video standards are ISO-IEC1172-2, ITU-TH. 262 / 1SO-IEC13818-2, the system standard is ITU-TH. 222 / ISO-IEC13818-1 is described in detail. In order to convert the rate of the video stream encoded by this encoding method, a method of decoding the stream and decoding the output video signal again can be considered. The rate conversion is usually aimed at conversion to a low rate, and the rate is set according to the capacity of the recording medium and the recording time.

MPEG2では、VBVの規定を固定転送レート(CBR)データだけではなく、可変転送レート(VBR)データに対しても規定を設け、様々な応用に対応するため2種の方法で規定できるようにしている。この規定の区別はvbv_delayの値によってなされており、vbv_delayが全て最大値oxffffでない場合と、各ピクチャのvbv_delayがoxffffの場合である。vbv_delayがoxffffの場合、VBVに対するデータの入力レートは、VBVバッファの占有量で決定され、VBVバッファに空きがあるときはピークレートRmax、空きのない場合には零となる。初期状態においてVBVバッファ占有量は零であり、バッファに空きがなくなった時点で復号を開始する。   In MPEG2, VBV is defined not only for fixed transfer rate (CBR) data but also for variable transfer rate (VBR) data, so that it can be defined in two ways to support various applications. Yes. This regulation is distinguished by the value of vbv_delay, which is when vbv_delay is not all the maximum value oxffff or when vbv_delay of each picture is oxffff. When vbv_delay is oxffff, the data input rate for the VBV is determined by the VBV buffer occupancy, and the peak rate Rmax when the VBV buffer is empty, and zero when there is no empty. In the initial state, the VBV buffer occupancy is zero, and decoding is started when the buffer is full.

特に低レートでは画質の劣化を極力抑えるために、映像信号の難易度に応じて符号化レートを変動させる可変レートによる符号化が有効となる。可変レートによる符号化方法としては、光ディスクレコーダ等リアルタイム性が要求される装置に関しては、1パス可変レート符号化が考えられ、特開平9−23423号公報(特許文献1)において提案されている。この符号化は所定時間毎の入力画像の難易度を求め、これにより割り当て符号量を決定し、対象記録媒体の容量等に応じた一定時間の符号化を行うものである。そして、この入力画像の難易度と割り当て符号量との関係は、一般の入力信号により予め統計処理等で標準化されたものである。   In particular, at a low rate, in order to suppress degradation of image quality as much as possible, encoding at a variable rate that varies the encoding rate according to the difficulty level of the video signal is effective. As an encoding method using a variable rate, one-pass variable rate encoding is conceivable for an apparatus such as an optical disk recorder that requires real-time performance, and is proposed in Japanese Patent Laid-Open No. 9-23423 (Patent Document 1). In this encoding, the difficulty level of an input image is obtained every predetermined time, and an assigned code amount is determined based on this, and encoding is performed for a certain time according to the capacity of the target recording medium. The relationship between the difficulty level of the input image and the assigned code amount is standardized in advance by statistical processing or the like using a general input signal.

また、それほどリアルタイム性が要求されないオーサリングシステム等では、特開平6−141298号公報(特許文献2)に公開されているような2パス符号化方法、つまり、予め記録媒体に記録されている映像信号について仮符号化を行い、映像信号の難易度に応じた割り当て符号量を算出し、この結果を用いて再度符号化を行う方法が採用されている。   In an authoring system or the like that does not require real-time performance, a two-pass encoding method disclosed in Japanese Patent Application Laid-Open No. 6-141298 (Patent Document 2), that is, a video signal recorded in advance on a recording medium. A method is employed in which provisional encoding is performed on the video signal, an assigned code amount corresponding to the difficulty level of the video signal is calculated, and encoding is performed again using this result.

MPEGストリームにはDVD等で用いられているプログラミングストリーム(PS)と、MPEG2多重化規格のトランスポートストリーム(TS)がBSデジタル放送等で用いられている。また、blu−ray等ディスクメディアに関してもトランスポートストリームを採用してきている。また、ビデオ記録装置に関しては、例えば光ディスクドライブとハードディスクドライブとの両方を備えたハイブリッド構成機器も一般的になってきている。   As the MPEG stream, a programming stream (PS) used in DVD or the like and a transport stream (TS) of the MPEG2 multiplexing standard are used in BS digital broadcasting or the like. Transport streams have also been adopted for disc media such as Blu-ray. As for the video recording apparatus, for example, a hybrid component device including both an optical disk drive and a hard disk drive has become common.

ところで、レート変換のために、符号化された映像ビットストリームを復号して、その映像信号を映像信号符号化装置を用いて再度MPEG符号化してビットストリームを出力する方法を用いた場合、画質の劣化が懸念される。この対策としては、復号した映像信号に対して1パス可変レート符号化の適用が考えられる。しかし、1パス可変レート符号化は、入力映像の難易度が予測不可能な状態において、入力映像に対する的確な符号量配分が困難である。例えば、一定時間の終盤において難易度が高い映像が連続して入力された場合、この映像の符号化に関しては、固定転送レート符号化よりも画質が劣化する可能性がある。   By the way, when using a method of decoding an encoded video bitstream for rate conversion, MPEG-coding the video signal again using a video signal encoding device, and outputting the bitstream, There is concern about deterioration. As a countermeasure, it is conceivable to apply 1-pass variable rate coding to the decoded video signal. However, in the one-pass variable rate encoding, it is difficult to accurately allocate the code amount to the input video when the difficulty level of the input video cannot be predicted. For example, when a video having a high difficulty level is continuously input at the end of a certain time, the image quality may be deteriorated as compared with the fixed transfer rate encoding when the video is encoded.

レート変換の仕方としては、例えばハイブリッド構成機器では、ハードディスクに一度高レートで記録しておき、別の時間に、記録する光ディスクメディアの残り容量、記録時間に応じたレートに変換する方法が考えられ、このような形態をとった場合、2パス可変符号化を行うことにより高画質なレート変換が可能である。特に記録した映像信号全てに関する符号化情報から変換されるレートより、局所的な目標符号量等の算出を行い、これをもとに再符号化することにより、効率的な可変レート制御が可能になる。しかし、そのためには、1パス目の後に上記算出時間の確保が必要である。また、1パス目の符号化情報、2パス目の制御情報の格納、映像信号との同期等の管理が必要となる。
特開平9−23423号公報 特開平6−141298号公報
As a method of rate conversion, for example, in a hybrid component device, a method of recording at a high rate once on a hard disk and converting to a rate according to the remaining capacity of the optical disk medium to be recorded and the recording time at another time can be considered. When such a configuration is adopted, high-quality rate conversion is possible by performing two-pass variable encoding. In particular, efficient variable rate control is possible by calculating the local target code amount, etc., from the rate converted from the encoded information for all recorded video signals, and re-encoding based on this. Become. However, for this purpose, it is necessary to secure the calculation time after the first pass. In addition, it is necessary to manage encoding information for the first pass, storage of control information for the second pass, synchronization with the video signal, and the like.
Japanese Patent Laid-Open No. 9-23423 JP-A-6-141298

本発明は、上述のような従来技術の問題点に鑑みてなされたものであり、一度符号化された映像信号を所定のレートに再符号化する際に、記録された記録信号全体に対して符号量の再配分を行うことで効率的なレート変換が行える動画像符号化装置を提供することを目的とする。   The present invention has been made in view of the above-described problems of the prior art. When a video signal once encoded is re-encoded to a predetermined rate, the entire recorded signal is recorded. It is an object of the present invention to provide a moving picture coding apparatus that can perform efficient rate conversion by redistributing code amounts.

請求項1の発明の動画像符号化装置は、パス1記録時には入力される映像信号を所定の第1の符号化レートにて符号化し、パス2記録時にはフィードバックされる復号映像信号をフィードバックされる再符号化制御情報の指示する第2の符号化レートにて符号化してビデオESストリームを生成すると共に符号化情報を生成するビデオエンコーダと、前記ビデオエンコーダからのビデオESストリームをオーディオESストリームと多重化してトランスポートストリームを生成すると共に、パス1記録時にはその無効パケットに前記符号化情報をピクチャ毎に書込む多重化処理部と、前記多重化処理部の出力するトランスポートストリームを記録する記録媒体と、パス2記録時に、前記記録媒体に記録されているパス1記録時のトランスポートストリームの無効パケットに書込まれたピクチャ毎の符号化情報全てからピクチャ毎の再符号化制御情報を算出し、もとの符号化情報が書込まれていた無効パケットの内容を再符号化制御情報に置き換えて当該録媒体に再記録する再符号化情報生成部と、パス2記録時に、パス1記録の際に前記記録媒体に記録されたトランスポートストリームを読み出し、前記ビデオESストリームとオーディオESストリームとを分離して出力し、同時にピクチャ毎の再符号化制御情報を前記無効パケットから抽出する分離化処理部と、パス2記録時に、前記ビデオESストリームをデコードして復号映像信号を生成すると共に、前記分離化処理部の抽出したピクチャ毎の再符号化制御情報をエンコード時の並びから映像出力並びに変換し、前記復号映像信号と同期して共に前記ビデオエンコーダに出力するビデオデコーダとを備えたものである。   The moving image encoding apparatus according to the first aspect of the present invention encodes an input video signal at a predetermined first encoding rate during pass 1 recording, and feeds back a decoded video signal fed back during pass 2 recording. A video encoder for generating a video ES stream by encoding at a second encoding rate indicated by the re-encoding control information and generating the encoding information, and a video ES stream from the video encoder multiplexed with an audio ES stream And generating a transport stream, and at the time of pass 1 recording, a multiplexing processing unit for writing the encoded information in the invalid packet for each picture, and a recording medium for recording the transport stream output from the multiplexing processing unit And the transport at the time of pass 1 recording recorded on the recording medium at the time of pass 2 recording. Re-encoding control information for each picture is calculated from all the encoding information for each picture written in the invalid packet of the stream, and the re-encoding control is performed on the contents of the invalid packet in which the original encoding information has been written. A re-encoded information generation unit that replaces the information with the information and re-records the information on the recording medium, reads the transport stream recorded on the recording medium at the time of pass 1 recording, and records the video ES stream and audio ES The stream is separated and output, and at the same time, the separation processing unit that extracts the re-encoding control information for each picture from the invalid packet, and the video ES stream is decoded to generate the decoded video signal at the time of pass 2 recording. In addition, the re-encoding control information for each picture extracted by the separation processing unit is output and converted from the sequence at the time of encoding, and the decoded image is converted. In synchronism with the signal is obtained both a video decoder that outputs to the video encoder.

請求項2の発明は、請求項1の動画像符号化装置において、前記ピクチャ毎の無効パケットは、当該無効パケットが多重化されるビデオESストリームのパケットの先頭パケットの前位置にしたことを特徴とするものである。   According to a second aspect of the present invention, in the moving picture coding apparatus according to the first aspect, the invalid packet for each picture is set to a position before the head packet of a packet of a video ES stream in which the invalid packet is multiplexed. It is what.

本発明の動画像符号化装置によれば、パス1記録時に所定のレートに符号化された映像信号を再符号化して記録するパス2記録時には、パス1記録時に符号化されて記録されている記録信号全体に対して符号量の再配分を行なうことで効率的なレート変換ができる。   According to the moving image encoding apparatus of the present invention, when pass 2 recording is performed by re-encoding and recording a video signal encoded at a predetermined rate at pass 1 recording, the video signal is encoded and recorded at pass 1 recording. Efficient rate conversion can be performed by redistributing the code amount over the entire recording signal.

以下、本発明の実施の形態を図に基づいて詳説する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

(第1の実施の形態)図1は本発明の一つの実施の形態の動画像符号化装置の構成を示すブロック図である。動画像符号化装置は2パス符号化機能を有しており、ビデオエンコーダ1と、多重化処理部2と、記録媒体3と、再符号化情報生成部4と、分離化処理部5と、ビデオデコーダ6とから構成されている。   (First Embodiment) FIG. 1 is a block diagram showing the configuration of a moving picture coding apparatus according to one embodiment of the present invention. The moving image encoding device has a two-pass encoding function, and includes a video encoder 1, a multiplexing processing unit 2, a recording medium 3, a re-encoding information generation unit 4, a separation processing unit 5, And a video decoder 6.

ビデオエンコーダ1は、第一(パス1)の符号化ではaポートに対する外部からの映像信号と記録モード情報を入力として符号化を行う。記録モード情報は、ビデオエンコーダ1に対してレート変換を前提にしない通常記録/パス1記録/再符号化(パス2)記録のいずれかの識別情報と符号化平均レート情報からなる。ビデオエンコーダ1は、符号化されたビデオESストリームと符号化情報を多重化処理部2に出力する。パス1では再符号化制御情報は入力されず、符号量制御はビデオエンコーダ1の内部での処理となる。   In the first (pass 1) encoding, the video encoder 1 inputs an external video signal and recording mode information for the a port. The recording mode information includes identification information of one of normal recording / pass 1 recording / re-encoding (pass 2) recording that does not presuppose rate conversion for the video encoder 1 and encoded average rate information. The video encoder 1 outputs the encoded video ES stream and the encoded information to the multiplexing processing unit 2. In pass 1, re-encoding control information is not input, and code amount control is a process inside the video encoder 1.

ここで「パス1記録」は、再符号化を前提とした、最初のエンコード、符号化情報の記録、再符号化情報生成記録までのプロセスである。「再符号化(パス2)記録」は、パス1で生成されたストリームのデコード及び再符号化制御情報を用いた再符号化を行い、生成されたストリームの記録までのプロセスである。「通常記録」は再符号化を前提としない、すなわち、再符号化情報を生成しないエンコード記録プロセスである。   Here, “pass 1 recording” is a process from initial encoding, recording of encoded information, and re-encoded information generation / recording on the premise of re-encoding. “Re-encoding (pass 2) recording” is a process from decoding of a stream generated in pass 1 and re-encoding using re-encoding control information to recording of the generated stream. “Normal recording” is an encoding recording process that does not assume re-encoding, that is, does not generate re-encoded information.

多重化処理部2では、ビデオESストリーム、オーディオESストリーム及び符号化情報を入力として、トランスポートストリーム(TS)を生成し、記録媒体3に記録する。記録モード情報が「パス1記録」の時、入力された符号化情報は無効パケットに書込むことでトランスポートストリームに多重化される。ここで、記録媒体3は光ディスク、ハードディスク等であるが、これらの複数構成であってもよい。   The multiplexing processing unit 2 receives the video ES stream, the audio ES stream, and the encoded information, generates a transport stream (TS), and records it on the recording medium 3. When the recording mode information is “pass 1 recording”, the input encoded information is multiplexed into the transport stream by writing into invalid packets. Here, the recording medium 3 is an optical disk, a hard disk, or the like, but may have a plurality of these configurations.

再符号化情報生成部4では、記録モード情報が「パス1記録」の時には、記録媒体3に記録されたパス1のトランスポートストリームの無効パケットに書込まれたピクチャ毎の符号化情報全てからピクチャ毎の再符号化制御情報を算出し、もとの符号化情報が書込まれていた無効パケットの内容を再符号化制御情報に置き換えて同記録媒体3に記録する。   When the recording mode information is “pass 1 recording”, the re-encoded information generation unit 4 uses all the encoded information for each picture written in the invalid packet of the transport stream of pass 1 recorded on the recording medium 3. Re-encoding control information for each picture is calculated, and the contents of the invalid packet in which the original encoding information has been written are replaced with the re-encoding control information and recorded on the recording medium 3.

一方、記録モード情報が「パス2記録」の時には、分離化処理部5が「パス1記録」の際に記録媒体3に記録されているトランスポートストリーム(TS)を読み出し、ビデオESストリーム、オーディオESストリームを分離して出力する。また、記録モード情報が「パス2記録」の時、記録モード情報に設定された符号化平均レートより選択された再符号化制御情報を無効パケットから抽出し、ビデオデコーダ6に出力する。   On the other hand, when the recording mode information is “pass 2 recording”, the separation processing unit 5 reads the transport stream (TS) recorded on the recording medium 3 during “pass 1 recording”, and the video ES stream and audio The ES stream is separated and output. When the recording mode information is “pass 2 recording”, re-encoding control information selected from the encoding average rate set in the recording mode information is extracted from the invalid packet and output to the video decoder 6.

ビデオデコーダ6はビデオESストリームを入力として、復号処理を行って復号映像信号を出力する。またビデオデコーダ6は、記録モード情報が「パス2記録」の時は分離化処理部5が分離した再符号化制御情報を入力して、ピクチャ毎の再符号化制御情報をエンコード時の並びから映像出力並びに変換し、復号映像信号と同期して出力する。   The video decoder 6 receives the video ES stream, performs a decoding process, and outputs a decoded video signal. Further, when the recording mode information is “pass 2 recording”, the video decoder 6 inputs the re-encoding control information separated by the separation processing unit 5, and re-encodes the control information for each picture from the sequence at the time of encoding. Video output and conversion, and output in synchronization with the decoded video signal.

「パス2記録」の時には、ビデオデコーダ6からビデオエンコーダ1にbポートを通じて復号映像信号が入力され、また再符号化制御情報も入力される。ビデオエンコーダ1は記録モード情報が「パス2記録」の時、この再符号化制御情報によって符号量制御を行い、復号映像信号の再符号化を行い、ビデオESストリームを出力する。この「パス2記録」の時、ビデオエンコーダ1は符号化情報は出力しない。多重化処理部2は、記録モード情報が「パス2記録」の時、再符号化されたビデオESストリーム、そしてオーディオESストリームを入力し、多重化処理してトランスポートストリーム(TS)を再度生成し、記録媒体3に記録する。   In “pass 2 recording”, a decoded video signal is input from the video decoder 6 to the video encoder 1 through the b port, and re-encoding control information is also input. When the recording mode information is “pass 2 recording”, the video encoder 1 performs code amount control by this re-encoding control information, re-encodes the decoded video signal, and outputs a video ES stream. During this “pass 2 recording”, the video encoder 1 does not output encoded information. When the recording mode information is “pass 2 recording”, the multiplexing processing unit 2 inputs the re-encoded video ES stream and the audio ES stream, multiplexes them, and generates a transport stream (TS) again. And recorded on the recording medium 3.

図2は上記実施の形態におけるビデオエンコーダ1の詳しい内部構成を示すブロック図である。ビデオエンコーダ1は、第1の画像メモリ11と、減算器12と、DCT部13と、量子化部14と、VLC部15と、アクティビティ検出部16と、符号量制御部17と、符号化情報生成部18と、動き補償予測部19と、逆量子化部20と、逆DCT部21と、加算器22と、第2の画像メモリ23を備えている。   FIG. 2 is a block diagram showing a detailed internal configuration of the video encoder 1 in the above embodiment. The video encoder 1 includes a first image memory 11, a subtractor 12, a DCT unit 13, a quantization unit 14, a VLC unit 15, an activity detection unit 16, a code amount control unit 17, and encoding information. A generation unit 18, a motion compensation prediction unit 19, an inverse quantization unit 20, an inverse DCT unit 21, an adder 22, and a second image memory 23 are provided.

「パス1記録」で符号化処理するときにはaポートの入力映像信号を、また「パス2記録」で再符号化処理を実行するときにはビデオデコーダ6からbポートに入力される映像信号が第1の画像メモリ11に入力され記憶される。第1の画像メモリ11は複数フレームの画像データを記憶する。記憶された画像データは輝度データ(Y)が16×16画素、色データ(Cb/Cr)がそれぞれ16×8画素単位のブロックで処理し、色データに関しては縦方向にサブサンプリングし、それぞれ8×8画素のブロックとして処理する。   The input video signal of the a port is encoded when “pass 1 recording” is encoded, and the video signal input to the b port from the video decoder 6 when the re-encoding process is executed with “pass 2 recording”. It is inputted and stored in the image memory 11. The first image memory 11 stores a plurality of frames of image data. The stored image data is processed in blocks of luminance data (Y) in units of 16 × 16 pixels and color data (Cb / Cr) in units of 16 × 8 pixels. Process as a block of × 8 pixels.

同様にブロック化された画像データは動き補償予測部19で第1の画像メモリ11から読み出された画像データと第2の画像メモリ23から読み出されたフレーム(フィールド)のローカルデコードされた再生画像データより、フレーム間(フィールド間)予測の動きベクトルを検出する。動き補償予測部19ではさらに、この動きベクトルと第2の画像メモリ23より読み出された再生画像データから動き補償を行い、動き補償画像データと動きベクトルと予測モードを出力する。   Similarly, the blocked image data is reproduced by locally decoding the image data read from the first image memory 11 and the frame (field) read from the second image memory 23 by the motion compensation prediction unit 19. A motion vector for prediction between frames (inter-field) is detected from the image data. The motion compensation prediction unit 19 further performs motion compensation from the motion vector and the reproduced image data read from the second image memory 23, and outputs motion compensation image data, a motion vector, and a prediction mode.

減算器12では第1の画像メモリ11から読み出された画像データと、動き補償予測部19から出力された動き補償映像データを入力とし、これらの間で減算を行い差分画像データを出力する。DCT部13では差分画像データを入力とし、DCT(離散コサイン変換)を行いDCT係数を出力する。量子化部14ではDCT係数を入力とし、量子化を行い量子化画像データを出力すると同時に量子化情報を出力する。   The subtracter 12 receives the image data read from the first image memory 11 and the motion compensated video data output from the motion compensation prediction unit 19 and performs subtraction between them to output difference image data. The DCT unit 13 receives difference image data, performs DCT (Discrete Cosine Transform), and outputs DCT coefficients. The quantization unit 14 receives DCT coefficients, performs quantization, outputs quantized image data, and outputs quantization information.

VLC部15では量子化データと、動きベクトル及び予測モードとを入力とし、これらを可変長符号化してビデオESストリームを出力すると共に、ピクチャ単位の発生符号量、ピクチャタイプを出力する。ここでピクチャ単位の発生符号量としては、例えば可変長符号化で得られた所定のブロック(16×16画素)単位の符号量のピクチャ全領域に対する総和を用いる。また、I,Pピクチャは、後で動き補償予測の参照データとして用いる再生画像が必要なため、逆量子化、逆DCTのローカルデコードを行う。   The VLC unit 15 receives the quantized data, the motion vector, and the prediction mode, outputs the video ES stream by variable-length encoding them, and outputs the generated code amount and picture type for each picture. Here, as the generated code amount in units of pictures, for example, the total sum of the code amounts in units of a predetermined block (16 × 16 pixels) obtained by variable length coding is used. In addition, since I and P pictures require a reproduced image to be used later as reference data for motion compensation prediction, inverse quantization and local decoding of inverse DCT are performed.

アクティビティ検出部16では、第1の画像メモリ11から画像データを呼び出し、ピクチャ毎のアクティビティの総和を算出し出力する。アクティビティとは画面内のブロック単位の変化を示すものである。図3は、アクティビティ算出の一例を示す図であり、8×8画素のブロック単位で変化を求めている。すなわち、水平方向、垂直方向それぞれに隣接するピクセル(Pixel)間の絶対値差分Absolute Difference)を算出し、ブロック単位ごとの総和を算出する。画面内のブロック単位の変化が大きい時にアクティビティ(Act)は大きくなり、画面内のブロック単位の変化が小さい時にアクティビディは小さくなる。そして、アクティビディ検出部16ではピクチャの全領域に対して上記計算を行い、ピクチャ全体での総和を算出して出力する。アクティビティ(Act)の単位ブロックは、MPEG符号化の最小単位のブロック(8×8画素)としている。   The activity detection unit 16 calls image data from the first image memory 11 and calculates and outputs the sum of activities for each picture. An activity indicates a change in a block unit in the screen. FIG. 3 is a diagram illustrating an example of activity calculation, in which a change is obtained in units of 8 × 8 pixel blocks. That is, an absolute value difference (Absolute Difference) between pixels (Pixels) adjacent to each other in the horizontal direction and the vertical direction is calculated, and a total for each block unit is calculated. The activity (Act) increases when the change in the block unit in the screen is large, and the activity decreases when the change in the block unit in the screen is small. Then, the activity detection unit 16 performs the above calculation for the entire area of the picture, and calculates and outputs the total sum for the entire picture. The unit block of activity (Act) is a block (8 × 8 pixels) which is the minimum unit of MPEG encoding.

本実施の形態の動画像符号化装置におけるビデオエンコーダ1内の構成要素として特徴をなす符号量制御部17では、記録モード情報が「通常記録」又は「パス1記録」の時は、入力される発生符号量/ピクチャタイプとアクティビティから符号量制御を行い、記録モード情報が「パス2記録」の時は、入力されるピクチャ毎の目標符号量と、ピクチャタイプの再符号化制御情報とによる制御を加えて符号量制御を行い、量子化部14に量子化制御情報を出力する。   The code amount control unit 17 that is characteristic as a component in the video encoder 1 in the moving picture encoding apparatus of the present embodiment inputs when the recording mode information is “normal recording” or “pass 1 recording”. Code amount control is performed from the generated code amount / picture type and activity, and when the recording mode information is “pass 2 recording”, control is performed based on the target code amount for each input picture and the recoding control information of the picture type. Is added to control the code amount, and the quantization control information is output to the quantization unit 14.

発生符号量と量子化スケールとにはほぼ反比例の関係があり、発生符号量を増加させるには量子化スケールを小さくし、符号量を減少させるには量子化スケールを大きくする。また、Pピクチャは一つ前のIピクチャもしくはPピクチャから、Bピクチャは時間的に両側のIピクチャとPピクチャとから予測されている関係上、Iピクチャが劣化すると連動して他のピクチャも劣化する。したがってIピクチャの画質は最も重要であり、符号も十分に配分しなければならない。そこで、リファレンスとなるIピクチャ、Pピクチャの画質劣化を抑える目的で、「パス2記録」の時は「パス1記録」の時のピクチャタイプと同じピクチャタイプで再符号化を行う。   The generated code amount and the quantization scale are almost inversely proportional, and the quantization scale is decreased to increase the generated code amount, and the quantization scale is increased to decrease the code amount. Also, because the P picture is predicted from the previous I picture or P picture, and the B picture is predicted from the I picture and P picture on both sides in time, other pictures are linked with the deterioration of the I picture. to degrade. Therefore, the picture quality of the I picture is the most important and the code must be well allocated. Therefore, for the purpose of suppressing image quality deterioration of the reference I picture and P picture, re-encoding is performed with the same picture type as the picture type at the time of “pass 1 recording” at the time of “pass 2 recording”.

同じく特徴をなす符号化情報生成部18では、記録モード情報が「パス1記録」の時、ピクチャ毎に量子化情報を入力として平均の量子化スケールを算出し、入力されたアクティビティ、発生符号量/ピクチャタイプと共に符号化情報を構築して出力する。量子化情報としては、例えば、面内の平均量子化スケールを用いる。記録モード情報が「通常記録」の時また「パス2記録」の時には出力は行わない。   The encoding information generation unit 18 having the same characteristics calculates an average quantization scale by inputting the quantization information for each picture when the recording mode information is “pass 1 recording”, and inputs the input activity and generated code amount. / Constructs and outputs encoded information together with picture type. As the quantization information, for example, an in-plane average quantization scale is used. When the recording mode information is “normal recording” or “pass 2 recording”, no output is performed.

逆量子化部20では量子化データを入力として逆量子化を行い、DCT係数を出力する。逆DCT部21では、DCT係数を入力として逆DCTを行い、差分復号画像を出力する。加算器22では差分復号画像と、動き補償予測部19から出力された動き補償画像データを入力として加算を行い、復号画像データを出力する。第2の画像メモリ23は、復号画像データを記憶する。   The inverse quantization unit 20 performs inverse quantization with the quantized data as an input, and outputs DCT coefficients. The inverse DCT unit 21 performs inverse DCT with a DCT coefficient as an input, and outputs a differential decoded image. The adder 22 adds the difference decoded image and the motion compensated image data output from the motion compensation prediction unit 19 as inputs, and outputs decoded image data. The second image memory 23 stores decoded image data.

図4は上記実施の形態における多重化処理部2の内部構成を示すブロック図である。多重化処理部2は、符号化情報TSパケット生成部31と、TSパケット生成部32と、TS_MUX部33とから構成されている。   FIG. 4 is a block diagram showing an internal configuration of the multiplexing processing unit 2 in the above embodiment. The multiplexing processing unit 2 includes an encoded information TS packet generation unit 31, a TS packet generation unit 32, and a TS_MUX unit 33.

記録モード情報が「パス1記録」の時、符号化情報TSパケット生成部31では符号化情報を入力として、無効パケットに符号化情報を構成し出力する。TSパケット生成部32では、入力されたビデオESストリーム、オーディオESストリーム等を入力として、TSパケットを生成して出力する。TS_MUX部33ではこれらTSパケットを多重化しトランスポートストリーム(TS)を出力し、記録媒体3に記録する。図5はパケットの挿入位置の一例を示す図であり、V0,V1等はビデオデータパケット、A0,A1等はオーディオデータパケット、Nは無効パケットを示している。この図5に示すように、符号化情報と同じピクチャのビデオパケットの先頭V0の前に無効パケットNを置くことで、ビデオストリームとその符号化情報の管理を容易にすることができる。なお、記録モード情報が「通常記録」または「パス2記録」の時は、符号化情報で構成されるパケットは生成されず、トランスポートストリームにも多重化されない。   When the recording mode information is “pass 1 recording”, the encoded information TS packet generation unit 31 receives the encoded information as input and configures and outputs the encoded information in an invalid packet. The TS packet generator 32 receives the input video ES stream, audio ES stream, etc. as input, and generates and outputs TS packets. The TS_MUX unit 33 multiplexes these TS packets, outputs a transport stream (TS), and records it on the recording medium 3. FIG. 5 is a diagram showing an example of a packet insertion position. V0, V1, etc. indicate video data packets, A0, A1, etc. indicate audio data packets, and N indicates an invalid packet. As shown in FIG. 5, by placing an invalid packet N before the beginning V0 of a video packet of the same picture as the encoded information, management of the video stream and the encoded information can be facilitated. Note that when the recording mode information is “normal recording” or “pass 2 recording”, a packet composed of encoded information is not generated and is not multiplexed in the transport stream.

図6はTSパケットの構造を示す図である。MPEG2のTS多重化に関しては規格書に詳細が記載されているが、符号化情報TSパケット生成部31で生成する無効パケットは、パケットID(PID)にNullPacketID(0x1fff)、ユニット開始表示が‘01’、アダプテーションフィールド制御に‘01’(ペイロードのみ)が設定され、ペイロードに図7に示すように符号化情報を構成する。データ識別は、無効パケットのペイロードが符号化情報または再符号化制御情報で構成されているか、あるいは通常の無効パケットのペイロードであるかを識別するためのものである。そして無効パケットのペイロードが符号化情報または再符号化制御情報であるとき、ピクチャ単位符号化情報として、ピクチャタイプ、発生符号量、量子化情報、アクティビティを設定する。   FIG. 6 is a diagram showing the structure of a TS packet. The MPEG2 TS multiplexing is described in detail in the standard, but the invalid packet generated by the encoded information TS packet generator 31 is NullPacketID (0x1fff) in the packet ID (PID) and the unit start display is '01. ',' 01 '(only payload) is set in the adaptation field control, and encoded information is configured in the payload as shown in FIG. The data identification is for identifying whether the payload of the invalid packet is composed of encoded information or re-encoding control information, or is a payload of a normal invalid packet. When the payload of the invalid packet is encoding information or re-encoding control information, a picture type, generated code amount, quantization information, and activity are set as the picture unit encoding information.

図8は上記実施の形態における再符号化情報生成部4の内部構成を示すブロック図である。再符号化情報生成部4は、符号化情報分離化処理部41と、バッファメモリ42と、再符号化情報演算部43と、再符号化制御情報多重化処理部44とから構成されている。   FIG. 8 is a block diagram showing an internal configuration of the re-encoding information generation unit 4 in the above embodiment. The re-encoded information generation unit 4 includes an encoded information separation processing unit 41, a buffer memory 42, a re-encoding information calculation unit 43, and a re-encoding control information multiplexing processing unit 44.

符号化情報分離化処理部41では、記録媒体3に記録されているトランスポートストリーム(TS)を呼び出し、無効パケットを検出し、符号化情報を抽出してバッファメモリ42に蓄える。再符号化情報演算部43では全てのピクチャの符号化情報をもとに、ピクチャ毎に設定されたレートごとの再符号化制御情報を生成し、バッファメモリ42に蓄える。再符号化制御情報多重化処理部44では、記録媒体3からトランスポートストリームを呼び出し、符号化情報が構成された無効パケットを検出し、同じピクチャのペイロードを図9に示すような構成に置き換える。上記処理は、記録モード情報が「パス1記録」の時にのみ、「パス2記録」の再符号化処理に備えるために行う。   The encoded information separation processing unit 41 calls a transport stream (TS) recorded on the recording medium 3, detects invalid packets, extracts encoded information, and stores it in the buffer memory 42. The re-encoding information calculation unit 43 generates re-encoding control information for each rate set for each picture based on the encoding information of all pictures and stores the re-encoding control information in the buffer memory 42. The re-encoding control information multiplexing processing unit 44 calls the transport stream from the recording medium 3, detects an invalid packet in which the encoding information is configured, and replaces the payload of the same picture with the configuration shown in FIG. The above process is performed only when the recording mode information is “pass 1 recording” to prepare for the re-encoding process of “pass 2 recording”.

ここで、設定レート識別は設定レートごとの再符号化制御情報領域を識別するものである。再符号化情報演算には様々な方法があるが、基本的には、まず各ピクチャの発生符号量、平均量子化スケール、アクティビティに対してピクチャタイプごとに重み付け処理を行い、前時間に渡る平均を算出基準とする。これに対して各ピクチャの上記パラメータを比較し、符号量配分比率を算出する。そして設定したレートに乗じることで、目標符号量を算出する方法である。   Here, the set rate identification is for identifying a re-encoding control information area for each set rate. There are various methods for calculating re-encoded information. Basically, the amount of generated code of each picture, the average quantization scale, and the activity are weighted for each picture type, and the average over the previous time is calculated. Is the calculation standard. On the other hand, the above parameters of each picture are compared to calculate the code amount distribution ratio. Then, the target code amount is calculated by multiplying the set rate.

図10はM=3の時の各符号化平均レートによるフレーム単位の目標符号量を示した図である。通常リファレンスとなるI,Pピクチャにより多くの符号量を割り当てるが、設定平均レートが低い場合、Bピクチャの劣化を抑えるために、I,Pピクチャとの目標符号量の差を小さくするように重み付けを行う。   FIG. 10 is a diagram showing a target code amount in units of frames at each encoding average rate when M = 3. Usually, a larger amount of code is allocated to the reference I and P pictures, but when the set average rate is low, weighting is performed so as to reduce the difference in the target code amount from the I and P pictures in order to suppress deterioration of the B picture. I do.

図11は上記実施の形態の分離化処理部5の内部構成を示すブロックである。分離化処理部5は、TS_DEMUX部51と、再符号化制御情報抽出部52と、ESストリーム抽出部53とから構成されている。   FIG. 11 is a block diagram showing the internal configuration of the separation processing unit 5 of the above embodiment. The separation processing unit 5 includes a TS_DEMUX unit 51, a re-encoding control information extraction unit 52, and an ES stream extraction unit 53.

TS_DEMUX部51は記録媒体3に記録されたトランスポートストリームを読み出し、ビデオデータパケット、オーディオデータパケット、無効パケットを検出分離してそれぞれを出力する。再符号化制御情報抽出部52では、入力される記録モードに設定された再符号化の平均レートと、入力された再符号化制御情報が構成された無効パケットの設定レート識別より、再符号化制御情報を抽出し出力する。ESストリーム抽出部53は入力されるビデオデータパケット、オーディオデータパケットからビデオESストリーム、オーディオESストリームをそれぞれ抽出して出力する。なお、TS_DEMUX51では再符号化平均レートが「パス1記録」の時と同じ場合、すなわちレート変換が必要ない場合は無効パケットを取り除き、記録媒体3に記録することも可能である。   The TS_DEMUX unit 51 reads the transport stream recorded on the recording medium 3, detects and separates video data packets, audio data packets, and invalid packets and outputs them. The re-encoding control information extraction unit 52 performs re-encoding based on the average rate of re-encoding set in the input recording mode and the set rate identification of the invalid packet in which the input re-encoding control information is configured. Extract and output control information. The ES stream extraction unit 53 extracts the video ES stream and the audio ES stream from the input video data packet and audio data packet, respectively, and outputs them. In TS_DEMUX 51, when the re-encoding average rate is the same as when “pass 1 recording” is performed, that is, when rate conversion is not necessary, it is possible to remove invalid packets and record them on the recording medium 3.

図12は上記実施の形態におけるビデオデコーダ6の内部構成を示すブロック図である。ビデオデコーダ6は、VLD部(可変長符号復号器)61と、逆量子化部62と、逆DCT部63と、加算器64と、動き補償予測部65と、バッファメモリ66と、再符号化制御情報並び替え部67とから構成されている。   FIG. 12 is a block diagram showing the internal configuration of the video decoder 6 in the above embodiment. The video decoder 6 includes a VLD unit (variable length code decoder) 61, an inverse quantization unit 62, an inverse DCT unit 63, an adder 64, a motion compensation prediction unit 65, a buffer memory 66, and re-encoding. And a control information rearranging unit 67.

ビデオESストリームはVLD部61に入力され、VLD部61ではこのビデオESストリームに対して可変長符号をブロック毎に復号し、動きベクトル情報と、量子化された画像データを逆量子化部62に出力する。逆量子化部62では量子化された画像データを逆量子化し、DCTされた画像データ(DCT係数)を逆DCT部63に出力する。逆DCT部63ではこのDCT係数を入力として逆DCT処理を行い差分画像データを出力する。この差分画像データは加算器64に入力される。加算器64では、差分画像データと動き補償予測部65からの画像データとを加算して復号映像信号として出力すると共に、バッファメモリ66に蓄える。   The video ES stream is input to the VLD unit 61. The VLD unit 61 decodes a variable-length code for this video ES stream for each block, and sends motion vector information and quantized image data to the inverse quantization unit 62. Output. The inverse quantization unit 62 inversely quantizes the quantized image data and outputs the DCT image data (DCT coefficient) to the inverse DCT unit 63. The inverse DCT unit 63 performs an inverse DCT process with the DCT coefficient as an input, and outputs difference image data. This difference image data is input to the adder 64. In the adder 64, the difference image data and the image data from the motion compensation prediction unit 65 are added and output as a decoded video signal and stored in the buffer memory 66.

動き補償予測部65ではバッファメモリ66に蓄えられた復号画像データとVLD部61からの動きベクトル情報から動き補償を行い、復号映像信号を出力する。再符号化制御情報並び替え部67は再符号化制御情報及び記録モード情報を入力とし、記録モード情報が「パス2記録」の時は、バッファメモリ66に再符号化制御情報を記録する。そして図13に示すように、復号映像データと同じピクチャの並びで、出力される復号映像信号の画像に同期させた再符号化制御情報をバッファメモリ66から読み出し出力する。図13において、I0はIピクチャ、P3,P6等はPピクチャ、B1,B2等はBピクチャを表している。   The motion compensation prediction unit 65 performs motion compensation from the decoded image data stored in the buffer memory 66 and the motion vector information from the VLD unit 61, and outputs a decoded video signal. The re-encoding control information rearrangement unit 67 receives the re-encoding control information and the recording mode information, and records the re-encoding control information in the buffer memory 66 when the recording mode information is “pass 2 recording”. Then, as shown in FIG. 13, the re-encoding control information synchronized with the image of the decoded video signal to be output is read from the buffer memory 66 and output in the same picture sequence as the decoded video data. In FIG. 13, I0 is an I picture, P3, P6, etc. are P pictures, B1, B2, etc. are B pictures.

本実施の形態の動画像符号化装置によれば、いったん符号化された映像ビットストリームを復号し、その映像信号をビデオデコーダを用いて再度MPEG符号化してビットストリームを出力する「パス2記録」を行う場合に、ピクチャ毎の全ての符号化情報から再符号化時に動画像の内容に応じた適切な符号量配分で再符号化を行うことによってレート変換時の画質の劣化を抑制でき、また、符号化情報、再符号化制御情報をMPEG2トランスポートストリームの無効パケットに構成することによって、各ピクチャのビデオストリームパケットの先頭の前に位置させることで各情報の管理、アクセスが容易となる。また、本実施の形態の動画像符号化装置にて再符号化済みのストリームを他の通常機能のビデオデコーダで再生しても、無効パケットは呼び飛ばされるので正常な再生が可能であり、再符号化制御情報生成時に、設定された複数の再符号化平均レートに対して予め算出して格納しておくことで再符号化時にレート設定が行われた場合でもすぐに再符号化を開始することができ、再符号化を行わない場合に多重化された無効パケットを取り除くことでトランスポートストリームの符号量を削減できる。   According to the moving picture coding apparatus of the present embodiment, “pass 2 recording” in which a once-encoded video bitstream is decoded, the video signal is MPEG-encoded again using a video decoder, and a bitstream is output. When performing re-encoding from all the encoded information for each picture with re-encoding with an appropriate code amount distribution according to the content of the moving image at the time of re-encoding, degradation of image quality at the time of rate conversion can be suppressed, By configuring the encoded information and the re-encoding control information as invalid packets of the MPEG2 transport stream, each information can be easily managed and accessed by being positioned before the head of the video stream packet of each picture. Also, even if a stream that has been re-encoded by the moving picture encoding apparatus of the present embodiment is reproduced by another normal function video decoder, the invalid packet is skipped and normal reproduction is possible. When encoding control information is generated, re-encoding starts immediately even if the rate is set at the time of re-encoding by calculating and storing in advance the set multiple re-encoding average rates. In addition, when the re-encoding is not performed, the code amount of the transport stream can be reduced by removing the multiplexed invalid packet.

本発明の一つの実施の形態の動画像符号化装置の構成を示すブロック図。The block diagram which shows the structure of the moving image encoder of one embodiment of this invention. 上記実施の形態におけるビデオエンコーダの構成を示すブロック図。The block diagram which shows the structure of the video encoder in the said embodiment. アクティビティ算出方法の一例を示す図。The figure which shows an example of an activity calculation method. 上記実施の形態における多重化処理部の構成を示すブロック図。The block diagram which shows the structure of the multiplexing process part in the said embodiment. TSパケットの挿入位置の一例を示す図。The figure which shows an example of the insertion position of TS packet. TSパケット構造の一例を示す図。The figure which shows an example of TS packet structure. ペイロードに符号化情報を構成する一例を示す図。The figure which shows an example which comprises encoding information in a payload. 上記実施の形態における再符号化情報生成部の構成を示すブロック図。The block diagram which shows the structure of the re-encoding information generation part in the said embodiment. ペイロードの置き換えの構成の一例を示す図。The figure which shows an example of a structure of the replacement of a payload. M=3の時の各符号化平均レートによるフレーム単位の目標符号量を示した図。The figure which showed the target code amount of the frame unit by each encoding average rate when M = 3. 上記実施の形態における分離化処理部の構成を示すブロック図。The block diagram which shows the structure of the separation process part in the said embodiment. 上記実施の形態におけるビデオデコーダの構成を示すブロック図。The block diagram which shows the structure of the video decoder in the said embodiment. ピクチャ並びを示す図。The figure which shows a picture sequence.

符号の説明Explanation of symbols

1 ビデオエンコーダ
2 多重化処理部
3 記録媒体
4 再符号化情報生成部
5 分離化部
6 ビデオデコーダ
11、23 画像メモリ
12 減算器
13 DCT部
14 量子化部
15 VLC部
16 アクティビティ検出部
17 符号量制御部
18 符号化情報生成部
19,65 動き補償予測部
20,62 逆量子化部
21,63 逆DCT部
22,64 加算器
31 TSパケット生成部
32 符号化情報TSパケット生成部
33 TS_MUX部
41 符号化情報分離化処理部
42,66 バッファメモリ
43 再符号化情報演算部
44 再符号化制御情報多重化処理部
51 再符号化制御情報抽出部
52 TS_DEMUX部
53 ESストリーム抽出部
61 VLD部
67 再符号化制御情報並び替え
DESCRIPTION OF SYMBOLS 1 Video encoder 2 Multiplexing process part 3 Recording medium 4 Re-encoding information production | generation part 5 Separation part 6 Video decoder 11, 23 Image memory 12 Subtractor 13 DCT part 14 Quantization part 15 VLC part 16 Activity detection part 17 Code amount Control unit 18 Encoding information generation unit 19, 65 Motion compensation prediction unit 20, 62 Inverse quantization unit 21, 63 Inverse DCT unit 22, 64 Adder 31 TS packet generation unit 32 Encoding information TS packet generation unit 33 TS_MUX unit 41 Encoding information separation processing unit 42, 66 Buffer memory 43 Re-encoding information calculation unit 44 Re-encoding control information multiplexing processing unit 51 Re-encoding control information extracting unit 52 TS_DEMUX unit 53 ES stream extracting unit 61 VLD unit 67 Re Reorder encoding control information

Claims (2)

パス1記録時には入力される映像信号を所定の第1の符号化レートにて符号化し、パス2記録時にはフィードバックされる復号映像信号をフィードバックされる再符号化制御情報の指示する第2の符号化レートにて符号化してビデオESストリームを生成すると共に符号化情報を生成するビデオエンコーダと、
前記ビデオエンコーダからのビデオESストリームをオーディオESストリームと多重化してトランスポートストリームを生成すると共に、パス1記録時にはその無効パケットに前記符号化情報をピクチャ毎に書込む多重化処理部と、
前記多重化処理部の出力するトランスポートストリームを記録する記録媒体と、
パス1記録時に、前記記録媒体に記録されているパス1記録時のトランスポートストリームの無効パケットに書込まれたピクチャ毎の符号化情報全てからピクチャ毎の再符号化制御情報を算出し、もとの符号化情報が書込まれていた無効パケットの内容を再符号化制御情報に置き換えて当該録媒体に再記録する再符号化情報生成部と、
パス2記録時に、パス1記録の際に前記記録媒体に記録されたトランスポートストリームを読み出し、前記ビデオESストリームとオーディオESストリームとを分離して出力し、同時にピクチャ毎の再符号化制御情報を前記無効パケットから抽出する分離化処理部と、
パス2記録時に、前記ビデオESストリームをデコードして復号映像信号を生成すると共に、前記分離化処理部の抽出したピクチャ毎の再符号化制御情報をエンコード時の並びから映像出力並びに変換し、前記復号映像信号と同期して共に前記ビデオエンコーダに出力するビデオデコーダとを備えた動画像符号化装置。
The second encoding that the encoded video signal is encoded at a predetermined first encoding rate at the time of pass 1 recording and the re-encoding control information that is fed back the decoded video signal that is fed back at the time of pass 2 recording. A video encoder for encoding at a rate to generate a video ES stream and for generating encoded information;
A multiplexing process unit that multiplexes a video ES stream from the video encoder with an audio ES stream to generate a transport stream, and writes the encoded information for each picture in an invalid packet during pass 1 recording;
A recording medium for recording a transport stream output from the multiplexing processing unit;
At the time of pass 1 recording, re-encoding control information for each picture is calculated from all the encoding information for each picture written in the invalid packet of the transport stream recorded at the time of pass 1 recording on the recording medium, A re-encoding information generating unit that replaces the content of the invalid packet in which the encoding information is written with the re-encoding control information and re-records it on the recording medium,
At the time of pass 2 recording, the transport stream recorded on the recording medium at the time of pass 1 recording is read out, the video ES stream and the audio ES stream are separated and output, and at the same time, re-encoding control information for each picture is recorded. A separation processing unit for extracting from the invalid packet;
During pass 2 recording, the video ES stream is decoded to generate a decoded video signal, and the re-encoding control information for each picture extracted by the separation processing unit is output and converted from the sequence at the time of encoding, A video encoding device comprising: a video decoder that outputs to the video encoder together with a decoded video signal.
前記ピクチャ毎の無効パケットは、当該無効パケットが多重化されるビデオESストリームのパケットの先頭パケットの前位置にしたことを特徴とする請求項1に記載の動画像符号化装置。
2. The moving picture encoding apparatus according to claim 1, wherein the invalid packet for each picture is set to a position before a head packet of a packet of a video ES stream in which the invalid packet is multiplexed.
JP2005130451A 2005-04-27 2005-04-27 Moving image encoding device Pending JP2006311135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005130451A JP2006311135A (en) 2005-04-27 2005-04-27 Moving image encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005130451A JP2006311135A (en) 2005-04-27 2005-04-27 Moving image encoding device

Publications (1)

Publication Number Publication Date
JP2006311135A true JP2006311135A (en) 2006-11-09

Family

ID=37477515

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005130451A Pending JP2006311135A (en) 2005-04-27 2005-04-27 Moving image encoding device

Country Status (1)

Country Link
JP (1) JP2006311135A (en)

Similar Documents

Publication Publication Date Title
US7844166B2 (en) Reproduction device, video decoding device, synchronization/reproduction method, program and recording medium
JP4769717B2 (en) Image decoding method
JP4534935B2 (en) Transcoder, recording apparatus, and transcoding method
KR20110068946A (en) Image decoding device, image encoding device, image decoding method, image encoding method, and program
JPH11285002A (en) Device and method for encoding moving image
JP4797974B2 (en) Imaging device
JP5115345B2 (en) Storage / reproduction device, storage device, and storage / reproduction method
JP2002199392A (en) Method and device for encoding image
JP3748234B2 (en) MPEG data recording method
JP2008042660A (en) Video signal reencoding device and video signal reencoding method
JP2003052040A (en) Mpeg data reproduction equipment
JP2006311135A (en) Moving image encoding device
JP4178521B2 (en) Encoded video signal recording method and video signal encoding apparatus
JP2003023637A (en) Image coding method and image coding device
JP4193224B2 (en) Moving picture coding apparatus and method, and moving picture decoding apparatus and method
JP4291185B2 (en) Transcoding method, transcoder and program
JP5240230B2 (en) Transcoder, recording apparatus, and transcoding method
JP2008211555A (en) Video signal encoding device and video signal encoding method
JP3748243B2 (en) MPEG data recording device
JP2010056849A (en) Video signal re-encoding apparatus and method
JP3748240B2 (en) MPEG data recording method
JP3748241B2 (en) MPEG data recording method
JP3748242B2 (en) MPEG data recording method
JP3748244B2 (en) MPEG data recording device
JP3748245B2 (en) MPEG data recording device