JP2001145067A - Real time encoder and real time encoding method - Google Patents

Real time encoder and real time encoding method

Info

Publication number
JP2001145067A
JP2001145067A JP32629899A JP32629899A JP2001145067A JP 2001145067 A JP2001145067 A JP 2001145067A JP 32629899 A JP32629899 A JP 32629899A JP 32629899 A JP32629899 A JP 32629899A JP 2001145067 A JP2001145067 A JP 2001145067A
Authority
JP
Japan
Prior art keywords
character information
real
data
stream
area
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
JP32629899A
Other languages
Japanese (ja)
Inventor
Akihisa Nomura
明久 野村
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.)
NEC IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems Co 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP32629899A priority Critical patent/JP2001145067A/en
Publication of JP2001145067A publication Critical patent/JP2001145067A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a real time encoder and a real time encoding method that can store line 21 data superimposed on an analog video signal as user data in the same timing as that of a received image and display proper character information from an encoded image even when a scene is changed. SOLUTION: When a GOP header is generated in the case of generating a video stream, an area to store the line 21 data is reserved, and when coding of all GOPs is finished, the line 21 data extracted from the video signal are sroted in the area reserved in the case of generating the GOP header.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、映像信号をリアル
タイムに符号化してビデオストリームとその他のストリ
ームとを多重化したプログラムストリームを作成するリ
アルタイム符号化装置およびリアルタイム符号化方法記
録媒体に関し、特に映像信号に含まれるライン21デー
タをビデオストリームのGOPヘッダに格納するリアル
タイム符号化装置およびリアルタイム符号化方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a real-time encoding apparatus and a real-time encoding method recording medium for encoding a video signal in real time to create a program stream in which a video stream and other streams are multiplexed. The present invention relates to a real-time encoding device and a real-time encoding method for storing line 21 data included in a signal in a GOP header of a video stream.

【0002】[0002]

【従来の技術】映画ビデオ等のビデオ素材を再生専用デ
ィスクDVD規格であるMPEG2に沿って映像、音
声、字幕等のそれぞれを符号化したストリームを作成
し、作成したそれぞれのストリームを多重化した多重化
ストリームによって光ディスク、光磁気ディスク等の記
録媒体に記録する符号化装置が存在する。
2. Description of the Related Art A video material such as a movie video is encoded in accordance with MPEG2 which is a reproduction-only disc DVD standard, and a stream in which video, audio, subtitles and the like are encoded is created, and the created streams are multiplexed. There is an encoding device that records an encoded stream on a recording medium such as an optical disk or a magneto-optical disk.

【0003】符号化の対象となる映像信号としては、N
TSC方式の映像信号があり、NTSC方式の映像信号
は、インターレースにより262本半の走査線を2回走
査し、合計525本による描画を行っている。この26
2本半の走査線のうち、第22番から第262番までが
実際の映像の伝送に使われており、第1番から第21番
までが垂直帰線消去期間となっている。この垂直帰線消
去期間の第21番(フィールド1、フィールド2で異な
る信号の種類となる)に例えば英語字幕情報等の文字情
報がライン21データとして図5に示す映像信号の垂直
帰線消去期間の第21番目の波形のデータ領域(Charac
ter One、Character Two)に重畳され利用されている。
A video signal to be encoded includes N
There is a video signal of the TSC system, and a video signal of the NTSC system scans 262 and a half scanning lines twice by interlace, and draws a total of 525 lines. This 26
Of the two and a half scanning lines, Nos. 22 to 262 are used for actual video transmission, and Nos. 1 to 21 are vertical blanking periods. In the 21st of the vertical blanking period (different signal types in field 1 and field 2), for example, character information such as English subtitle information is used as line 21 data as a vertical blanking period of the video signal shown in FIG. 21st waveform data area (Charac
ter One, Character Two).

【0004】一方ISO13818−2により規定され
るMPEG2のビデオストリームは図6に示すようにシ
ーケンスヘッダ(Sequence Header)、GOPヘッダ(G
OP Header)、Iピクチャ(I-Picture)、Bピクチャ
(B-Picture)およびPピクチャ(P-Picture)から構成
されており、GOPヘッダにユーザーデータとしてライ
ン21データを格納することができる。なお、以下、I
ピクチャ、BピクチャおよびPピクチャをGOP(Grou
p of Pictures)と称す。
On the other hand, an MPEG2 video stream defined by ISO 13818-2 has a sequence header (Sequence Header) and a GOP header (G
OP header), an I picture (I-Picture), a B picture (B-Picture), and a P picture (P-Picture), and the line 21 data can be stored in the GOP header as user data. In the following, I
Pictures, B pictures and P pictures are GOP (Grou
p of Pictures).

【0005】ライン21データは、図7、8に示すよう
なユーザーデータに格納され、ユーザーデータは、32
ビット構成のユーザーデータスタートコード(user_dat
a_start_code)と、16ビット構成のライン21データ
の指示データ(line21_indicator)と、1ビット構成の
GOPのトップフィールドフラグ(top_field_flag_of_
gop)と、6ビット構成のGOPの表示するフィールド
数(number_of_displayed_field_gop)と、7ビット構
成のマーカービット(marker_bit)と、1ビット構成の
ライン21のスイッチ(line21_switch)と、16ビッ
ト構成のライン21データ(line21_data)と、予備エ
リア(reserved)とにより構成されている。ユーザーデ
ータスタートコードとしては‘0000 01B2h’
を記述するようになっており、ライン21の指示データ
として‘4343h’を記述するようになっている。ま
た、GOPのトップフィールドの場合はGOPのトップ
フィールドフラグに‘1b’を、GOPのボトムフィー
ルドの場合はGOPのトップフィールドフラグに‘0
b’を記述するようにISO13818−2において規
定されており、GOPの表示するフィールド数はGOP
内の表示するフィールド数を示し、ライン21データと
同じ数を記述するようになっている。さらに、マーカー
ビットは‘111 1111b’を記述するようになっ
ており、ライン21のスイッチは‘1b’の場合ライン
21データが有効であることを記述し、‘0b’の場合
はライン21データが無効であることを記述するように
なっている。ライン21データは7ビットのデータと1
ビットのパリティから構成され、フィールド1データ
(line21_data1)とフィールド2データ(line21_data
2)から構成される。
The line 21 data is stored in user data as shown in FIGS.
Bit configuration user data start code (user_dat
a_start_code), 16-bit line 21 data indication data (line21_indicator), and 1-bit GOP top field flag (top_field_flag_of_)
gop), the number of fields to be displayed in a 6-bit GOP (number_of_displayed_field_gop), a 7-bit marker bit (marker_bit), a 1-bit switch of line 21 (line21_switch), and a 16-bit line 21 data (Line21_data) and a reserved area (reserved). '0000 01B2h' as user data start code
Is described, and '4343h' is described as instruction data of the line 21. In the case of the top field of the GOP, “1b” is set in the top field flag of the GOP, and in the case of the bottom field of the GOP, “0” is set in the top field flag of the GOP.
b ′ is described in ISO13818-2, and the number of fields displayed by the GOP is GOP
Indicates the number of fields to be displayed, and the same number as the line 21 data is described. Further, the marker bit describes "111 1111b", and the switch of the line 21 describes that the line 21 data is valid in the case of "1b" and the line 21 data in the case of "0b". It states that it is invalid. Line 21 data is 7-bit data and 1
Field 1 data (line21_data1) and field 2 data (line21_data
It consists of 2).

【0006】従来の符号化装置は、図9に示すように、
ビデオデコーダ部10と、MPEG2ビデオエンコーダ
部11と、ビデオバッファ部12と、ライン21データ
バッファ部13と、オーディオADC部14と、MPE
Gオーディオエンコーダ部15と、オーディオバッファ
部16と、パケッタイザ部17と、コントローラ部18
とから構成される。
[0006] A conventional encoding device, as shown in FIG.
A video decoder unit 10, an MPEG2 video encoder unit 11, a video buffer unit 12, a line 21 data buffer unit 13, an audio ADC unit 14, an MPE
G audio encoder unit 15, audio buffer unit 16, packetizer unit 17, controller unit 18
It is composed of

