JPH08336138A - Moving image compression device - Google Patents

Moving image compression device

Info

Publication number
JPH08336138A
JPH08336138A JP14205095A JP14205095A JPH08336138A JP H08336138 A JPH08336138 A JP H08336138A JP 14205095 A JP14205095 A JP 14205095A JP 14205095 A JP14205095 A JP 14205095A JP H08336138 A JPH08336138 A JP H08336138A
Authority
JP
Japan
Prior art keywords
gop
frame
time code
image
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP14205095A
Other languages
Japanese (ja)
Other versions
JP2824028B2 (en
Inventor
Hideo Arai
英雄 新井
Ryozo Abe
良三 阿部
Toshibumi Sakaguchi
俊文 坂口
Yoshizumi Wataya
由純 綿谷
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.)
GRAPHICS COMMUN LAB KK
Original Assignee
GRAPHICS COMMUN LAB KK
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 GRAPHICS COMMUN LAB KK filed Critical GRAPHICS COMMUN LAB KK
Priority to JP14205095A priority Critical patent/JP2824028B2/en
Publication of JPH08336138A publication Critical patent/JPH08336138A/en
Application granted granted Critical
Publication of JP2824028B2 publication Critical patent/JP2824028B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE: To fit the minute and second of a time code to the boundary of an image aggregate. CONSTITUTION: A moving image signal is inputted from an image signal input terminal 1. While, when a drop frame is included in the time code inputted from a time code input terminal 101, it is detected by a drop frame predicting/ detecting means 103. A GOP constitution decision means 104 decides the length of a GOP and each frame setting which picture out of I, P and B pictures as an image compression is performed based on a detected result, and the compression is performed with decided GOP length and picture type by an encoder means 2, and the signal is outputted from a bit stream output terminal 3.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ディジタル動画像を圧
縮する動画像圧縮装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture compression apparatus for compressing a digital moving picture.

【0002】[0002]

【従来の技術】MPEG(Moving Picture Experts Gro
up)1,MPEG2による動画像圧縮では、画像を小さ
なブロック(マクロブロック=16画素×16画素の矩
形)に分割し、時間的に前後の画像の中から、圧縮しよ
うとするマクロブロックに似た領域(参照画像領域)を
抽出し、参照画像領域との空間的な距離、方位(動きベ
クトル)と、参照画像領域と圧縮しようとする領域の差
分情報を計算し、これらの情報を、DCT、可変長符号
化を用いて圧縮している。このように動きベクトルと差
分情報だけを圧縮した方が、原画像そのものを圧縮する
よりも、はるかに効率良く圧縮できる。
2. Description of the Related Art MPEG (Moving Picture Experts Gro)
up) 1, In moving image compression by MPEG2, an image is divided into small blocks (macroblock = rectangle of 16 pixels × 16 pixels), and the temporally preceding and following images are similar to the macroblock to be compressed. A region (reference image region) is extracted, spatial distance and orientation (motion vector) with respect to the reference image region, and difference information between the reference image region and the region to be compressed are calculated, and these information are calculated by the DCT, It is compressed using variable length coding. Thus, compressing only the motion vector and the difference information is much more efficient than compressing the original image itself.

【0003】差分情報によって圧縮されたピクチャー
は、参照するピクチャーがないと復元できないため、周
期的に、他の画像を参照しないピクチャーを設ける必要
がある。この画像をI(Intra )ピクチャーと呼ぶ。I
ピクチャーを参照画像として、次の画像を圧縮し、さら
に、すでに圧縮された画像を参照画像として次の画像を
圧縮していく。参照画像を用いて圧縮するピクチャーの
中には、時間的に前方のピクチャーのみを参照画像とす
るP(Predictive)ピクチャーと、時間的に前後のピク
チャーを参照画像とするB(Bidirectionally-Predicti
ve)ピクチャーがある。Pピクチャーは、Iピクチャー
と同様に、他の画像の参照画像となりうる。Iピクチャ
ーは、P,Bピクチャーよりも、多くの情報量を必要と
する。1枚以上のIピクチャーと、このIピクチャーを
参照画像として圧縮されたP,Bピクチャーの集合体を
GOP(Group of Picture)と呼ぶ。
The picture compressed by the difference information cannot be restored unless there is a picture to refer to, so it is necessary to periodically provide pictures that do not refer to other pictures. This image is called an I (Intra) picture. I
The next image is compressed using the picture as the reference image, and the next image is further compressed using the already compressed image as the reference image. Among pictures to be compressed using reference images, a P (Predictive) picture in which only a temporally preceding picture is a reference image and a B (Bidirectionally-Predicti) in which temporally preceding and subsequent pictures are reference images are included.
ve) There is a picture. Like the I picture, the P picture can be a reference image of another image. The I picture requires a larger amount of information than the P and B pictures. An aggregate of one or more I pictures and P and B pictures compressed using the I pictures as a reference image is called a GOP (Group of Picture).

【0004】図7(a)に、GOPの一例を示す。この
図では、入力画像は10フレーム周期でIピクチャーと
して圧縮され、その間の9フレームがPピクチャーとし
て圧縮され、Bピクチャーは存在していない例である。
図中のNはGOPの長さ、MはIまたはPピクチャーの
周期である。
FIG. 7A shows an example of GOP. In this figure, an input image is compressed as an I picture at a cycle of 10 frames, 9 frames in the meantime are compressed as P pictures, and a B picture does not exist.
In the figure, N is the length of GOP, and M is the period of I or P picture.

