JP2007234124A - Content data recorder, content data recording method, and program for recording content data - Google Patents
Content data recorder, content data recording method, and program for recording content data Download PDFInfo
- Publication number
- JP2007234124A JP2007234124A JP2006054510A JP2006054510A JP2007234124A JP 2007234124 A JP2007234124 A JP 2007234124A JP 2006054510 A JP2006054510 A JP 2006054510A JP 2006054510 A JP2006054510 A JP 2006054510A JP 2007234124 A JP2007234124 A JP 2007234124A
- Authority
- JP
- Japan
- Prior art keywords
- data
- content
- content data
- information
- 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
Landscapes
- Television Signal Processing For Recording (AREA)
- Closed-Circuit Television Systems (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
Description
本発明は、コンテンツデータ記録装置、コンテンツデータ記録方法、及びコンテンツデータ記録用プログラムに係り、特に監視映像と監視場所付近で集音された音声との少なくとも一方のコンテンツデータをディスク記録媒体に記録する監視システム等に適用可能な、コンテンツデータ記録装置、コンテンツデータ記録方法、及びコンテンツデータ記録用プログラムに関する。 The present invention relates to a content data recording device, a content data recording method, and a content data recording program, and in particular, records at least one content data of a monitoring video and a sound collected near a monitoring location on a disk recording medium. The present invention relates to a content data recording apparatus, a content data recording method, and a content data recording program that can be applied to a monitoring system or the like.
複数のWebカメラから取得される画像データ(音声データを含むものであってもよい。)を同期させて蓄積及び再生する映像閲覧システムにおける記録方法には、ディスク記録装置に、Webカメラ毎の固定の循環記録領域を予め確保しておき、画像データを時刻情報と共に記録する方法が知られている(例えば、特許文献1を参照)。
複数の監視カメラそれぞれから供給された映像データをディスク記録装置に記録する映像監視システムにおいては、画像データのデータ量と画像品質との関係において効率的なデータ通信及びデータ記録が可能なJPEG方式やMPEG方式等による符号化方式を利用することが多い。映像監視システムにおける映像データのデータ圧縮処理としてモーションJPEG方式を適用した場合、画像サイズ、圧縮率、フレームレート等によって1フレームあたりの圧縮画像データ量に大きな差がでることとなる。また、データ圧縮処理においては、画像の複雑さによっても圧縮画像データ量に差が出るため、特に映像監視分野においては、監視カメラの撮像対象(監視場所)の違いや、同じ場所でも昼間や夜間といった撮像する時間帯の違いによっても圧縮画像データ量に大きな差が出る。 In a video surveillance system that records video data supplied from each of a plurality of surveillance cameras on a disk recording device, a JPEG system capable of efficient data communication and data recording in relation to the amount of image data and image quality, In many cases, an encoding system such as the MPEG system is used. When the motion JPEG method is applied as data compression processing of video data in the video surveillance system, a large difference is produced in the amount of compressed image data per frame depending on the image size, compression rate, frame rate, and the like. Also, in data compression processing, the amount of compressed image data varies depending on the complexity of the image. Therefore, particularly in the video surveillance field, the difference in the imaging target (monitoring location) of the surveillance camera, daytime and nighttime even at the same location. There is a large difference in the amount of compressed image data due to the difference in the imaging time zone.
さらに、記録装置においては、例えばドアの開閉センサからの検知信号を記録開始トリガとして圧縮画像データや非圧縮画像データを記録することも一般的に行われているが、記録開始トリガの発生頻度はセンサの設置状況に大きく依存するものである。さらにまた、監視の対象が撮像映像でなく集音した音声である場合は、単位時間あたりの音声データ量(データ圧縮した場合は、圧縮音声データ量)は映像データ量よりもかなり少ないことが想定される。以上のことから、複数の監視カメラそれぞれから記録装置に供給される単位時間あたりの圧縮画像データ量や圧縮音声データ量は、監視カメラ毎や時間帯、更には監視の対象によって異なるのが通常である。 Furthermore, in a recording apparatus, for example, compressed image data and uncompressed image data are generally recorded using a detection signal from a door opening / closing sensor as a recording start trigger. This greatly depends on the installation status of the sensor. Furthermore, when the target of monitoring is not the captured video but the collected audio, the amount of audio data per unit time (when compressed, the amount of compressed audio data) is assumed to be much smaller than the amount of video data. Is done. From the above, the amount of compressed image data and compressed audio data per unit time supplied to the recording device from each of a plurality of surveillance cameras usually differs depending on the surveillance camera, the time zone, and the monitoring target. is there.
前述した従来方式による、監視カメラ毎に固定の循環記録領域を割り当てて画像データを記録する記録方法を映像監視システムに採用した場合、画像データを保有しておきたい期間(例えば1ヶ月)分のデータ記録領域を予め割り当てておく必要がある。この場合、データ記録領域のサイズを決定するにあたり、前述したような事情により監視カメラの設置場所、稼動時間帯、データの種別等の様々な要件を考慮しなければならず、システム設定が困難且つ煩雑となる問題がある。また、監視カメラの台数の増加に応じて固定の循環記録領域の数も増加させる必要があるため、システムの柔軟性に問題がある。さらに、特定時間帯に記録された全ての画像データを取り出したい場合には、その特定時間帯の部分をそれぞれ切り出し、その部分だけを別途保存するといった煩雑な操作を要するため利便性を損なうという問題がある。 When the recording method of allocating a fixed circular recording area for each surveillance camera and recording image data according to the conventional method described above is adopted in the video surveillance system, the period for which the image data is desired to be retained (for example, one month) It is necessary to allocate a data recording area in advance. In this case, when determining the size of the data recording area, various conditions such as the installation location of the surveillance camera, the operation time zone, the data type, etc. must be taken into account due to the circumstances as described above, and the system setting is difficult. There is a complicated problem. Further, since it is necessary to increase the number of fixed circulating recording areas as the number of surveillance cameras increases, there is a problem in the flexibility of the system. Furthermore, when all the image data recorded in a specific time zone is to be taken out, a problem arises in that convenience is impaired because a complicated operation such as cutting out the portion of the specific time zone and saving only that portion separately is required. There is.
さらにまた、記録媒体としてハードディスクを用いてデータを記録する場合には、書込みヘッダがディスク面上を移動するためのシーク時間が必要となるが、複数の監視カメラからの画像データ毎にハードディスクへの書込み動作を行うと、監視カメラの台数の増加に伴ってハードディスクへの書込み回数も増加するため、シーク時間の総和も監視カメラの台数に伴って増加する。その結果、単位時間あたりの記録能力に限界が生ずるという問題もある。 Furthermore, when data is recorded using a hard disk as a recording medium, a seek time is required for the write header to move on the disk surface. When the writing operation is performed, the number of times of writing to the hard disk increases with an increase in the number of surveillance cameras, so that the total seek time also increases with the number of surveillance cameras. As a result, there is a problem that the recording capacity per unit time is limited.
そこで、本発明は上述した問題に鑑みてなされたものであり、その目的は、複数のコンテンツデータの供給元から供給されたコンテンツデータをディスク記録媒体に記録する際に、コンテンツデータ供給元毎に固定の循環記録領域を割り当てる必要がなく、当該発明が適用される装置のシステム設定を容易にすると共に、システム構築の柔軟性を発揮することを可能とする、コンテンツデータ記録装置、コンテンツデータ記録方法、及びコンテンツデータ記録用プログラムを提供することを目的とする。 Therefore, the present invention has been made in view of the above-described problems, and the object of the present invention is to record content data supplied from a plurality of content data supply sources for each content data supply source when recording the content data on a disk recording medium. Content data recording apparatus and content data recording method that do not require allocation of a fixed circular recording area, facilitate system setting of an apparatus to which the present invention is applied, and exhibit system construction flexibility And a content data recording program.
また、本発明は、複数のコンテンツデータを単一のデータファイルに所定時間分まとめて記録することにより、ディスク記録媒体への書込み動作を効率的に実行し得る、コンテンツデータ記録装置、コンテンツデータ記録方法、及びコンテンツデータ記録用プログラムを提供することを目的とする。 The present invention also provides a content data recording apparatus, content data recording, which can efficiently execute a write operation to a disk recording medium by recording a plurality of content data together in a single data file for a predetermined time. It is an object to provide a method and a program for recording content data.
複数のコンテンツデータを受信してディスク記録媒体(37)に記録するコンテンツデータ記録装置において、
前記受信された複数のコンテンツデータそれぞれに対応させて複数の通信モジュール(33−1〜33−n)を作成すると共に、これら作成された複数の通信モジュールのそれぞれに、前記対応するコンテンツデータを所定のブロックデータに分割して、このブロックデータとこれのデータサイズと受信時刻情報とを関連付けた情報を順次記憶する通信モジュール生成手段(34)と、
所定の単位時間(TS〜TS+T)毎に、前記複数の通信モジュールのそれぞれから、前記記憶された情報を順次取得して該情報のうちのブロックデータをコンテンツデータテーブル(62)に格納すると共に、前記ブロックデータに関連付けられた受信時刻情報と前記コンテンツテーブルにおける前記ブロックデータの相対アドレス情報と前記ブロックデータのデータサイズと前記ブロックデータに対応するコンテンツデータの情報識別子とを関連付けて検索情報テーブル(63)に格納し、この検索情報テーブルのデータサイズを算出してこのデータサイズと前記検索情報テーブルと前記コンテンツテーブルとを一のデータファイルに格納し、前記ディスク記録媒体に記録するデータ再構成手段(36)とを備え、
所望の時間分受信した前記複数のコンテンツデータを、前記所定の単位時間毎の複数の前記データファイルとして前記ディスク記録媒体に記録するよう構成したことを特徴とするコンテンツデータ記録装置(13)
を提供するものである。
In a content data recording apparatus for receiving a plurality of content data and recording it on a disc recording medium (37),
A plurality of communication modules (33-1 to 33-n) are created corresponding to each of the received plurality of content data, and the corresponding content data is assigned to each of the created plurality of communication modules. Communication module generating means (34) for sequentially storing information in which the block data, the data size thereof and the reception time information are associated with each other.
For each predetermined unit time (TS to TS + T), the stored information is sequentially acquired from each of the plurality of communication modules, and block data of the information is stored in the content data table (62). A search information table (63) that associates reception time information associated with the block data, relative address information of the block data in the content table, a data size of the block data, and an information identifier of content data corresponding to the block data. The data reconstructing means for calculating the data size of the search information table, storing the data size, the search information table, and the content table in one data file and recording them on the disc recording medium ( 36)
A content data recording apparatus (13) configured to record the plurality of content data received for a desired time on the disk recording medium as the plurality of data files for each predetermined unit time
Is to provide.
請求項2に記載の発明は、
受信された複数のコンテンツデータをディスク記録媒体(37)に記録するコンテンツデータ記録方法において、
前記受信された複数のコンテンツデータそれぞれに対応させて複数の通信モジュール(33−1〜33−n)を作成し、これら作成された複数の通信モジュールのそれぞれに、前記対応するコンテンツデータを所定のブロックデータに分割して、このブロックデータとこれのデータサイズと受信時刻情報とを関連付けた情報を順次記憶する第1ステップを有する一方、
所定の単位時間(TS〜TS+T)毎に、前記複数の通信モジュールのそれぞれから、前記記憶された情報を順次取得して該情報のうちのブロックデータをコンテンツデータテーブル(62)に格納し、前記ブロックデータに関連付けられた受信時刻情報と前記コンテンツテーブルにおける前記ブロックデータの相対アドレス情報と前記ブロックデータのデータサイズと前記ブロックデータに対応するコンテンツデータの情報識別子とを関連付けて検索情報テーブル(63)に格納し、この検索情報テーブルのデータサイズを算出してこのデータサイズと前記検索情報テーブルと前記コンテンツテーブルとを一のデータファイルに格納し、前記ディスク記録媒体に記録する第2ステップ(S901〜S912)を有し、
所望の時間分受信された前記複数のコンテンツデータを、前記所定の単位時間毎の複数の前記データファイルとして前記ディスク記録媒体に記録することを特徴とするコンテンツデータ記録方法
を提供するものである。
The invention described in
In a content data recording method for recording a plurality of received content data on a disk recording medium (37),
A plurality of communication modules (33-1 to 33-n) are created corresponding to each of the plurality of received content data, and the corresponding content data is assigned to each of the created plurality of communication modules. While having a first step of dividing into block data and sequentially storing information in which the block data is associated with the data size and reception time information,
For each predetermined unit time (TS to TS + T), the stored information is sequentially obtained from each of the plurality of communication modules, and block data of the information is stored in the content data table (62). A search information table (63) associating reception time information associated with block data, relative address information of the block data in the content table, a data size of the block data, and an information identifier of content data corresponding to the block data The second step of calculating the data size of the search information table, storing the data size, the search information table, and the content table in one data file and recording them on the disc recording medium (S901- S912)
The content data recording method is characterized in that the plurality of content data received for a desired time are recorded on the disk recording medium as the plurality of data files for each predetermined unit time.
請求項3に記載の発明は、
受信された複数のコンテンツデータをディスク記録媒体(37)に記録するようコンピュータ(13)が実行するコンテンツデータ記録用プログラムであって、
前記受信された複数のコンテンツデータそれぞれに対応させて複数の通信モジュール(33−1〜33−n)を作成し、これら作成された複数の通信モジュールのそれぞれに、前記対応するコンテンツデータを所定のブロックデータに分割して、このブロックデータとこれのデータサイズと受信時刻情報とを関連付けた情報を順次記憶する第1ステップを有する一方、
所定の単位時間(TS〜TS+T)毎に、前記複数の通信モジュールのそれぞれから、前記記憶された情報を順次取得して該情報のうちのブロックデータをコンテンツデータテーブル(62)に格納し、前記ブロックデータに関連付けられた受信時刻情報と前記コンテンツテーブルにおける前記ブロックデータの相対アドレス情報と前記ブロックデータのデータサイズと前記ブロックデータに対応するコンテンツデータの情報識別子とを関連付けて検索情報テーブル(63)に格納し、この検索情報テーブルのデータサイズを算出してこのデータサイズと前記検索情報テーブルと前記コンテンツテーブルとを一のデータファイルに格納し、前記ディスク記録媒体に記録する第2ステップ(S901〜S912)を有し、
所望の時間分受信された前記複数のコンテンツデータを、前記所定の単位時間毎の複数の前記データファイルとして前記ディスク記録媒体に記録するよう実行するコンテンツデータ記録用プログラム
を提供するものである。
The invention described in claim 3
A content data recording program executed by a computer (13) to record a plurality of received content data on a disk recording medium (37),
A plurality of communication modules (33-1 to 33-n) are created in correspondence with each of the received plurality of content data, and the corresponding content data is assigned to each of the created plurality of communication modules. While having a first step of dividing into block data and sequentially storing information in which the block data is associated with the data size and reception time information,
Every predetermined unit time (TS to TS + T), the stored information is sequentially obtained from each of the plurality of communication modules, and block data of the information is stored in the content data table (62). A search information table (63) associating reception time information associated with block data, relative address information of the block data in the content table, a data size of the block data, and an information identifier of content data corresponding to the block data The second step of calculating the data size of the search information table, storing the data size, the search information table, and the content table in one data file and recording them on the disc recording medium (S901- S912)
The present invention provides a content data recording program for executing the recording of the plurality of content data received for a desired time on the disc recording medium as the plurality of data files for each predetermined unit time.
本発明によれば、受信した複数のコンテンツデータを、所定の単位時間毎に一のデータファイルへ検索情報テーブルとコンテンツデータテーブルとを関連付けて格納し、このデータファイルをディスク記録媒体に記録する構成としたため、ディスク記録媒体のデータ記録領域を記録に先立って固定の領域分割をする必要がなくコンテンツデータを記録することができる。これにより、装置のシステム設定を容易にすると共に、システム構築の柔軟性を発揮することができる。 According to the present invention, a plurality of received content data are stored in association with a search information table and a content data table in one data file every predetermined unit time, and the data file is recorded on a disk recording medium. Therefore, it is not necessary to divide the data recording area of the disk recording medium prior to recording, and content data can be recorded. Thereby, the system setting of the apparatus can be facilitated and the flexibility of system construction can be exhibited.
また、本発明によれば、コンテンツデータの数が増加した場合でも、ディスク記録媒体への書込み動作の回数が比例的に増加することがないので効率よくデータ記録処理ができ、システムの拡張性が高い。 In addition, according to the present invention, even when the number of content data increases, the number of write operations to the disk recording medium does not increase proportionally, so that data recording processing can be performed efficiently, and system expandability is improved. high.
以下、本発明を実施するための最良の形態について図面を参照して詳細に説明する。まず、図1に本発明の実施形態を適用した監視システムの全体構成を示す。同図において、監視システム1は、ネットワークカメラ11−1〜11−6のそれぞれとデータ記録装置13とがネットワーク14を介して接続された構成を有している。そして、カメラ11−5及び11−6には、マイク12−1及び12−2がそれぞれ接続されている。
Hereinafter, the best mode for carrying out the present invention will be described in detail with reference to the drawings. First, FIG. 1 shows the overall configuration of a monitoring system to which an embodiment of the present invention is applied. In the figure, the
このような構成の監視システム1において、データ記録装置13は、監視システム1全体を制御するコントローラとしての機能を有しており、ネットワークカメラ11−1〜11−6をそれぞれ制御して、各ネットワークカメラに監視対象を撮像させたり、各マイクから集音させたりすることができる。そして、ネットワークカメラ11−1〜11−6で撮像された各映像データは、各ネットワークカメラ内部でJPEG方式によりデータ圧縮された後、データ記録装置13に送信されて記録される。また、マイク12−1及び12−2で集音された音声データも、それぞれ接続されたネットワークカメラ11−5及び11−6内部でG711方式によりデータ圧縮された後、データ記録装置13に送信されて記録される。以下、データ記録装置13が受信して記録するデータをコンテンツデータと記載する。
In the
次に、監視システム1を構成する各機器について説明する。図2に本実施形態におけるネットワークカメラ11−1〜11−6それぞれ(以下、このように各ネットワークカメラをいう場合は、適宜ネットワークカメラ11と記載する。)の概略内部構成を示す。同図において、ネットワークカメラ11は、撮像レンズ等の光学系21と、CCD等の光電変換手段としての撮像部22と、撮像された画像データをJPEG方式によりデータ圧縮処理する画像データ処理部23と、マイク入力端子を介して接続されたマイク12−1又は12−2のいずれかからのマイク入力信号とライン入力端子を介して接続された外部装置からのライン入力信号とを選択的に入力してG711方式によりデータ圧縮処理する音声データ処理部24と、画像データ処理部23及び音声データ処理部24から供給された圧縮データをIPパケットにフォーマット変換してネットワーク14に送出すると共に、データ記録装置13から送信された各種制御コマンド等を受信して後述する制御部26に出力するためのネットワークインターフェース部25と、ネットワークカメラ11内部の各構成部を制御するための制御部26とを備えている。
Next, each device constituting the
なお、ネットワークカメラ11は、必ずしも音声データ処理部24を備えている必要はなく、また、音声データ処理部24は、マイク入力端子及びライン入力端子の両方を必ずしも備えている必要はない。また、映像データや音声データのデータ圧縮方式はJPEG方式やG711方式に限ることなく、その他の公知のデータ圧縮方式によるものであってよい。更に、ネットワークカメラ11内部においてデータ圧縮処理を行わない構成としてもよい。
Note that the
次に、本実施形態におけるデータ記録装置13について説明する。データ記録装置13は、ハードディスクドライブのようなディスク記録装置とネットワークインターフェース部とを備えた一般的なコンピュータ、例えばパーソナルコンピュータ(PC)で構成可能な装置である。データ記録装置13をPCで構成した場合、データ記録装置13は、既知のオペレーティングシステム(OS)が動作し、そしてこのOSによるシステム制御のもと制御プログラムがCPUにより実行されて、コンテンツデータのディスク記録装置への記録が実行される。
Next, the
次に、図3にデータ記録装置13の主要な機能であるコンテンツデータの記録機能について関係する部分の概略機能ブロックを示して説明する。同図において、データ記録装置13は、通信インターフェース部31と、カメラ情報記憶部32と、通信モジュール33−1〜33−n(nはコンテンツデータ発生源の数であり、1以上の整数)を作成して管理する通信モジュール生成部34と、計時部35と、データ再構成部36と、データ記録部37とを主要な機能として備えている。
Next, FIG. 3 shows a schematic functional block of a part related to the content data recording function, which is the main function of the
上記構成において、通信インターフェース部31は、ネットワークカメラ11から送信されるIPパケット化されたコンテンツデータを、例えばHTTP(Hyper Text Transport Protocol)や、RTP(Real−time Transport Protocol)等の通信手順に従って受信し、パケットデータからコンテンツデータを抽出して通信モジュール生成部34に供給する機能を有する。
In the above configuration, the
カメラ情報記憶部32は、ネットワークカメラ11のネットワーク14におけるアドレス情報(例えばIPアドレス)と、単位時間(例えば1秒)あたりの画像取得枚数(フレームレート)と、必要に応じて音声ビットレートとを含む、データ通信やデータ記録に関するカメラ情報を記憶する機能を有する。実際には、制御プログラムの起動時に、カメラ情報が記録された設定ファイルが不図示のメモリ上に読み込まれて管理される。
The camera
通信モジュール生成部34は、コンテンツデータ発生源の数をn個とした場合、一又は複数の通信モジュール33−1〜33−nを作成して管理する機能を有する。すなわち、通信モジュール生成部34は、カメラ情報記憶部32のカメラ情報を参照してコンテンツデータ発生源毎の通信モジュール33−1〜33−nを作成する。具体的には、本実施形態における図1の例によれば、nはネットワークカメラ11−1〜11−6の台数6と、マイク12−1及び12−2の台数2との合計である8であり、通信モジュール生成部34は、通信モジュール33−1〜33−8をネットワークカメラ11−1〜11−6とマイク12−1とマイク12−2とにそれぞれ対応させて作成する。
The communication module generation unit 34 has a function of creating and managing one or a plurality of communication modules 33-1 to 33-n when the number of content data generation sources is n. That is, the communication module generation unit 34 refers to the camera information in the camera
ここで、図4に通信モジュール33−1〜33−nのうちのいずれか一(以下、これを適宜通信モジュール33と記載する。)の概略の機能構成ブロックを示す。同図において、通信モジュール33は、データ受信部41と、受信時刻付加部42と、受信データバッファ部43とを備えている。データ受信部41は、通信インターフェース部31を介してネットワークカメラ11から供給されたコンテンツデータを、データ種別に応じたブロックデータとして形成する。すなわち、例えばデータ種別がJPEGである場合は、1フレーム分のJPEG圧縮画像データを1ブロックデータとみなし、データ種別がG711である場合は、所定パケット分のPCMデータを1ブロックデータとみなす。
Here, FIG. 4 shows a schematic functional configuration block of any one of the communication modules 33-1 to 33-n (hereinafter referred to as the
データ受信部41は、形成された1ブロックデータとそのデータサイズとを対応付けて受信時刻付加部42に供給する。そして、受信時刻付加部42では、計時部35から現在時刻を取得し、1ブロックデータに対応付けて受信データバッファ43部に供給する。
The
そして、受信データバッファ部43は、受信時刻付加部42から供給された1ブロックデータのコンテンツデータとこのデータのデータサイズと受信時刻とを関連付けた状態で記憶する記憶領域である。受信データバッファ部43の入出力の順序は、FIFO型である。図5に受信データバッファ部43のデータ構成例を模式的に示す。
The reception
図3の説明に戻り、計時部35は時刻を取得する機能を有した時計である。なお、計時部35で取得される時刻は、時間:分:秒であってもよいし、年:月:日をも含む日時情報であってもよい。本実施形態においては、時刻は時間:分:秒として説明する。
Returning to the description of FIG. 3, the
そして、データ記録部37は、ハードディスク、DVD等の光ディスク、又は半導体メモリ等の記録媒体を備えた記録手段である。特に、データ記録部37は、ハードディスクのような高速アクセスが可能であって比較的低コストな記録媒体を用いることが好ましく、本実施形態ではハードディスクによる記録手段を備えているものとする。
The
次に、データ再構成部36について図6の概略の内部構成ブロックを併せ参照して説明する。同図において、データ再構成部36は、通信モジュール33−1〜33−nそれぞれの受信データバッファ部43から、受信時刻とコンテンツデータとデータサイズとの組を取得して、コンテンツデータテーブル62と検索情報テーブル63とを生成する。データ再構成部36は、実際には制御プログラム内で管理されるスレッドとして実行されるデータ保存制御部61によって動作する。
Next, the
図9に本実施形態におけるデータ保存制御部61の動作例を表すフローチャートを示して説明する。制御プログラムが起動して同図に示す処理を実行するスレッドが開始されると、計時部35から現在時刻を取得してコンテンツデータ保存時刻TSに設定する(ステップS901)。次に、10m秒のスリープ動作を実行する(ステップS902)。ここで、スリープ動作とは、10m秒間何の処理も実行せずに待機することをいう。
FIG. 9 is a flowchart illustrating an example of the operation of the data
次に、再び計時部35から現在時刻を取得してコンテンツデータ保存時刻TSとの差分を計算し、この差分値とファイル保存単位時間Tとを比較する(ステップS903)。ファイル保存単位時間Tは、1つのファイルに記録されるコンテンツデータの受信時間の範囲を指すものであり、本実施形態では5秒が設定されるものとする。すなわち、例えばコンテンツデータ保存時刻TSを10:10:00とした場合、ファイル保存単位時間Tは5秒であるので、10:10:00から10:10:05までのネットワークカメラ11−1〜11−6から供給されるコンテンツデータを1つのファイルに保存することになる。
Next, the current time is acquired again from the
ステップS903において、現在時刻とコンテンツデータ保存時刻TSとの差がファイル保存単位時間Tより短い間は、ステップS902に戻り再度スリープ動作を実行する。一方、現在時刻とコンテンツデータ保存時刻TSとの差がファイル保存単位時間Tと等しいか長いと判定された場合は、ステップS904以降の通信モジュール33−1〜33−nからのデータ取得処理に移行する。 In step S903, while the difference between the current time and the content data storage time TS is shorter than the file storage unit time T, the process returns to step S902 to execute the sleep operation again. On the other hand, if it is determined that the difference between the current time and the content data storage time TS is equal to or longer than the file storage unit time T, the process proceeds to data acquisition processing from the communication modules 33-1 to 33-n after step S904. To do.
以下、ステップS904以降の通信モジュール33−1〜33−nからのデータ取得処理について説明する。まず、通信モジュールインデックスD(D=1〜n)を1に初期化する(ステップS904)。次に、通信モジュールインデックスDに対応させた通信モジュール33−Dより、コンテンツデータ保存時刻TSからTS+Tまでの受信時刻とコンテンツデータとデータサイズとの組を全て取得する(ステップS905)。次に、取得されたデータの中からコンテンツデータのみをコンテンツデータテーブル62に記録する(ステップS906)。 Hereinafter, data acquisition processing from the communication modules 33-1 to 33-n after step S904 will be described. First, the communication module index D (D = 1 to n) is initialized to 1 (step S904). Next, all combinations of the reception time, content data, and data size from the content data storage time TS to TS + T are acquired from the communication module 33-D corresponding to the communication module index D (step S905). Next, only content data among the acquired data is recorded in the content data table 62 (step S906).
ここで、図7にコンテンツデータテーブル62のデータ構成例を模式的に示す。同図に示すように、コンテンツデータテーブル62には、コンテンツデータが書込み順に記録される。 Here, FIG. 7 schematically shows a data configuration example of the content data table 62. As shown in the figure, content data is recorded in the content data table 62 in the order of writing.
次に、情報識別子を生成して、この情報識別子と、受信時刻と、コンテンツデータテーブル62における各コンテンツデータの相対アドレスと、各コンテンツデータのデータサイズとを関連付けて検索情報テーブル63に記録する(ステップS907)。この生成される情報識別子とは、通信モジュール毎にユニークな情報であり、例えば対応するネットワークカメラのIPアドレスとデータ種別とを組み合わせた情報で構成される。具体的には、ネットワークカメラ11−1のIPアドレスが123.22.10.1であり、データ種別がJPEG方式による画像データである場合の情報識別子は、「123.22.10.1−JPEG」とし、またネットワークカメラ11−5のIPアドレスが123.22.10.5であり、データ種別がG711方式による音声データである場合の情報識別子は、「123.22.10.5−G711」とする。 Next, an information identifier is generated, and this information identifier, the reception time, the relative address of each content data in the content data table 62, and the data size of each content data are associated and recorded in the search information table 63 ( Step S907). This generated information identifier is unique information for each communication module, and is composed of, for example, information combining the IP address and data type of the corresponding network camera. Specifically, when the IP address of the network camera 11-1 is 123.22.10.1 and the data type is image data according to the JPEG method, the information identifier is “123.22.10.1-JPEG. In addition, when the IP address of the network camera 11-5 is 123.22.10.5 and the data type is voice data according to the G711 system, the information identifier is “123.22.10.5-G711”. And
なお、情報識別子は、コンテンツデータ発生源毎にユニークな情報でありさえすればよいので、制御プログラムの起動時においてコンテンツデータ発生源毎に予め決定されるものであってもよい。 Since the information identifier only needs to be unique information for each content data generation source, it may be determined in advance for each content data generation source when the control program is started.
図8に検索情報テーブル63のデータ構成例を模式的に示す。同図に示すように、検索情報テーブル63には、情報識別子と、受信時刻と、コンテンツデータテーブル62における各コンテンツデータの相対アドレスと、各コンテンツデータのデータサイズとの組のデータが関連付けられて書込み順に記録される。 FIG. 8 schematically shows a data configuration example of the search information table 63. As shown in the figure, the search information table 63 is associated with data of a set of an information identifier, a reception time, a relative address of each content data in the content data table 62, and a data size of each content data. Recorded in writing order.
次に、通信モジュールインデックスDを1つインクリメントし(ステップS908)、そのDの値と通信モジュールの総数nとを比較して、Dの値が総数nと等しいか又は総数nよりも小さければステップS905に戻る(ステップS909)。すなわち、全ての通信モジュール33−1〜33−nについて、コンテンツデータテーブル62及び検索情報テーブル63に同一時間帯における各種データを追記する(ステップS905〜S909)。 Next, the communication module index D is incremented by one (step S908), and the value of D is compared with the total number n of communication modules. If the value of D is equal to or smaller than the total number n, step is performed. The process returns to S905 (step S909). That is, various data in the same time zone are added to the content data table 62 and the search information table 63 for all the communication modules 33-1 to 33-n (steps S905 to S909).
一方、Dの値が総数nよりも大きい場合は、時刻情報をもとにしたデータファイルを作成する。具体的には、データファイルをオープンし、データファイルの先頭からヘッダ情報として検索情報テーブル63のテーブルサイズを、例えば10バイトの固定長数字列で記録する。そして、検索情報テーブル63のデータをファイルへ追記し、更にコンテンツデータテーブル62のデータを追記して、データファイルをクローズする(ステップS910)。これによって、コンテンツデータ保存時刻TSからTS+Tまでのデータファイルが生成される。 On the other hand, if the value of D is larger than the total number n, a data file based on the time information is created. Specifically, the data file is opened, and the table size of the search information table 63 is recorded as a header information from the top of the data file, for example, as a fixed-length numeric string of 10 bytes. Then, the data in the search information table 63 is added to the file, the data in the content data table 62 is further added, and the data file is closed (step S910). As a result, a data file from the content data storage time TS to TS + T is generated.
次に、別のデータファイル作成のためにコンテンツデータテーブル62及び検索情報テーブル63の内容を消去し(ステップS911)、コンテンツデータ保存時刻TSをTS+Tとした後(ステップS912)、ステップS902に戻る。 Next, the contents data table 62 and the search information table 63 are erased to create another data file (step S911), the content data storage time TS is set to TS + T (step S912), and the process returns to step S902.
図10に、以上説明した処理によって作成されるデータファイルのうちの1つのデータファイルにおけるデータ構造を示す。同図に示すように、1つのデータファイルには、まず先頭から10バイト領域にヘッダ情報として検索情報テーブル63のテーブルサイズが記録され、次に検索情報テーブル63のデータが記録され、その次にコンテンツデータテーブル62の情報が記録される。 FIG. 10 shows a data structure in one data file among the data files created by the processing described above. As shown in the figure, in one data file, the table size of the search information table 63 is first recorded as header information in the 10-byte area from the beginning, then the data of the search information table 63 is recorded, and then Information of the content data table 62 is recorded.
このようにして生成されたデータファイルは、コンテンツデータ保存時刻TSからファイル保存単位時間T分の全てのコンテンツデータ発生源からの整理されたコンテンツデータとしてデータ記録部37に記録される。結果として、例えば10:10:00からコンテンツデータを受信したとすれば、データ記録部37には、10:10:00〜10:10:05のデータファイル、10:10:05〜10:10:10のデータファイルというようなデータファイルが複数記録されることになる。
The data file generated in this way is recorded in the
ここで、前述したスリープ動作にかかる待機時間とファイル保存単位時間Tとの関係について説明する。スリープ動作に係る待機時間は、ファイル保存単位時間Tよりも十分に短い時間に設定する必要がある。待機時間は、長くなるにつれてバッファを多く使用することになり、短くなるにつれて処理負荷が増加することになるため、この待機時間は10m秒〜50m秒の範囲が好ましい範囲である。 Here, the relationship between the standby time required for the sleep operation and the file storage unit time T will be described. The standby time for the sleep operation needs to be set to a time sufficiently shorter than the file storage unit time T. As the waiting time becomes longer, more buffers are used, and as the waiting time becomes shorter, the processing load increases. Therefore, this waiting time is preferably in the range of 10 ms to 50 ms.
そして、ファイル保存単位時間Tは、データ記録装置13のパフォーマンスとメモリとのトレードオフの関係も考慮して決定されるべき時間である。すなわち、ファイル保存単位時間Tが短くなるにつれてデータファイルの数は増加するため、これらデータファイルからコンテンツデータを読み出す際の処理負荷が重くなりパフォーマンスが下がることになる。一方、ファイル保存単位時間Tが長くなるにつれてデータ再構成部36における必要メモリ容量が大きくなる。
The file storage unit time T is a time that should be determined in consideration of the trade-off relationship between the performance of the
データ記録装置13をPCで構成し、ハードディスクによるデータ記録部37に1時間のコンテンツデータを保存する場合の例について具体的に説明する。データ記録部37のフォルダ構成を、例えばデータ保存フォルダ→日付フォルダ→時間フォルダのように階層構造にしておき、時間フォルダの中に1時間分のコンテンツデータを保存する場合、ファイル保存単位時間Tを5秒とすると、時間フォルダに保存されるデータファイルの数は720個であり、この程度のファイル数であればPCのパフォーマンスとしては問題ない。さらに、VGAサイズ(640×480ピクセル)のJPEG画像(平均約41Kバイトとする。)で30fpsの映像データを16チャンネル分保存する場合、データ再構成部36のバッファに必要なメモリ容量は約100Mバイトとなり実用の範囲に収まる。よって、ファイル保存単位時間Tは5秒〜10秒の範囲が好ましい範囲である。
An example in which the
以上によってデータ記録部37に記録されたデータファイルを再生処理により参照する場合には、再生したい時刻に対応したデータファイルを選択し、そのデータファイルの先頭から10バイト領域に記録されている検索情報テーブル63のテーブルサイズを取得し、そしてファイルの先頭から10バイト先よりテーブルサイズ分記録されている領域から、参照したい情報識別子を検索すると共に、参照したい時刻におけるコンテンツデータの相対アドレスを取得する。そして、コンテンツデータテーブルが記録開始されているアドレスをベースとし、取得された相対アドレスをオフセットとして参照すべきコンテンツデータを特定することができる。
When the data file recorded in the
以上詳述したように、本実施形態によれば、複数のコンテンツデータ発生源、すなわちネットワークカメラ11−1〜11−6とマイク12−1とマイク12−2とからデータ記録装置13に供給されるコンテンツデータを、ファイル保存単位時間T毎に単一のデータファイルへ検索情報テーブル63とコンテンツデータテーブル62とを関連付けて記録し、これらのデータファイルをデータ記録部37に記録する構成としたため、データ記録部37のデータ蓄積領域を記録に先立って固定の領域分割をする必要がなくコンテンツデータを記録することができる。したがって、データ記録装置13のシステム設定を容易にすることができると共に、システム構築の柔軟性を発揮することができる。
As described above in detail, according to the present embodiment, a plurality of content data generation sources, that is, the network cameras 11-1 to 11-6, the microphone 12-1, and the microphone 12-2 are supplied to the
また、上記構成により、データ記録部37への書込み動作のためのシーク回数が、コンテンツデータ発生源の数の増加に対して比例的に増加せず効率よくデータ記録処理ができるため、拡張性の高い監視システムを構築することができる。
In addition, with the above configuration, the number of seeks for the write operation to the
1 監視システム
11−1〜11−6 ネットワークカメラ
12−1,12−2 マイク
13 データ記録装置
14 ネットワーク
21 光学系
22 撮像部
23 画像データ処理部
24 音声データ処理部
25 ネットワークインターフェース部
26 制御部
31 通信インターフェース部
32 カメラ情報記憶部
33−1〜33−n 通信モジュール
34 通信モジュール生成部
35 計時部
36 データ再構成部
37 データ記録部
41 データ受信部
42 受信時刻付加部
43 受信データバッファ部
61 データ保存制御部
62 コンテンツデータテーブル
63 検索情報テーブル
DESCRIPTION OF
Claims (3)
前記受信された複数のコンテンツデータそれぞれに対応させて複数の通信モジュールを作成すると共に、これら作成された複数の通信モジュールのそれぞれに、前記対応するコンテンツデータを所定のブロックデータに分割して、このブロックデータとこれのデータサイズと受信時刻情報とを関連付けた情報を順次記憶する通信モジュール生成手段と、
所定の単位時間毎に、前記複数の通信モジュールのそれぞれから、前記記憶された情報を順次取得して該情報のうちのブロックデータをコンテンツデータテーブルに格納すると共に、前記ブロックデータに関連付けられた受信時刻情報と前記コンテンツテーブルにおける前記ブロックデータの相対アドレス情報と前記ブロックデータのデータサイズと前記ブロックデータに対応するコンテンツデータの情報識別子とを関連付けて検索情報テーブルに格納し、この検索情報テーブルのデータサイズを算出してこのデータサイズと前記検索情報テーブルと前記コンテンツテーブルとを一のデータファイルに格納し、前記ディスク記録媒体に記録するデータ再構成手段とを備え、
所望の時間分受信した前記複数のコンテンツデータを、前記所定の単位時間毎の複数の前記データファイルとして前記ディスク記録媒体に記録するよう構成したことを特徴とするコンテンツデータ記録装置。 In a content data recording apparatus for receiving a plurality of content data and recording it on a disk recording medium,
A plurality of communication modules are created corresponding to each of the received plurality of content data, and the corresponding content data is divided into predetermined block data for each of the created plurality of communication modules. Communication module generation means for sequentially storing block data, information associated with the data size and reception time information;
Every predetermined unit time, the stored information is sequentially obtained from each of the plurality of communication modules, block data of the information is stored in a content data table, and reception associated with the block data is received. The time information, the relative address information of the block data in the content table, the data size of the block data, and the information identifier of the content data corresponding to the block data are stored in the search information table in association with each other, and the data of the search information table Data reconstruction means for calculating the size, storing the data size, the search information table, and the content table in one data file, and recording the data on the disk recording medium;
A content data recording apparatus configured to record the plurality of content data received for a desired time on the disc recording medium as the plurality of data files for each predetermined unit time.
前記受信された複数のコンテンツデータそれぞれに対応させて複数の通信モジュールを作成し、これら作成された複数の通信モジュールのそれぞれに、前記対応するコンテンツデータを所定のブロックデータに分割して、このブロックデータとこれのデータサイズと受信時刻情報とを関連付けた情報を順次記憶する第1ステップを有する一方、
所定の単位時間毎に、前記複数の通信モジュールのそれぞれから、前記記憶された情報を順次取得して該情報のうちのブロックデータをコンテンツデータテーブルに格納し、前記ブロックデータに関連付けられた受信時刻情報と前記コンテンツテーブルにおける前記ブロックデータの相対アドレス情報と前記ブロックデータのデータサイズと前記ブロックデータに対応するコンテンツデータの情報識別子とを関連付けて検索情報テーブルに格納し、この検索情報テーブルのデータサイズを算出してこのデータサイズと前記検索情報テーブルと前記コンテンツテーブルとを一のデータファイルに格納し、前記ディスク記録媒体に記録する第2ステップを有し、
所望の時間分受信された前記複数のコンテンツデータを、前記所定の単位時間毎の複数の前記データファイルとして前記ディスク記録媒体に記録することを特徴とするコンテンツデータ記録方法。 In a content data recording method for recording a plurality of received content data on a disk recording medium,
A plurality of communication modules are created corresponding to each of the plurality of received content data, and the corresponding content data is divided into predetermined block data for each of the created plurality of communication modules. While having a first step of sequentially storing information in which data is associated with the data size and reception time information,
Each predetermined unit time, the stored information is sequentially obtained from each of the plurality of communication modules, block data of the information is stored in a content data table, and a reception time associated with the block data Information, the relative address information of the block data in the content table, the data size of the block data, and the information identifier of the content data corresponding to the block data are stored in the search information table, and the data size of the search information table And calculating the data size, storing the search information table and the content table in one data file, and recording the data size on the disk recording medium,
A content data recording method comprising: recording the plurality of content data received for a desired time on the disc recording medium as the plurality of data files for each predetermined unit time.
前記受信された複数のコンテンツデータそれぞれに対応させて複数の通信モジュールを作成し、これら作成された複数の通信モジュールのそれぞれに、前記対応するコンテンツデータを所定のブロックデータに分割して、このブロックデータとこれのデータサイズと受信時刻情報とを関連付けた情報を順次記憶する第1ステップを有する一方、
所定の単位時間毎に、前記複数の通信モジュールのそれぞれから、前記記憶された情報を順次取得して該情報のうちのブロックデータをコンテンツデータテーブルに格納し、前記ブロックデータに関連付けられた受信時刻情報と前記コンテンツテーブルにおける前記ブロックデータの相対アドレス情報と前記ブロックデータのデータサイズと前記ブロックデータに対応するコンテンツデータの情報識別子とを関連付けて検索情報テーブルに格納し、この検索情報テーブルのデータサイズを算出してこのデータサイズと前記検索情報テーブルと前記コンテンツテーブルとを一のデータファイルに格納し、前記ディスク記録媒体に記録する第2ステップを有し、
所望の時間分受信された前記複数のコンテンツデータを、前記所定の単位時間毎の複数の前記データファイルとして前記ディスク記録媒体に記録するよう実行するコンテンツデータ記録用プログラム。 A content data recording program executed by a computer to record a plurality of received content data on a disk recording medium,
A plurality of communication modules are created corresponding to each of the plurality of received content data, and the corresponding content data is divided into predetermined block data for each of the created plurality of communication modules. While having a first step of sequentially storing information in which data is associated with the data size and reception time information,
Each predetermined unit time, the stored information is sequentially obtained from each of the plurality of communication modules, block data of the information is stored in a content data table, and a reception time associated with the block data Information, the relative address information of the block data in the content table, the data size of the block data, and the information identifier of the content data corresponding to the block data are stored in the search information table, and the data size of the search information table And calculating the data size, storing the search information table and the content table in one data file, and recording the data size on the disk recording medium,
A program for recording content data, which is executed to record the plurality of content data received for a desired time on the disk recording medium as the plurality of data files for each predetermined unit time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006054510A JP2007234124A (en) | 2006-03-01 | 2006-03-01 | Content data recorder, content data recording method, and program for recording content data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006054510A JP2007234124A (en) | 2006-03-01 | 2006-03-01 | Content data recorder, content data recording method, and program for recording content data |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007234124A true JP2007234124A (en) | 2007-09-13 |
Family
ID=38554568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006054510A Pending JP2007234124A (en) | 2006-03-01 | 2006-03-01 | Content data recorder, content data recording method, and program for recording content data |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007234124A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020102955A1 (en) * | 2018-11-20 | 2020-05-28 | 浙江宇视科技有限公司 | Monitoring video storage method and apparatus, and video storage device |
-
2006
- 2006-03-01 JP JP2006054510A patent/JP2007234124A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020102955A1 (en) * | 2018-11-20 | 2020-05-28 | 浙江宇视科技有限公司 | Monitoring video storage method and apparatus, and video storage device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4285512B2 (en) | Recording apparatus, recording method, reproducing apparatus, reproducing method, recording / reproducing apparatus, recording / reproducing method, imaging recording apparatus, and imaging recording method | |
US20070201832A1 (en) | Recording apparatus, recording method, program for recording method, recording medium recording program for recording method, reproducing apparatus, reproduction method, program for reproduction method, and recording medium recording program for reproduction method | |
JP2008262686A (en) | Method and device for recording broadcast data | |
US8676038B2 (en) | Recording/reproducing apparatus, recording apparatus, reproducing apparatus, recording method, reproducing method and computer program | |
WO2006033279A1 (en) | Data processing device | |
US20080259174A1 (en) | Image recording apparatus, image reproducing apparatus, image recording method, and image reproducing method | |
WO2004086759A1 (en) | Recording method, recording device, recording medium, reproduction method, reproduction device, and image pickup device | |
WO2006054590A1 (en) | Data processing apparatus | |
JP2003059236A (en) | Recorder, recording method and recording medium | |
CN100454430C (en) | Recording apparatus | |
US7084908B2 (en) | Image signal recording apparatus with controlled recording of main, preceding and succeeding moving image signals | |
JP2007234124A (en) | Content data recorder, content data recording method, and program for recording content data | |
JPWO2006088100A1 (en) | Data processing device | |
CN102611868B (en) | Motion image data recording equipment and control method thereof | |
JP2005051663A (en) | Recording regenerating method of monitoring video signal and recording reproducing apparatus of device monitoring video signal | |
JP4250477B2 (en) | Media data recording method, media data recording apparatus, computer program, and computer-readable recording medium | |
US9025931B2 (en) | Recording apparatus, recording method, and program | |
JP2006303611A (en) | Video processing apparatus, video processing method, and computer program | |
US8929723B2 (en) | Recording apparatus, imaging and recording apparatus, recording method, and program | |
JP2004265459A (en) | Magnetic recording and playback device | |
WO2004036582A1 (en) | Av data recording method, av data recording device, data recording medium, program, and program recording medium | |
JP2007166553A (en) | Moving image processing apparatus and moving image processing method | |
JP6806577B2 (en) | Recording device and its control method and program | |
JP4234029B2 (en) | Image recording / playback device | |
JP4722005B2 (en) | Recording / playback device |