【0007】このような構成を有する従来の符号化装置
は次のように動作する。ビデオデコーダ部10において
ビデオ入力から入力されたNTSC方式の映像信号であ
るアナログビデオ信号をデジタルビデオ信号に変換し、
MPEG2ビデオエンコーダ部11においてデジタル化
されたビデオ信号をISO13818−2により規定さ
れるMPEG2のビデオストリームを出力し、ビデオバ
ッファ部12においてビデオストリームを一時保持する
とともに、ライン21データバッファ部13において予
め用意されたライン21データを一時保持し、オーディ
オADC部14においてオーディオ入力から入力された
アナログオーディオ信号をデジタルオーディオ信号に変
換し、MPEGオーディオエンコーダ部15においてデ
ジタル化されたオーディオ信号をISO11172−3
により規定されるMPEG1のオーディオストリームを
出力し、オーディオバッファ部16においてオーディオ
ストリームを一時保持する。パケッタイザ部17におい
てビデオバッファ部12、オーディオバッファ部16に
蓄積されたビデオストリーム、オーディオストリームを
プログラムストリームとしてパックする。コントローラ
部18ではMPEG2ビデオエンコーダ部11、MPE
Gオーディオエンコーダ部15、パケッタイザ部17の
制御を行う。
The conventional encoding device having such a configuration operates as follows. The video decoder unit 10 converts an analog video signal, which is an NTSC video signal input from a video input, into a digital video signal,
A video signal digitized by the MPEG2 video encoder unit 11 is output as an MPEG2 video stream defined by ISO 13818-2, the video buffer unit 12 temporarily holds the video stream, and is prepared in the line 21 data buffer unit 13 in advance. The line data is temporarily stored, the audio ADC unit 14 converts an analog audio signal input from an audio input into a digital audio signal, and converts the audio signal digitized by the MPEG audio encoder unit 15 into ISO11172-3.
And outputs an audio stream of MPEG1 defined by the above, and temporarily holds the audio stream in the audio buffer unit 16. The packetizer 17 packs the video stream and the audio stream stored in the video buffer 12 and the audio buffer 16 as a program stream. In the controller section 18, the MPEG2 video encoder section 11, the MPE
The G audio encoder 15 and the packetizer 17 are controlled.

【0008】従来の符号化装置のMPEG2ビデオエン
コーダ部11におけるビデオストリーム作成の手順を示
すフローチャートを図10に示す。まず、初期設定にお
いて符号化に必要なパラメータの設定等を行い(S
1)、シーケンスヘッダ、GOPヘッダの作成を行う
(S2、S3)。GOPヘッダ作成後、コントローラ部
18はライン21データバッファ部13にデータが蓄積
されているか確認し(S4)、ライン21データが存在
する場合はライン21データを格納したユーザーデータ
を作成し(S5)、ライン21データが存在しない場合
はユーザーデータを作成せずに次の処理を実行する。こ
のライン21データは、ビデオ信号とは別に予め用意さ
れたライン21データを使用し、図12に示すようにG
OPに対応するライン21データをGOPの先頭に位置
するGOPヘッダに格納する。
FIG. 10 is a flowchart showing a procedure for creating a video stream in the MPEG2 video encoder unit 11 of the conventional encoding device. First, parameters required for encoding are set in initial settings (S
1), a sequence header and a GOP header are created (S2, S3). After creating the GOP header, the controller 18 checks whether data is stored in the line 21 data buffer 13 (S4), and if there is line 21 data, creates the user data storing the line 21 data (S5). If the line 21 data does not exist, the following processing is executed without creating user data. As the line 21 data, line 21 data prepared in advance separately from the video signal is used, and as shown in FIG.
The line 21 data corresponding to the OP is stored in the GOP header located at the head of the GOP.

【0009】次にGOPヘッダを作成後符号量、各階層
のヘッダ作成、符号化するために必要なパラメータとし
て符号量、量子化ステップサイズの設定等を行うフレー
ム開始処理、ピクチャ開始処理、スライス開始処理を行
う(S6、S7、S8)。次に実際の符号化を行うマク
ロブロック処理を実行する(S9)。スライス処理以降
を繰り返し実行することで1枚のピクチャの符号化を終
了する(S10)。
Next, a frame start process, a picture start process, and a slice start process for setting a code amount after forming a GOP header, setting a code amount and a quantization step size as parameters necessary for coding and creating a header for each layer, and starting a slice. Processing is performed (S6, S7, S8). Next, a macroblock process for performing actual encoding is executed (S9). The encoding of one picture is completed by repeatedly executing the processing after the slice processing (S10).

【0010】1枚のピクチャの符号化が終了する毎にシ
ーケンスの終了を判断し(S11)、シーケンス終了な
らば符号化を終了する。シーケンス終了でなければGO
Pを構成するピクチャ数の符号化が終了したか判断し、
GOPを構成するピクチャがまだ残っている場合はフレ
ーム開始処理から、GOPを構成する全てのピクチャの
符号化が終了した場合は1GOPの符号化が終了したと
して、次のGOPを符号化するためにシーケンスヘッダ
作成から実行する(S12)。
[0010] Each time encoding of one picture is completed, the end of the sequence is determined (S11). If the sequence is completed, the encoding is terminated. GO if not sequence end
It is determined whether encoding of the number of pictures constituting P has been completed,
If there are still pictures forming the GOP, the process starts from the frame start process. If the coding of all the pictures forming the GOP is completed, it is assumed that the coding of one GOP has been completed. The process is executed from the sequence header creation (S12).

【0011】図10のフローで作成したビデオストリー
ムとオーディオストリーム(作成手順は省略する)とを
プログラムストリームとしてパックするパケッタイザ部
17における作成手順のフローを図11に示す。図9に
示すMPEG2ビデオエンコーダ部11とMPEGオー
ディオエンコーダ部15によって符号化された各ストリ
ームは各バッファに蓄積される。パケッタイザ部17で
はビデオバッファ部12およびオーディオバッファ部1
6のバッファ占有量(バッファに蓄積されているデータ
量)とデコーダ側の仮想バッファ占有量とから出力する
パックを選択する。まずビデオバッファ部12にパック
できるデータ量(2048バイト)が蓄積され(S2
1)、かつデコーダ側のバッファがパックを出力するこ
とでバッファがオーバーフローしなければ(S22)ビ
デオバッファ部12のビデオストリームをプログラムス
トリームとして出力する(S23)。ビデオストリーム
が上記条件を満たさない場合はオーディオバッファ部1
6にパックできるデータ量(2048バイト)がバッフ
ァに蓄積され(S24)、かつデコーダ側のバッファが
パックを出力することでバッファがオーバーフローしな
ければ(S25)オーディオバッファ部16のオーディ
オストリームをプログラムストリームとして出力する
(S26)。
FIG. 11 shows a flow of the creation procedure in the packetizer 17 for packing the video stream and the audio stream (the creation procedure is omitted) created by the flow of FIG. 10 as a program stream. Each stream encoded by the MPEG2 video encoder unit 11 and the MPEG audio encoder unit 15 shown in FIG. 9 is stored in each buffer. The packetizer 17 includes a video buffer unit 12 and an audio buffer unit 1.
The pack to be output is selected based on the buffer occupancy (the amount of data stored in the buffer) and the virtual buffer occupancy on the decoder side. First, the amount of data (2048 bytes) that can be packed is stored in the video buffer unit 12 (S2).
1) If the buffer on the decoder side outputs a pack and the buffer does not overflow (S22), the video stream of the video buffer unit 12 is output as a program stream (S23). If the video stream does not satisfy the above conditions, the audio buffer unit 1
6 (2048 bytes) is accumulated in the buffer (S24), and if the buffer on the decoder side outputs the pack and the buffer does not overflow (S25), the audio stream of the audio buffer unit 16 is transferred to the program stream. (S26).