【0005】この例では、まず、フレーム0がIピクチ
ャーとして、他の画像を参照しないで圧縮され、次に、
フレーム1がPピクチャーとして、前方のフレーム0を
参照して圧縮される。以降のPピクチャーが、順次、前
のフレームを参照画像として圧縮される。この構成の場
合、1GOPは10枚のフレームより構成されている。
In this example, frame 0 is first compressed as an I picture without referring to other images, and then,
Frame 1 is compressed as a P picture with reference to the previous frame 0. Subsequent P pictures are sequentially compressed using the previous frame as a reference image. In this configuration, one GOP is composed of 10 frames.

【0006】図7(b)に、GOPの他の例を示す。こ
の図では、入力画像は10フレーム周期でIピクチャー
として圧縮され、その間の1フレームおきにPピクチャ
ーとして圧縮され、残りの5フレームがBピクチャーと
して圧縮されている。
FIG. 7 (b) shows another example of the GOP. In this figure, the input image is compressed as I pictures at a cycle of 10 frames, compressed every other frame as P pictures, and the remaining 5 frames are compressed as B pictures.

【0007】この例では、まず、フレーム1がIピクチ
ャーとして、他の画像を参照しないで圧縮され、次に、
フレーム0がBピクチャーとして、後方のフレーム1を
参照して圧縮される。次に、フレーム3がPピクチャー
として、前方のフレーム1を参照して圧縮され、フレー
ム2がBピクチャーとして、前後のフレーム1,3を参
照画像として、圧縮される。
In this example, first, frame 1 is compressed as an I picture without referring to other images, and then,
Frame 0 is compressed as a B picture with reference to the subsequent frame 1. Next, the frame 3 is compressed as a P picture by referring to the front frame 1, and the frame 2 is compressed as a B picture by using the preceding and following frames 1 and 3 as reference images.

【0008】図7(c)に、GOPの他の例を示す。こ
の図では、入力画像は6フレーム周期でIピクチャーと
して圧縮され、その間の2フレームおきにPピクチャー
として圧縮され、残りの4フレームがBピクチャーとし
て圧縮されている。
FIG. 7 (c) shows another example of the GOP. In this figure, the input image is compressed as an I picture at a cycle of 6 frames, compressed every other frame as a P picture, and the remaining 4 frames as a B picture.

【0009】この例では、まず、フレーム2がIピクチ
ャーとして、他の画像を参照しないで圧縮され、次に、
フレーム0,1がBピクチャーとして、後方のフレーム
2を参照して圧縮される。次に、フレーム5がPピクチ
ャーとして、前方のフレーム2を参照して圧縮され、フ
レーム3,4がBピクチャーとして、前後のフレーム
2,5を参照画像として、圧縮される。
In this example, first, frame 2 is compressed as an I picture without referring to other images, and then,
Frames 0 and 1 are compressed as B pictures with reference to the subsequent frame 2. Next, the frame 5 is compressed as a P picture with reference to the front frame 2, and the frames 3 and 4 are compressed as B pictures and the preceding and following frames 2 and 5 are compressed as reference images.

【0010】GOPの長さは、任意に定めることが可能
である。GOPの長さが短い程、Iピクチャーの割合が
増加し、圧縮効率が低下する。しかし、Iピクチャーが
多い程、圧縮の結果得られる信号(ビットストリーム)
の途中から再生画像を得ることが出来る点が増加する。
そのため、GOPの長さは、ビットストリームの用途に
よって決定されるのが一般的である。例えば、テレビ会
議に用いる場合は、圧縮の結果得られるビットストリー
ムは極力少ない方がよく、また、ビットストリームがと
ぎれても、受信側から送信側へ再送要求を出すことが可
能であることから、Iピクチャーの周期は長くても良
い。一方、ビットストリームを用いてテレビジョン放送
を行う場合、視聴者がチャンネルを切り換えた結果、ビ
ットストリームの途中から受信を始める場合でも、比較
的短い時間で再生画像を出力する必要があるため、Iピ
クチャーの間隔は短い方が良い。
The length of GOP can be arbitrarily determined. The shorter the GOP length, the greater the proportion of I pictures and the lower the compression efficiency. However, the more I-pictures there are, the more the signal obtained as a result of compression (bitstream)
The point that a reproduced image can be obtained increases from the middle of.
Therefore, the GOP length is generally determined by the usage of the bitstream. For example, when used for a video conference, it is better that the bit stream obtained as a result of compression is as small as possible, and even if the bit stream is interrupted, it is possible to issue a resend request from the receiving side to the transmitting side. The I-picture cycle may be long. On the other hand, when performing a television broadcast using a bitstream, it is necessary for the viewer to output a reproduced image in a relatively short time even if the viewer starts receiving from the middle of the bitstream as a result of switching channels. The shorter the picture interval, the better.

【0011】このように、GOPの長さは用途によって
設定されていたため、ビットストリームの途中でGOP
の長さを変える必要性は存在していなかった。そのた
め、従来のMPEGエンコーダでは、GOPの長さは圧
縮開始時に設定された値のままで、ビットストリームの
最後まで変更されることはなかった。
As described above, since the length of the GOP is set according to the use, the GOP is set in the middle of the bit stream.
There was no need to change the length of the. Therefore, in the conventional MPEG encoder, the GOP length remains the value set at the start of compression and is not changed until the end of the bitstream.

【0012】[0012]

