JP2008004973A - Apparatus and method for recording video - Google Patents

Apparatus and method for recording video Download PDF

Info

Publication number
JP2008004973A
JP2008004973A JP2004295094A JP2004295094A JP2008004973A JP 2008004973 A JP2008004973 A JP 2008004973A JP 2004295094 A JP2004295094 A JP 2004295094A JP 2004295094 A JP2004295094 A JP 2004295094A JP 2008004973 A JP2008004973 A JP 2008004973A
Authority
JP
Japan
Prior art keywords
recording
video
frame
stream
recording data
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
JP2004295094A
Other languages
Japanese (ja)
Inventor
Daijiro Ichimura
大治郎 市村
Yoshimasa Honda
義雅 本田
Takayuki Matsukawa
隆行 松川
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004295094A priority Critical patent/JP2008004973A/en
Priority to PCT/JP2005/013083 priority patent/WO2006038361A1/en
Publication of JP2008004973A publication Critical patent/JP2008004973A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/12Formatting, e.g. arrangement of data block or words on the record carriers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Abstract

<P>PROBLEM TO BE SOLVED: To provide a video recording apparatus capable of accessing a recorded frame at a high speed and having improved recording efficiency. <P>SOLUTION: The video recording apparatus 10 is provided with a video encoder 12 for encoding inputted video images, and generating video streams; a stream adjusting section 14 for adjusting the data length of the hierarchically encoded frame, and generating a plurality of kinds of recording data; and a plurality of cyclic recorders 16a-16f for recording the recording data. Each of the plurality of cycling recorders 16a-16f corresponds to respective plurality of recording data. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、映像記録装置および映像記録方法に関し、特に、古い映像を新しい映像で上書きして記録する方式において、任意のフレームを高速に取得可能な映像記録に関する。   The present invention relates to a video recording apparatus and a video recording method, and more particularly to video recording capable of acquiring an arbitrary frame at high speed in a method of recording an old video by overwriting it with a new video.

映像は、もはや我々の生活とは切り離せない関係にあり、インターネットや携帯電話網、放送波、記録メディアなどの伝送手段を通じ、パソコンや携帯端末、テレビ、ハイビジョンテレビなどの多様な表示端末において、視覚的な情報を享受させてくれる重要な存在となった。映像は通常膨大な情報量を有するため、映像符号化技術を用いて情報量を圧縮して映像ストリームの形に変換され、ネットワーク上に伝送され、または記録装置に記録される。   Video is no longer inseparable from our daily lives, and it can be viewed on various display terminals such as personal computers, mobile terminals, TVs, and high-definition TVs through transmission methods such as the Internet, mobile phone networks, broadcast waves, and recording media. It became an important existence to let you enjoy the information. Since video usually has an enormous amount of information, the amount of information is compressed using video encoding technology, converted into a video stream, transmitted over a network, or recorded on a recording device.

また、映像記録の分野では、映像の利用態様の多様化に伴って、情報量を圧縮するだけでなく、次のような技術も求められている。すなわち、記録した映像から特定の映像を短時間で検索する技術や、リアルタイムに映像を記録する技術において過去の重要でない映像に新しい映像を上書きする等して必要な映像を効率的に記録する技術が求められている。   Further, in the field of video recording, not only the amount of information is compressed but also the following techniques are required with the diversification of video utilization modes. In other words, a technology that searches for a specific video in a short time from the recorded video, or a technology that efficiently records a necessary video by overwriting a new video over an unimportant video in the past in a technology for recording a video in real time. Is required.

特許文献1には、映像を高速に検索することができる映像記録装置が記載されている。特許文献1の装置では、映像ストリームのIフレームの先頭位置が、記録領域のセクタの先頭位置となるように記録する。特許文献1の方法によれば、Iフレームを探索する場合はセクタの先頭のみを探索するだけでよく、任意の映像を短時間で検索することが可能となる。ここで、「Iフレーム」とは、映像の符号化において前後のフレームの情報を用いずに、すなわち、動き予測補償符号化せずに符号化するフレームである。従って、Iフレームは、単独で復号化可能である。動き予測補償符号化にはIフレームの他にPフレーム、Bフレームを用いて符号化を行う。ここで、「Pフレーム」とは時間的に前のIフレームまたはPフレームの映像を参照して符号化するフレームであり、PフレームはIフレームがないと復号化できない。また、「Bフレーム」とは前後のIフレームやPフレームの映像を参照して符号化するフレームであり、BフレームはIフレームやPフレームがないと復号化できない。従って、フレームの重要度はIフレーム、Pフレーム、Bフレームの順に高い。また、動き予測補償符号化は、前後のフレームとの差分を符号化するので差分が少ない場合に符号化効率が向上し、一般的に、動き予測補償をしない符号化に比べて符号化効率が良いと言われている。BフレームはPフレームより多くのフレームとの差分を使って符号化する。従って、符号化効率はBフレーム、Pフレーム、Iフレームの順に良い。   Patent Document 1 describes a video recording apparatus that can search video at high speed. In the apparatus of Patent Document 1, recording is performed so that the start position of the I frame of the video stream is the start position of the sector in the recording area. According to the method of Patent Document 1, when searching for an I frame, it is only necessary to search for the head of a sector, and an arbitrary video can be searched in a short time. Here, the “I frame” is a frame that is encoded without using the information of the preceding and succeeding frames in video encoding, that is, without motion prediction compensation encoding. Therefore, the I frame can be decoded alone. In motion prediction compensation encoding, encoding is performed using P frames and B frames in addition to I frames. Here, the “P frame” refers to a frame that is encoded with reference to the video of the previous I frame or P frame in time, and the P frame cannot be decoded without the I frame. The “B frame” refers to a frame that is encoded with reference to the preceding and subsequent I frames and P frames, and the B frame cannot be decoded without the I frame and the P frame. Therefore, the importance of frames is higher in the order of I frame, P frame, and B frame. In addition, since motion prediction compensation coding encodes the difference between the previous and next frames, the coding efficiency is improved when the difference is small, and generally the coding efficiency is higher than the coding without motion prediction compensation. It is said to be good. The B frame is encoded using a difference from more frames than the P frame. Therefore, the encoding efficiency is good in the order of B frame, P frame, and I frame.

特許文献2に記載の映像記録装置では、記録領域の容量がなくなると、記録した映像ストリームのうちBフレームのみを削除して、空いた記録領域に新しい映像ストリームを記録する。特許文献2の装置によれば、IフレームやPフレームに比べ重要でない過去の映像のBフレームを削除して、新しい映像を優先して記録することにより、有限の記録領域に映像を効率的に記録することが可能となる。
特開2001−197443号公報 特開2004−7819号公報
In the video recording apparatus described in Patent Document 2, when the recording area is exhausted, only the B frame is deleted from the recorded video stream, and a new video stream is recorded in the free recording area. According to the apparatus of Patent Document 2, by deleting a B frame of a past video that is not important compared to an I frame or a P frame and recording a new video with priority, the video can be efficiently recorded in a limited recording area. It becomes possible to record.
JP 2001-197443 A JP 2004-7819 A

しかし、特許文献1の映像記録装置では、何番目のフレームが記録領域中のどこのセクタに記録されているかがわからないため、フレームの探索に時間を要する。すなわち、所望のフレームを記録領域の先頭から順に探索していかなければならず、記録領域のセクタの数をNとした場合、探索時間のオーダーはNとなる。2分木探索法を用いたとしても、探索時間のオーダーはlogNである。   However, in the video recording apparatus of Patent Document 1, it takes time to search for a frame because it is not known in which sector in the recording area the frame is recorded. That is, a desired frame must be searched in order from the beginning of the recording area. If the number of sectors in the recording area is N, the search time order is N. Even if the binary tree search method is used, the order of the search time is logN.