【0012】このように再生専用ディスクDVDのオー
サリング(テキストや音声、画像などのデータを作成、
編集してまとまったアプリケーションにする)等で使用
される従来の符号化装置におけるライン21データの格
納は、予め映像信号とは別に用意されたライン21デー
タをGOPヘッダのユーザーデータ領域に格納するもの
である。
As described above, authoring of a read-only disk DVD (creating data such as text, audio, images, etc.
The storage of the line 21 data in the conventional encoding apparatus used for editing and compiling a combined application) is to store the line 21 data prepared separately from the video signal in advance in the user data area of the GOP header. It is.

【0013】近年、一般家庭内においても再生専用ディ
スクDVD規格であるMPEG2に沿った符号化のニー
ズが高まってきており、ライン21データを重畳したN
TSC方式の映像信号であるビデオ信号をリアルタイム
に符号化して記録媒体に記録するリアルタイム符号化装
置が一般家庭に普及の兆しを見せている。
In recent years, the need for encoding in accordance with MPEG2 which is a read-only disc DVD standard has been increasing even in ordinary households.
2. Description of the Related Art A real-time encoding apparatus that encodes a video signal, which is a video signal of the TSC system, in real time and records the encoded video signal on a recording medium is showing signs of spreading to ordinary households.

【0014】図13にライン21データを重畳したビデ
オ信号をリアルタイムに符号化する従来のリアルタイム
符号化装置の構成を示す。従来のリアルタイム符号化装
置は、図9に示す従来の符号化装置に垂直帰線消去期間
に重畳されている例えば英語字幕情報等の文字情報を抽
出し、ライン21データを出力するテキストスライサ部
19を追加した構成となり、その他の構成、動作は従来
の符号化装置と同一である。
FIG. 13 shows a configuration of a conventional real-time encoding apparatus for encoding a video signal on which line 21 data is superimposed in real time. The conventional real-time encoding apparatus extracts the text information such as English subtitle information superimposed on the vertical blanking period in the conventional encoding apparatus shown in FIG. 9 and outputs line 21 data. Is added, and other configurations and operations are the same as those of the conventional encoding device.

【0015】[0015]

【発明が解決しようとする課題】しかしながら、従来技
術では、ライン21データを含むアナログビデオ信号か
らリアルタイムに符号化するには垂直帰線消去期間のラ
イン21データを抽出し、そのライン21データをGO
Pヘッダに格納しなければならない。しかし、図14に
示すようにGOPヘッダは複数のピクチャを含むストリ
ームの先頭に格納するためにGOPヘッダを作成する時
点でフィールド毎に重畳されているGOPに対応するラ
イン21データは抽出することができないため、符号化
開始直後はユーザーデータなしのGOPヘッダを作成す
ることになる。
However, in the prior art, in order to encode in real time from an analog video signal containing line 21 data, the line 21 data in the vertical blanking period is extracted, and the line 21 data is GO.
Must be stored in the P header. However, as shown in FIG. 14, the line 21 data corresponding to the GOP superimposed for each field may be extracted when the GOP header is created for storing the GOP header at the head of the stream including a plurality of pictures. Therefore, a GOP header without user data is created immediately after the start of encoding.

【0016】また、パケッタイザのパック出力の条件が
バッファにデータが一定量蓄積すればパックを出力する
ので、ライン21データを抽出してもGOPヘッダは作
成済みでプログラムストリームとして出力後の可能性が
あるので現在符号化中のGOPヘッダに格納することは
できず、次のGOPヘッダに格納することになる。
In addition, since the packet output condition of the packetizer is that if a certain amount of data is accumulated in the buffer, the pack is output, even if the line 21 data is extracted, the GOP header has already been created and there is a possibility that the packet is output as a program stream. Because of this, it cannot be stored in the GOP header currently being encoded, and is stored in the next GOP header.

【0017】このためアナログビデオ信号に重畳されて
いるライン21データを抽出するタイミングがGOPヘ
ッダを作成するタイミングより遅いため入力画像と同じ
時間帯にライン21データを格納することができず、リ
アルタイムに符号化した場合はライン21データが入力
画像と符号化した画像の文字情報の表示タイミングに最
大1GOP分のずれ(0.5秒程度)が生じ、符号化し
た画像においてシーンが変更しても前のシーンの文字情
報を表示する場合が生じるという問題点があった。
As a result, the timing of extracting the line 21 data superimposed on the analog video signal is later than the timing of generating the GOP header, so that the line 21 data cannot be stored in the same time zone as the input image, and it is not possible to store the data in real time. In the case of encoding, the display timing of the character information of the input image and the encoded image of the line 21 data is shifted by a maximum of 1 GOP (about 0.5 seconds). There is a problem that the character information of the scene is displayed.

【0018】本発明は斯かる問題点を鑑みてなされたも
のであり、その目的とするところは、ライン21データ
が重畳されているアナログビデオ信号をリアルタイムに
符号化する装置において、アナログビデオ信号に重畳さ
れているライン21データをユーザーデータに入力画像
と同じタイミングで格納でき、符号化した画像において
シーンが変更しても適切な文字情報を表示することがで
きるリアルタイム符号化装置およびリアルタイム符号化
方法を提供する点にある。
The present invention has been made in view of such a problem, and an object of the present invention is to provide a device for encoding an analog video signal on which line 21 data is superimposed in real time, by using an analog video signal. A real-time encoding device and a real-time encoding method capable of storing superimposed line 21 data in user data at the same timing as an input image and displaying appropriate character information even when a scene changes in an encoded image The point is to provide.

【0019】[0019]