【発明が解決しようとする課題】現時点では、MPEG
2規格による画像圧縮を行うエンコーダは高価であり、
持ち運びも不便である。そのため、MPEG2規格をテ
レビジョン放送に用いる場合、放送局から一般家庭に放
送する直前で動画像圧縮して送出する可能性が高い。こ
のような使用方法では、放送局に最低1台のエンコーダ
があれば良い。放送素材やコマーシャル素材などは、非
圧縮のまま、保存または伝送されることになる。非圧縮
の素材を、所定の順序に編集(一本化)してから、MP
EG2圧縮することになる。
At the present time, MPEG is used.
Encoders that perform image compression according to the two standards are expensive,
It is also inconvenient to carry. Therefore, when the MPEG2 standard is used for television broadcasting, there is a high possibility that a moving image is compressed and transmitted immediately before being broadcast from a broadcasting station to a general home. In such a usage method, it is sufficient that the broadcasting station has at least one encoder. Broadcast materials and commercial materials are stored or transmitted without being compressed. Edit the uncompressed material in a predetermined order (unify), then MP
EG2 will be compressed.

【0013】しかし、技術革新によりMPEG2エンコ
ーダが安価で軽量になると、放送素材やコマーシャル素
材も、MPEG2圧縮されて伝送または保存されると予
想される。このような用途では、予めMPEG2圧縮さ
れたビットストリーム同士を放送局で編集し、一般家庭
に送出する。
However, when the MPEG2 encoder becomes cheaper and lighter due to technological innovation, it is expected that broadcast materials and commercial materials will also be MPEG2 compressed and transmitted or stored. In such an application, bitstreams that have been MPEG2 compressed in advance are edited by a broadcasting station and sent to a general home.

【0014】MPEG2圧縮されたビットストリームを
編集のためにカットする場合、上記で説明したGOPの
途中で切って編集することは難しいため、GOP単位で
編集することになる。図7(a),(b)で示した例で
は、10フレーム毎に、カット可能な点が存在し、図7
(c)で示した例では、6フレーム毎に、カット可能な
点が存在する。
When cutting an MPEG2-compressed bit stream for editing, it is difficult to cut and edit in the middle of the GOP described above. Therefore, the GOP is edited. In the example shown in FIGS. 7A and 7B, there is a point that can be cut every 10 frames.
In the example shown in (c), there are cuttable points every 6 frames.

【0015】放送に用いられるビデオ素材には、各フレ
ームに、タイムコードと呼ばれる時間を示す番号が付加
されている。ビデオ素材を編集する場合は、このタイム
コードを参照して編集点を決定する。タイムコードは、
時:分:秒:フレームの4つの数字からなる。
In the video material used for broadcasting, a number called a time code is added to each frame. When editing video material, the edit point is determined by referring to this time code. The time code is
It consists of four numbers: hour: minute: second: frame.

【0016】日本、米国などでテレビジョン放送に用い
られているNTSC信号は、1秒間に、29.97枚の
画像を伝送する。この値はおおよそ30であるため、フ
レーム番号は、0から29の値で表現されるが、30か
らは0.1%ずれているため、部分的に不連続になる。
The NTSC signal used for television broadcasting in Japan and the United States transmits 29.97 images per second. Since this value is approximately 30, the frame number is represented by a value from 0 to 29, but it is partially discontinuous because it deviates from 30 by 0.1%.