また、特許文献2の映像記録装置では、削除したBフレームが何番目のフレームかわからないため、新しく記録したフレームがどの記録領域に記録されたかがわからない。また、削除したBフレームの記録領域に、新しいフレームを記録しようとしても、両者のサイズが一致するとは限らず、記録領域に無駄な空きが生じる可能性がある。   Further, in the video recording apparatus of Patent Document 2, since the deleted B frame does not know what number frame, it is not known in which recording area the newly recorded frame is recorded. Also, even if a new frame is to be recorded in the deleted B frame recording area, the sizes of both frames do not always match, and there is a possibility that a wasteful space will be generated in the recording area.

そこで、本発明は、上記背景に鑑み、記録されたフレームへの高速なアクセスを可能にすると共に、記録効率を高めた映像記録装置および映像記録方法を提供することを目的とする。   In view of the above background, an object of the present invention is to provide a video recording apparatus and a video recording method that enable high-speed access to recorded frames and improve recording efficiency.

本発明の映像記録装置は、階層符号化された複数のフレームからなる映像ストリームを入力する映像ストリーム入力手段と、前記フレームのデータ長を調整し、複数種類の記録用データを生成する記録用データ生成手段と、前記記録用データの種類に対応する、前記記録用データを記録するための複数の循環記録手段とを備えた構成を有する。   The video recording apparatus of the present invention includes a video stream input means for inputting a video stream composed of a plurality of hierarchically encoded frames, and recording data for adjusting the data length of the frames and generating a plurality of types of recording data And a plurality of circulating recording means for recording the recording data corresponding to the type of the recording data.

このように記録用データ生成手段によってデータ長を調整した複数種類の記録用データを生成し、生成された記録用データをそれぞれの種類に応じた循環記録手段に記録するので、循環記録手段の何番目に記録したかによって記録用データの記録箇所を管理でき、任意の記録用データに高速にアクセスすることができる。また、複数の循環記録手段に記録することにより、データを上書きする順序を一律に古い順とするのではなく、古いデータも残すことができ、有限の記録領域に効率良く映像を記録することができる。例えば、同じ容量を持つ2つの循環記録手段を有する場合に、一方の循環記録手段に10フレーム毎に1枚のフレームを記録し、他方の循環記録手段に残りのフレームを記録して、両者の記録速度を変えておく構成とすれば、後者の循環記録手段において上書きされた古いデータも前者の循環記録手段に残るため、新しいデータを高画質で記録することができると共に古いデータを低画質で残しておくことができ、有限の記録領域を有効に活用できる。   In this way, a plurality of types of recording data whose data length is adjusted by the recording data generation unit are generated, and the generated recording data is recorded in the cyclic recording unit according to each type. It is possible to manage the recording location of the recording data depending on whether it is recorded the second time, and it is possible to access any recording data at high speed. Also, by recording in a plurality of circulating recording means, the order of overwriting the data is not uniformly changed to the oldest order, but the old data can be left, and video can be efficiently recorded in a limited recording area. it can. For example, when two circulating recording means having the same capacity are provided, one frame is recorded on one circulating recording means, and the remaining frames are recorded on the other circulating recording means. If the recording speed is changed, old data overwritten by the latter circulating recording means remains in the former circulating recording means, so that new data can be recorded with high image quality and old data can be recorded with low image quality. It can be left, and a finite recording area can be used effectively.

上記映像記録装置において、前記記録用データ生成手段は、前記フレームの符号化タイプに応じて異なる種類の前記記録用データを生成してもよい。   In the video recording apparatus, the recording data generation means may generate different types of recording data according to the encoding type of the frame.

符号化タイプによってフレームの重要性が異なるので、符号化タイプに応じて記録用データを生成することが好ましい。これにより、例えば、重要度の高いIフレームを長時間記録し、重要度の低いPフレームをそれより短い時間記録し、最も重要度の低いBフレームを最短時間記録することができ、古い映像はフレームレートを低く、新しい映像はフレームレートを高くして、記録することが可能である。   Since the importance of the frame differs depending on the encoding type, it is preferable to generate the recording data according to the encoding type. Thereby, for example, a high-importance I frame can be recorded for a long time, a low-importance P frame can be recorded for a shorter time, and a B-frame having the lowest importance can be recorded for the shortest time. A new image can be recorded with a lower frame rate and a higher frame rate.

上記映像記録装置において、前記記録用データ生成手段は、一の前記フレームから複数の記録用データを生成してもよい。   In the video recording apparatus, the recording data generation means may generate a plurality of recording data from one frame.

この構成により、一のフレームの中で画質への影響の強い部分とそうでない部分を別々の循環記録手段に記録することができ、映像ストリームの画質や解像度などを任意に選択して取得することが可能となる。   With this configuration, it is possible to record a portion that has a strong influence on image quality in one frame and a portion that does not have that effect on separate circulating recording means, and select and acquire the image quality and resolution of the video stream arbitrarily. Is possible.

上記映像記録装置において、前記フレームに含まれる基本レイヤおよび拡張レイヤのうちの、少なくとも基本レイヤを含む長さの記録用データを生成してもよい。   In the video recording apparatus, recording data having a length including at least the basic layer of the basic layer and the enhancement layer included in the frame may be generated.

この構成により、基本レイヤを符号化効率の高い方法で生成することができ、映像の符号化効率が向上する。   With this configuration, the base layer can be generated by a method with high encoding efficiency, and the video encoding efficiency is improved.

上記映像記録装置において、前記循環記録手段は、前記基本レイヤの長さを示す情報を前記フレームと共に記録してもよい。   In the video recording apparatus, the circulating recording unit may record information indicating the length of the base layer together with the frame.

この構成により、基本レイヤの長さを示す情報を取得することができるので、基本レイヤを高速に取得することが可能である。   With this configuration, information indicating the length of the base layer can be acquired, so that the base layer can be acquired at high speed.

本発明の映像記録方法は、階層符号化された複数のフレームからなる映像ストリームを入力する映像ストリーム入力ステップと、前記フレームのデータ長を調整し、複数種類の記録用データを生成する記録用データ生成ステップと、前記記録用データの種類に対応する循環記録手段に、前記記録用データを記録する循環記録ステップとを備える。   The video recording method according to the present invention includes a video stream input step for inputting a video stream consisting of a plurality of hierarchically encoded frames, and recording data for adjusting the data length of the frames to generate a plurality of types of recording data A generating step; and a circulating recording step for recording the recording data in the circulating recording means corresponding to the type of the recording data.

この構成により、本発明の映像記録装置と同様に、任意の記録用データに高速にアクセスすることができると共に、有限の記録領域に効率的に映像を記録することが可能となる。また、本発明の映像記録装置の各種の構成を本発明の映像記録方法に適用することも可能である。   With this configuration, as with the video recording apparatus of the present invention, arbitrary recording data can be accessed at high speed, and video can be efficiently recorded in a limited recording area. Various configurations of the video recording apparatus of the present invention can also be applied to the video recording method of the present invention.

本発明のプログラムは、階層符号化された複数のフレームからなる映像ストリームを記録するために、コンピュータに、前記映像ストリームを入力する映像ストリーム入力ステップと、前記フレームのデータ長を調整し、複数種類の記録用データを生成する記録用データ生成ステップと、前記記録用データの種類に対応する循環記録手段に、前記記録用データを記録する循環記録ステップとを実行させる。   In order to record a video stream composed of a plurality of hierarchically encoded frames, the program of the present invention adjusts the video stream input step of inputting the video stream to a computer, the data length of the frame, and a plurality of types A recording data generating step for generating the recording data, and a circulating recording step for recording the recording data in the circulating recording means corresponding to the type of the recording data.