【課題を解決するための手段】本発明は上記課題を解決
すべく、以下に掲げる構成とした。請求項1記載の発明
の要旨は、入力された映像信号をリアルタイムに符号化
してGOPヘッダと該GOPヘッダに引き続く複数のピ
クチャからなるビデオストリームを作成し、前記ビデオ
ストリームとオーディオストリームとを多重化してプロ
グラムストリームを作成するリアルタイム符号化装置で
あって、前記映像信号に含まれる文字情報を抽出する文
字情報抽出手段と、該文字情報抽出手段により抽出され
た前記文字情報を格納する領域を前記ビデオストリーム
の前記GOPヘッダの作成時に確保する文字情報領域確
保手段と、該文字情報領域確保手段により確保された前
記領域に前記文字情報抽出手段により抽出された前記文
字情報を格納する文字情報格納手段とを具備することを
特徴とするリアルタイム符号化装置に存する。また請求
項2記載の発明の要旨は、前記文字情報格納手段は、前
記ビデオストリームの前記複数のピクチャが符号化によ
り全て形成された後、前記文字情報抽出手段により抽出
された前記文字情報を前記文字情報領域確保手段により
確保された前記領域に格納することを特徴とする請求項
1記載のリアルタイム符号化装置に存する。また請求項
3記載の発明の要旨は、前記文字情報領域確保手段は、
前記文字情報を格納する前記領域の確保のための無効な
ダミーユーザーデータを前記ビデオストリームの前記G
OPヘッダに作成することを特徴とする請求項1又は2
記載のリアルタイム符号化装置に存する。また請求項4
記載の発明の要旨は、前記文字情報格納手段は、前記文
字情報抽出手段により抽出された前記文字情報を格納し
た有効なユーザーデータを作成し、該ユーザーデータを
前記文字情報領域確保手段により作成された前記ダミー
ユーザーデータの前記領域に上書きすることを特徴とす
る請求項1乃至3のいずれかに記載のリアルタイム符号
化装置に存する。また請求項5記載の発明の要旨は、前
記文字情報抽出手段により前記ビデオストリームの前記
複数のピクチャに対応する全ての前記文字情報が抽出さ
れ、前記文字情報格納手段により前記文字情報抽出手段
により抽出された前記ビデオストリームの前記複数のピ
クチャに対応する全ての前記文字情報が前記文字情報領
域確保手段により確保された前記領域に格納されるまで
は、前記プログラムストリームを作成しないことを特徴
とする請求項1乃至4のいずれかに記載のリアルタイム
符号化装置に存する。また請求項6記載の発明の要旨
は、前記文字情報は、前記映像信号の垂直帰線消去期間
の第21番に重畳されているライン21データであるこ
とを特徴とする請求項1乃至5のいずれかに記載のリア
ルタイム符号化装置に存する。また請求項7記載の発明
の要旨は、入力された映像信号をリアルタイムに符号化
してGOPヘッダと該GOPヘッダに引き続く複数のピ
クチャからなるビデオストリームを作成し、前記ビデオ
ストリームとオーディオストリームとを多重化してプロ
グラムストリームを作成するリアルタイム符号化方法で
あって、前記映像信号に含まれる文字情報を抽出し、該
抽出した前記文字情報を格納する領域を前記ビデオスト
リームの前記GOPヘッダの作成時に確保し、該確保し
た前記領域に前記抽出した前記文字情報を格納すること
を特徴とするリアルタイム符号化方法に存する。また請
求項8記載の発明の要旨は、前記ビデオストリームの前
記複数のピクチャを符号化により全て形成した後、前記
抽出した前記文字情報を前記確保した前記領域に格納す
ることを特徴とする請求項7記載のリアルタイム符号化
方法に存する。また請求項9記載の発明の要旨は、前記
文字情報を格納する前記領域の確保のための無効なダミ
ーユーザーデータを前記ビデオストリームの前記GOP
ヘッダに作成することを特徴とする請求項7乃至8のい
ずれかに記載のリアルタイム符号化方法に存する。また
請求項10記載の発明の要旨は、前記抽出した前記文字
情報を格納した有効なユーザーデータを作成し、該ユー
ザーデータを前記作成した前記ダミーユーザーデータの
前記領域に上書きすることを特徴とする請求項7乃至9
のいずれかに記載のリアルタイム符号化方法に存する。
また請求項11記載の発明の要旨は、前記ビデオストリ
ームの前記複数のピクチャに対応する全ての前記文字情
報を抽出し、前記ビデオストリームの前記複数のピクチ
ャに対応する全ての前記文字情報を前記確保した前記領
域に格納するまでは、前記プログラムストリームを作成
しないことを特徴とする請求項7乃至10のいずれかに
記載のリアルタイム符号化方法に存する。また請求項1
2記載の発明の要旨は、前記文字情報は、前記映像信号
の垂直帰線消去期間の第21番に重畳されているライン
21データであることを特徴とする請求項7乃至11の
いずれかに記載のリアルタイム符号化方法に存する。
Means for Solving the Problems In order to solve the above problems, the present invention has the following constitution. The gist of the invention according to claim 1 is that an input video signal is encoded in real time to create a video stream composed of a GOP header and a plurality of pictures following the GOP header, and multiplexes the video stream and the audio stream. A character information extracting means for extracting character information included in the video signal, and an area for storing the character information extracted by the character information extracting means. Character information area securing means for securing the GOP header of the stream; character information storing means for storing the character information extracted by the character information extracting means in the area secured by the character information area securing means; And a real-time encoding device. The gist of the invention described in claim 2 is that the character information storage unit stores the character information extracted by the character information extraction unit after all of the plurality of pictures of the video stream are formed by encoding. 2. The real-time encoding apparatus according to claim 1, wherein the data is stored in the area secured by the character information area securing means. The gist of the invention according to claim 3 is that the character information area securing means includes:
Invalid dummy user data for securing the area for storing the character information is stored in the G of the video stream.
3. The method according to claim 1, wherein the information is created in an OP header.
The present invention resides in the described real-time encoding device. Claim 4
The gist of the invention described is that the character information storage means creates valid user data storing the character information extracted by the character information extraction means, and creates the user data by the character information area securing means. 4. The real-time encoding device according to claim 1, wherein the area of the dummy user data is overwritten. The gist of the invention according to claim 5 is that all of the character information corresponding to the plurality of pictures of the video stream is extracted by the character information extracting means, and is extracted by the character information extracting means by the character information storing means. The program stream is not created until all of the character information corresponding to the plurality of pictures in the obtained video stream is stored in the area secured by the character information area securing means. Item 5 is a real-time encoding device according to any one of Items 1 to 4. The gist of the invention described in claim 6 is that the character information is line 21 data superimposed on the 21st of a vertical blanking period of the video signal. Any one of the real-time encoding devices described above. The gist of the invention described in claim 7 is that a video stream composed of a GOP header and a plurality of pictures following the GOP header is created by encoding an input video signal in real time, and the video stream and the audio stream are multiplexed. A real-time encoding method for creating a program stream by extracting character information included in the video signal, and securing an area for storing the extracted character information when creating the GOP header of the video stream. And storing the extracted character information in the secured area. The gist of the invention described in claim 8 is that, after all of the plurality of pictures of the video stream are formed by encoding, the extracted character information is stored in the secured area. 7 is a real-time encoding method. The gist of the invention according to claim 9 is that invalid dummy user data for securing the area for storing the character information is stored in the GOP of the video stream.
A real-time encoding method according to any one of claims 7 to 8, wherein the method is created in a header. The gist of the invention according to claim 10 is characterized in that valid user data storing the extracted character information is created, and the user data is overwritten on the area of the created dummy user data. Claims 7 to 9
The real-time encoding method according to any one of the above.
Further, the gist of the invention according to claim 11 is to extract all the character information corresponding to the plurality of pictures of the video stream and secure the character information corresponding to the plurality of pictures of the video stream. 11. The real-time encoding method according to claim 7, wherein the program stream is not created until the program stream is stored in the area. Claim 1
The gist of the invention according to claim 2, wherein the character information is line 21 data superimposed on the 21st of a vertical blanking period of the video signal. The present invention resides in the described real-time encoding method.

【0020】[0020]

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

【0021】図1は、本発明に係るリアルタイム符号化
装置の実施の形態の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an embodiment of a real-time encoding apparatus according to the present invention.

【0022】本実施の形態は、ビデオ入力から入力され
たアナログビデオ信号をデジタルビデオ信号に変換する
ビデオデコーダ部10と、デジタル化されたビデオ信号
からISO13818−2に規定されるMPEG2の圧
縮プロトコルにしたがってビデオストリームを作成して
出力するMPEG2ビデオエンコーダ部11と、ビデオ
ストリームを一時保持するビデオバッファ部12と、垂
直帰線消去期間から英語字幕情報等の文字情報を含むラ
イン21データを抽出し、ライン21データを出力する
テキストスライサ部19と、ライン21データを一時蓄
積するライン21データバッファ部13と、オーディオ
入力から入力されたアナログオーディオ信号をデジタル
オーディオ信号に変換するオーディオADC部14と、
デジタル化されたオーディオ信号をISO11172−
3により規定されるMPEG1の圧縮プロトコルにした
がってオーディオストリームを出力するMPEGオーデ
ィオエンコーダ部15と、オーディオストリームを一時
保持するオーディオバッファ部16と、各バッファに保
持されているデータをプログラムストリームとしてパッ
クするパケッタイザ部17と、MPEG2ビデオエンコ
ーダ部11、MPEGオーディオエンコーダ部15、パ
ケッタイザ部17を制御するとともにビデオバッファ部
12にライン21データを書き込むストリーム作成制御
部1とから構成される。
In this embodiment, a video decoder unit 10 for converting an analog video signal input from a video input into a digital video signal, and a compression protocol of MPEG2 specified in ISO13818-2 from a digitized video signal. Therefore, an MPEG2 video encoder unit 11 for creating and outputting a video stream, a video buffer unit 12 for temporarily holding the video stream, and line 21 data including character information such as English subtitle information are extracted from the vertical blanking period, A text slicer unit 19 for outputting line 21 data, a line 21 data buffer unit 13 for temporarily storing line 21 data, an audio ADC unit 14 for converting an analog audio signal input from an audio input into a digital audio signal,
The digitized audio signal is converted to ISO11172-
MPEG audio encoder 15 for outputting an audio stream in accordance with the MPEG1 compression protocol defined by MPEG3, an audio buffer 16 for temporarily holding the audio stream, and a packetizer for packing the data held in each buffer as a program stream. A stream creation control unit 1 that controls the MPEG2 video encoder unit 11, the MPEG audio encoder unit 15, and the packetizer unit 17 and writes line 21 data into the video buffer unit 12.