【0017】具体的には、毎時0分、10分、20分、
30分、40分、50分を除く各正分(分単位で区切り
の良い値、すなわち、秒、フレームの値が、00秒00
フレーム)の開始から、2フレームずつ(00フレーム
と01フレーム)、タイムコードを間引いている。間引
いたタイムコードのフレームを、ドロップフレームと称
する。このように、0.1%のフレームを間引くことに
より実時間と、タイムコードの時間のずれが蓄積される
ことを防止している。
Specifically, 0 minutes, 10 minutes, 20 minutes every hour,
Each minute except 30 minutes, 40 minutes, and 50 minutes (values that are well separated in minutes, that is, seconds and frame values are 00 seconds 00
From the start of (frame), the time code is thinned out every two frames (00 frame and 01 frame). A frame of the thinned time code is called a drop frame. In this way, by thinning out 0.1% frames, it is possible to prevent the time lag between the real time and the time code from being accumulated.

【0018】このように、NTSC信号の1秒間のフレ
ーム数は整数ではないため、従来方法のように、ビデオ
信号を等フレーム間隔に分割してGOPを構成すると、
GOP先頭フレームと正分の関係は、僅かずつずれてい
くことになる。例えば、00分00秒00フレームで最
初のGOPを開始し、10フレームずつGOPで分割し
ていくと、01分00秒02フレーム、02分00秒0
4フレーム、03分00秒06フレーム、04分00秒
08フレームが、それぞれGOP先頭となる。このよう
に、最初に正分、正秒がGOP先頭となるように圧縮を
開始しても、徐々にずれていくという欠点を持ってい
た。
As described above, since the number of frames per second of the NTSC signal is not an integer, when the GOP is constructed by dividing the video signal into equal frame intervals as in the conventional method,
The relationship between the GOP head frame and the positive segment is slightly shifted. For example, if the first GOP is started at 00 minutes 00 seconds 00 frames and divided by 10 frames each, 01 minutes 00 seconds 02 frames, 02 minutes 00 seconds 0
Four frames, 03 minutes 00 seconds 06 frames, and 04 minutes 00 seconds 08 frames are the GOP heads, respectively. As described above, even if the compression is started so that the minute and the second are the heads of the GOP first, there is a drawback that the compression gradually shifts.

【0019】放送局では、決められたタイムスケジュー
ルに従って、ビデオ信号を編集して一般家庭に送出する
が、タイムスケジュールは、正分または正秒単位で決定
されていることが多い。そのため、ビットストリームを
編集して送出信号を作成する場合でも、正分、正秒単位
で編集できなければならない。従来のGOP構成では、
最初に、GOP先頭が正分、正秒となるように圧縮を開
始しても、徐々にずれていってしまうため、編集希望点
がGOP先頭となる保証はない。そのため、編集作業に
支障をきたすことが予想される。
A broadcasting station edits a video signal according to a predetermined time schedule and sends it to a general home, but the time schedule is often decided in units of minute or second. Therefore, even when a bitstream is edited to create a transmission signal, it must be possible to edit in units of minutes and seconds. In the conventional GOP configuration,
First, even if the compression is started so that the GOP head is a minute and a second, the GOP head is not guaranteed because it gradually shifts. Therefore, it is expected that editing work will be hindered.

【0020】本発明は、上記従来の問題点を解決するた
めになされたもので、タイムコード正分,正秒を画像集
合体の境界に合わせることが可能な動画像圧縮装置を提
供することを目的とする。
The present invention has been made in order to solve the above-mentioned conventional problems, and it is an object of the present invention to provide a moving picture compression apparatus capable of aligning time code minutes and seconds to the boundary of an image aggregate. To aim.

【0021】[0021]

【課題を解決するための手段】本発明にかかる動画像圧
縮装置は、動画像を所定のフレームの画像集合体に分割
して圧縮する動画像圧縮装置において、前記各フレーム
のタイムコードが入力されるタイムコード入力手段、ま
たはタイムコードを発生するタイムコード生成手段と、
前記タイムコード中のドロップフレームを予測、検出す
るドロップフレーム予測、検出手段と、ドロップフレー
ム予測、検出手段の結果を元に前記画像集合体の画像数
を決定する画像集合体決定手段を有するものである。
A moving picture compression apparatus according to the present invention is a moving picture compression apparatus which divides a moving picture into image aggregates of predetermined frames and compresses the time code of each frame. Time code input means or time code generation means for generating time code,
A drop frame predicting and detecting means for predicting and detecting a drop frame in the time code; and an image aggregate determining means for determining the number of images of the image aggregate based on the results of the drop frame predicting and detecting means. is there.

【0022】[0022]

【作用】MPEG2規格では、ビットストリームの途中
でGOPの長さを変えることは可能である。タイムコー
ド中のドロップフレームの存在をドロップフレーム予
測、検出手段で検知して、ドロップフレームがある場合
にはGOPの長さを変えて動画像圧縮する。
According to the MPEG2 standard, it is possible to change the GOP length in the middle of the bit stream. The presence of a drop frame in the time code is detected by the drop frame prediction / detection means, and if there is a drop frame, the length of GOP is changed to perform moving image compression.

【0023】このように動画像圧縮することにより、全
ての正分、正秒をGOP先頭とするようなビットストリ
ームを作成することが可能となる。
By compressing the moving image in this way, it is possible to create a bit stream in which every minute and every second are GOP heads.

【0024】[0024]

【実施例】図1は、本発明の一実施例である動画像圧縮
装置の構成を示すブロック図である。図1を用いて、本
実施例の構成ならびに動作を説明する。
1 is a block diagram showing the configuration of a moving picture compression apparatus according to an embodiment of the present invention. The configuration and operation of this embodiment will be described with reference to FIG.

【0025】図1において、1は画像信号入力端子、1
01はタイムコード入力端子、103はドロップフレー
ム予測、検出手段、104はGOP構成決定手段、2は
エンコード手段、3はビットストリーム出力端子であ
る。
In FIG. 1, 1 is an image signal input terminal and 1
Reference numeral 01 is a time code input terminal, 103 is a drop frame prediction / detection means, 104 is a GOP configuration determination means, 2 is an encoding means, and 3 is a bit stream output terminal.

【0026】本実施例の動画像圧縮装置では、画像信号
入力端子1から入力された動画像信号と、タイムコード
入力端子101から入力されたタイムコードを、所定の
規格に基づいて圧縮し、ビットストリーム出力端子3よ
り出力する機能を有する。
In the moving picture compression apparatus of this embodiment, the moving picture signal inputted from the picture signal input terminal 1 and the time code inputted from the time code input terminal 101 are compressed in accordance with a predetermined standard, and the bit is compressed. It has a function of outputting from the stream output terminal 3.

【0027】画像信号入力端子1から入力された動画像
信号は、タイムコード入力端子101から入力されるタ
イムコードと同期しており、このタイムコードはドロッ
プフレームを含んでいる。タイムコードは、ドロップフ
レーム予測、検出手段103にて、これから圧縮しよう
とするGOP中にタイムコードの不連続があるかを判断
し、この結果をもとに、GOP構成決定手段104に
て、GOPの長さ、および、各フレームをI,P,Bピ
クチャーのいずれの画像として圧縮されるかが決定さ
れ、圧縮手段であるエンコード手段2にて、このGOP
長、ピクチャータイプで圧縮される。
The moving image signal input from the image signal input terminal 1 is synchronized with the time code input from the time code input terminal 101, and this time code includes a drop frame. As for the time code, the drop frame prediction / detection means 103 determines whether or not there is discontinuity in the time code in the GOP to be compressed, and based on this result, the GOP configuration determination means 104 determines the GOP. Of the GOP and the I, P, and B pictures to which each frame is to be compressed are determined.
Compressed in long and picture type.

【0028】ドロップフレーム予測、検出手段103の
動作、および、GOP構成決定手段104の動作を、図
2を用いて説明する。
The drop frame prediction, the operation of the detecting means 103, and the operation of the GOP configuration determining means 104 will be described with reference to FIG.

【0029】図2は、GOPの長さ、および、構成の決
定方法を示すフローチャートである。図2中、A101
で囲まれた領域は、図1中のドロップフレーム予測、検
出手段103での判定を示すフローチャートであり、A
102で囲まれた領域は、図1中のGOP構成決定手段
104での判定を示すフローチャートであり、(S1)
〜(S12)は各ステップを示す。領域A101のフロ
ーでGOPの長さを決定し、その結果を受けて、図2中
の領域A102のフローでGOP構造を決定する。
FIG. 2 is a flow chart showing a method for determining the length of the GOP and the configuration. In FIG. 2, A101
The area surrounded by is a flow chart showing the drop frame prediction in FIG.
The area surrounded by 102 is a flow chart showing the judgment by the GOP configuration determining means 104 in FIG. 1 (S1).
(S12) shows each step. The length of the GOP is determined by the flow of the area A101, and in response to the result, the GOP structure is determined by the flow of the area A102 in FIG.

【0030】ドロップフレームを含まない場合のGOP
長をNとし、IまたはPピクチャーの周期をMとする。
図7中のN、Mに相当する。まず、GOP長Nを決定す
る。そのために、入力されるタイムコードを用いて、こ
れから圧縮しようとするNフレーム中に、ドロップフレ
ームを含むか否か判定する(S1)。含んでいないなれ
ば、GOP長をNとする。GOP長をNとするために、
領域A102で使用するフレームカウンタnの初期値を
0にする(S3)。ステップ(S1)でドロップフレー
ムを含んでいるならば、さらに、これから圧縮しようと
うするN−1フレーム中に、ドロップフレームを含むか
否か判定する(S2)。ドロップフレームを含む場合
は、GOP長をN−2とし、フレームカウンタnの初期
値を2にする(S4)。ステップ(S2)で含んでいな
いならば、GOP長をN−1とし、フレームカウンタn
の初期値を1にする(S5)。
GOP when no drop frame is included
Let N be the length and M be the period of the I or P picture.
It corresponds to N and M in FIG. First, the GOP length N is determined. Therefore, it is determined using the input time code whether or not a drop frame is included in the N frames to be compressed (S1). If it is not included, the GOP length is set to N. To set the GOP length to N,
The initial value of the frame counter n used in the area A102 is set to 0 (S3). If a drop frame is included in step (S1), it is further determined whether or not a drop frame is included in the N-1 frames to be compressed (S2). If a drop frame is included, the GOP length is set to N-2 and the initial value of the frame counter n is set to 2 (S4). If it is not included in the step (S2), the GOP length is set to N-1, and the frame counter n
The initial value of is set to 1 (S5).

【0031】図3は、N=6の場合を例にとり、領域A
101のフローでの判定基準と判定結果の関係を、GO
P境界でのタイムコードの値によって示した図である。
FIG. 3 shows the area A by taking the case of N = 6 as an example.
The relationship between the judgment standard and the judgment result in the flow 101 is GO
It is the figure shown by the value of the time code in P boundary.

【0032】図3(a)は、圧縮しようとするフレーム
から、Nフレームの間に、ドロップフレームが存在しな
い例である。この場合は、GOP長をNにしても、ドロ
ップフレームがGOP中に存在することがない。そのた
め、ドロップフレーム直後に来る正分のフレーム(図3
(a)では、0:01:00:02)は、GOP先頭フ
レームとなる。この状態は、図2中のステップ(S3)
に相当する。
FIG. 3A shows an example in which no drop frame exists between the frame to be compressed and N frames. In this case, even if the GOP length is N, the drop frame does not exist in the GOP. Therefore, the right-hand frame that comes immediately after the drop frame (see FIG.
In (a), 00: 01: 00: 02 is the GOP head frame. This state is the step (S3) in FIG.
Equivalent to.

【0033】図3(b)は、エンコードしようとするフ
レームから、Nフレームの間に、ドロップフレームが存
在する例である。この場合は、GOP長をN−1にする
ことにより、ドロップフレームがGOP中に存在しない
ようにエンコードすることが出来る。この時、ドロップ
フレーム直後に来る正分のフレーム(図3(b)では、
0:01:00:02)は、GOP先頭のフレームとな
る。この状態は、図2中のステップ(S5)に相当す
る。
FIG. 3B shows an example in which a drop frame exists between the frame to be encoded and N frames. In this case, by setting the GOP length to N-1, it is possible to encode so that the drop frame does not exist in the GOP. At this time, the frame of the right segment that comes immediately after the drop frame (in FIG. 3B,
0: 01: 00: 02) is the first frame of the GOP. This state corresponds to step (S5) in FIG.

【0034】図3(c)は、エンコードしようとするフ
レームから、N−1フレームの間に、ドロップフレーム
が存在する例である。この場合は、GOP長をN−2に
することにより、ドロップフレームがGOP中に存在し
ないようにエンコードすることが出来る。この時、ドロ
ップフレーム直後に来る正分のフレーム(図3(c)で
は、0:01:00:02)は、GOP先頭のフレーム
となる。この状態は、図2中のステップ(S4)に相当
する。
FIG. 3C is an example in which a drop frame exists between the frame to be encoded and the N-1 frame. In this case, by setting the GOP length to N-2, it is possible to encode so that the drop frame does not exist in the GOP. At this time, the frame of the correct number (0: 01: 00: 02 in FIG. 3C) immediately after the drop frame is the GOP head frame. This state corresponds to step (S4) in FIG.

【0035】以上のようにして、図1中のドロップフレ
ーム予測・検出手段103でドロップフレームの存在が
予測され、その結果、決定されたGOP長に従って、図
1中GOP構成決定手段104で、各フレームにI,
P,Bピクチャーを割り当てる。
As described above, the drop frame predicting / detecting means 103 in FIG. 1 predicts the existence of a drop frame, and as a result, the GOP configuration determining means 104 in FIG. I in the frame,
Assign P and B pictures.

【0036】図2の領域A102では、フレームカウン
タnの値をもとに、ピクチャータイプを決定する(S
6)。
In the area A102 of FIG. 2, the picture type is determined based on the value of the frame counter n (S).
6).

【0037】まず、nをMで割った余りを判定すること
により、Bピクチャーにすべきか否かを決定する。nを
Mで割った余りが(M−1)に等しくないならば、Bピ
クチャーとする(S8)。ステップ(S6)中、%で表
した演算子は、左項を右項で割った余りを算出する2項
演算子である。Bピクチャーでない場合は、Iピクチャ
ーまたはPピクチャーとして圧縮するが、GOPの中
で、Bピクチャーでない最初のフレームはIピクチャー
として圧縮し、以降のBピクチャーでないフレームはP
ピクチャーとして圧縮する(S7,S9,S10)。
First, by determining the remainder when n is divided by M, it is determined whether or not the B picture should be used. If the remainder obtained by dividing n by M is not equal to (M-1), the B picture is selected (S8). In step (S6), the operator represented by% is a binary operator that calculates the remainder by dividing the left term by the right term. If it is not a B picture, it is compressed as an I picture or a P picture. In the GOP, the first frame that is not a B picture is compressed as an I picture, and the subsequent frames that are not B pictures are P pictures.
It is compressed as a picture (S7, S9, S10).

【0038】このようにピクチャータイプを決定した
後、フレームカウンタnを1だけ増加させる(S1
1)。フレームカウンタが、GOP長Nと等しくなった
場合は(S12)、次GOPの処理を開始するために、
ステップ(S1)の状態に遷移する。それ以外は、次の
ピクチャーのピクチャータイプを決定する処理に移るた
めに、ステップ(S6)に遷移する。
After determining the picture type in this way, the frame counter n is incremented by 1 (S1).
1). When the frame counter becomes equal to the GOP length N (S12), in order to start the processing of the next GOP,
Transition to the state of step (S1). Otherwise, the process proceeds to step (S6) to move to the process of determining the picture type of the next picture.