この構成により、本発明の映像記録装置と同様に、任意の記録用データに高速にアクセスすることができると共に、有限の記録領域に効率的に映像を記録することが可能となる。また、本発明の映像記録装置の各種の構成を本発明のプログラムに適用することも可能である。   With this configuration, as with the video recording apparatus of the present invention, arbitrary recording data can be accessed at high speed, and video can be efficiently recorded in a limited recording area. Various configurations of the video recording apparatus of the present invention can also be applied to the program of the present invention.

本発明によれば、記録用データ生成手段によってデータ長を調整した複数種類の記録用データを生成し、生成された記録用データをそれぞれの種類に応じた循環記録手段に記録する構成により、循環記録手段の何番目に記録したかによって記録用データの記録箇所を管理して、任意の記録用データへの高速でのアクセスを可能にできると共に、記録領域に効率良く映像を記録できるというすぐれた効果を有する。   According to the present invention, a plurality of types of recording data whose data lengths have been adjusted by the recording data generation unit are generated, and the generated recording data is recorded on the circular recording unit according to each type, thereby circulating The recording location of the recording data is managed according to the number of the recording means, and it is possible to access any recording data at a high speed and to efficiently record the video in the recording area. Has an effect.

以下、本発明の映像記録装置の実施の形態について、図面を参照して詳細に説明する。以下に説明する実施の形態では、映像を基本レイヤと拡張レイヤに階層符号化して記録する例について説明する。   Embodiments of a video recording apparatus according to the present invention will be described below in detail with reference to the drawings. In the embodiment described below, an example will be described in which video is hierarchically encoded into a base layer and an enhancement layer and recorded.

図1は、本発明の実施の形態に係る映像記録装置の構成を示すブロック図である。図1において、映像記録装置10は、映像符号化部12、ストリーム調整部14、循環記録部16a〜16f、ストリーム取得部18を有する。   FIG. 1 is a block diagram showing a configuration of a video recording apparatus according to an embodiment of the present invention. In FIG. 1, the video recording apparatus 10 includes a video encoding unit 12, a stream adjustment unit 14, circulation recording units 16 a to 16 f, and a stream acquisition unit 18.

映像符号化部12は、映像記録装置10の外部から映像を1画面ずつ原画像として入力し、階層符号化して映像ストリームを生成して、ストリーム調整部14に出力する。ここでは、映像記録装置10が映像符号化部12を備える例について説明しているが、映像符号化部12は、映像記録装置10の外部にあってもよい。   The video encoding unit 12 inputs video from the outside of the video recording device 10 as an original image screen by screen, generates a video stream by hierarchical encoding, and outputs the video stream to the stream adjustment unit 14. Here, an example in which the video recording device 10 includes the video encoding unit 12 has been described, but the video encoding unit 12 may be provided outside the video recording device 10.

ストリーム調整部14は、映像符号化部12から映像ストリームを入力し、映像ストリームを調整して、循環記録部16a〜16fに出力する。循環記録部16a〜16fは、ストリーム調整部14から入力した映像ストリームのフレームをそれぞれの循環記録部16a〜16fの記録領域の最も古いフレームが記録してあるセクタに上書きして記録する。ここで、ストリーム調整部14が本発明の映像ストリーム入力手段および記録用データ生成手段に相当し、循環記録部16a〜16fが循環記録手段に相当する。   The stream adjustment unit 14 receives the video stream from the video encoding unit 12, adjusts the video stream, and outputs the video stream to the circulation recording units 16a to 16f. The circular recording units 16a to 16f overwrite and record the frames of the video stream input from the stream adjustment unit 14 on the sectors in which the oldest frames in the recording areas of the respective circular recording units 16a to 16f are recorded. Here, the stream adjustment unit 14 corresponds to the video stream input unit and the recording data generation unit of the present invention, and the circulation recording units 16a to 16f correspond to the circulation recording unit.

ストリーム取得部18は、映像記録装置10の外部から入力した映像取得信号をもとに、循環記録部16a〜16fから映像ストリームを取得する。   The stream acquisition unit 18 acquires video streams from the circulation recording units 16 a to 16 f based on video acquisition signals input from the outside of the video recording device 10.

次に、以上のように構成された映像記録装置10の動作を説明する。映像記録装置10は、入力した映像を符号化し映像ストリームとして記録する映像記録の動作と、記録した映像ストリームを出力する映像取得の動作を行う。最初に、映像記録の動作について説明する。   Next, the operation of the video recording apparatus 10 configured as described above will be described. The video recording apparatus 10 performs a video recording operation for encoding an input video and recording it as a video stream, and a video acquisition operation for outputting the recorded video stream. First, the video recording operation will be described.

図2は、図1に示す実施の形態の映像記録装置10の映像記録の動作の一例を表すフローチャートである。なお、図2に示すフローチャートは、図示しない記憶装置(例えばROMやフラッシュメモリなど)に格納された制御プログラムを、同じく図示しないCPUが実行することにより、プログラムの実行によりソフトウエア的に実行されるようにすることも可能である。   FIG. 2 is a flowchart showing an example of the video recording operation of the video recording apparatus 10 according to the embodiment shown in FIG. The flowchart shown in FIG. 2 is executed by software by executing a control program stored in a storage device (not shown) (for example, ROM or flash memory) by a CPU (not shown). It is also possible to do so.

まず、映像記録装置10の映像符号化部12が映像符号化処理を行う(S10)。具体的には、映像符号化部12が、映像記録装置10の外部から映像を1画面ずつ原画像として入力し、階層符号化して映像ストリームを生成して、ストリーム調整部14に出力する。   First, the video encoding unit 12 of the video recording apparatus 10 performs a video encoding process (S10). Specifically, the video encoding unit 12 inputs video as an original image screen by screen from the outside of the video recording apparatus 10, generates a video stream by hierarchical encoding, and outputs the video stream to the stream adjustment unit 14.

ここで、映像符号化部12の映像の階層符号化方式として、JPEG2000などの幾つかの符号化方式が挙げられるが、本実施の形態ではISO/IEC 14496-2 Amendment 2に記載のMPEG−4 FGS(Fine Granularity Scalable coding)を用いる。もちろん、本発明の効果が得ることが可能であれば他の符号化方式でも構わない。MPEG−4 FGSは、とりわけ復号化画像の画質を微細に選択することが可能な符号化方式として規格化されており、符号化された映像ストリームは、基本レイヤストリームと拡張レイヤストリームによって構成される。基本レイヤは単体で復号化が可能な高圧縮で低画質の映像ストリームである。拡張レイヤは基本レイヤの画質を向上させるための映像ストリームであり、拡張レイヤの復号化する符号量を増せば復号化画像の画質が向上する。映像符号化部12は、基本レイヤの符号化方式として、Iフレーム、Pフレーム、Bフレームを用いる動き予測補償符号化方式を用いる。本実施の形態では、映像記録装置10に入力する映像のフレームレートを30fpsとする。また、映像符号化部12が符号化する基本レイヤのIフレームのフレームレートを1fps、Pフレームを9fps、Bフレームを20fpsとする。   Here, as the video hierarchical encoding method of the video encoding unit 12, several encoding methods such as JPEG2000 can be mentioned. In this embodiment, MPEG-4 described in ISO / IEC 14496-2 Amendment 2 is used. Use FGS (Fine Granularity Scalable coding). Of course, other encoding methods may be used as long as the effects of the present invention can be obtained. MPEG-4 FGS is standardized as an encoding method that enables fine selection of the image quality of a decoded image, and the encoded video stream is composed of a base layer stream and an enhancement layer stream. . The base layer is a high-compression, low-quality video stream that can be decoded alone. The enhancement layer is a video stream for improving the image quality of the base layer, and the image quality of the decoded image is improved by increasing the code amount to be decoded by the enhancement layer. The video encoding unit 12 uses a motion prediction / compensation encoding method using I frames, P frames, and B frames as the encoding method of the base layer. In the present embodiment, the frame rate of the video input to the video recording device 10 is 30 fps. Further, the frame rate of the I frame of the base layer encoded by the video encoding unit 12 is 1 fps, the P frame is 9 fps, and the B frame is 20 fps.