【0023】ストリーム作成制御部1は、MPEG2ビ
デオエンコーダ部11におけるビデオストリームの作成
出力と、MPEGオーディオエンコーダ部15における
オーディオストリームの作成出力と、パケッタイザ部1
7におけるプログラムストリームの作成出力を制御する
とともに、MPEG2ビデオエンコーダ部11における
ビデオストリームの作成に際して、ビデオストリームの
GOPヘッダ作成時に無効なダミーユーザーデータを作
成して、ユーザーデータの領域を確保する。また、スト
リーム作成制御部1は、ダミーユーザーデータにより確
保したユーザーデータの領域にライン21データバッフ
ァ部13に蓄積されたライン21データを含むユーザー
データを上書きするとともに、現在符号化中のGOPヘ
ッダのピクチャに含まれる全てのライン21データを抽
出し、抽出した全てのライン21データを含むユーザー
データの上書きにより、ダミーユーザーデータを更新す
るまでは、パケッタイザ部17における現在符号化中の
GOPヘッダのビデオストリームのパックを禁止制御す
る。
The stream creation controller 1 creates and outputs a video stream in the MPEG2 video encoder 11, creates and outputs an audio stream in the MPEG audio encoder 15, and outputs a packetizer 1.
In addition to controlling the creation and output of the program stream in 7, the MPEG2 video encoder 11 creates dummy user data that is invalid when creating the GOP header of the video stream, and secures an area for the user data. Further, the stream creation control unit 1 overwrites the user data including the line 21 data stored in the line 21 data buffer unit 13 in the user data area secured by the dummy user data, and also writes the GOP header of the GOP currently being encoded. Until the dummy user data is updated by extracting all the line 21 data included in the picture and overwriting the user data including all the extracted line 21 data, the video of the GOP header currently being encoded in the packetizer unit 17 is updated. Inhibits the packing of the stream.

【0024】次に、本実施の形態の動作を図2乃至図4
を参照して詳細に説明する。図2は、図1に示すMPE
G2ビデオエンコーダ部におけるビデオストリームの作
成の手順を説明するためのフローチャートであり、図3
は、図1に示すパケッタイザにおけるビデオストリーム
とオーディオストリームとをプログラムストリームとし
てパックする手順を説明するためのフローチャートであ
り、図4は、本発明に係るリアルタイム符号化装置の実
施の形態における映像信号とビデオストリームとの関係
を説明するための説明図である。
Next, the operation of this embodiment will be described with reference to FIGS.
This will be described in detail with reference to FIG. FIG. 2 shows the MPE shown in FIG.
FIG. 3 is a flowchart for explaining a procedure of creating a video stream in the G2 video encoder unit, and FIG.
FIG. 4 is a flowchart for explaining a procedure for packing a video stream and an audio stream as a program stream in the packetizer shown in FIG. 1, and FIG. 4 is a flowchart showing a video signal and a video signal in the embodiment of the real-time encoding apparatus according to the present invention. FIG. 3 is an explanatory diagram for describing a relationship with a video stream.

【0025】まず、初期設定において符号化に必要なパ
ラメータの設定等を行い(S1)、次にシーケンスヘッ
ダ、GOPヘッダの作成を行う(S2,S3)。
First, parameters required for encoding are set in the initial setting (S1), and then a sequence header and a GOP header are created (S2, S3).

【0026】GOPヘッダの作成時に、ストリーム作成
制御部1は、現在符号化中のGOPに包括されるピクチ
ャのライン21データを格納する領域として図7に示す
1ビット構成のライン21のスイッチ(line21_switc
h)を‘0b’(無効)としたユーザーデータをダミー
ユーザーデータとして予め作成し、作成したユーザーデ
ータの16ビット構成のライン21データ(line21_dat
a)として図8に示すフィールド1データ(line21_data
1)とフィールド2データ(line21_data2)とにNUL
Lデータ(データは‘00000000b’)を格納す
る(S31)。ダミーユーザーデータを作成すること
で、GOPヘッダに包括されるピクチャにライン21デ
ータが存在した場合にその領域にライン21データを格
納できるようにしておく。
When a GOP header is created, the stream creation control unit 1 switches a 1-bit line 21 switch (line21_switc) shown in FIG. 7 as an area for storing line 21 data of a picture included in the GOP currently being encoded.
h) is set to '0b' (invalid) in advance as dummy user data, and the created user data has line 21 data (line21_dat
Field a data (line21_data) shown in FIG.
NUL for 1) and field 2 data (line21_data2)
The L data (data is '00000000b') is stored (S31). By creating dummy user data, if line 21 data exists in a picture included in the GOP header, the line 21 data can be stored in that area.

【0027】GOPヘッダを作成後符号量、各階層のヘ
ッダ作成、符号化するために必要なパラメータとして符
号量、量子化ステップサイズの設定等を行うフレーム開
始処理、ピクチャ開始処理、スライス開始処理を行う
(S6、S7、S8)。次に実際の符号化を行うマクロ
ブロック処理を行う(S9)。スライス処理以降を繰り
返し実行し、1枚のピクチャの符号化を終了する(S1
0)。
After the GOP header is created, a frame start process, a picture start process, and a slice start process for setting a code amount, a quantization step size, and the like as parameters necessary for coding, creating a header for each layer, and encoding. Perform (S6, S7, S8). Next, a macroblock process for performing actual encoding is performed (S9). The slice processing and subsequent steps are repeatedly executed, and the encoding of one picture is completed (S1).
0).

【0028】1枚のピクチャの符号化が終了する毎にシ
ーケンスの終了をチェックし(S11)、シーケンス終
了ならば符号化を終了する。シーケンス終了でなければ
GOPヘッダで構成されるピクチャ数の符号化が終了し
たかチェックし、GOPヘッダ内のピクチャがまだ残っ
ている場合はフレーム開始処理から、全てのピクチャが
符号化終了であれば1GOPヘッダ内の符号化が終了す
る(S12)。
Each time the encoding of one picture is completed, the end of the sequence is checked (S11). If the sequence is completed, the encoding is terminated. If the sequence is not completed, it is checked whether the encoding of the number of pictures constituted by the GOP header has been completed. If there are still pictures in the GOP header, the frame start process is started. The encoding in one GOP header ends (S12).

【0029】1GOPヘッダ内の符号化が終了後、スト
リーム作成制御部1は、ライン21データバッファ部1
3をチェックし(S32)、ライン21データが蓄積さ
れている場合は、ビデオバッファ部12内のGOPヘッ
ダ作成時に無効なダミーユーザーデータによって確保し
ておいた領域に、ライン21のスイッチ(line21_switc
h)を‘1b’(有効)とし、フィールド1データ(lin
e21_data1)とフィールド2データ(line21_data2)と
にライン21データバッファ部13に蓄積されているラ
イン21データを書き込んだユーザーデータを上書きし
(S33)、ユーザーデータを上書きしたGOPヘッダ
を含むビデオストリームをプログラムストリームとして
パックするために出力することを許可する(S34)。
After the encoding in the 1 GOP header is completed, the stream creation control unit 1
3 is checked (S32), and if the line 21 data is stored, the switch of the line 21 (line21_switc) is stored in the area reserved by the invalid dummy user data when the GOP header is created in the video buffer unit 12.
h) is '1b' (valid) and the field 1 data (lin
e21_data1) and field 2 data (line21_data2) are overwritten with the user data written in the line 21 data stored in the line 21 data buffer unit 13 (S33), and the video stream including the GOP header overwritten with the user data is programmed. The output for packing as a stream is permitted (S34).