【0039】このようにして決定されたピクチャータイ
プに従って、図1中のエンコード2において圧縮され、
ビットストリーム出力端子3より出力される。
According to the picture type determined in this way, compression is performed in the encoder 2 in FIG.
It is output from the bitstream output terminal 3.

【0040】図4は、本実施例によりエンコードされた
動画像と、従来方法によりエンコードされた動画像のG
OP構成の一例を示した図である。
FIG. 4 shows G of the moving image encoded by this embodiment and the moving image encoded by the conventional method.
It is a figure showing an example of OP composition.

【0041】本図において、201は、入力画像のタイ
ムコード例であり、時:分:秒:フレームを表してい
る。211は、本実施例によってエンコードされた場合
のGOP分割例であり、212,213,214は、そ
れぞれGOPである。一方、221は、従来方法によっ
てエンコードされた場合のGOP分割例であり、22
2,223,224は、それぞれGOPである。
In the figure, 201 is an example of a time code of an input image and represents hours: minutes: seconds: frames. Reference numeral 211 is an example of GOP division when encoded according to this embodiment, and reference numerals 212, 213, and 214 are GOPs. On the other hand, 221 is an example of GOP division when encoded by the conventional method.
2, 223 and 224 are GOPs, respectively.

【0042】この例では、1GOPが10フレームから
なり(N=10)、0時00分59秒20フレームでG
OPが開始する場合の、GOP開始フレームと正分の関
係を示している。
In this example, 1 GOP consists of 10 frames (N = 10), and 0: 00: 59: 20 is 20 frames.
It shows the relationship between the GOP start frame and the positive component when the OP starts.