図3(a)は原画像の入力順序に並べたフレームの符号化タイプ、図3(b)は映像ストリームとして生成する順序に並べたフレームの符号化タイプを示す図である。図3(a)に示すように、入力順は、IフレームF01、BフレームF02、BフレームF03、PフレームF04・・・と続いていく。しかし、図3(b)に示すように、ストリームとして生成する順序は、IフレームF01の次はPフレームF04であり、これにBフレームF02、F03が続く形となる。これは、BフレームF02とF03は、PフレームF04を符号化した後にその復号化画像を参照して符号化を行うためである。   FIG. 3A is a diagram showing the encoding types of frames arranged in the input order of original images, and FIG. 3B is a diagram showing the encoding types of frames arranged in the order of generation as a video stream. As shown in FIG. 3 (a), the input order continues to I frame F01, B frame F02, B frame F03, P frame F04. However, as shown in FIG. 3B, the stream is generated in the order of the I frame F01 followed by the P frame F04, followed by the B frames F02 and F03. This is because the B frames F02 and F03 are encoded with reference to the decoded image after encoding the P frame F04.

また、映像符号化部12は、拡張レイヤの符号化方式として、MPEG−4 FGSを用いて1フレームずつビット平面符号化を行う。拡張レイヤは全フレームに対してフレーム内符号化を行うが、説明の便宜上、基本レイヤがIフレームである場合の拡張レイヤを「Iフレームの拡張レイヤ」と呼ぶこととし、PフレームとBフレームについても同様とする。   In addition, the video encoding unit 12 performs bit-plane encoding for each frame using MPEG-4 FGS as the encoding method of the enhancement layer. The enhancement layer performs intra-frame coding for all frames. For convenience of explanation, the enhancement layer when the base layer is an I frame is referred to as an “I frame enhancement layer”. The same shall apply.

次に、映像記録装置10のストリーム調整部14がストリーム調整処理を行って、記録用データを生成する(S12)。具体的には、ストリーム調整部14が、映像符号化部12から映像ストリームを入力し、映像ストリームを調整して生成した記録用データを循環記録部16a〜16fに出力する。このストリーム調整処理が、本発明の記録用データ生成ステップに相当する。   Next, the stream adjustment unit 14 of the video recording apparatus 10 performs stream adjustment processing to generate recording data (S12). Specifically, the stream adjustment unit 14 inputs a video stream from the video encoding unit 12, and outputs recording data generated by adjusting the video stream to the circulation recording units 16a to 16f. This stream adjustment process corresponds to the recording data generation step of the present invention.

ここで、記録用データの生成について説明する。図4(a)は基本レイヤと拡張レイヤとからなるフレームの構造を示す図である。基本レイヤの映像ストリームを表す長方形に記載した「I」「P」「B」はフレームのタイプを表す。図4(a)に示すように、通常、基本レイヤおよび拡張レイヤとも映像ストリームの符号量はそれぞれ異なる。   Here, generation of recording data will be described. FIG. 4A is a diagram illustrating a structure of a frame including a base layer and an enhancement layer. “I”, “P”, and “B” described in rectangles representing the video stream of the base layer represent frame types. As shown in FIG. 4A, the code amount of the video stream is usually different between the base layer and the enhancement layer.

図4(b)はストリーム調整によって生成された記録用データの構造を示している。ストリーム調整部14は、基本レイヤの後ろに拡張レイヤの先頭部分をつなげ、合計した符号量がIフレーム、Pフレーム、Bフレームごとにあらかじめ定められた符号量A、B、Cバイトとなるように切り揃える。また、ストリーム調整部14は、残った拡張レイヤをフレームごとに全て同じ符号量Dバイトに切り揃える。さらに残った拡張レイヤはここで廃棄する。本実施の形態では、切り揃えた映像ストリームのうち基本レイヤを含むものを基本レイヤ側ストリーム、拡張レイヤのみを含むものを拡張レイヤ側ストリームと呼ぶ。これらのストリームが本発明の記録用データに該当する。基本レイヤ側ストリームのストリーム長が、基本レイヤの映像ストリームの符号量を下回らないようにあらかじめ設定しておく。なお、基本レイヤと拡張レイヤをつなげた映像ストリームを3分割以上して記録用データを生成してもよいが、本実施の形態では2分割することとする。   FIG. 4B shows the structure of recording data generated by stream adjustment. The stream adjustment unit 14 connects the head portion of the enhancement layer after the base layer so that the total code amount becomes a predetermined code amount A, B, C bytes for each of the I frame, P frame, and B frame. Cut and align. Further, the stream adjustment unit 14 trims all remaining enhancement layers to the same code amount D bytes for each frame. Further, the remaining enhancement layer is discarded here. In the present embodiment, a trimmed video stream including a base layer is referred to as a base layer side stream, and a stream including only an enhancement layer is referred to as an enhancement layer side stream. These streams correspond to the recording data of the present invention. The stream length of the base layer side stream is set in advance so that it does not fall below the code amount of the base layer video stream. Note that the recording data may be generated by dividing the video stream connecting the base layer and the enhancement layer into three or more, but in this embodiment, it is divided into two.

また、基本レイヤ側ストリームを復号化した際の画質を各フレームで安定させるため、基本レイヤ側ストリームが含む拡張レイヤの映像ストリームの符号量が各フレームでほぼ一定となるように符号量A、B、Cバイトを設定することが望ましい。また同様の理由で、拡張レイヤ側ストリームの符号量はI、P、Bフレームともに同量のDバイトであることが望ましい。   Further, in order to stabilize the image quality when the base layer side stream is decoded in each frame, the code amounts A and B are set so that the code amount of the enhancement layer video stream included in the base layer side stream is substantially constant in each frame. It is desirable to set C bytes. For the same reason, the code amount of the enhancement layer side stream is preferably the same amount of D bytes for all I, P, and B frames.

ストリーム調整部14は、上記のように生成した記録用データを種類に応じて循環記録部16a〜16fに出力する。具体的には、Iフレームの基本レイヤ側ストリームE01を循環記録部16aに、Pフレームの基本レイヤ側ストリームE04,E07を循環記録部16bに、Bフレームの基本レイヤ側ストリームE02,E03,E05,E06を循環記録部16cに、Iフレームの拡張レイヤ側ストリームE08を循環記録部16dに、Pフレームの拡張レイヤ側ストリームE11,E14を循環記録部16eに、Bフレームの拡張レイヤ側ストリームE09,E10,E12,E13を循環記録部16fに出力する。   The stream adjustment unit 14 outputs the recording data generated as described above to the circulation recording units 16a to 16f according to the type. Specifically, the base layer side stream E01 of the I frame is sent to the circulating recording unit 16a, the base layer side streams E04 and E07 of the P frame are sent to the circulating recording unit 16b, and the base layer side streams E02, E03, E05, E06 is transmitted to the circular recording unit 16c, the I-frame enhancement layer side stream E08 to the cyclic recording unit 16d, the P-frame enhancement layer side streams E11 and E14 to the cyclic recording unit 16e, and the B-frame enhancement layer side streams E09 and E10. , E12, E13 are output to the circulating recording unit 16f.