【0030】ライン21データバッファ部13にライン
21データが存在しない場合はライン21のスイッチ
(line21_switch)を無効としたままのダミーユーザー
データが作成されているGOPヘッダを含むビデオスト
リームをプログラムストリームとしてパックするために
出力することを許可する(S34)。その後次のGOP
を符号化するために再びシーケンスヘッダ作成から実行
する。
When the line 21 data does not exist in the line 21 data buffer unit 13, the video stream including the GOP header in which the dummy user data is created with the switch of the line 21 (line21_switch) being invalidated is packed as a program stream. Output is permitted (S34). Then the next GOP
Is again executed from the sequence header generation in order to encode.

【0031】次にビデオバッファ部12に蓄積されたビ
デオストリームとオーディオバッファ部16に蓄積され
たオーディオストリームとをパケッタイザ部17でパッ
クしてプログラムストリームを作成する。パケッタイザ
部17におけるプログラムストリームの作成に際して、
現在符号化中のGOPヘッダのピクチャに含まれるライ
ン21データを抽出し、ダミーユーザーデータを更新す
るまではパックを実行しないように、ビデオバッファ部
12に蓄積されているビデオストリームの出力が許可さ
れているか否かでビデオバッファ部12に蓄積されたビ
デオストリームのGOPヘッダのライン21データが確
定済みか否かチェックを行い(S35)、GOPヘッダ
のライン21データが確定済みでない場合には、パケッ
タイザ部17は、パックせずに処理を終了する。
Next, the video stream stored in the video buffer section 12 and the audio stream stored in the audio buffer section 16 are packed by a packetizer section 17 to create a program stream. When creating a program stream in the packetizer 17,
Output of the video stream stored in the video buffer unit 12 is permitted so that the line 21 data included in the picture of the GOP header currently being encoded is extracted and the pack is not executed until the dummy user data is updated. It is checked whether or not the line 21 data of the GOP header of the video stream stored in the video buffer unit 12 has been determined based on whether or not the line 21 data of the GOP header has been determined (S35). The unit 17 ends the processing without packing.

【0032】このようにパケッタイザ部17において現
在符号化中のビデオストリームをパックしてプログラム
ストリームとして出力することを抑制することで、ビデ
オバッファ部12でビデオストリームを保持する時間を
作成してダミーユーザーデータの領域にライン21デー
タバッファ部13に蓄積されたライン21データを書き
込むための時間を確保する。すなわち、図4に示すよう
にGOPヘッダに包括される全てのピクチャのライン2
1データを抽出するまでビデオバッファ部12にビデオ
ストリームを保持し、パックしてプログラムストリーム
として出力するタイミングをGOPヘッダに包括される
全てのピクチャが符号化終了後(全てのライン21デー
タを抽出後)とする。
As described above, the packetizer 17 suppresses the packing of the video stream currently being encoded and outputs it as a program stream. A time for writing the line 21 data accumulated in the line 21 data buffer unit 13 in the data area is secured. That is, as shown in FIG. 4, line 2 of all pictures included in the GOP header
A video stream is held in the video buffer unit 12 until one data is extracted, and the timing of packing and outputting as a program stream is determined after all pictures included in the GOP header have been encoded (after all lines 21 data has been extracted). ).

【0033】GOPヘッダのライン21データが確定済
みである場合には、ビデオバッファ部12およびオーデ
ィオバッファ部16のバッファ占有量(バッファに蓄積
されているデータ量)とデコーダ側の仮想バッファ占有
量から出力するパックを選択する。まずビデオバッファ
部12にパックできるデータ量(2048バイト)がバ
ッファに蓄積され(S21)、かつデコーダ側のバッフ
ァがパックを出力することでバッファがオーバーフロー
しなければ(S22)ビデオバッファ部12のビデオス
トリームをプログラムストリームとして出力する(S2
3)。ビデオストリームが上記条件を満たさない場合は
オーディオバッファ部16にパックできるデータ量(2
048バイト)がバッファに蓄積され(S24)、かつ
デコーダ側のバッファがパックを出力することでバッフ
ァがオーバーフローしなければ(S25)、オーディオ
バッファ部16のオーディオストリームをプログラムス
トリームとして出力する(S26)。
When the line 21 data of the GOP header has been determined, the buffer occupancy of the video buffer unit 12 and the audio buffer unit 16 (the amount of data stored in the buffer) and the virtual buffer occupancy of the decoder side are determined. Select the pack to output. First, the amount of data (2048 bytes) that can be packed in the video buffer unit 12 is accumulated in the buffer (S21), and if the buffer on the decoder side outputs the pack and the buffer does not overflow (S22), the video of the video buffer unit 12 The stream is output as a program stream (S2
3). If the video stream does not satisfy the above conditions, the amount of data (2
048 bytes) is accumulated in the buffer (S24), and if the buffer on the decoder side outputs a pack and the buffer does not overflow (S25), the audio stream of the audio buffer unit 16 is output as a program stream (S26). .

【0034】以上説明したように、本実施の形態によれ
ば、ライン21データが重畳されているアナログビデオ
信号をリアルタイムに符号化する装置において、GOP
ヘッダの作成時に予め無効なユーザーデータを付加して
GOPヘッダ作成後に抽出されるライン21データを格
納する領域を確保して、確保した領域にアナログビデオ
信号から抽出されたライン21データを格納することに
より、アナログビデオ信号に重畳されているライン21
データをユーザーデータに入力画像と同じタイミングで
格納でき、符号化した画像においてシーンが変更しても
適切な文字情報を表示することができるという効果を奏
する。
As described above, according to the present embodiment, in the apparatus for encoding an analog video signal on which line 21 data is superimposed in real time,
Adding an invalid user data in advance when creating the header to secure an area for storing the line 21 data extracted after creating the GOP header, and storing the line 21 data extracted from the analog video signal in the secured area. The line 21 superimposed on the analog video signal
The data can be stored in the user data at the same timing as the input image, and it is possible to display appropriate character information even if the scene changes in the encoded image.

【0035】なお、オーディオストリームとしてMPE
Gオーディオを出力するMPEGオーディオエンコーダ
部15が、リニアPCMをオーディオストリームとして
出力する場合は、オーディオADC部14から直接オー
ディオバッファ部16へ出力するように構成することも
よく、ドルビーAC−3をオーディオストリームとして
出力する場合は、MPEGオーディオエンコーダ部15
をドルビーAC−3エンコーダ部に置き換えてもよく、
MPEG2オーディオをオーディオストリームとして出
力する場合は、MPEGオーディオエンコーダ部15を
MPEG2オーディオエンコーダ部に置き換えてもよ
い。
It should be noted that MPE is used as an audio stream.
When the MPEG audio encoder unit 15 that outputs G audio outputs linear PCM as an audio stream, the audio ADC unit 14 may directly output the audio data to the audio buffer unit 16. When outputting as a stream, the MPEG audio encoder 15
May be replaced with a Dolby AC-3 encoder section,
When outputting MPEG2 audio as an audio stream, the MPEG audio encoder unit 15 may be replaced with an MPEG2 audio encoder unit.

【0036】なお、本発明が上記各実施形態に限定され
ず、本発明の技術思想の範囲内において、各実施形態は
適宜変更され得ることは明らかである。また、上記構成
部材の数、位置、形状等は上記実施の形態に限定され
ず、本発明を実施する上で好適な数、位置、形状等にす
ることができる。なお、各図において、同一構成要素に
は同一符号を付している。
It is apparent that the present invention is not limited to the above embodiments, and that the embodiments can be appropriately modified within the scope of the technical idea of the present invention. Further, the number, position, shape, and the like of the constituent members are not limited to the above-described embodiment, but can be set to numbers, positions, shapes, and the like suitable for carrying out the present invention. In the drawings, the same components are denoted by the same reference numerals.

【0037】[0037]