【0043】最初のGOPでは、Nフレーム期間内にド
ロップフレームが存在しないため、本実施例でも従来方
法と同様に、10フレームでGOPを構成する。次の正
分(0時01分00秒02フレーム)では、本実施例、
従来例とも、GOP先頭が正分となっている。
In the first GOP, since there are no drop frames within the N frame period, the GOP is composed of 10 frames in this embodiment as in the conventional method. In the next minute (0: 01: 00: 02 frame), in this embodiment,
In both the conventional examples, the head of the GOP is the exact minute.

【0044】次のGOPでは、0フレーム目にドロップ
フレームが存在するため、本実施例では8フレームでG
OPを構成する。一方、従来方法では、GOP内フレー
ム数は一定であるため、10フレームでGOPを構成す
る。その結果、本実施例では0時01分00秒10フレ
ームから次のGOPが開始するのに対し、従来方法で
は、0時01分00秒12フレームから次のGOPが開
始することになり、従来方法では、GOP開始フレーム
番号が、Nで割り切れない値となる。このずれは、その
まま保持されていくので、次の正分である0時02分0
0秒02フレームでは、本実施例では、GOP先頭が正
分となっているのに対し、従来方法では、GOP先頭と
正分が一致していない。以下の正分では、さらにずれが
拡大する。
In the next GOP, since the drop frame exists in the 0th frame, in this embodiment, the G frame is set in 8 frames.
Configure OP. On the other hand, in the conventional method, since the number of frames in the GOP is constant, the GOP is composed of 10 frames. As a result, in the present embodiment, the next GOP starts from 00: 010: 00.10 frames, whereas in the conventional method, the next GOP starts from 00: 01.00.12 frames. In the method, the GOP start frame number becomes a value that is not divisible by N. Since this deviation is maintained as it is, the next correct minute is 0: 02: 0.
In the 0 second 02 frame, in the present embodiment, the GOP head is the exact minute, whereas in the conventional method, the GOP head and the exact minute do not match. The deviation is further increased in the following correct minutes.