次に、映像記録装置10の循環記録部16a〜16fが循環記録処理を行う(S14)。具体的には、循環記録部16a〜16fが、ストリーム調整部14から入力した映像ストリームのフレーム(記録用データ)を、それぞれの循環記録部の記録領域の最も古いフレームが記録してあるセクタに上書きして記録する。この循環記録処理が本発明の循環記録ステップに相当する。   Next, the circulating recording units 16a to 16f of the video recording apparatus 10 perform the circulating recording process (S14). Specifically, the circular recording units 16a to 16f store the video stream frames (recording data) input from the stream adjustment unit 14 in the sectors in which the oldest frames in the recording areas of the respective circular recording units are recorded. Overwrite and record. This circulating recording process corresponds to the circulating recording step of the present invention.

ここで、循環記録について説明する。図5は、本実施の形態による循環記録の概念を示した図である。以下では、循環記録部16aを例に説明を行う。記録領域20はあらかじめ定められた数のセクタに区切られている。各セクタの大きさは、記録用データの長さと同じAバイトである。セクタ22は最も新しいフレームの映像ストリームを記録しており、セクタ24は最も古いフレームの映像ストリームを記録している。循環記録部16aは、入力したIフレームの基本レイヤ側ストリームをセクタ24に上書きする。循環記録部16aは、入力した映像ストリームを最も古い映像ストリームのセクタ上に上書きしていくことにより、古い映像を次々と新しい映像に置き換えていくことが可能である。循環記録部16aが映像ストリームを次々に記録し、最新の映像ストリームを記録したセクタ22が記録領域20の最後尾に達した場合、次に記録するセクタは記録領域20の先頭のセクタである。ここで、セクタの大きさ(Aバイト)は、ストリーム調整部14が調整を行ったIフレームの基本レイヤ側ストリームの符号量に等しいので、記録領域20は1バイトの隙間もなく基本レイヤ側ストリームの符号を記録することが可能である。   Here, circulating recording will be described. FIG. 5 is a diagram showing the concept of the circular recording according to the present embodiment. In the following description, the circulating recording unit 16a will be described as an example. The recording area 20 is divided into a predetermined number of sectors. The size of each sector is A bytes which is the same as the length of the recording data. Sector 22 records the video stream of the newest frame, and sector 24 records the video stream of the oldest frame. The circular recording unit 16a overwrites the sector 24 on the base layer side stream of the input I frame. The circulating recording unit 16a can replace old video with new video one after another by overwriting the input video stream on the sector of the oldest video stream. When the circular recording unit 16a records video streams one after another and the sector 22 in which the latest video stream is recorded reaches the end of the recording area 20, the next sector to be recorded is the head sector of the recording area 20. Here, since the size of the sector (A byte) is equal to the code amount of the base layer side stream of the I frame adjusted by the stream adjustment unit 14, the recording area 20 has no gap of 1 byte. It is possible to record a code.

同様に、循環記録部16bはあらかじめ定められたBバイトのセクタ、循環記録部16cはあらかじめ定められたCバイトのセクタ、循環記録部16d〜16fはあらかじめ定められたDバイトのセクタに区切られた記録領域を有する。従って、循環記録部16b〜16fについても、種類に応じて入力されたデータが隙間なく記録されることになる。   Similarly, the circular recording unit 16b is divided into predetermined B-byte sectors, the circular recording unit 16c is divided into predetermined C-byte sectors, and the circular recording units 16d to 16f are divided into predetermined D-byte sectors. It has a recording area. Therefore, the data input according to the type is recorded without any gaps in the circulation recording units 16b to 16f.

ここで、例えば、それぞれの循環記録部16a〜16fの記憶領域のセクタ数を30000個であるとすると、Iフレームは1fpsなので8時間20分、Pフレームは55分33秒と3フレーム、Bフレームは25分の映像を記録することが可能である。従って、現在時刻から25分前まではIフレーム,Pフレーム,Bフレームが存在するので30fps、約55分前まではIフレーム,Pフレームが存在するので10fps、約8時間前まではIフレームのみが存在するので1fpsで映像を復号化して再生することが可能である。なお、フレームレートや各循環記録部16a〜16fのセクタ数によって記録時間は変更可能である。さらに、例えば、循環記録部16dのセクタの数を半分の15000個にするとIフレームは8時間のうち4時間を高画質に記録するというように、時間経過によって映像の重要度を細かく設定して記録することが可能である。   Here, for example, if the number of sectors in the storage area of each of the circular recording units 16a to 16f is 30000, the I frame is 1 fps, so 8 hours and 20 minutes, the P frame is 55 minutes and 33 seconds, 3 frames, and the B frame Can record 25 minutes of video. Therefore, I frames, P frames, and B frames exist up to 25 minutes before the current time, so 30 fps, I frames and P frames exist up to about 55 minutes before, 10 fps, and only I frames up to about 8 hours before Therefore, it is possible to decode and reproduce the video at 1 fps. The recording time can be changed according to the frame rate and the number of sectors in each of the circular recording units 16a to 16f. Furthermore, for example, if the number of sectors in the circular recording unit 16d is halved to 15,000, the importance of the video is set finely over time, such that the I frame records 4 hours out of 8 hours with high image quality. It is possible to record.

次に、映像記録装置10は、終了判定処理を行う(S16)。具体的には、映像符号化部12が、映像記録装置10の外部から入力する映像の有無を判定し、映像の入力がなければ処理を終了し、そうでなければステップS10の処理に戻る。以上、映像記録装置10の映像記録の動作の例について説明した。   Next, the video recording apparatus 10 performs an end determination process (S16). Specifically, the video encoding unit 12 determines the presence / absence of a video input from the outside of the video recording device 10, and if there is no video input, the processing is terminated, and if not, the processing returns to step S10. The example of the video recording operation of the video recording apparatus 10 has been described above.

次に、映像記録装置10の映像取得の動作について説明する。図6は、図1に示す実施の形態の映像記録装置10の映像取得の動作の一例を表すフローチャートである。なお、図6に示すフローチャートは、図示しない記憶装置(例えばROMやフラッシュメモリなど)に格納された制御プログラムを、同じく図示しないCPUが実行することにより、プログラムの実行によりソフトウエア的に実行されるようにすることも可能である。   Next, a video acquisition operation of the video recording apparatus 10 will be described. FIG. 6 is a flowchart showing an example of the video acquisition operation of the video recording apparatus 10 according to the embodiment shown in FIG. Note that the flowchart shown in FIG. 6 is executed by software by executing a control program stored in a storage device (not shown) such as a ROM or a flash memory by a CPU (not shown). It is also possible to do so.

まず、映像記録装置10は、入力判定処理を行う(S20)。具体的には、ストリーム取得部18が、映像記録装置10の外部からの映像ストリームの取得を指示する映像取得信号の入力を待機し、映像取得信号があればステップS22の処理に進み、そうでなければ待機を継続する。また、映像取得信号が無効な要求を指示するものであれば、ストリーム取得部18は、映像記録装置10の外部にエラー信号を出力し、待機を継続する。   First, the video recording apparatus 10 performs an input determination process (S20). Specifically, the stream acquisition unit 18 waits for input of a video acquisition signal instructing acquisition of a video stream from the outside of the video recording apparatus 10, and if there is a video acquisition signal, the process proceeds to step S22. If not, continue waiting. If the video acquisition signal indicates an invalid request, the stream acquisition unit 18 outputs an error signal to the outside of the video recording device 10 and continues standby.