【発明の効果】本発明のリアルタイム符号化装置および
リアルタイム符号化方法は、ライン21データが重畳さ
れているアナログビデオ信号をリアルタイムに符号化す
る装置において、GOPヘッダの作成時に予め無効なユ
ーザーデータを付加してGOPヘッダ作成後に抽出され
るライン21データを格納する領域を確保して、確保し
た領域にアナログビデオ信号から抽出されたライン21
データを格納することにより、アナログビデオ信号に重
畳されているライン21データをユーザーデータに入力
画像と同じタイミングで格納でき、符号化した画像にお
いてシーンが変更しても適切な文字情報を表示すること
ができるという効果を奏する。
According to the present invention, there is provided a real-time encoding apparatus and a real-time encoding method for encoding an analog video signal on which line 21 data is superimposed in real time. In addition, an area for storing the line 21 data extracted after the GOP header is created is secured, and the line 21 extracted from the analog video signal is stored in the secured area.
By storing the data, the line 21 data superimposed on the analog video signal can be stored in the user data at the same timing as the input image, and appropriate character information can be displayed even if the scene changes in the encoded image. This has the effect that it can be performed.

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

【図1】本発明に係るリアルタイム符号化装置の実施の
形態の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an embodiment of a real-time encoding device according to the present invention.

【図2】図1に示すMPEG2ビデオエンコーダ部にお
けるビデオストリームの作成の手順を説明するためのフ
ローチャートである。
FIG. 2 is a flowchart for explaining a procedure of creating a video stream in the MPEG2 video encoder shown in FIG. 1;

【図3】図1に示すパケッタイザにおけるビデオストリ
ームとオーディオストリームとをプログラムストリーム
としてパックする手順を説明するためのフローチャート
である。
FIG. 3 is a flowchart for explaining a procedure for packing a video stream and an audio stream as a program stream in the packetizer shown in FIG. 1;

【図4】本発明に係るリアルタイム符号化装置の実施の
形態における映像信号とビデオストリームとの関係を説
明するための説明図である。
FIG. 4 is an explanatory diagram illustrating a relationship between a video signal and a video stream in the embodiment of the real-time encoding device according to the present invention.

【図5】本発明に係るリアルタイム符号化装置の実施の
形態に入力される映像信号の垂直帰線消去期間の第21
番目の波形を示す波形図である。
FIG. 5 is a diagram illustrating a 21st embodiment of a vertical blanking period of a video signal input to the embodiment of the real-time encoding apparatus according to the present invention.
FIG. 9 is a waveform chart showing a second waveform.

【図6】本発明に係るリアルタイム符号化装置の実施の
形態が準拠するMPEG2のビデオストリームの構成を
示す図である。
FIG. 6 is a diagram showing a configuration of an MPEG2 video stream to which the embodiment of the real-time encoding device according to the present invention conforms.

【図7】図5に示す映像信号の垂直帰線消去期間の第2
1番目の波形に重畳されているユーザーデータの構成を
示す構成図である。
FIG. 7 shows a second example of the vertical blanking period of the video signal shown in FIG.
FIG. 4 is a configuration diagram showing a configuration of user data superimposed on a first waveform.

【図8】図7に示すライン21データの構成を示す構成
図である。
FIG. 8 is a configuration diagram showing a configuration of line 21 data shown in FIG. 7;

【図9】従来の符号化装置の構成を示すブロック図であ
る。
FIG. 9 is a block diagram illustrating a configuration of a conventional encoding device.

【図10】図9に示すMPEG2ビデオエンコーダ部に
おけるビデオストリーム作成の手順を説明するためのフ
ローチャートである。
FIG. 10 is a flowchart for explaining a procedure of creating a video stream in the MPEG2 video encoder shown in FIG. 9;

【図11】図9に示すパケッタイザにおけるビデオスト
リームとオーディオストリームとをプログラムストリー
ムとしてパックする手順を説明するためのフローチャー
トである。
FIG. 11 is a flowchart for explaining a procedure for packing a video stream and an audio stream as a program stream in the packetizer shown in FIG. 9;

【図12】従来の符号化装置における映像信号とビデオ
ストリームとの関係を説明するための説明図である。
FIG. 12 is an explanatory diagram for explaining a relationship between a video signal and a video stream in a conventional encoding device.

【図13】従来のリアルタイム符号化装置の構成を示す
ブロック図である。
FIG. 13 is a block diagram illustrating a configuration of a conventional real-time encoding device.

【図14】従来のリアルタイム符号化装置における映像
信号とビデオストリームとの関係を説明するための説明
図である。
FIG. 14 is an explanatory diagram for explaining a relationship between a video signal and a video stream in a conventional real-time encoding device.

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

