[go: up one dir, main page]

JP2000295567A - Coded data editor - Google Patents

Coded data editor

Info

Publication number
JP2000295567A
JP2000295567A JP9913399A JP9913399A JP2000295567A JP 2000295567 A JP2000295567 A JP 2000295567A JP 9913399 A JP9913399 A JP 9913399A JP 9913399 A JP9913399 A JP 9913399A JP 2000295567 A JP2000295567 A JP 2000295567A
Authority
JP
Japan
Prior art keywords
picture
gop
frame
encoded
image
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
JP9913399A
Other languages
Japanese (ja)
Inventor
Hideki Takehara
英樹 竹原
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 JP9913399A priority Critical patent/JP2000295567A/en
Publication of JP2000295567A publication Critical patent/JP2000295567A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/004Predictors, e.g. intraframe, interframe coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a coded data editor by which an edited picture is edited so as to be displayed as intended without causing a decoded picture after the edit to be different depending on a type of a decoder. SOLUTION: In succession to 1st moving picture coded data of a program, 2nd moving picture coded data of 1 GOP outputted from an adder 14 and succeeding 2nd moving picture coded data are selected and composited in this order by switching. Thus, when a closed GOP flag of a 1st 1 GOP at an edit point is set to '0', a B picture in the GOP is copied to have the same picture contents as those of a just preceding picture in the GOP in the case of decoding.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は符号化データ編集装
置に係り、特に動画像信号を圧縮符号化して得られた動
画像符号化データを編集する符号化データ編集装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coded data editing apparatus, and more particularly to a coded data editing apparatus for editing coded moving picture data obtained by compressing and coding a moving picture signal.

【0002】[0002]

【従来の技術】従来より広く知られている動画像符号化
方式として、MPEG2(Moving Picture Experts Gro
up phase 2)と呼ばれる動画像符号化方式がある。MP
EG2では、画像間の動き補償(MC)予測と8×8画
素の離散コサイン変換(DCT)を行い、これにより得
られる信号に対してさらに量子化、及び可変長符号化を
施すものである。また、MC予測の種類としては、過去
の画像を参照画像とする前方予測、未来の画像を参照画
像とする後方予測、過去、未来両方の画像を参照画像と
する双方向予測、及び予測を用いないイントラの各モー
ドがある。
2. Description of the Related Art MPEG2 (Moving Picture Experts Groove) has been widely used as a moving picture coding method.
There is a video coding method called up phase 2). MP
In EG2, motion compensation (MC) prediction between images and discrete cosine transform (DCT) of 8 × 8 pixels are performed, and a signal obtained by this is further subjected to quantization and variable length coding. The types of MC prediction include forward prediction using a past image as a reference image, backward prediction using a future image as a reference image, bidirectional prediction using both past and future images as reference images, and prediction. There are no intra modes.

【0003】このMC予測モードは、16×16画素の
マクロブロック毎に設定可能であるが、符号化画像(ピ
クチャ)の種類(ピクチャタイプ)により使用できるモ
ードが決められている。ピクチャタイプには3種類があ
る。イントラマクロブロックのみで構成されるIピクチ
ャ、イントラ及び前方予測マクロブロックで構成される
Pピクチャ、すべてのMC予測モードが許されるBピク
チャがそれである。
The MC prediction mode can be set for each macroblock of 16 × 16 pixels, but a mode that can be used is determined depending on the type (picture type) of a coded image (picture). There are three picture types. These are an I picture composed of only intra macroblocks, a P picture composed of intra and forward prediction macroblocks, and a B picture in which all MC prediction modes are allowed.

【0004】ここでIピクチャは予測を用いず、原画像
自体をDCT変換し、量子化、可変長符号化されたもの
であるので、単独の符号化データで復号が可能であるの
に対し、Pピクチャは入力画像順で過去の、すでに符号
化されたIまたはPピクチャとのMC予測誤差信号をD
CT変換、量子化、可変長符号化されたもの、そしてB
ピクチャは過去及び未来の、すでに符号化されたIまた
はPピクチャとのMC予測誤差信号をDCT変換、量子
化、可変長符号化されたものである。このためP及びB
ピクチャの復号は、これに先行して、Iピクチャより始
まる参照画像の復号を行う必要がある。
[0004] Here, the I picture is obtained by subjecting the original picture itself to DCT conversion, quantization and variable length coding without using prediction, so that it is possible to decode with a single piece of coded data. The P picture is obtained by adding an MC prediction error signal with a past, already coded I or P picture in the order of the input picture to D.
CT transformed, quantized, variable length coded, and B
The picture is obtained by DCT-transforming, quantizing, and variable-length coding the MC prediction error signal with the past and future I or P pictures already coded. Therefore, P and B
Before decoding a picture, it is necessary to decode a reference image starting from an I picture.