ここで、映像取得信号は、ユーザが取得したい映像の時刻やフレームレートおよび画質などの情報、また、映像取得の動作を終了するか否かの情報を含む。映像記録装置10は、あらかじめ定められたフレームレートおよび各循環記録部16a〜16fの持つセクタの数やサイズから、取得可能な時刻やフレームレートおよび画質などの情報を一意に計算することが可能である。つまり、映像符号化部12の符号化のフレームレートと、循環記録部16a〜16fの記録領域のセクタの数から、映像記録装置10がIフレーム、Pフレーム、Bフレームのそれぞれをどの時刻から記録しているかを一意に計算する。これにより、ストリーム取得部18は、映像取得信号が取得を要求するものが取得可能な映像ストリームであるかないかを判断し、取得可能でなければエラー信号を返す。   Here, the video acquisition signal includes information such as the time, frame rate, and image quality of the video that the user wants to acquire, and information on whether or not to end the video acquisition operation. The video recording apparatus 10 can uniquely calculate information such as an acquirable time, frame rate, and image quality from a predetermined frame rate and the number and size of sectors of each of the circular recording units 16a to 16f. is there. That is, from which time the video recording apparatus 10 records each of the I frame, the P frame, and the B frame based on the encoding frame rate of the video encoding unit 12 and the number of sectors in the recording areas of the circular recording units 16a to 16f. Uniquely calculate what you are doing. Thereby, the stream acquisition unit 18 determines whether or not the video acquisition signal is an acquisition requestable video stream, and returns an error signal if acquisition is not possible.

次に、映像記録装置10は、終了判定処理を行う(S22)。具体的には、ストリーム取得部18が、映像記録装置10の外部から入力した映像取得信号を判別し、映像取得の処理を終了する指示を表すものであれば処理を終了し、そうでなければステップS24の処理に進む。   Next, the video recording apparatus 10 performs an end determination process (S22). Specifically, if the stream acquisition unit 18 indicates a video acquisition signal input from the outside of the video recording device 10 and indicates an instruction to end the video acquisition process, the process ends, otherwise The process proceeds to step S24.

映像信号が終了の指示でない場合、映像記録装置10は、ストリーム選択処理を行う(S24)。具体的には、ストリーム取得部18が、映像記録装置10の外部から入力した映像取得信号をもとに、循環記録部16a〜16fから取得するべきフレームを示すフレーム選択信号を生成する。   If the video signal is not an end instruction, the video recording apparatus 10 performs a stream selection process (S24). Specifically, the stream acquisition unit 18 generates a frame selection signal indicating a frame to be acquired from the circulation recording units 16a to 16f based on the video acquisition signal input from the outside of the video recording device 10.

ここで、フレーム選択信号は、ストリーム取得部18が映像取得信号の示す時刻と画質から生成するもので、現在記録中のIフレーム、Pフレーム、Bフレームから何枚前のフレームを取得すべきかを示す。例えば、V秒前から1秒間の映像を取得する場合を考える。Iフレームは1fpsで記録しているので、V枚前の1枚を選択する。Pフレームは9fpsで記録しているので、9×V枚前のフレームから9枚を選択する。Bフレームは20fpsで記録しているので、20×V枚前のフレームから20枚を選択する。   Here, the frame selection signal is generated by the stream acquisition unit 18 from the time and image quality indicated by the video acquisition signal, and indicates how many frames from the I frame, P frame, and B frame currently being recorded should be acquired. Show. For example, consider a case in which an image of 1 second is acquired from V seconds ago. Since the I frame is recorded at 1 fps, one frame before V is selected. Since the P frame is recorded at 9 fps, nine frames are selected from the previous 9 × V frames. Since the B frame is recorded at 20 fps, 20 frames are selected from the previous 20 × V frames.

ただし、映像取得信号が映像ストリームを10fpsで取得することを指示している場合にはIフレーム、Pフレームのみを選択し、1fpsで取得することを指示している場合にはIフレームのみを選択する。また、映像取得信号が、拡張レイヤ側ストリームの取得を指示している場合には、基本レイヤ側ストリームのフレームに該当する拡張レイヤ側ストリームのフレームを選択する。この他にも、映像取得信号は、可能な限りフレームレートを高く取得する指示や、Iフレームのみ拡張レイヤ側ストリームを取得する指示や、拡張レイヤ側ストリームの半分を取得する指示などを含んでもよい。   However, if the video acquisition signal indicates that the video stream is to be acquired at 10 fps, only the I frame and P frame are selected. If the video acquisition signal indicates that the video stream is to be acquired at 1 fps, only the I frame is selected. To do. When the video acquisition signal instructs acquisition of the enhancement layer side stream, the frame of the enhancement layer side stream corresponding to the frame of the base layer side stream is selected. In addition, the video acquisition signal may include an instruction to acquire a frame rate as high as possible, an instruction to acquire an enhancement layer side stream only for I frames, an instruction to acquire half of the enhancement layer side stream, and the like. .

次に、映像記録装置10は、ストリーム抽出処理を行う(S26)。具体的には、ストリーム取得部18が、ストリーム選択処理(S24)において生成したフレーム選択信号に基づいて、循環記録部16a〜16fから映像ストリームを抽出する。   Next, the video recording apparatus 10 performs a stream extraction process (S26). Specifically, the stream acquisition unit 18 extracts video streams from the circulation recording units 16a to 16f based on the frame selection signal generated in the stream selection process (S24).

ストリーム取得部18が、循環記録部16a〜16fがフレーム選択信号の示すフレームを探索し抽出する方法を説明する。例えば、ストリーム取得部18が、循環記録部16aからIフレームを取得する場合を考える。この場合、ストリーム取得部18は、循環記録部16aのセクタ数N、現在記録中のセクタの位置Pとして、X枚前のIフレームのセクタの番号Yを取得するフレームを次式で求める。

Figure 2008004973
上式に示すように、XがPより小さい場合、PとXの差がYとなる。XがPより大きい場合、NからXとPの差を引いたものがYとなる。そして、上式によって求めたセクタの番号Yの記録領域20内での先頭アドレスは、セクタの番号Yから1を引いた数とセクタのサイズAの積によって表される。つまり、ストリーム取得部18が、X枚前のIフレームを取得する場合、記録領域20の先頭から(Y−1)×Aバイト目からAバイト分の情報を抽出すればよい。以上に説明した抽出を、フレーム選択信号が示すフレーム全てに対して行う。 A method in which the stream acquisition unit 18 searches and extracts the frame indicated by the frame selection signal by the circulating recording units 16a to 16f will be described. For example, consider a case where the stream acquisition unit 18 acquires an I frame from the circulating recording unit 16a. In this case, the stream acquisition unit 18 obtains a frame for acquiring the sector number Y of the previous I frame by using the following equation as the number N of sectors of the circulating recording unit 16a and the position P of the sector currently being recorded.
Figure 2008004973
As shown in the above equation, when X is smaller than P, the difference between P and X is Y. When X is larger than P, Y is obtained by subtracting the difference between X and P from N. The head address in the recording area 20 of the sector number Y obtained by the above equation is represented by the product of the number obtained by subtracting 1 from the sector number Y and the sector size A. That is, when the stream acquisition unit 18 acquires an I frame before X, it is only necessary to extract information corresponding to A bytes from the beginning of the recording area 20 (Y−1) × A bytes. The extraction described above is performed for all the frames indicated by the frame selection signal.