【0045】図6(a)は、図4と同一の条件でエンコ
ードした場合の、各正分がGOP内の何番目のフレーム
に相当するかを示した図である。本実施例では、正分で
はGOP内のフレーム番号が0(つまり、フレーム先
頭)となっているの対して、従来方法では、GOP内フ
レーム番号は、徐々にずれていく。
FIG. 6 (a) is a diagram showing which number of frames in the GOP each positive component corresponds to when encoded under the same conditions as in FIG. In the present embodiment, the frame number in the GOP is 0 (that is, the head of the frame) in the straight line, whereas the frame number in the GOP gradually shifts in the conventional method.

【0046】図4、図6(a)では、GOP中のフレー
ム数が10である場合(N=10)を例に説明したが、
本方式によれば、ドロップフレームを含まないとした場
合の1分間のフレーム数をNで割り切ることができるよ
うな値であれば、他のNの値であっても、全てのタイム
コード正分をGOP境界に一致させることが可能であ
る。NTSC画像の場合は、次の条件を満たすGOP長
Nであれば良い。
In FIG. 4 and FIG. 6A, the case where the number of frames in the GOP is 10 (N = 10) has been described as an example.
According to this method, as long as the number of frames in one minute when no drop frame is included can be divided by N, all other time code Can be aligned with a GOP boundary. In the case of an NTSC image, the GOP length N satisfying the following conditions is sufficient.

【0047】(1800%N)=0 %:左項を右項で割った余りを算出する2項演算子 具体的には、図6(b)に示した36通りのN値に対し
て、全てのタイムコード正分をGOP境界に一致させる
ことが可能である。
(1800% N) = 0%: Binary operator for calculating the remainder by dividing the left term by the right term. Specifically, for 36 N values shown in FIG. 6B, It is possible to match all time code minutes to GOP boundaries.

【0048】図5は、本発明の他の実施例である動画像
圧縮装置の構成を示すブロック図である。
FIG. 5 is a block diagram showing the structure of a moving picture compression apparatus which is another embodiment of the present invention.

【0049】本実施例では、外部からタイムコードの供
給を受けるのではなく、タイムコード生成手段102で
タイムコードを発生し、入力動画像とともにエンコード
する構成とした例である。この例では、タイムコード生
成手段102にて、図2の領域A101で表したフロー
と同等の処理を行うことにより、第1の実施例と同等の
GOP長制御を行うことが可能であり、同等の効果を得
ることが出来る。
The present embodiment is an example in which the time code is not supplied from the outside but is generated by the time code generating means 102 and is encoded together with the input moving image. In this example, the time code generating means 102 can perform the same GOP length control as in the first embodiment by performing the same processing as the flow represented by the area A101 in FIG. The effect of can be obtained.

【0050】以上の実施例では、画像集合体として、M
PEG規格の「GOP」を想定し、タイムコード正分、
正秒がGOP境界に一致するようにエンコードする例を
説明したが、画像集合体としてMPEG2規格で定めら
れた「シーケンス」を想定し、シーケンス境界がタイム
コード正分、正秒に一致するようにエンコードすること
も可能である。
In the above embodiment, the image aggregate is M
Assuming "GOP" of PEG standard,
An example of encoding so that the exact second coincides with the GOP boundary has been described. However, assuming that a “sequence” defined by the MPEG2 standard is used as an image aggregate, the sequence boundary coincides with the time code minute and the exact second. It is also possible to encode.

【0051】[0051]

【発明の効果】以上のように、本発明は、動画像を所定
のフレームの画像集合体に分割して圧縮する動画像圧縮
装置において、前記各フレームのタイムコードが入力さ
れるタイムコード入力手段(101)、またはタイムコ
ードを発生するタイムコード生成手段(102)と、前
記タイムコード中のドロップフレームを予測、検出する
ドロップフレーム予測、検出手段(103)と、ドロッ
プフレーム予測、検出手段(103)の結果を元に前記
画像集合体の画像数を決定する画像集合体決定手段(1
04)を有するので、タイムコード正分、正秒を画像集
合体境界合わせることが可能であるため、ビットストリ
ームを作成したあとで編集することが容易となる。
As described above, according to the present invention, in a moving image compression apparatus for dividing a moving image into image aggregates of predetermined frames and compressing the image, time code input means for inputting the time code of each frame. (101) or a time code generation means (102) for generating a time code, a drop frame prediction / detection means (103) for predicting and detecting a drop frame in the time code, and a drop frame prediction / detection means (103). ) Image group determining means (1) for determining the number of images of the image group based on the result of
04), it is possible to align the time code minutes and seconds with the image aggregate boundaries, which facilitates editing after creating the bitstream.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】本発明におけるGOPの長さ、および構成の決
定方法を示すフローチャートである。
FIG. 2 is a flowchart showing a method of determining the length and configuration of a GOP according to the present invention.

【図3】GOP長Nが6の場合の図2のフローチャート
での判定基準と判定結果の関係を、GOP境界でのタイ
ムコードの値によって示した図である。
FIG. 3 is a diagram showing the relationship between the determination standard and the determination result in the flowchart of FIG. 2 when the GOP length N is 6 by the time code value at the GOP boundary.

【図4】本発明の実施例によりエンコードされた動画像
と、従来方法によりエンコードされた動画像のGOP構
成の一例を示した図である。
FIG. 4 is a diagram showing an example of GOP configurations of a moving image encoded according to an embodiment of the present invention and a moving image encoded by a conventional method.

【図5】本発明の他の実施例の構成を示すブロック図で
ある。
FIG. 5 is a block diagram showing the configuration of another embodiment of the present invention.