【0005】MPEG2では、任意数の上記タイプのピ
クチャにより構成されるGOP(Group Of Pictures)
という階層を持ち得る。このGOPで最初に符号化され
るピクチャはIピクチャと定められており、このIピク
チャの前にはGOPの先頭であることを示すGOPヘッ
ダが挿入される。このGOPヘッダ中には、タイムコー
ド、そのGOPを構成する符号化データがGOP内のデ
ータのみで復号可能、すなわち前のGOPの画像データ
を参照しない独立したGOP(closedGOP)で
あるかどうかを示すフラグ(closed_gop)、
そして本来前のGOPの画像データを参照する必要があ
るが、編集によりこれができなくなったことを示すフラ
グ(broken_link)があり、GOPを単位と
して編集が行えるような工夫がなされている。
In MPEG2, a GOP (Group Of Pictures) composed of an arbitrary number of pictures of the above type
Can have a hierarchy of The first picture to be encoded in this GOP is defined as an I picture, and a GOP header indicating the beginning of the GOP is inserted before this I picture. The GOP header indicates whether the time code and the coded data constituting the GOP can be decoded only by the data in the GOP, that is, whether the GOP is an independent GOP (closed GOP) that does not refer to the image data of the previous GOP. Flag (closed_gop),
Although it is originally necessary to refer to the image data of the previous GOP, there is a flag (broken_link) indicating that the image data cannot be edited, so that the editing can be performed in GOP units.

【0006】図6はこのようなMPEG2による符号化
データ供給部を備えた従来の符号化データ編集装置の構
成を示すブロック図である。図7には編集される符号化
データの例を示す。編集はGOPを単位として行われ
る。図6において、動画像符号化データ供給部1は図7
(a)に編集ポイント(編集点)9より前の部分が7
a、後の部分が7bで模式的に示される、MPEG2に
よる第1の動画像符号化ストリームを発生してスイッチ
3の端子3aに供給する。
FIG. 6 is a block diagram showing the configuration of a conventional coded data editing apparatus provided with such a coded data supply unit based on MPEG2. FIG. 7 shows an example of encoded data to be edited. Editing is performed in GOP units. In FIG. 6, the moving picture coded data supply unit 1
In (a), the part before the edit point (edit point) 9 is 7
a, a first encoded video stream according to MPEG2, the latter of which is schematically indicated by 7b, is generated and supplied to the terminal 3a of the switch 3.

【0007】また、動画像符号化データ供給部2は図7
(b)に編集ポイント(編集点)9より前の部分が8
a、後の部分が8bで模式的に示される、MPEG2に
よる第2の動画像符号化ストリームを発生してスイッチ
3の端子3bに供給する。なお、ここでは、上記の第1
の動画像符号化ストリームと第2の動画像符号化ストリ
ームの符号化レートは固定で等しいとする。
[0007] Also, the moving picture coded data supply unit 2 is configured as shown in FIG.
In (b), the part before the edit point (edit point) 9 is 8
a, a second encoded video stream according to MPEG2, the latter of which is schematically indicated by 8b, is generated and supplied to the terminal 3b of the switch 3. It should be noted that here, the first
It is assumed that the coding rates of the moving picture coded stream and the second moving picture coded stream are fixed and equal.

【0008】また、スイッチ3は編集ポイント9に到達
すると、端子3aから端子3bに切り替えられる。これ
により、スイッチ3の可動端子3cからは、図7(c)
に模式的に示すように、編集ポイント(編集点)9より
前の第1の動画像符号化ストリーム7aと、編集ポイン
ト9より後の第2の動画像符号化ストリーム8bとが時
分割的に多重された1つの動画像符号化データが取り出
される。
When the switch 3 reaches the editing point 9, the switch 3 is switched from the terminal 3a to the terminal 3b. As a result, the movable terminal 3c of the switch 3 receives the signal shown in FIG.
As schematically shown in FIG. 2, a first encoded video stream 7a before the edit point (edit point) 9 and a second encoded video stream 8b after the edit point 9 are time-divided. One multiplexed moving picture encoded data is extracted.

【0009】[0009]

【発明が解決しようとする課題】しかるに、動画像符号
化データ列の一部を上記のように編集する場合、編集直
後の動画像符号化データ列のGOPヘッダ中に、前記ブ
ロークンリンク(broken_link)フラグを立
てることにより、MPEG2のシンタックス上における
問題は生じないが、編集後の復号化時にデコーダによっ
ては、編集直後の動画像符号化データにおける最初のI
ピクチャに続くBピクチャが編集以前に存在していた
が、編集後は存在しない1つ前のGOP中のピクチャを
参照画像としていた場合、正しくそのBピクチャを復号
することができなくなる。
However, when a part of the coded video data stream is edited as described above, the broken link (broken_link) is included in the GOP header of the coded video data stream immediately after editing. By setting the flag, there is no problem in the syntax of MPEG2, but at the time of decoding after editing, depending on the decoder, the first I in the encoded video data immediately after editing may be used.
If a B picture following a picture exists before editing, but a picture in the immediately preceding GOP that does not exist after editing is used as a reference image, the B picture cannot be correctly decoded.