次に、映像記録装置10は、ストリーム合成処理を行う(S28)。具体的には、ストリーム取得部18が、ストリーム抽出処理(S26)で抽出した映像ストリームを並べ替え、映像記録装置10の外部に出力する。ストリーム合成処理(S28)の後、処理はステップS20に戻る。   Next, the video recording apparatus 10 performs a stream composition process (S28). Specifically, the stream acquisition unit 18 rearranges the video streams extracted in the stream extraction process (S26) and outputs them to the outside of the video recording apparatus 10. After the stream synthesis process (S28), the process returns to step S20.

ストリーム合成処理における映像ストリームの並べ替え方法は、Iフレーム、Pフレーム、Bフレームのそれぞれのフレームレートから一意に決定する。まず、基本レイヤ側ストリームを考える。抽出したIフレームがS枚、PフレームがT枚、BフレームがU枚だとする。Iフレームは1fpsで記録しているので、S枚でS秒分の映像ストリームである。Pフレームは9fpsなのでT枚でS秒のうち後ろT/9秒分、Bフレームは20fpsなのでU枚でS秒のうち後ろU/20秒分の映像ストリームである。従って、まず、最も過去の(S−T/9)秒は、Iフレームのみを古い時刻の順に並べる。次にそこから(S−U/20)秒は、Iフレーム1枚につきPフレーム9枚を続けて古い時刻の順に並べる。最後のU/20秒は、Iフレームの次と、それぞれのPフレームの次に、Bフレーム2枚ずつ続ける組み合わせを9回続けて、最後にBフレーム2枚を続けて図3(a)のように並べる。拡張レイヤ側ストリームは、対応するフレームの基本レイヤ側ストリームの直後につなげて並べる。なお、S≧T/9≧U/20であり、Iフレーム、Pフレーム、Bフレームの表す時間が同じ場合であっても異なる場合であっても、以上の説明は成り立つ。   The video stream rearrangement method in the stream synthesizing process is uniquely determined from the frame rates of the I frame, the P frame, and the B frame. First, consider the base layer side stream. Assume that the extracted I frames are S, P frames are T, and B frames are U. Since the I frame is recorded at 1 fps, S is a video stream for S seconds. Since the P frame is 9 fps, the T stream is the backward T / 9 seconds out of the S seconds, and the B frame is 20 fps, so the U frame is the backward U / 20 seconds of the S seconds. Therefore, first, for the past (ST / 9) seconds, only I frames are arranged in order of oldest time. Next, for (S−U / 20) seconds, 9 P frames per I frame are arranged in order of oldest time. In the last U / 20 seconds, the combination of two B frames continued after the I frame and each P frame, followed by nine times, and finally the two B frames continued. Line up like so. The enhancement layer side stream is connected and arranged immediately after the base layer side stream of the corresponding frame. It should be noted that S ≧ T / 9 ≧ U / 20, and the above description holds true whether the times represented by the I frame, the P frame, and the B frame are the same or different.

このようにして、ストリーム取得部18は、循環記録部16a〜16fが記録する任意のフレームを高速に探索し取得することが可能である。ストリーム取得部18は、このように、循環記録部16a〜A09から取得したフレームを元の時系列に沿って並べ替えて、映像記録装置10の外部に出力する。以上、映像記録装置10の映像取得の動作の例について説明した。   In this way, the stream acquisition unit 18 can search and acquire any frame recorded by the circulation recording units 16a to 16f at high speed. In this way, the stream acquisition unit 18 rearranges the frames acquired from the circulation recording units 16a to A09 along the original time series, and outputs them to the outside of the video recording apparatus 10. The example of the video acquisition operation of the video recording apparatus 10 has been described above.

本実施の形態の映像記録装置10は、階層符号化した基本レイヤと拡張レイヤの合計符号量をあらかじめ定められたサイズに固定して循環記録を行うので、循環記録部16a〜16fの記録領域に隙間なく映像ストリームを記録することが可能で、映像ストリームの取得を高速に行うことが可能である。   Since the video recording apparatus 10 according to the present embodiment performs cyclic recording with the total code amount of the hierarchically encoded base layer and enhancement layer fixed to a predetermined size, the video recording apparatus 10 in the recording areas of the cyclic recording units 16a to 16f. A video stream can be recorded without a gap, and a video stream can be acquired at high speed.

また、映像記録装置10は、Iフレーム、Pフレーム、Bフレームごとにそれぞれ別の循環記録部16a〜16fに記録するので、古い映像ほどフレームレートを下げて記録することが可能である。   Further, since the video recording apparatus 10 records each of the I frame, the P frame, and the B frame in different circulation recording units 16a to 16f, the older video can be recorded at a lower frame rate.

また、映像記録装置10は、基本レイヤ側ストリームと拡張レイヤ側ストリームごとにそれぞれ別の循環記録部16a〜16fに記録するので、画質を選択して映像ストリームを取得することが可能である。   Further, since the video recording apparatus 10 records each of the base layer side stream and the enhancement layer side stream in different circulation recording units 16a to 16f, it is possible to select the image quality and acquire the video stream.

また、映像記録装置10は、循環記録部16a〜16fの記録領域のセクタの先頭に基本レイヤの符号量を記録しているので、基本レイヤのみの取得を高速に行うことが可能である。   Moreover, since the video recording apparatus 10 records the code amount of the base layer at the head of the sector in the recording area of the circulating recording units 16a to 16f, it is possible to acquire only the base layer at high speed.

以上、本発明の映像記録装置について、実施の形態を挙げて詳細に説明したが、本発明は上記の実施の形態に限定されるものではない。例えば、循環記録部16a〜16fは、基本レイヤ側ストリームを記録する際に、セクタの先頭に基本レイヤの符号量をヘッダとして記録してもよい。これにより、映像取得信号が基本レイヤのみ取得することを指示するものであった場合に、ストリーム取得部18は、セクタを先頭から順に探索することなく、ヘッダを参照して基本レイヤの最後尾を高速に知ることが可能である。   The video recording apparatus of the present invention has been described in detail with reference to the embodiment, but the present invention is not limited to the above embodiment. For example, when recording the base layer side stream, the circular recording units 16a to 16f may record the code amount of the base layer as a header at the head of the sector. As a result, when the video acquisition signal indicates that only the base layer is to be acquired, the stream acquisition unit 18 refers to the header and searches for the end of the base layer without searching the sectors in order from the top. It is possible to know at high speed.

本発明は、画質や解像度を任意に選択して高速にフレームを取得することが可能であるというすぐれた効果を有し、複数台の監視カメラで構成され、大量の映像を効率良く記録し検索する必要があるリアルタイム映像監視システムにおける映像記録装置等として有用である。   The present invention has an excellent effect that frames can be acquired at high speed by arbitrarily selecting image quality and resolution. The present invention is composed of a plurality of surveillance cameras, and records and searches a large amount of video efficiently. It is useful as a video recording device or the like in a real-time video monitoring system that needs to be performed.