【図6】図4と同一の条件でエンコードした場合の各正
分がGOP内の何番目に相当するかを示した図と、36
通りのN値に対してタイコード正分をGOP境界に一致
させることが可能なことを示す図である。
FIG. 6 is a diagram showing the order in the GOP of each positive segment when encoded under the same conditions as in FIG. 4;
It is a figure which shows that it is possible to make a tie-code positive part correspond to a GOP boundary with respect to a normal N value.

【図7】GOPの各種の構成例を示す図である。FIG. 7 is a diagram showing various configuration examples of a GOP.

【符号の説明】 1 画像信号入力端子 2 エンコード手段 3 ビットストリーム出力端子 101 タイムコード入力端子 102 タイムコード生成手段 103 ドロップフレーム予測、検出手段 104 GOP構成決定手段[Description of Reference Signs] 1 image signal input terminal 2 encoding means 3 bit stream output terminal 101 time code input terminal 102 time code generation means 103 drop frame prediction and detection means 104 GOP configuration determination means

フロントページの続き (72)発明者 坂口 俊文 東京都渋谷区代々木4丁目36番19号 株式 会社グラフィックス・コミュニケーショ ン・ラボラトリーズ内 (72)発明者 綿谷 由純 東京都渋谷区代々木4丁目36番19号 株式 会社グラフィックス・コミュニケーショ ン・ラボラトリーズ内Front page continuation (72) Inventor Toshifumi Sakaguchi 4-36-19 Yoyogi, Shibuya-ku, Tokyo Inside Graphics Communications Laboratories, Inc. (72) Yuzumi Wataya 4-36-19 Yoyogi, Shibuya-ku, Tokyo No. Stock Company Graphics Communications Laboratories

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 動画像を所定のフレームの画像集合体に
分割して圧縮する動画像圧縮装置において、前記各フレ
ームのタイムコードが入力されるタイムコード入力手段
(101)、またはタイムコードを発生するタイムコー
ド生成手段(102)と、前記タイムコード中のドロッ
プフレームを予測、検出するドロップフレーム予測、検
出手段(103)と、ドロップフレーム予測、検出手段
(103)の結果を元に前記画像集合体の画像数を決定
する画像集合体決定手段(104)とを有することを特
徴とする動画像圧縮装置。
1. A moving picture compression apparatus for dividing a moving picture into image aggregates of predetermined frames and compressing the same, and generating time code input means (101) for inputting a time code of each frame or a time code. The time code generation means (102), the drop frame prediction and detection means (103) for predicting and detecting the drop frame in the time code, and the image set based on the results of the drop frame prediction and detection means (103). A moving image compression apparatus, comprising: an image aggregate determining means (104) for determining the number of images of a body.
JP14205095A 1995-06-08 1995-06-08 Video compression device Expired - Lifetime JP2824028B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14205095A JP2824028B2 (en) 1995-06-08 1995-06-08 Video compression device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14205095A JP2824028B2 (en) 1995-06-08 1995-06-08 Video compression device

Publications (2)

Publication Number Publication Date
JPH08336138A true JPH08336138A (en) 1996-12-17
JP2824028B2 JP2824028B2 (en) 1998-11-11

Family

ID=15306248

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14205095A Expired - Lifetime JP2824028B2 (en) 1995-06-08 1995-06-08 Video compression device

Country Status (1)

Country Link
JP (1) JP2824028B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001094987A (en) * 1999-09-22 2001-04-06 Matsushita Electric Ind Co Ltd Image data transmission method
US6600835B1 (en) 1999-02-10 2003-07-29 Nec Corporation Moving-picture compressing technique

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6600835B1 (en) 1999-02-10 2003-07-29 Nec Corporation Moving-picture compressing technique
JP2001094987A (en) * 1999-09-22 2001-04-06 Matsushita Electric Ind Co Ltd Image data transmission method

Also Published As

Publication number Publication date
JP2824028B2 (en) 1998-11-11

Similar Documents

Publication Publication Date Title
US6057893A (en) Picture encoding method, picture encoding apparatus, picture transmitting method and picture recording medium
US6674803B1 (en) Methods and systems for encoding real time multimedia data
JP4232209B2 (en) Compressed image data editing apparatus and compressed image data editing method
US7116714B2 (en) Video coding
US6529550B2 (en) Coded stream splicing device and method, and coded stream generating device and method
EP0862835B1 (en) Method for modifying encoded digital video for improved channel utilization by reduction of coded B-frame data
US5602592A (en) Moving picture compressed signal changeover apparatus
US6031575A (en) Method and apparatus for encoding an image signal, method and apparatus for decoding an image signal, and recording medium
US8804825B2 (en) Bi-pred mode decision in GOP architecture
KR100301826B1 (en) Video decoder
WO1997019561A9 (en) Method and apparatus for multiplexing video programs
IL124548A (en) Method and system for managing video broadcast
KR19990007312A (en) Digital signal coding method and apparatus, signal recording medium and signal transmission method
EP1280356A2 (en) Apparatus and method for compressing multiplexed video signals
JPH11252552A (en) Compression coding method and compression coder for video signal, and multiplexing method and multiplexer for compression coded data
EP0700213A2 (en) Motion picture encoding method and apparatus
JP2002502161A (en) Video signal compression processing method
JP2824028B2 (en) Video compression device
JP3393907B2 (en) Video decoding device
JP2003189308A (en) Moving picture encoder, encoding method, decoder, decoding method, and moving picture code string transmission method
JP3428332B2 (en) Image encoding method and apparatus, and image transmission method
EP0871337A2 (en) Method and apparatus for modifying a digital data stream
JPH08163558A (en) Picture decoder
JPH07322254A (en) Coder
KR100345312B1 (en) Splicing Method for video stream with open GOP