【0010】また、これまで、ブロークンリンクフラグ
が立っているGOPの復号器の動作は規定されていない
ため、このときの再生画像は復号器の構成により異なる
ものになってしまう。
In addition, since the operation of the decoder of the GOP with the broken link flag set has not been specified, the reproduced image at this time differs depending on the configuration of the decoder.

【0011】本発明は以上の点に鑑みなされたもので、
デコーダの種類によって編集後の復号化画像が異なるこ
となく、編集した画像が意図した通りに表示されるよう
に編集し得る符号化データ編集装置を提供することを目
的とする。
The present invention has been made in view of the above points,
It is an object of the present invention to provide an encoded data editing apparatus capable of editing an edited image so that the decoded image is displayed as intended without the decoded image being changed depending on the type of decoder.

【0012】[0012]

【課題を解決するための手段】上記の目的を達成するた
め、第1の発明は、予測符号化を用いたフレームと予測
符号化を用いないフレームとからなる第1の動画像符号
化データに、予測符号化を用いたフレームと予測符号化
を用いないフレームとからなる第2の動画像符号化デー
タを編集ポイントで接続する編集を行う符号化データ編
集装置において、第2の動画像符号化データ内に存在し
ないフレームを参照フレームとしている、予測符号化を
用いたフレームを第2の動画像符号化データ中から検出
する検出手段と、検出手段により検出された予測符号化
を用いたフレームを、直前のフレームと同じ画像内容と
する、予測符号化を用いないフレームに再符号化する再
符号化手段とを有する構成としたものである。
According to a first aspect of the present invention, there is provided a moving image encoding apparatus comprising: a first moving picture encoding apparatus comprising: a frame using predictive coding; and a frame not using predictive coding. In a coded data editing device for performing an edit by connecting second coded video data consisting of a frame using predictive coding and a frame not using predictive coding at an editing point, the second video coding Detecting means for detecting a frame using predictive encoding from the second encoded video data, wherein the frame using non-existent data is used as a reference frame; and a frame using predictive encoding detected by the detecting means. And re-encoding means for re-encoding a frame that does not use predictive encoding and has the same image content as the immediately preceding frame.

【0013】また、上記の目的を達成するため、第2の
発明は、MPEG方式に準拠して、予測を用いず原画像
自体を圧縮符号化したイントラマクロブロックで構成さ
れるIピクチャと、イントラマクロブロックと前方予測
マクロブロックで構成されるPピクチャと、過去及び未
来の既に符号化されたIピクチャ又はPピクチャとの予
測誤差信号を圧縮符号化したBピクチャのうち、Iピク
チャが1つで他のPピクチャとBピクチャが複数からな
るGOP単位の第1の動画像符号化データに、MPEG
方式に準拠して圧縮符号化されたGOP単位の第2の動
画像符号化データを編集ポイントで接続する編集を行う
符号化データ編集装置において、第2の動画像符号化デ
ータの編集ポイント直後の最初のGOPが、前のGOP
を参照しない独立したGOPであるかどうかを、ヘッダ
から判定する第1の判定部と、第1の判定部により第2
の動画像符号化データの最初のGOPが独立したGOP
でないと判定されたときは、そのGOP中の各ピクチャ
から当該GOP中のピクチャを参照画像としないBピク
チャを検出する第2の判定部と、第2の判定部から入力
されたBピクチャの、復号時に参照画像として用いるピ
クチャを示す値を、そのBピクチャの直前のピクチャの
画像をコピーする値に変更して出力する変更部とを有
し、変更部から出力されるBピクチャ及び第2の判定部
により検出されたBピクチャ以外の各ピクチャとによ
り、又は第1の判定部により独立したGOPであると判
定されたGOPの各ピクチャにより編集ポイント直後の
第2の動画像符号化データの最初のGOPを構成するよ
うにしたものである。
Further, in order to achieve the above object, the second invention is based on the MPEG system, and comprises an I picture composed of intra macroblocks obtained by compressing and encoding an original image itself without using prediction, and an intra picture. Among the B pictures obtained by compressing and encoding the prediction error signal between the P picture composed of the macroblock and the forward prediction macroblock and the past and future already encoded I picture or P picture, one I picture is used. MPEG encoded first moving image data in GOP units including a plurality of P pictures and B pictures
In a coded data editing apparatus that performs editing by connecting at the edit point the second coded video data of the GOP unit that has been compression-coded according to the system, an edit point immediately after the edit point of the second coded video data is used. The first GOP is the previous GOP
A first determination unit that determines whether the GOP is an independent GOP that does not refer to
The first GOP of the moving picture encoded data is independent GOP
When it is determined that the B-picture is not a reference picture, a second determining unit that detects a B-picture that does not use a picture in the GOP as a reference image from the pictures in the GOP, and a B-picture input from the second determining unit A changing unit that changes a value indicating a picture to be used as a reference image at the time of decoding to a value for copying an image of a picture immediately before the B picture and outputs the changed value. The first moving image encoded data immediately after the edit point is determined by each picture other than the B picture detected by the determining unit, or by each picture of the GOP determined to be an independent GOP by the first determining unit. Of a GOP.