本発明の実施の形態による映像記録装置の構成を示す図The figure which shows the structure of the video recording apparatus by embodiment of this invention 本発明の実施の形態による映像記録装置の映像記録の動作を示すフローチャートThe flowchart which shows the video recording operation | movement of the video recording device by embodiment of this invention. (a)原画像の入力順序に並べたフレームの符号化のタイプを示す概念図 (b)映像ストリームとして生成する順序に並べたフレームの符号化のタイプを示す概念図(A) Conceptual diagram showing types of encoding of frames arranged in the input order of the original image (b) Conceptual diagram showing types of encoding of frames arranged in the order of generation as a video stream (a)ストリーム調整処理前の映像ストリームの概念図 (b)ストリーム調整処理後の映像ストリームの概念図(A) Conceptual diagram of video stream before stream adjustment processing (b) Conceptual diagram of video stream after stream adjustment processing 本発明の実施の形態による循環記録の概念図Conceptual diagram of circular recording according to an embodiment of the present invention 本発明の実施の形態による映像記録装置の映像取得の動作を示すフローチャートThe flowchart which shows the image | video acquisition operation | movement of the video recording device by embodiment of this invention.

符号の説明Explanation of symbols

10 映像記録装置
12 映像符号化部
14 ストリーム調整部
16a〜16f 循環記録部
18 ストリーム取得部
20 記録領域
22 最も新しいフレームの映像ストリームが記録されたセクタ
24 最も古いフレームの映像ストリームが記録されたセクタ

DESCRIPTION OF SYMBOLS 10 Video recording device 12 Video encoding part 14 Stream adjustment part 16a-16f Circulation recording part 18 Stream acquisition part 20 Recording area 22 The sector where the video stream of the newest frame was recorded 24 The sector where the video stream of the oldest frame was recorded

Claims (7)

階層符号化された複数のフレームからなる映像ストリームを入力する映像ストリーム入力手段と、
前記フレームのデータ長を調整し、複数種類の記録用データを生成する記録用データ生成手段と、
前記記録用データの種類に対応する、前記記録用データを記録するための複数の循環記録手段と、
を備えた映像記録装置。
Video stream input means for inputting a video stream composed of a plurality of hierarchically encoded frames;
Recording data generation means for adjusting the data length of the frame and generating a plurality of types of recording data;
A plurality of circulating recording means for recording the recording data corresponding to the type of the recording data;
A video recording device comprising:
前記記録用データ生成手段は、前記フレームの符号化タイプに応じて異なる種類の前記記録用データを生成する請求項1に記載の映像記録装置。   The video recording apparatus according to claim 1, wherein the recording data generation unit generates different types of recording data according to an encoding type of the frame. 前記記録用データ生成手段は、一の前記フレームから複数の記録用データを生成する請求項1に記載の映像記録装置。   The video recording apparatus according to claim 1, wherein the recording data generating unit generates a plurality of recording data from one frame. 前記記録用データ生成手段は、前記フレームに含まれる基本レイヤおよび拡張レイヤのうちの、少なくとも基本レイヤを含む長さの記録用データを生成する請求項1に記載の映像記録装置。   The video recording apparatus according to claim 1, wherein the recording data generation unit generates recording data having a length including at least a basic layer among a basic layer and an enhancement layer included in the frame. 前記循環記録手段は、前記基本レイヤの長さを示す情報を前記フレームと共に記録する請求項4に記載の映像記録装置。   The video recording apparatus according to claim 4, wherein the circulating recording unit records information indicating a length of the base layer together with the frame. 階層符号化された複数のフレームからなる映像ストリームを入力する映像ストリーム入力ステップと、
前記フレームのデータ長を調整し、複数種類の記録用データを生成する記録用データ生成ステップと、
前記記録用データの種類に対応する循環記録手段に、前記記録用データを記録する循環記録ステップと、
を備えた映像記録方法。
A video stream input step of inputting a video stream consisting of a plurality of frames that are hierarchically encoded;
A recording data generation step of adjusting the data length of the frame and generating a plurality of types of recording data;
A circular recording step of recording the recording data on a circular recording means corresponding to the type of the recording data;
A video recording method comprising:
階層符号化された複数のフレームからなる映像ストリームを記録するために、コンピュータに、
前記映像ストリームを入力する映像ストリーム入力ステップと、
前記フレームのデータ長を調整し、複数種類の記録用データを生成する記録用データ生成ステップと、
前記記録用データの種類に対応する循環記録手段に、前記記録用データを記録する循環記録ステップと、
を実行させるプログラム。

In order to record a video stream consisting of a plurality of hierarchically encoded frames,
A video stream input step for inputting the video stream;
A recording data generation step of adjusting the data length of the frame and generating a plurality of types of recording data;
A circular recording step of recording the recording data on a circular recording means corresponding to the type of the recording data;
A program that executes

JP2004295094A 2004-10-07 2004-10-07 Apparatus and method for recording video Pending JP2008004973A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2004295094A JP2008004973A (en) 2004-10-07 2004-10-07 Apparatus and method for recording video
PCT/JP2005/013083 WO2006038361A1 (en) 2004-10-07 2005-07-14 Video recording device and video recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004295094A JP2008004973A (en) 2004-10-07 2004-10-07 Apparatus and method for recording video

Publications (1)

Publication Number Publication Date
JP2008004973A true JP2008004973A (en) 2008-01-10

Family

ID=36142446

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004295094A Pending JP2008004973A (en) 2004-10-07 2004-10-07 Apparatus and method for recording video

Country Status (2)

Country Link
JP (1) JP2008004973A (en)
WO (1) WO2006038361A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0564144A (en) * 1991-07-08 1993-03-12 Olympus Optical Co Ltd Picture memory device
JPH05266597A (en) * 1992-03-18 1993-10-15 Matsushita Electric Ind Co Ltd Digital magnetic recording device and digital magnetic reproducing device
JP2000261788A (en) * 1999-03-09 2000-09-22 Toshiba Corp Monitor device using image

Also Published As

Publication number Publication date
WO2006038361A1 (en) 2006-04-13

Similar Documents

Publication Publication Date Title
TWI603609B (en) Constraints and unit types to simplify video random access
KR102058759B1 (en) Signaling of state information for a decoded picture buffer and reference picture lists
US6989868B2 (en) Method of converting format of encoded video data and apparatus therefor
RU2407217C2 (en) System and method for efficient adaptation of scalable flows
US7613727B2 (en) Method and apparatus for supporting advanced coding formats in media files
US20030093810A1 (en) Video data transmitting/receiving method and video monitor system
US20040167925A1 (en) Method and apparatus for supporting advanced coding formats in media files
JP2015501098A5 (en)
JP2010141900A (en) Method and apparatus for supporting avc in mp4
US8032719B2 (en) Method and apparatus for improved memory management in data analysis
JP2001526859A (en) Instruction and editing method of compressed image on world wide web and architecture
US8189687B2 (en) Data embedding apparatus, data extracting apparatus, data embedding method, and data extracting method
KR20060063605A (en) Method and apparatus for encoding video signal, and transmitting and decoding the encoded data
CN106464941A (en) Information processing device and method
JP2004187161A (en) Moving video data processing equipment and moving video data processing method
JP2005524128A (en) Method and apparatus for supporting AVC in MP4
JP2006115336A (en) Moving image encoder and control method thereof
JP4734047B2 (en) Process and apparatus for compressing video documents
JP2010124479A (en) Method and apparatus for supporting avc in mp4
JP3462267B2 (en) Information communication terminal equipment
JP2006507553A (en) Method and apparatus for supporting AVC in MP4
US9105299B2 (en) Media data encoding apparatus and method
JP2008004973A (en) Apparatus and method for recording video
CN114514752A (en) Application prospective interactive selection information for interactive playback of DASH content
TW201531092A (en) Motion video predict coding method, motion video predict coding device, motion video predict coding program, motion video predict decoding method, motion video predict decoding device, and motion video predict decoding program