JP2008135845A - Transport stream recording and reproducing method and device - Google Patents
Transport stream recording and reproducing method and device Download PDFInfo
- Publication number
- JP2008135845A JP2008135845A JP2006318753A JP2006318753A JP2008135845A JP 2008135845 A JP2008135845 A JP 2008135845A JP 2006318753 A JP2006318753 A JP 2006318753A JP 2006318753 A JP2006318753 A JP 2006318753A JP 2008135845 A JP2008135845 A JP 2008135845A
- Authority
- JP
- Japan
- Prior art keywords
- packet
- picture
- transport stream
- recording medium
- recording
- 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
Links
Images
Abstract
Description
本発明は、MPEG準拠のトランスポート・ストリーム(TS)を記録又は再生するトランスポート・ストリーム記録再生方法及び装置に関する。 The present invention relates to a transport stream recording / reproducing method and apparatus for recording or reproducing an MPEG-compliant transport stream (TS).
デジタル放送では、映像符号化方式としてMPEG−2が採用されている。MPEG−2は、符号化効率を高めるためにフレーム内符号化だけでなくフレーム間予測符号化も行っている。フレーム間予測符号化は、前方向だけで行うものと、前方向と後方向の双方向で行うものとがある。フレーム内符号化を行うフレームは、Iピクチャと称され、前方向予測符号化を行うフレームは、Pピクチャと称され、双方向予測符号化を行うフレームは、Bピクチャと称される。符号化後の情報量は、Bピクチャ、Pピクチャ、Iピクチャの順に少なくなる。一般的には、Iピクチャの間隔を15フレームとするとともにIピクチャとPピクチャ又はPピクチャ同士の間隔を3フレームとするGOP(Group Of Picture)構成をとり、情報量を大幅に削減している。 In digital broadcasting, MPEG-2 is adopted as a video encoding method. MPEG-2 performs not only intraframe coding but also interframe predictive coding in order to increase coding efficiency. There are two types of inter-frame predictive encoding, one is performed in the forward direction and the other is performed in the forward and backward directions. A frame that performs intraframe coding is referred to as an I picture, a frame that performs forward predictive coding is referred to as a P picture, and a frame that performs bidirectional predictive coding is referred to as a B picture. The amount of information after encoding decreases in the order of B picture, P picture, and I picture. In general, a GOP (Group Of Picture) configuration in which the interval between I pictures is 15 frames and the interval between I pictures and P pictures or between P pictures is 3 frames has greatly reduced the amount of information. .
Iピクチャは、そのピクチャのデータだけで復号が可能であるが、Pピクチャ及びBピクチャの復号には他のピクチャのデータが必要となる。したがって、復号は、任意の位置ではなく常にIピクチャから始める必要がある。例えば、デジタル放送を視聴する場合、受信機の電源を入れてチャンネルを選択したときには、Iピクチャを最初に受信し及び復号する必要があり、タイミングによっては映像が表示されるまでの時間だけ待たされることがある。この時間は、Iピクチャの間隔が15フレームであるときには最大0.5秒となる。 An I picture can be decoded only with data of the picture, but data of other pictures is required for decoding of a P picture and a B picture. Therefore, decoding must always start from an I picture, not an arbitrary position. For example, when viewing a digital broadcast, when the receiver is turned on and a channel is selected, it is necessary to first receive and decode the I picture, and depending on the timing, it may be waited until the video is displayed. Sometimes. This time is a maximum of 0.5 seconds when the interval between I pictures is 15 frames.
デジタル放送は、MPEG−2方式のTSで行われている。トランスポート・ストリームは、映像や音声のようなデータを188バイトの小さなTSパケットに分割して多重化したものであり、パケットのヘッダ(4バイト)のPIDと称する識別子によって、内容の種類(例えば、映像、音声)を識別できるようになっている。すなわち、映像では、Iピクチャ、Pピクチャ及びBピクチャに符号化された画像を分割して一つのTSを作成する。 Digital broadcasting is performed by MPEG-2 TS. The transport stream is obtained by dividing and multiplexing data such as video and audio into small 188-byte TS packets, and the type of content (for example, by the identifier called PID in the packet header (4 bytes)) , Video, audio). That is, in video, one TS is created by dividing an image encoded into an I picture, a P picture, and a B picture.
TSの記録媒体への記録時にMPEGのピクチャ解析を行ってIピクチャの位置情報を取得し、取得した前方のIピクチャの位置情報を、TSの形式で記述してI参照パケットとし、I参照パケットを周期的に(一定数パケットごとに)TSに挿入して記録し、挿入されているI参照パケットを取得し、これに基づいてIピクチャのTSを抜き出して、早送り再生や巻き戻し再生のような特殊再生を行うことが提案されている(例えば、特許文献1)。
TSを記録媒体に記録して再生するとき、すなわち、映像信号として復号するときには、Iピクチャを検出してIピクチャに基づいて復号を行う必要がある。そのためには、Iピクチャを早期に取得する必要があり、各映像のTSパケットを一つ一つ調べてピクチャの種類を判断することになるが、多くのパケット処理を必要とする。 When a TS is recorded on a recording medium and reproduced, that is, when it is decoded as a video signal, it is necessary to detect an I picture and perform decoding based on the I picture. For this purpose, it is necessary to acquire an I picture at an early stage, and the TS packet of each video is examined one by one to determine the type of picture, but a lot of packet processing is required.
また、数時間の番組を記録したTSファイルは、数ギガバイトから数十ギガバイトの容量になるので、処理に多大な時間を要する。処理の高速化には高性能の演算装置(例えば、CPU)や、記録媒体(例えば、ハードディスク)が必要となり、コストが増大する。 In addition, a TS file in which a program for several hours is recorded has a capacity of several gigabytes to several tens of gigabytes, so that a long time is required for processing. High-speed processing requires a high-performance arithmetic device (for example, a CPU) and a recording medium (for example, a hard disk), which increases costs.
さらに、巻き戻しや早送りの特殊再生時には、高速動作のために通常の再生処理時間より速く処理する必要があり、従来のTS記録再生装置では処理時間に限界が生じていた。 Further, during special playback such as rewinding or fast-forwarding, it is necessary to perform processing faster than the normal playback processing time for high-speed operation, and the processing time is limited in the conventional TS recording / playback apparatus.
本発明の目的は、TSのIピクチャの検出時間を短縮するとともに、巻き戻し再生や早送り再生のような特殊再生にも対応することができるトランスポート・ストリーム記録再生方法及び装置を提供することである。 An object of the present invention is to provide a transport stream recording / reproducing method and apparatus capable of shortening the detection time of an I picture of TS and also supporting special reproduction such as rewind reproduction and fast forward reproduction. is there.
本発明による請求項1のトランスポート・ストリームの記録再生方法は、
少なくとも一つのヌルパケットを含むMPEG準拠のトランスポート・ストリームを入力し、
前記トランスポート・ストリームから、Iピクチャ映像パケットの先頭のパケットである先頭Iピクチャを検出し、
前記先頭Iピクチャを基にIピクチャ位置情報を生成し、
該Iピクチャ位置情報を所定位置に格納した位置パケットを生成し、
該位置パケットを前記先頭Iピクチャの直後の位置に書き込んだトランスポート・ストリームを、記録媒体に記録し、
前記位置パケットを基に、前記記録媒体に記録されたトランスポート・ストリームを特殊再生することを特徴とする。
According to the present invention, there is provided a transport stream recording / reproducing method according to
Input an MPEG compliant transport stream containing at least one null packet;
Detecting a leading I picture that is a leading packet of an I picture video packet from the transport stream;
Generating I picture position information based on the first I picture;
Generating a position packet storing the I picture position information at a predetermined position;
A transport stream in which the position packet is written at a position immediately after the first I picture is recorded on a recording medium,
The transport stream recorded on the recording medium is specially reproduced based on the position packet.
本発明による請求項2のトランスポート・ストリームの記録再生方法は、
前記Iピクチャ位置情報は、
前記先頭Iピクチャからその直前の先頭Iピクチャまでのパケット数と、
前記先頭Iピクチャからその直後の先頭Iピクチャまでのパケット数と、
前記先頭Iピクチャから終了のIピクチャまでのパケット数とから構成されることを特徴とする。
According to the present invention, there is provided a transport stream recording / reproducing method according to
The I picture position information is
The number of packets from the first I picture to the immediately preceding first I picture;
The number of packets from the first I picture to the next first I picture;
It is composed of the number of packets from the first I picture to the last I picture.
本発明による請求項3のトランスポート・ストリームの記録再生方法は、
前記所定位置は、前記トランスポート・ストリームのアダプテーション・フィールドから構成されることを特徴とする。
According to the present invention, there is provided a transport stream recording / reproducing method according to
The predetermined position is configured by an adaptation field of the transport stream.
本発明による請求項4のトランスポート・ストリームの記録再生装置は、
少なくとも一つのヌルパケットを含むMPEG準拠のトランスポート・ストリームを入力する入力手段と、
前記トランスポート・ストリームから、Iピクチャ映像パケットの先頭のパケットである先頭Iピクチャを検出する検出手段と、
前記トランスポート・ストリームのパケット数をカウントするパケットカウンタと、
前記トランスポート・ストリームから、前記先頭Iピクチャから次のIピクチャ映像パケットの先頭パケットの直前のパケットまでを記憶するパケットメモリと、
前記Iピクチャ映像パケットの位置情報に関するパケットを生成する位置パケット生成手段と、
前記パケットメモリの出力と前記位置パケット生成手段の出力との間の切替を行うスイッチと、
前記パケット検出手段の結果及び前記パケットカウンタの結果を基に、前記パケットメモリ、前記位置パケット生成手段及び前記スイッチを制御する制御手段と、
該スイッチの出力を記録する記録媒体と、
該記録媒体の記録再生を制御する記録媒体制御手段と、
前記記録媒体から読み出された前記Iピクチャ映像パケットの位置情報を検出する位置情報検出手段と、
前記記録媒体の出力から映像データ又は音声データをデコードするAVデコーダとを具えることを特徴とする。
According to the present invention, there is provided a transport stream recording / reproducing apparatus according to
An input means for inputting an MPEG-compliant transport stream including at least one null packet;
Detecting means for detecting a leading I picture that is a leading packet of an I picture video packet from the transport stream;
A packet counter for counting the number of packets in the transport stream;
A packet memory for storing from the transport stream to the packet immediately before the head packet of the next I picture video packet from the head I picture;
Position packet generation means for generating a packet relating to position information of the I picture video packet;
A switch for switching between the output of the packet memory and the output of the position packet generating means;
Control means for controlling the packet memory, the position packet generation means and the switch based on the result of the packet detection means and the result of the packet counter;
A recording medium for recording the output of the switch;
Recording medium control means for controlling recording and reproduction of the recording medium;
Position information detecting means for detecting position information of the I picture video packet read from the recording medium;
And an AV decoder for decoding video data or audio data from the output of the recording medium.
請求項1に係る発明によれば、Iピクチャ位置情報を、先頭Iピクチャの直後に記録媒体に記録するので、再生時にはIピクチャの位置情報を迅速に取得することができる。したがって、Iピクチャ位置情報を基に記録媒体を制御すると、Iピクチャ映像情報の取得を迅速に行うことができ、巻き戻し再生や早送り再生のような特集再生の時にも、映像信号としての復号を迅速に行うことができる。Iピクチャ映像情報が基準と成るので、Iピクチャ映像情報を迅速に取得すれば、Pピクチャ映像情報及びBピクチャ映像情報により従来よりも迅速に映像信号をデコードすることができる。その結果、TSのIピクチャの検出時間を短縮するとともに、巻き戻し再生や早送り再生のような特殊再生にも対応することができる。 According to the first aspect of the present invention, the I picture position information is recorded on the recording medium immediately after the head I picture, so that the position information of the I picture can be quickly acquired during reproduction. Therefore, if the recording medium is controlled based on the I-picture position information, the I-picture video information can be acquired quickly, and can be decoded as a video signal during special playback such as rewind playback or fast-forward playback. Can be done quickly. Since the I picture video information is the reference, if the I picture video information is acquired quickly, the video signal can be decoded more quickly than the conventional one using the P picture video information and the B picture video information. As a result, it is possible to reduce the detection time of the I picture of the TS and to cope with special playback such as rewind playback and fast forward playback.
請求項2に係る発明によれば、位置情報をパケット数によって構成することができるので、位置情報を、TSのパケットをカウントするパケットカウンタのみで構成することができる。したがって、簡単な構成でTSのIピクチャの検出時間を短縮するとともに、巻き戻し再生や早送り再生のような特殊再生にも対応することができる。 According to the second aspect of the invention, since the position information can be configured by the number of packets, the position information can be configured only by a packet counter that counts TS packets. Therefore, it is possible to shorten the detection time of the I picture of the TS with a simple configuration and to cope with special reproduction such as rewind reproduction and fast forward reproduction.
請求項3に係る発明によれば、所定位置をアダプテーション・フィールドとすることによって、Iピクチャ位置情報がIピクチャ先頭パケットに隣接していなくてもadaptation field controlから短時間でIピクチャ位置情報を識別することができる。 According to the third aspect of the invention, by using the adaptation field as the predetermined position, the I picture position information can be identified in a short time from the adaptation field control even if the I picture position information is not adjacent to the I picture head packet. can do.
請求項4に係る発明によれば、少ない構成要素の小規模な構成でIピクチャの検出時間を短縮するとともに、巻き戻し再生や早送り再生のような特殊再生にも対応することができる。したがって、現在使用中の装置を改善する場合にも小規模な追加で本発明を実現することができる。 According to the fourth aspect of the present invention, it is possible to reduce the I picture detection time with a small configuration with a small number of components, and to cope with special playback such as rewind playback and fast forward playback. Therefore, the present invention can be realized with a small addition even when an apparatus currently in use is improved.
また、入力するTSには必ずヌルパケットが存在し、位置パケットを挿入しても代わりにヌルパケットを一つ破棄することによって、TSに含まれるPCR(Program Clock Reference)と称するシステムのクロック情報を変更する必要がないという効果を有する。 Also, there is always a null packet in the input TS, and even if a position packet is inserted, instead of discarding one null packet, the system clock information called PCR (Program Clock Reference) contained in the TS is obtained. It has the effect that there is no need to change.
Iピクチャ位置情報を挿入すると、パケット位置が変わり、PCRの誤差(ジッタ)が生じ、MPEG−2デコーダなどの処理に悪影響を及ぼすことがある。かかる悪影響を回避するために、パケット位置がずれた分だけTSビットレートなどの情報を用いてPCRの値を変更する。本発明によれば、Iピクチャ位置情報を挿入した後にヌルパケットを削除して調整を図っているので、誤差は生じない。したがって、PCRを変更する必要がない。 When the I picture position information is inserted, the packet position is changed, a PCR error (jitter) occurs, which may adversely affect the processing of the MPEG-2 decoder or the like. In order to avoid such an adverse effect, the PCR value is changed by using information such as the TS bit rate by the amount of packet position deviation. According to the present invention, since the null packet is deleted and the adjustment is made after inserting the I picture position information, no error occurs. Therefore, there is no need to change the PCR.
本発明によるトランスポート・ストリーム記録再生方法及び装置の実施の形態を、図面を参照して詳細に説明する。
図1は、本発明によるトランスポート・ストリーム記録再生装置の実施の形態を示す図である。図1に示すトランスポート・ストリーム記録再生装置は、TS入力端子101と、パケットメモリ102と、パケット検出器103と、パケットカウンタ104と、コントローラ105と、位置パケット生成器106と、スイッチ107と、記録媒体108と、位置情報検出器109と、AVデコーダ110と、画像出力端子111と、音声出力端子112とを具える。
An embodiment of a transport stream recording / reproducing method and apparatus according to the present invention will be described in detail with reference to the drawings.
FIG. 1 is a diagram showing an embodiment of a transport stream recording / reproducing apparatus according to the present invention. A transport stream recording / reproducing apparatus shown in FIG. 1 includes a
TS入力端子101には、MPEG準拠のTSが入力される。パケットメモリ102は、TSを構成するパケットを記憶するメモリであり、本実施の形態では、Iピクチャの先頭パケットから次のIピクチャの先頭パケットの直前までを記憶する。パケット検出器103は、TSから特定のパケットを検出し、本実施の形態では、Iピクチャ映像パケットやヌルパケットを検出する。パケット検出器103の検出結果は、コントローラ105に送信される。
An MPEG-compliant TS is input to the
パケットカウンタ104は、入力されるTSのパケットをカウントするカウンタであり、各パケットの同期バイトを検出してカウントする。コントローラ105は、パケット検出器103、パケットカウンタ104及び位置情報検出器109から情報を入手するとともに、パケットカウンタ104、位置パケット生成器106及びスイッチ107に対して制御を行う。また、記録媒体108の制御部に対しても、巻き戻し再生や早送り再生に関する制御情報が送信される。
The
位置パケット生成器106は、コントローラ105からの情報から新規にパケットを生成する。スイッチ107は、パケットメモリ102の出力と位置パケット生成器106の出力とを、コントローラ105の制御によって切り替える。記録媒体108は、ハードディスク、DVD−RAM等によって実現される。位置情報検出器109は、記録媒体108に記録したTSを読み出したときに、位置パケット生成器106で生成したパケットから位置情報を読み出し、位置情報をコントローラ105に送信する。AVでコーダ110は、TSから映像信号及び音声信号を復号し、復号した映像信号及び音声信号を映像出力端子111及び音声出力端子112からそれぞれ出力する。
The position packet generator 106 newly generates a packet from information from the
本実施の形態の動作を説明するに際し、先ず、記録系について説明する。
188バイトからなるパケット構造であるMPEG準拠のTSが、TS入力端子101に入力される。入力されたTSは、パケットメモリ102に入力され、パケットメモリ102は、Iピクチャの先頭パケットから次のIピクチャの先頭パケットの直前までのパケットを記憶する。パケット検出器103は、入力されたTSのパケットの種類を検出する。映像パケットであるIピクチャパケットは、通常1パケットではなく複数のパケットによって構成されるので、先頭となるIパケットを検出する。
In describing the operation of the present embodiment, first the recording system will be described.
An MPEG-compliant TS having a packet structure of 188 bytes is input to the
映像を含むTSパケットpayload unit start indicatorが1のパケットは、PESパケットの第1バイトから開始することを示す。したがって、このパケットがピクチャの先頭となる。このパケットのペイロードのpicture headerにあるpicture coding type(3ビット)がピクチャの種類を示し、2進数で001であればIピクチャである。picture headerは、32ビットのユニークコードのpicture start code (0x00000100)から開始するので容易に識別できる。 A TS packet payload unit start indicator with a TS including video indicates that it starts from the first byte of the PES packet. Therefore, this packet is the head of the picture. The picture coding type (3 bits) in the picture header of the payload of this packet indicates the picture type, and if it is a binary number 001, it is an I picture. Since the picture header starts from a 32-bit unique code picture start code (0x00000100), it can be easily identified.
このようにしてIピクチャの先頭を検出すると、コントローラ105に対してIピクチャを検出したことを知らせる。パケットカウンタ104は、TS内の同期バイト(0x47)を識別してパケット数をカウントし、結果をコントローラ105に送出する。
When the head of the I picture is detected in this way, the
コントローラ105の動作を、図2〜4を用いて詳細に説明する。
図2は、図1のトランスポート・ストリーム記録再生装置の動作を説明するための図である。TSは、1パケット当り188バイトと制限があるので、一つのピクチャを分割する。Iピクチャパケットも複数のパケットに分割される。
The operation of the
FIG. 2 is a diagram for explaining the operation of the transport stream recording / reproducing apparatus of FIG. Since TS is limited to 188 bytes per packet, one picture is divided. The I picture packet is also divided into a plurality of packets.
本実施の形態では、Iピクチャに関連し、先頭となるIピクチャからその直前となるIピクチャまでのパケット数、先頭となるIピクチャからその直後となるIピクチャまでのパケット数及び現在検出中の連続するIピクチャのパケット数を、パケットカウンタ104からのカウント数により三つのデータを作成する。図2において、K’は、Iピクチャ(GOP)先頭から直前のIピクチャ(GOP)先頭までのパケット数を表し、Jは、現在検出中のIピクチャのパケット数を表し、Kは、Iピクチャ(GOP)先頭から次のIピクチャ(GOP)先頭までのパケット数を表し、これらはそれぞれ、最大でも4バイト(32ビット)必要とし、全体で188ビット以下であるので、1パケットで作成することができる。
In this embodiment, in relation to an I picture, the number of packets from the leading I picture to the immediately preceding I picture, the number of packets from the leading I picture to the immediately following I picture, and the currently detected packet Three data are created from the number of consecutive I-picture packets based on the count from the
コントローラ105は、これら三つのパケット数を基にJ,K及びK’のカウント数を位置パケット生成器106に送出し、位置パケット生成器106は、図3又は図4に示すような位置パケットを作成する。図3は、ヌルパケット以外の場合を示し、図4は、ヌルパケットの場合を示す。
Based on these three packet numbers, the
J,K及びK’のカウント数が位置パケット生成器106に送出された後、パケットメモリ102から先頭Iピクチャパケットを読み出し、次に、スイッチ107において、位置パケット生成器106で生成したパケットXに1パケット分のみ切り替え、次に、パケットメモリ102から、記憶された順にパケットを読み出す。先頭Iピクチャパケットに後続するパケットがヌルパケットの場合は、バケットメモリ102から読み出すときに破棄する。
After the count numbers of J, K, and K ′ are sent to the position packet generator 106, the head I picture packet is read from the
したがって、記憶媒体108に書き込まれるTSは、TS入力端子101に入力されたTSに対して、先頭Iピクチャパケットから次の先頭Iピクチャパケットまでのパケットだけ遅延となるが、この順序で読出し再生すれば不都合は生じない。
Therefore, the TS written in the
位置パケット生成器106では、挿入するIピクチャ位置情報(J,K及びK’)のパケットを生成する。図3は、アダプテーション・フィールド(adaptation field)に位置情報を挿入した場合の例を示す図である。したがって、図3は、映像を含むTSパケットと同一のPIDを有し、adaptation fieldのみ、すなわち、adaptation field control(2ビット)が2進数で10のパケットを生成して情報を埋め込む場合を示す。 The position packet generator 106 generates a packet of I picture position information (J, K, and K ′) to be inserted. FIG. 3 is a diagram illustrating an example when position information is inserted into an adaptation field. Therefore, FIG. 3 shows a case where information is embedded by generating a packet having the same PID as that of a TS packet including video and having only an adaptation field, that is, adaptation field control (2 bits) of 10 in binary.
この場合、Iピクチャ位置情報がTSヘッダのPIDの映像に対応することが明らかであるので、PIDをadaptation fieldに埋め込む必要がない。adaptation fieldのtransport private data flag, transport private data length及びprivate data byteを使用することができる。 In this case, since it is clear that the I picture position information corresponds to the video of the PID in the TS header, it is not necessary to embed the PID in the adaptation field. The adaptation field transport private data flag, transport private data length and private data byte can be used.
図4は、アダプテーション・フィールドの代わりにヌルパケットのペイロードに位置情報を埋め込む例を示す。ヌルパケットは、TSビットレートを伝送路に合わせるために挿入するパケットである。PIDは、16進数で0x1FFFであり、ペイロードのdata byteは、任意の値を割り当てることができるようになっている。Iピクチャ位置情報を参照できる映像を特定するために、PID(図4のPIDa)も格納する。Iピクチャ位置情報後部の残りの部分は、任意のdata byteである。
映像パケット以外については、処理を施すことなく記録媒体108に記憶される。
FIG. 4 shows an example in which position information is embedded in the payload of a null packet instead of the adaptation field. A null packet is a packet that is inserted to match the TS bit rate with the transmission path. The PID is 0x1FFF in hexadecimal, and an arbitrary value can be assigned to the data byte of the payload. In order to specify a video for which I-picture position information can be referred to, PID (PIDa in FIG. 4) is also stored. The remaining part of the rear part of the I picture position information is an arbitrary data byte.
Other than video packets are stored in the
次に、再生系について説明する。
記憶媒体108から読み出されたパケットは、巻き戻し再生や早送り再生をしない通常の再生ではAVデコーダ110に入力され、映像パケットであればI,P及びBピクチャから映像信号を復号し、映像出力端子111から映像信号として出力される。Iピクチャの先頭パケットの直後に記録された位置パケットは、不要なパケットとして破棄される。音声についても同様に、AVデコーダ110で音声信号に復号され、復号された音声信号が音声出力端子111から出力される。
Next, the reproduction system will be described.
The packet read from the
次に、特殊再生について説明する。
巻き戻し再生スイッチ(図示せず)が押されると、記憶媒体108から読み出された映像パケットは、位置情報検出器109において位置情報が読み出される。位置情報は、記憶時のJ,K及びK’である。巻き戻し再生に必要な情報は、直前のIピクチャ(GOP)先頭までのパケット数のK’及び現在検出中のIピクチャのパケット数Jである。これら二つの情報がコントローラ105に送信され、次に、K’及びJに基づいた制御を行うように、これら二つの情報がコントローラ105から記憶媒体108の再生制御部(図示せず)に送信され、Iピクチャ情報を早期に取得するようにする。
Next, special reproduction will be described.
When a rewind playback switch (not shown) is pressed, position information of the video packet read from the
一例としてK’=1000及びJ=200とした場合、記憶媒体108の制御部(図示せず)は、K‘=1000パケット分読出し位置を戻す。その後、200パケット分のIピクチャデータの読出しを行い、Iピクチャデータを取得する。その後、再び巻き戻し再生スイッチが押された場合、これらの動作を繰り返す。
As an example, when K ′ = 1000 and J = 200, the control unit (not shown) of the
早送り再生スイッチ(図示せず)が押されると、必要な情報は、現在検出中のIピクチャのパケット数であるJ及び次のIピクチャ(GOP)先頭までのパケット数であるKであり、再生制御については巻き戻し再生と同一である。このようにして、J,K及びK’の情報から特殊再生を行う。 When a fast forward playback switch (not shown) is pressed, the necessary information is J, which is the number of packets of the currently detected I picture, and K, which is the number of packets up to the beginning of the next I picture (GOP). The control is the same as the rewind playback. In this way, special reproduction is performed from the information of J, K, and K ′.
例えば、K=1500及びJ=150とした場合、記録媒体108の制御部は、K=1500パケット分読出し位置を早送りする。その後、150パケット分のIピクチャデータの読出しを行い、Iピクチャデータを取得する。その後、再び早送り再生スイッチが押された場合、これらの動作を繰り返す。
For example, when K = 1500 and J = 150, the control unit of the
また、指定位置から再生を行う場合には、Iピクチャ位置情報を参照しながら最も近傍のIピクチャを特定して再生することもできる。このようにして、全てのパケットを調べることなく少ない処理量で動作を行うことができる。 Further, when reproduction is performed from a designated position, the nearest I picture can be specified and reproduced while referring to the I picture position information. In this way, the operation can be performed with a small amount of processing without examining all the packets.
本発明は、上記実施の形態に限定されるものではなく、幾多の変更及び変形が可能である。
例えば、上記実施の形態において、位置パケット生成器106で位置パケットを生成し、スイッチ107においてパケットメモリ102と切り替える構成としたが、先頭となるIピクチャの直後を予め1パケット分空けておき、位置パケットを生成してパケットメモリ102に書き込む構成とすることもできる。
The present invention is not limited to the above-described embodiment, and many changes and modifications can be made.
For example, in the above embodiment, the position packet generator 106 generates a position packet, and the
また、Iピクチャ位置情報の格納場所を、Iピクチャ先頭パケットに後続するパケットに生成することもできる。この場合、たとえIピクチャ位置情報がIピクチャ先頭パケットに隣接していなくても、adaptation field controlからIピクチャ位置情報を短時間で識別することができる。 Further, the storage location of the I picture position information can be generated in a packet subsequent to the I picture head packet. In this case, even if the I picture position information is not adjacent to the I picture head packet, the I picture position information can be identified in a short time from the adaptation field control.
さらに、Iピクチャ位置情報が確定していなくても、予め空のパケットを生成し、Iピクチャ位置情報が確定した時点で、格納パケット(図3のパケットX)を格納することもできる。 Further, even if the I picture position information is not fixed, an empty packet is generated in advance, and the stored packet (packet X in FIG. 3) can be stored when the I picture position information is fixed.
101 TS入力端子
102 パケットメモリ
103 パケット検出器
104 パケットカウンタ
105 コントローラ
106 位置パケット生成器
107 スイッチ
108 記録媒体
109 位置情報検出器
110 AVデコーダ
111 画像出力端子
112 音声出力端子
101
Claims (4)
前記トランスポート・ストリームから、Iピクチャ映像パケットの先頭のパケットである先頭Iピクチャを検出し、
前記先頭Iピクチャを基にIピクチャ位置情報を生成し、
該Iピクチャ位置情報を所定位置に格納した位置パケットを生成し、
該位置パケットを前記先頭Iピクチャの直後の位置に書き込んだトランスポート・ストリームを、記録媒体に記録し、
前記位置パケットを基に、前記記録媒体に記録されたトランスポート・ストリームを特殊再生することを特徴とするトランスポート・ストリームの記録再生方法。 Input an MPEG compliant transport stream containing at least one null packet;
Detecting a leading I picture that is a leading packet of an I picture video packet from the transport stream;
Generating I picture position information based on the first I picture;
Generating a position packet storing the I picture position information at a predetermined position;
A transport stream in which the position packet is written at a position immediately after the first I picture is recorded on a recording medium,
A transport stream recording / reproducing method, wherein the transport stream recorded on the recording medium is specially reproduced based on the position packet.
前記先頭Iピクチャからその直前の先頭Iピクチャまでのパケット数と、
前記先頭Iピクチャからその直後の先頭Iピクチャまでのパケット数と、
前記先頭Iピクチャから終了のIピクチャまでのパケット数とから構成されることを特徴とする請求項1記載のトランスポート・ストリームの記録再生方法。 The I picture position information is
The number of packets from the first I picture to the immediately preceding first I picture;
The number of packets from the first I picture to the next first I picture;
2. The transport stream recording / reproducing method according to claim 1, wherein the number of packets from the first I picture to the last I picture is included.
前記トランスポート・ストリームから、Iピクチャ映像パケットの先頭のパケットである先頭Iピクチャを検出する検出手段と、
前記トランスポート・ストリームのパケット数をカウントするパケットカウンタと、
前記トランスポート・ストリームから、前記先頭Iピクチャから次のIピクチャ映像パケットの先頭パケットの直前のパケットまでを記憶するパケットメモリと、
前記Iピクチャ映像パケットの位置情報に関するパケットを生成する位置パケット生成手段と、
前記パケットメモリの出力と前記位置パケット生成手段の出力との間の切替を行うスイッチと、
前記パケット検出手段の結果及び前記パケットカウンタの結果を基に、前記パケットメモリ、前記位置パケット生成手段及び前記スイッチを制御する制御手段と、
該スイッチの出力を記録する記録媒体と、
該記録媒体の記録再生を制御する記録媒体制御手段と、
前記記録媒体から読み出された前記Iピクチャ映像パケットの位置情報を検出する位置情報検出手段と、
前記記録媒体の出力から映像データ又は音声データをデコードするAVデコーダとを具えることを特徴とするトランスポート・ストリームの記録再生装置。 An input means for inputting an MPEG-compliant transport stream including at least one null packet;
Detecting means for detecting a leading I picture that is a leading packet of an I picture video packet from the transport stream;
A packet counter for counting the number of packets in the transport stream;
A packet memory for storing from the transport stream to the packet immediately before the head packet of the next I picture video packet from the head I picture;
Position packet generation means for generating a packet relating to position information of the I picture video packet;
A switch for switching between the output of the packet memory and the output of the position packet generating means;
Control means for controlling the packet memory, the position packet generation means and the switch based on the result of the packet detection means and the result of the packet counter;
A recording medium for recording the output of the switch;
Recording medium control means for controlling recording and reproduction of the recording medium;
Position information detecting means for detecting position information of the I picture video packet read from the recording medium;
A transport stream recording / reproducing apparatus comprising: an AV decoder for decoding video data or audio data from an output of the recording medium.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006318753A JP2008135845A (en) | 2006-11-27 | 2006-11-27 | Transport stream recording and reproducing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006318753A JP2008135845A (en) | 2006-11-27 | 2006-11-27 | Transport stream recording and reproducing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008135845A true JP2008135845A (en) | 2008-06-12 |
JP2008135845A5 JP2008135845A5 (en) | 2009-01-29 |
Family
ID=39560398
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006318753A Pending JP2008135845A (en) | 2006-11-27 | 2006-11-27 | Transport stream recording and reproducing method and device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008135845A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014011636A (en) * | 2012-06-29 | 2014-01-20 | Canon Inc | Transmitter, transmission method, and program |
CN113784188A (en) * | 2021-08-10 | 2021-12-10 | 珠海海奇半导体有限公司 | TS (transport stream) hardware analysis method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11275524A (en) * | 1998-03-20 | 1999-10-08 | Pioneer Electron Corp | Data recording method, data reproduction method, data recorder and data reproduction device |
JP2000331421A (en) * | 1999-05-17 | 2000-11-30 | Victor Co Of Japan Ltd | Information recorder and information recording device |
JP2005197839A (en) * | 2003-12-26 | 2005-07-21 | Toshiba Corp | Special reproduction method of transport stream and recording and reproducing apparatus for transport stream |
JP2006135817A (en) * | 2004-11-09 | 2006-05-25 | Hitachi Ltd | Digital broadcast recording and reproducing equipment |
-
2006
- 2006-11-27 JP JP2006318753A patent/JP2008135845A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11275524A (en) * | 1998-03-20 | 1999-10-08 | Pioneer Electron Corp | Data recording method, data reproduction method, data recorder and data reproduction device |
JP2000331421A (en) * | 1999-05-17 | 2000-11-30 | Victor Co Of Japan Ltd | Information recorder and information recording device |
JP2005197839A (en) * | 2003-12-26 | 2005-07-21 | Toshiba Corp | Special reproduction method of transport stream and recording and reproducing apparatus for transport stream |
JP2006135817A (en) * | 2004-11-09 | 2006-05-25 | Hitachi Ltd | Digital broadcast recording and reproducing equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014011636A (en) * | 2012-06-29 | 2014-01-20 | Canon Inc | Transmitter, transmission method, and program |
CN113784188A (en) * | 2021-08-10 | 2021-12-10 | 珠海海奇半导体有限公司 | TS (transport stream) hardware analysis method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9390754B2 (en) | Video trick mode system | |
TWI395481B (en) | Method and apparatus for receiving, storing, and presenting multimedia programming without indexing prior to storage | |
US20080170687A1 (en) | Device for and a Method of Processing an Encrypted Data Stream | |
KR20020026169A (en) | Method and apparatus for editing digital video recordings, and recordings made by such methods | |
TW579506B (en) | A recording device and a recording method | |
JP2007511948A (en) | Trick play signal playback | |
US7333711B2 (en) | Data distribution apparatus and method, and data distribution system | |
US20090046994A1 (en) | Digital television broadcast recording and reproduction apparatus and reproduction method thereof | |
KR100534291B1 (en) | Digital broadcasting writing regenerative apparatus | |
JPH1079918A (en) | Device for decoding and reproducing picture information and method therefor | |
JP2008135845A (en) | Transport stream recording and reproducing method and device | |
JP2008236180A (en) | Recording device, video reproducing apparatus, and special reproduction method therefor | |
JP2003324690A (en) | Video record playback device | |
JP2005197839A (en) | Special reproduction method of transport stream and recording and reproducing apparatus for transport stream | |
EP1936974B1 (en) | Apparatus for video recording and reproducing, and method for trick play of video | |
JP3593293B2 (en) | Video playback device | |
US7502379B2 (en) | Disk playback apparatus | |
JP2007282084A (en) | Digital reproduction apparatus or reproduction program | |
JP4719602B2 (en) | Video output system | |
JP2007259029A (en) | Video signal recording device, recording medium, and video signal reproducing device | |
JP2005026990A (en) | Digital recording and reproducing device | |
KR100525373B1 (en) | Fast forward control method of video player and video player | |
JP2009081744A (en) | Picture work material playback device and picture work material playback method | |
JP2007202156A (en) | Digital video, and data recording apparatus | |
JP2009049855A (en) | Content-playback apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20081209 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20081209 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20081209 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20101115 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101124 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110329 |