【0014】上記の第1及び第2の発明では、編集ポイ
ント直後の第2の動画像符号化データ中から、その第2
の動画像符号化データ内に存在しないフレームを参照フ
レームとしているピクチャ(フレーム)を、直前のフレ
ームと同じ画像内容とする、予測符号化を用いないフレ
ームに再符号化するようにしているので、編集により参
照フレームが存在しなくなったフレーム(ピクチャ)で
も、画像を復号することができる。
In the first and second aspects of the present invention, the second moving image encoded data immediately after the editing point
Since a picture (frame) having a frame that does not exist in the moving image encoded data as a reference frame is re-encoded into a frame that does not use predictive encoding and has the same image content as the immediately preceding frame, An image can be decoded even in a frame (picture) in which a reference frame no longer exists due to editing.

【0015】[0015]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面と共に説明する。図1は本発明になる符号化デー
タ編集装置の一実施の形態のブロック図を示す。同図に
おいて、入力動画像符号化データは、GOPヘッダ判定
部11に供給される。この入力動画像符号化データは、
前記のMPEG2により動画像信号を圧縮符号化して得
られた符号化データであり、また、図7(b)に示した
ような、あるプログラムの第1の動画像符号化データの
後に繋がる第2の動画像符号化データの、編集ポイント
直後の最初の1GOPのみであり、2番目以降のGOP
については処理を行わない。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of an encoded data editing apparatus according to the present invention. In the figure, the input coded video data is supplied to a GOP header determination unit 11. This input video encoded data is
This is encoded data obtained by compressing and encoding a moving image signal by the above-described MPEG2, and is a second data connected after the first moving image encoded data of a certain program as shown in FIG. Of the first encoded GOP immediately after the edit point of the encoded video data of
Is not performed.

【0016】ここで、この入力動画像符号化データは例
えば図5(A)に模式的に示すように、12枚のピクチ
ャにより1GOPが構成されており、1GOP中の各ピ
クチャは先頭のピクチャがIピクチャで、続いて2枚の
Bピクチャと1枚のPピクチャが交互に繰り返し配列さ
れた、いわゆるM=3、N=12の符号化データであ
る。また、図5(B)に示すように、全部でm個のGO
Pにより1つのプログラムの、同図(C)に示す動画像
符号化データを構成している。
Here, this input moving picture coded data, as schematically shown in, for example, FIG. 5A, forms one GOP with 12 pictures, and each picture in one GOP has a leading picture. This is so-called M = 3, N = 12 encoded data in which two B pictures and one P picture are alternately and repeatedly arranged in an I picture. In addition, as shown in FIG.
P constitutes the moving picture coded data of one program shown in FIG.

【0017】GOPヘッダ判定部11は、上記の構成の
入力動画像符号化データのGOPヘッダ中の前のGOP
の画像データを参照しない独立したGOPであるかどう
かを示すクローズドGOP(closed_gop)フ
ラグが”0”であるか否か判定し、クローズドGOPフ
ラグが”0”であるときは、独立したGOPではなく、
そのGOP内の符号化データのみで復号できないことを
示しているので、そのGOPの各ピクチャ(各フレー
ム)を再符号化フレーム判定部12に供給し、他方、ク
ローズドGOPフラグが”1”であるときには、再符号
化フレーム判定部12及び後述の各回路を経由すること
なくそのまま出力する。そのGOP内の符号化データの
みで復号可能であるからである。
The GOP header judging unit 11 determines whether the previous GOP in the GOP header of the input moving picture encoded data having the above configuration
It is determined whether or not a closed GOP (closed_gop) flag indicating whether or not the GOP is an independent GOP that does not refer to the image data is “0”. When the closed GOP flag is “0”, it is not an independent GOP. ,
Since it indicates that decoding is not possible with only the encoded data in the GOP, each picture (each frame) of the GOP is supplied to the re-encoded frame determination unit 12, while the closed GOP flag is “1”. In some cases, the data is output as it is without passing through the re-encoded frame determination unit 12 and each circuit described later. This is because the decoding can be performed only with the encoded data in the GOP.