1 ストリーム作成制御部 10 ビデオデコーダ部 11 MPEG2ビデオエンコーダ部 12 ビデオバッファ部 13 ライン21データバッファ部 14 オーディオADC部 15 MPEGオーディオエンコーダ部 16 オーディオバッファ部 17 パケッタイザ部 18 コントローラ部 19 テキストスライサ部 Reference Signs List 1 stream creation control section 10 video decoder section 11 MPEG2 video encoder section 12 video buffer section 13 line 21 data buffer section 14 audio ADC section 15 MPEG audio encoder section 16 audio buffer section 17 packetizer section 18 controller section 19 text slicer section

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK00 LA00 MA00 PP04 RB01 RC02 RC34 SS02 UA02 5C063 AB03 AB07 AC01 AC05 CA09 CA11 CA20 CA23 CA40 DA03 EB01  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5C059 KK00 LA00 MA00 PP04 RB01 RC02 RC34 SS02 UA02 5C063 AB03 AB07 AC01 AC05 CA09 CA11 CA20 CA23 CA40 DA03 EB01

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 入力された映像信号をリアルタイムに符
号化してGOPヘッダと該GOPヘッダに引き続く複数
のピクチャからなるビデオストリームを作成し、前記ビ
デオストリームとオーディオストリームとを多重化して
プログラムストリームを作成するリアルタイム符号化装
置であって、 前記映像信号に含まれる文字情報を抽出する文字情報抽
出手段と、 該文字情報抽出手段により抽出された前記文字情報を格
納する領域を前記ビデオストリームの前記GOPヘッダ
の作成時に確保する文字情報領域確保手段と、該文字情
報領域確保手段により確保された前記領域に前記文字情
報抽出手段により抽出された前記文字情報を格納する文
字情報格納手段とを具備することを特徴とするリアルタ
イム符号化装置。
1. An input video signal is encoded in real time to create a video stream including a GOP header and a plurality of pictures following the GOP header, and multiplexes the video stream and the audio stream to create a program stream. A character information extracting means for extracting character information contained in the video signal; and a GOP header of the video stream for storing an area for storing the character information extracted by the character information extracting means. And character information storage means for storing the character information extracted by the character information extracting means in the area secured by the character information area securing means. Characteristic real-time encoding device.
【請求項2】 前記文字情報格納手段は、前記ビデオス
トリームの前記複数のピクチャが符号化により全て形成
された後、前記文字情報抽出手段により抽出された前記
文字情報を前記文字情報領域確保手段により確保された
前記領域に格納することを特徴とする請求項1記載のリ
アルタイム符号化装置。
2. The character information storage unit stores the character information extracted by the character information extraction unit after the plurality of pictures of the video stream are all formed by encoding by the character information area securing unit. 2. The real-time encoding apparatus according to claim 1, wherein the information is stored in the reserved area.
【請求項3】 前記文字情報領域確保手段は、前記文字
情報を格納する前記領域の確保のための無効なダミーユ
ーザーデータを前記ビデオストリームの前記GOPヘッ
ダに作成することを特徴とする請求項1又は2記載のリ
アルタイム符号化装置。
3. The character information area securing means creates invalid dummy user data for securing the area for storing the character information in the GOP header of the video stream. Or the real-time encoding device according to 2.
【請求項4】 前記文字情報格納手段は、前記文字情報
抽出手段により抽出された前記文字情報を格納した有効
なユーザーデータを作成し、該ユーザーデータを前記文
字情報領域確保手段により作成された前記ダミーユーザ
ーデータの前記領域に上書きすることを特徴とする請求
項1乃至3のいずれかに記載のリアルタイム符号化装
置。
4. The character information storing means creates valid user data storing the character information extracted by the character information extracting means, and stores the user data in the character information area securing means. 4. The real-time encoding apparatus according to claim 1, wherein the area of the dummy user data is overwritten.
【請求項5】 前記文字情報抽出手段により前記ビデオ
ストリームの前記複数のピクチャに対応する全ての前記
文字情報が抽出され、前記文字情報格納手段により前記
文字情報抽出手段により抽出された前記ビデオストリー
ムの前記複数のピクチャに対応する全ての前記文字情報
が前記文字情報領域確保手段により確保された前記領域
に格納されるまでは、前記プログラムストリームを作成
しないことを特徴とする請求項1乃至4のいずれかに記
載のリアルタイム符号化装置。
5. The character information extracting unit extracts all the character information corresponding to the plurality of pictures of the video stream, and the character information storing unit extracts the video stream extracted by the character information extracting unit. 5. The program stream is not created until all the character information corresponding to the plurality of pictures is stored in the area secured by the character information area securing means. A real-time encoding device according to
【請求項6】 前記文字情報は、前記映像信号の垂直帰
線消去期間の第21番に重畳されているライン21デー
タであることを特徴とする請求項1乃至5のいずれかに
記載のリアルタイム符号化装置。
6. The real-time apparatus according to claim 1, wherein the character information is line 21 data superimposed on the 21st of a vertical blanking period of the video signal. Encoding device.
【請求項7】 入力された映像信号をリアルタイムに符
号化してGOPヘッダと該GOPヘッダに引き続く複数
のピクチャからなるビデオストリームを作成し、前記ビ
デオストリームとオーディオストリームとを多重化して
プログラムストリームを作成するリアルタイム符号化方
法であって、 前記映像信号に含まれる文字情報を抽出し、 該抽出した前記文字情報を格納する領域を前記ビデオス
トリームの前記GOPヘッダの作成時に確保し、 該確保した前記領域に前記抽出した前記文字情報を格納
することを特徴とするリアルタイム符号化方法。
7. A video stream consisting of a GOP header and a plurality of pictures following the GOP header is created by encoding an input video signal in real time, and a program stream is created by multiplexing the video stream and the audio stream. Extracting a character information included in the video signal; securing an area for storing the extracted character information when creating the GOP header of the video stream; Storing the extracted character information in a real-time encoding method.
【請求項8】 前記ビデオストリームの前記複数のピク
チャを符号化により全て形成した後、前記抽出した前記
文字情報を前記確保した前記領域に格納することを特徴
とする請求項7記載のリアルタイム符号化方法。
8. The real-time encoding according to claim 7, wherein after the plurality of pictures of the video stream are all formed by encoding, the extracted character information is stored in the secured area. Method.
【請求項9】 前記文字情報を格納する前記領域の確保
のための無効なダミーユーザーデータを前記ビデオスト
リームの前記GOPヘッダに作成することを特徴とする
請求項7乃至8のいずれかに記載のリアルタイム符号化
方法。
9. The video data stream according to claim 7, wherein invalid dummy user data for securing the area for storing the character information is created in the GOP header of the video stream. Real-time encoding method.
【請求項10】 前記抽出した前記文字情報を格納した
有効なユーザーデータを作成し、 該ユーザーデータを前記作成した前記ダミーユーザーデ
ータの前記領域に上書きすることを特徴とする請求項7
乃至9のいずれかに記載のリアルタイム符号化方法。
10. The method according to claim 7, wherein valid user data storing the extracted character information is created, and the user data is overwritten on the area of the created dummy user data.
10. The real-time encoding method according to any one of claims 9 to 9.
【請求項11】 前記ビデオストリームの前記複数のピ
クチャに対応する全ての前記文字情報を抽出し、前記ビ
デオストリームの前記複数のピクチャに対応する全ての
前記文字情報を前記確保した前記領域に格納するまで
は、前記プログラムストリームを作成しないことを特徴
とする請求項7乃至10のいずれかに記載のリアルタイ
ム符号化方法。
11. Extracting all the character information corresponding to the plurality of pictures of the video stream and storing all the character information corresponding to the plurality of pictures of the video stream in the secured area. The real-time encoding method according to any one of claims 7 to 10, wherein the program stream is not created until the time.
【請求項12】 前記文字情報は、前記映像信号の垂直
帰線消去期間の第21番に重畳されているライン21デ
ータであることを特徴とする請求項7乃至11のいずれ
かに記載のリアルタイム符号化方法。
12. The real-time apparatus according to claim 7, wherein the character information is line 21 data superimposed on the 21st of a vertical blanking period of the video signal. Encoding method.
JP32629899A 1999-11-17 1999-11-17 Real time encoder and real time encoding method Pending JP2001145067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32629899A JP2001145067A (en) 1999-11-17 1999-11-17 Real time encoder and real time encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32629899A JP2001145067A (en) 1999-11-17 1999-11-17 Real time encoder and real time encoding method

Publications (1)

Publication Number Publication Date
JP2001145067A true JP2001145067A (en) 2001-05-25

Family

ID=18186217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32629899A Pending JP2001145067A (en) 1999-11-17 1999-11-17 Real time encoder and real time encoding method

Country Status (1)

Country Link
JP (1) JP2001145067A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7940799B2 (en) 2003-02-04 2011-05-10 Panasonic Corporation Code conversion method and device thereof
US8204079B2 (en) 2002-10-28 2012-06-19 Qualcomm Incorporated Joint transmission of multiple multimedia streams

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8204079B2 (en) 2002-10-28 2012-06-19 Qualcomm Incorporated Joint transmission of multiple multimedia streams
US9065884B2 (en) 2002-10-28 2015-06-23 Qualcomm Incorporated Joint transmission of multiple multimedia streams
US7940799B2 (en) 2003-02-04 2011-05-10 Panasonic Corporation Code conversion method and device thereof

Similar Documents

Publication Publication Date Title
JP5620116B2 (en) Reproducing apparatus and data recording and / or reproducing apparatus for reproducing data stored in an information storage medium in which subtitle data for multilingual support using text data and downloaded fonts is recorded
KR100667751B1 (en) Storage medium including text-based caption information, reproducing apparatus and reproducing method thereof
US7787753B2 (en) Recording medium having a data structure for managing reproduction of text subtitle data and methods and apparatuses of recording and reproducing
KR101024922B1 (en) Recording medium having a data structure for managing reproduction of subtitle data and methods and apparatuses of recording and reproducing
JP6625094B2 (en) recoding media
JP4823688B2 (en) Information storage medium in which subtitle data for multilingual support using text data and downloaded fonts is recorded, and apparatus therefor
US7769277B2 (en) Recording medium having a data structure for managing reproduction of text subtitle data recorded thereon and recording and reproducing methods and apparatuses
JPH0946630A (en) Image information recorder, image information reproducing device and optical disk
JP2001145067A (en) Real time encoder and real time encoding method
WO2012046437A1 (en) Recording medium and data copy method
JP6742515B2 (en) CODED VIDEO REPRODUCTION DEVICE AND CODED VIDEO REPRODUCTION METHOD
JP2003052040A (en) Mpeg data reproduction equipment
CN111899770A (en) Non-transitory computer readable medium, reproduction apparatus, and reproduction method
JP2001024983A (en) Device and method for multiplexing video signal, device and method for recording video signal, and video recording medium
JP2006246504A (en) Encode method, reproduction method, and reproduction apparatus for image information
JP2021166363A (en) Video reproduction device and video reproduction method
JP4199258B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP2006287952A (en) Encoding method, reproduction method, and reproduction apparatus of image information
JP2006287957A (en) Encoding method, reproduction method, and reproduction apparatus of image information
JP2006287953A (en) Encoding method, reproduction method, and reproduction apparatus of image information
JP2006270976A (en) Encode method, reproduction method, and reproducing apparatus for image information
JP2006254473A (en) Method of encoding image information, reproducing method, and reproducing apparatus
JP2006279976A (en) Encoding method, reproducing method and reproducing device of image information
JP2006270986A (en) Encode method, reproduction method, and reproducing apparatus for image information
JP2006270979A (en) Encode method, reproduction method, and reproducing apparatus for image information

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040608