【0018】なお、GOPヘッダ判定部11は、クロー
ズドGOPフラグが”0”であるときは、クローズドG
OPフラグを”1”に変更してから、再符号化フレーム
判定部12へそのGOPの各ピクチャ(フレーム)を供
給する。
When the closed GOP flag is "0", the GOP header determining section 11
After changing the OP flag to “1”, each picture (frame) of the GOP is supplied to the re-encoded frame determination unit 12.

【0019】再符号化フレーム判定部12は、図2に示
すフローチャートに従って再符号化フレームを判定す
る。すなわち、入力GOPの各ピクチャのピクチャタイ
プから、入力ピクチャがBピクチャであるか否か判定し
(ステップ21)、Bピクチャであるときは、そのBピ
クチャが前のGOP中のフレームを参照しているかどう
か判定し(ステップ22)、参照しているときは再符号
化部13に当該Bピクチャを供給して再符号化させる
(ステップ23)。
The re-coded frame determination section 12 determines a re-coded frame according to the flowchart shown in FIG. That is, it is determined from the picture type of each picture of the input GOP whether or not the input picture is a B picture (step 21). If the input picture is a B picture, the B picture is referred to a frame in the previous GOP. It is determined whether or not the B picture is present (step 22), and if so, the B picture is supplied to the re-encoding unit 13 for re-encoding (step 23).

【0020】一方、再符号化フレーム判定部12は、ス
テップ21において入力ピクチャがIピクチャ又はPピ
クチャであると判定したとき、あるいは、Bピクチャで
あるがステップ22において前のGOP中のフレームを
参照していないBピクチャであると判定したときには、
再符号化部13により再符号化させることなくそのまま
出力する(ステップ24)。このようにして、再符号化
部13には、クローズドGOPフラグが”0”であり、
その後”1”に変更された1GOP中のBピクチャだけ
が入力される。
On the other hand, when the input picture is determined to be an I-picture or a P-picture in step 21, or when the input picture is a B-picture but in step 22, the re-coded frame determination unit 12 refers to the frame in the previous GOP. If it is determined that the picture is not a B-picture,
The data is output as it is without being re-encoded by the re-encoding unit 13 (step 24). Thus, the closed GOP flag is “0” in the re-encoding unit 13,
Thereafter, only the B picture in one GOP changed to “1” is input.

【0021】再符号化部13は、図3に示す如く、符号
化フレーム用メモリ31と、符号化MBタイプ変更部3
2と、符号化フレーム用メモリ33とから構成されてい
る。再符号化部13に入力された、上記のBピクチャ
は、符号化フレーム用メモリ31に供給されて一時蓄積
された後、ピクチャ(フレーム)内のマクロブロック
(MB)がMB単位毎に符号化MBタイプ変更部32に
供給される。
As shown in FIG. 3, the re-encoding unit 13 includes an encoded frame memory 31 and an encoded MB type changing unit 3.
2 and a coded frame memory 33. The B picture input to the re-encoding unit 13 is supplied to the encoded frame memory 31 and temporarily stored, and then the macro block (MB) in the picture (frame) is encoded for each MB unit. It is supplied to the MB type changing unit 32.

【0022】符号化MBタイプ変更部32は、図4に示
すフローチャートに従ってMBを変更処理して符号化フ
レーム用メモリ33に供給する。すなわち、符号化MB
タイプ変更部32は、まず入力MBがスライスの先頭M
Bであるかどうかを、スライススタートコードの有無か
ら判定する(ステップ41)。ここで、マクロブロック
(MB)は水平方向8画素、垂直方向8画素のブロック
が、輝度信号4個、2種類の色差信号各1個の、計6個
からなる符号化の基本単位であり、スライスはマクロブ
ロックが任意個集まって構成されている。更に、ピクチ
ャは複数の任意の長さのスライスにより分割される。
The coded MB type changing unit 32 changes the MB according to the flowchart shown in FIG. 4 and supplies the processed MB to the coded frame memory 33. That is, the encoded MB
The type change unit 32 first determines that the input MB is the first M of the slice.
B is determined based on the presence or absence of a slice start code (step 41). Here, the macroblock (MB) is a basic unit of encoding in which a block of 8 pixels in the horizontal direction and 8 pixels in the vertical direction is composed of four luminance signals and two types of color difference signals, one each for a total of six, A slice is formed by collecting an arbitrary number of macro blocks. Further, the picture is divided by a plurality of slices of arbitrary length.

【0023】ステップ41で入力MBが先頭MBである
と判定されたときは、予測モードを前方向予測とし、順
方向動きベクトルMVfの値を(0,0)とし、更にコ
ード化不要に設定する(ステップ42)。これにより、
この先頭MBは復号化の際に同じGOP内のIピクチャ
の対応するMBと同じ情報内容とされる。
If it is determined in step 41 that the input MB is the first MB, the prediction mode is set to forward prediction, the value of the forward motion vector MVf is set to (0, 0), and coding is not required. (Step 42). This allows
The first MB has the same information content as the corresponding MB of the I picture in the same GOP at the time of decoding.

【0024】一方、ステップ41でスライスの先頭MB
でないと判定されたときは、そのMBは動き補償(M
C:Motion Compensation)無し、コード化不要に設定
され、符号量ゼロのいわゆるスキップMBとされる(ス
テップ43)。MCは動き領域をMB毎にパターンマッ
チングを行って動きベクトルを検出し、動き分だけシフ
トしてから予測することである。ステップ43によるス
キップMBは、復号化の際に同じGOP内のIピクチャ
の対応するMBと同じ情報内容とされる。
On the other hand, in step 41, the first MB of the slice
If it is determined that the MB is not motion compensated (M
C: No Motion Compensation, no coding is required, and a so-called skip MB with a code amount of zero is set (step 43). MC refers to detecting a motion vector by performing pattern matching on a motion area for each MB, shifting the motion vector by the amount of motion, and predicting the motion vector. The skip MB in step 43 has the same information content as the corresponding MB of the I picture in the same GOP at the time of decoding.

【0025】この結果、ステップ42及び43のいずれ
も、そのMBが復号化の際に、同じGOP内のIピクチ
ャの対応するMBと同じ情報内容とされる(すなわち、
コピーされる)点で同じであるが、スライスの先頭のM
Bについては符号化が必要でスキップMBとしてはなら
ないというMPEGの規則を順守するため、先頭MBと
それ以外のMBとで異なる処理をしている。
As a result, in each of the steps 42 and 43, when the MB is decoded, the MB has the same information content as the corresponding MB of the I picture in the same GOP (ie,
Copied), but the M at the beginning of the slice
In order to comply with the MPEG rule that B is required to be encoded and not to be a skip MB, different processing is performed between the first MB and the other MBs.

【0026】上記の図4のフローチャートに従って処理
されたクローズドGOPフラグが”0”であり、その
後”1”に変更された1GOP中のBピクチャは、図3
の符号化フレーム用メモリ33に一時蓄積され、すべて
のMBが揃った時点で出力され、図1の加算器14を経
由して取り出され、図示しない別の内容の第1の動画像
符号化データの直後に接続される。
The B picture in one GOP whose closed GOP flag processed according to the flowchart of FIG. 4 is “0” and subsequently changed to “1” is shown in FIG.
Is temporarily stored in the coded frame memory 33, and is output when all MBs are collected, taken out via the adder 14 in FIG. Is connected immediately after

【0027】すなわち、あるプログラムの第1の動画像
符号化データと、加算器14から出力される第2の動画
像符号化データの、編集ポイント直後の最初の1GOP
と、図1の回路を通さない第2の動画像符号化データ
の、編集ポイント直後から2番目以降のGOPとがスイ
ッチ回路(図示せず)に入力され、上記の第1の動画像
符号化データに続いて、加算器14から出力された1G
OPの第2の動画像符号化データ及び2番目以降のGO
Pの第2の動画像符号化データの順で切り替え合成され
る。
That is, the first 1 GOP immediately after the edit point of the first encoded video data of a certain program and the second encoded video data output from the adder 14
And the second and subsequent GOPs immediately after the edit point of the second moving picture encoded data that does not pass through the circuit of FIG. 1 are input to a switch circuit (not shown), and the first moving picture encoding is performed. Following the data, 1G output from the adder 14
OP second video encoded data and second and subsequent GOs
Switching and combining are performed in the order of the P second moving image encoded data.

【0028】このようにして、編集ポイントの最初の1
GOPがクローズドGOPフラグが”0”であるとき
は、そのGOP中に存在しないフレームを参照フレーム
としているBピクチャが、復号化時において同じGOP
内のIピクチャと同じ画像内容にコピーされるため、デ
コーダの種類によって表示される画像が異なるという従
来の欠点を除去できる。
Thus, the first one of the edit points is
When the closed GOP flag of the GOP is “0”, the B picture that uses a frame that does not exist in the GOP as a reference frame has the same GOP during decoding.
Since the image content is copied to the same image content as that of the I picture, the conventional disadvantage that the displayed image differs depending on the type of decoder can be eliminated.

【0029】[0029]

【発明の効果】以上説明したように、本発明によれば、
編集ポイント直後の第2の動画像符号化データ中から、
その第2の動画像符号化データ内に存在しないフレーム
を参照フレームとしているピクチャ(フレーム)を、直
前のフレームと同じ画像内容とする、予測符号化を用い
ないフレームに再符号化することにより、編集により参
照フレームが存在しなくなったフレーム(ピクチャ)で
も、画像を復号できるようにしたため、デコーダの種類
によって表示される画像が異なる可能性を防止できると
共に、復号化時に編集直後の符号化データも編集時に意
図した画像として得ることができる。
As described above, according to the present invention,
From the second video encoded data immediately after the edit point,
By re-encoding a picture (frame) having a frame that does not exist in the second encoded video data as a reference frame into a frame that does not use predictive encoding and has the same image content as the immediately preceding frame, Since the image can be decoded even in a frame (picture) in which the reference frame is no longer present due to the editing, it is possible to prevent the possibility that the displayed image differs depending on the type of the decoder. It can be obtained as the intended image at the time of editing.

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

【図1】本発明の一実施の形態のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】図1中の再符号化フレーム判定部の動作説明用
フローチャートである。
FIG. 2 is a flowchart for explaining the operation of a re-encoded frame determination unit in FIG. 1;

【図3】図1中の再符号化部の一実施の形態のブロック
図である。
FIG. 3 is a block diagram of an embodiment of a re-encoding unit in FIG. 1;

【図4】図3の動作説明用フローチャートである。FIG. 4 is a flowchart for explaining the operation of FIG. 3;

【図5】ピクチャとGOPの関係等の説明図である。FIG. 5 is an explanatory diagram of a relationship between a picture and a GOP.

【図6】従来装置の一例のブロック図である。FIG. 6 is a block diagram of an example of a conventional device.

【図7】図6の動作説明模式図である。FIG. 7 is a schematic diagram illustrating the operation of FIG. 6;

【符号の説明】[Explanation of symbols]

11 GOPヘッダ判定部(検出手段、第1の判定部) 12 再符号化フレーム判定部(検出手段、第2の判定
部) 13 再符号化部(再符号化手段、変更部) 31、33 符号化フレーム用メモリ 32 符号化MBタイプ変更部
11 GOP header determination unit (detection unit, first determination unit) 12 re-encoded frame determination unit (detection unit, second determination unit) 13 re-encoding unit (re-encoding unit, change unit) 31, 33 code Frame memory 32 Encoding MB type change unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 予測符号化を用いたフレームと予測符号
化を用いないフレームとからなる第1の動画像符号化デ
ータに、予測符号化を用いたフレームと予測符号化を用
いないフレームとからなる第2の動画像符号化データを
編集ポイントで接続する編集を行う符号化データ編集装
置において、 前記第2の動画像符号化データ内に存在しないフレーム
を参照フレームとしている、予測符号化を用いたフレー
ムを前記第2の動画像符号化データ中から検出する検出
手段と、 前記検出手段により検出された予測符号化を用いたフレ
ームを、直前のフレームと同じ画像内容とする、予測符
号化を用いないフレームに再符号化する再符号化手段と
を有することを特徴とする符号化データ編集装置。
The first moving image encoded data including a frame using predictive coding and a frame not using predictive coding includes a frame using predictive coding and a frame not using predictive coding. An encoded data editing apparatus for performing editing by connecting second encoded video data at an editing point, wherein a frame that does not exist in the second encoded video data is used as a reference frame. Detecting means for detecting a frame that has been detected from the second moving image encoded data, and predictive coding for setting a frame using predictive coding detected by the detecting means to have the same image content as the immediately preceding frame. Recoding means for recoding a frame not to be used.
【請求項2】 MPEG方式に準拠して、予測を用いず
原画像自体を圧縮符号化したイントラマクロブロックで
構成されるIピクチャと、前記イントラマクロブロック
と前方予測マクロブロックで構成されるPピクチャと、
過去及び未来の既に符号化されたIピクチャ又はPピク
チャとの予測誤差信号を圧縮符号化したBピクチャのう
ち、前記Iピクチャが1つで他のPピクチャとBピクチ
ャが複数からなるGOP単位の第1の動画像符号化デー
タに、前記MPEG方式に準拠して圧縮符号化された前
記GOP単位の第2の動画像符号化データを編集ポイン
トで接続する編集を行う符号化データ編集装置におい
て、 前記第2の動画像符号化データの前記編集ポイント直後
の最初のGOPが、前のGOPを参照しない独立したG
OPであるかどうかを、ヘッダから判定する第1の判定
部と、 前記第1の判定部により前記第2の動画像符号化データ
の最初のGOPが前記独立したGOPでないと判定され
たときは、そのGOP中の各ピクチャから当該GOP中
のピクチャを参照画像としないBピクチャを検出する第
2の判定部と、 前記第2の判定部から入力された前記Bピクチャの、復
号時に参照画像として用いるピクチャを示す値を、その
Bピクチャの直前のピクチャの画像をコピーする値に変
更して出力する変更部とを有し、前記変更部から出力さ
れるBピクチャ及び前記第2の判定部により検出された
前記Bピクチャ以外の各ピクチャとにより、又は前記第
1の判定部により前記独立したGOPであると判定され
たGOPの各ピクチャにより前記編集ポイント直後の前
記第2の動画像符号化データの最初のGOPを構成する
ことを特徴とする符号化データ編集装置。
2. An I picture composed of intra macroblocks obtained by compressing and coding an original image itself without using prediction according to the MPEG system, and a P picture composed of said intra macroblocks and forward predicted macroblocks When,
Among B pictures obtained by compression-encoding a prediction error signal of a past and future already encoded I picture or P picture, one I picture and another P picture and a plurality of B pictures are GOP units. An encoded data editing apparatus for performing an edit by connecting, at an edit point, second encoded video data of the GOP unit, which is compressed and encoded in accordance with the MPEG method, to first encoded video data, The first GOP immediately after the edit point of the second encoded video data is an independent GOP that does not refer to the previous GOP.
A first judging unit for judging from the header whether or not it is an OP; and when the first judging unit judges that the first GOP of the second encoded video data is not the independent GOP. A second determining unit that detects a B picture that does not use a picture in the GOP as a reference image from each picture in the GOP; and a reference image for decoding the B picture input from the second determining unit. A changing unit for changing a value indicating a picture to be used to a value for copying an image of a picture immediately before the B picture and outputting the copied image, wherein the B picture output from the changing unit and the second determination unit The position of the edit point is determined by each picture other than the detected B picture or by each picture of the GOP determined to be the independent GOP by the first determination unit. Coded data editing apparatus characterized by constituting the first GOP of the second encoded video data stream.
JP9913399A 1999-04-06 1999-04-06 Coded data editor Pending JP2000295567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9913399A JP2000295567A (en) 1999-04-06 1999-04-06 Coded data editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9913399A JP2000295567A (en) 1999-04-06 1999-04-06 Coded data editor

Publications (1)

Publication Number Publication Date
JP2000295567A true JP2000295567A (en) 2000-10-20

Family

ID=14239248

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9913399A Pending JP2000295567A (en) 1999-04-06 1999-04-06 Coded data editor

Country Status (1)

Country Link
JP (1) JP2000295567A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007329827A (en) * 2006-06-09 2007-12-20 Matsushita Electric Ind Co Ltd Image encoding and recording apparatus and image encoding and recording method
US8194751B2 (en) 2003-02-19 2012-06-05 Panasonic Corporation Moving picture coding method and moving picture decoding method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8194751B2 (en) 2003-02-19 2012-06-05 Panasonic Corporation Moving picture coding method and moving picture decoding method
JP2007329827A (en) * 2006-06-09 2007-12-20 Matsushita Electric Ind Co Ltd Image encoding and recording apparatus and image encoding and recording method
US8817873B2 (en) 2006-06-09 2014-08-26 Panasonic Corporation Image coding/recording apparatus and image coding/recording method

Similar Documents

Publication Publication Date Title
KR100766740B1 (en) Apparatus and method for converting data using encoding history information
EP1445773A1 (en) Encoding device and encoding method
JPH06284414A (en) Picture signal transmission method and device therefor
JP2000278692A (en) Compressed data processing method, processor and recording and reproducing system
JPH08223577A (en) Moving image coding method and device therefor and moving image decoding method and device therefor
EP1280356A2 (en) Apparatus and method for compressing multiplexed video signals
US6754274B2 (en) Video data recording method and apparatus for high-speed reproduction
KR100215824B1 (en) MPEG decoder frame memory and video data decoding method
US20050141613A1 (en) Editing of encoded a/v sequences
US6271774B1 (en) Picture data processor, picture data decoder and picture data encoder, and methods thereof
JPH0818979A (en) Image processor
JP3599942B2 (en) Moving picture coding method and moving picture coding apparatus
JPH09294262A (en) Image coding device
JP4120934B2 (en) Image processing apparatus, image processing method, recording medium, and program
JP3240024B2 (en) Image processing method
JP4174728B2 (en) Information processing apparatus, information processing method, recording medium, and program
JP3487205B2 (en) Image data editing device
JPH06350995A (en) Video processing method
JP3200199B2 (en) Video compression encoding method
JP3428332B2 (en) Image encoding method and apparatus, and image transmission method
JPH08251582A (en) Encoded data editing device
JP2002199408A (en) Moving picture coding method and moving picture coding apparatus
JP2000295567A (en) Coded data editor
WO1996033573A1 (en) Device and method for coding moving image
JP3240737B2 (en) Image signal encoding method and apparatus, decoding method and apparatus