Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5336993B2 - Video recording apparatus and video recording method - Google Patents
[go: Go Back, main page]

JP5336993B2 - Video recording apparatus and video recording method - Google Patents

Video recording apparatus and video recording method Download PDF

Info

Publication number
JP5336993B2
JP5336993B2 JP2009237641A JP2009237641A JP5336993B2 JP 5336993 B2 JP5336993 B2 JP 5336993B2 JP 2009237641 A JP2009237641 A JP 2009237641A JP 2009237641 A JP2009237641 A JP 2009237641A JP 5336993 B2 JP5336993 B2 JP 5336993B2
Authority
JP
Japan
Prior art keywords
recording
video data
contents information
video
block
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.)
Active
Application number
JP2009237641A
Other languages
Japanese (ja)
Other versions
JP2011087080A (en
Inventor
智巳 高田
茂幸 村田
聡史 丸田
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.)
Kokusai Denki Electric Inc
Original Assignee
Hitachi Kokusai Electric Inc
Kokusai Denki Electric Inc
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 Hitachi Kokusai Electric Inc, Kokusai Denki Electric Inc filed Critical Hitachi Kokusai Electric Inc
Priority to JP2009237641A priority Critical patent/JP5336993B2/en
Publication of JP2011087080A publication Critical patent/JP2011087080A/en
Application granted granted Critical
Publication of JP5336993B2 publication Critical patent/JP5336993B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To achieve shortening of a repair time and the reduction of rewriting times at the same time. <P>SOLUTION: A video recording device includes: a plurality of recording devices 10 provided with a video data circulation recording area, a content information recording area and an address management table in each camera device 3; and a work memory 80 for temporarily holding video data from each camera device 3 in the work area of each recording device, writes content information from the header of the video data to be a writing waiting state to the recording device 10 within the individual work area of the work memory 80, and controls writing of the video data and the content information to update the content information in the recording device 10 at the point of time when the update amount of the content information exceeds a reference value. Here, the synchronization time of the content information and the video data is fixed when mismatching between the video data and the content information occurs by periodically determining the mismatching between the content information in the video data recorded about a correspondence area of the recording device 10 to the camera device 3 and the content information within the content information recording area. <P>COPYRIGHT: (C)2011,JPO&amp;INPIT

Description

本発明は、ネットワーク上で映像データを記録するための映像記録装置に係り、特に異なる特性をもつ複数の記録デバイスを併用する場合に関する。   The present invention relates to a video recording apparatus for recording video data on a network, and particularly to a case where a plurality of recording devices having different characteristics are used in combination.

ネットワーク技術の高速化と低価格化に伴い、映像データの伝送にIP(Internet Protocol)ネットワークが用いられることは一般的になってきた。これに伴って、ネットワーク対応型の映像記録装置が提供されるようになり、例えば映像監視システムへの導入が始まっている。   With the speeding up and cost reduction of network technology, it has become common to use an IP (Internet Protocol) network for video data transmission. Along with this, network-compatible video recording apparatuses have been provided, and for example, introduction into video surveillance systems has begun.

ここで、上記ネットワーク対応型の映像記録装置に使用される記録デバイスは、主にHDD(ハードディスクドライブ)とSSD(ソリッドステートドライブ)が主流であるが、その種類によって特性が異なる。まず、HDDの特性では、ランダムアクセスはヘッドのシークを伴うため、秒間100回程度しか行なえない。一方、書き換え可能回数は100万回を超え、実用上問題ない。一方、SSDの特性では、ランダムリードの速度は秒間数万回以上とHDDに比べて2桁以上高速であるが、ランダムライトの場合には秒間数百〜数千回であり、ランダムリードよりは遅い。一方、書き換え可能回数は数千回〜数万回とHDDに比べ1〜2桁程度少ない。また、アプリケーションから小さいデータサイズ(数キロバイト)で書き込みを行なっても、SSD内部ではアクセス単位(64KB程度)を一括して書き換えるため、細かいサイズの書き込みは、SSDの寿命を縮めさせる傾向となる。   Here, the recording devices used in the network-compatible video recording apparatus are mainly HDD (Hard Disk Drive) and SSD (Solid State Drive), but the characteristics differ depending on the type. First, in terms of the characteristics of the HDD, random access is accompanied by a head seek and can be performed only about 100 times per second. On the other hand, the number of rewritable times exceeds 1 million, and there is no practical problem. On the other hand, in the characteristics of SSD, the random read speed is several tens of thousands times per second, which is two orders of magnitude faster than HDD, but in the case of random write, it is several hundred to several thousand times per second. slow. On the other hand, the number of rewritable times is thousands to tens of thousands, which is about one to two digits less than that of HDD. Further, even if writing is performed with a small data size (several kilobytes) from an application, the access unit (about 64 KB) is rewritten at once in the SSD, so writing with a small size tends to shorten the life of the SSD.

ところで、ネットワーク型デジタル映像記録装置では、例えば監視映像のような場合に、循環的に重ね書きを行う循環記録モードを備える(例えば特許文献1参照)。この循環記録モードにおいて、定常では、入力段のバッファメモリ上で目次情報と映像データの書き込み状態は常に同期している。すなわち、バッファメモリ上で、カメラからの映像データを1つのブロックに収まる分を蓄積した後、記録デバイスの格納先の映像ブロックに書き出す。同時にバッファメモリ上の目次情報も更新する。   By the way, the network type digital video recording apparatus has a cyclic recording mode in which overwriting is performed cyclically in the case of a surveillance video, for example (see, for example, Patent Document 1). In this cyclic recording mode, in a steady state, the table of contents information and the video data writing state are always synchronized on the buffer memory of the input stage. That is, the video data from the camera is stored on the buffer memory so as to fit in one block, and then written to the video block that is the storage destination of the recording device. At the same time, the table of contents information on the buffer memory is updated.

ここで、メモリ上の目次情報を記録デバイスの該当する領域への書き出し方が課題となる。すなわち、上記バッファメモリ上の目次情報は、更新される都度に記録デバイスに書き出す方法もあれば、ある程度まとめてから一度に書き出す方法もある。   Here, how to write out the table of contents information on the memory to the corresponding area of the recording device becomes a problem. That is, there is a method of writing the table of contents information on the buffer memory to the recording device every time it is updated, and a method of writing it at once after collecting it to some extent.

後者のある程度まとめてから書き出す方法では、不意の電源断が発生した場合には、目次情報と映像データの間で不整合が生じ、映像データのヘッダ内の目次情報から、目次情報を修復する作業が発生する。HDDの場合には、ランダムリードに時間を要するため、目次情報と映像データの不整合量が少ない状態、すなわち、目次情報の書き換え頻度が高い方が、修復に要する時間が短く都合が良い。一方、SSDの場合には、目次情報の書き換え頻度が高くなると、細かいサイズの書き込みとなり、寿命を短くする要因となる。SSDではランダムリードがHDDに比べて高速なため、不整合の量が多くても、修復時間はさほど要さない。   In the latter method of writing after a certain amount of data, if an unexpected power failure occurs, a mismatch occurs between the table of contents information and the video data, and the table of contents information is restored from the table of contents information in the header of the video data. Will occur. In the case of an HDD, since random read takes time, it is convenient that the time required for restoration is short when the amount of mismatch between the table of contents information and the video data is small, that is, the rewrite frequency of the table of contents information is high. On the other hand, in the case of SSD, if the rewrite frequency of the table of contents information is increased, the writing becomes a small size, which becomes a factor of shortening the lifetime. In SSD, random read is faster than HDD, so even if the amount of mismatching is large, the repair time is not so long.

このように、目次情報と映像データを用いる循環記録において、HDDとSSDのように、目次情報の書き換え頻度に対する特性が異なる記録デバイスを併用する場合には、いかに目次情報の書き換え回数を低減させ、寿命を延ばすか、いかに修復時間を短くするか、目次情報の記録デバイスへの書き出し方法が課題となる。   As described above, in the circular recording using the table of contents information and the video data, when using a recording device having different characteristics with respect to the rewriting frequency of the table of contents information such as HDD and SSD, how to reduce the number of times of rewriting the table of contents information, The issue is how to extend the lifespan, how to shorten the repair time, and how to write the table of contents information to the recording device.

特許4237549号公報Japanese Patent No. 4237549 特開2007−052516号公報JP 2007-052516 A

以上述べたように、従来のネットワーク対応型の映像記録装置では、目次情報と映像データを用いる循環記録において、HDDとSSDのように、目次情報の書き換え頻度に対する特性が異なる記録デバイスを併用する場合には、いかに目次情報の書き換え回数を低減させ、寿命を延ばすか、いかに目次情報の修復時間を短くするか、目次情報の記録デバイスへの書き出し方法が課題となる。   As described above, in the conventional network-compatible video recording apparatus, in the circular recording using the table of contents information and the video data, a recording device having different characteristics with respect to the rewriting frequency of the table of contents information such as HDD and SSD is used together. The problem is how to reduce the number of times the table of contents information is rewritten and extend the life, how to shorten the time for repairing the table of contents information, and how to write the table of contents information to the recording device.

本発明は、上記の課題を解決するためになされたもので、目次情報の修復時間の短縮と書き換え回数の低減を同時に実現することのできる映像記録装置を提供することを目的とする。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a video recording apparatus capable of simultaneously reducing the time required for restoring the table of contents information and the number of rewrites.

上記目的を達成するため、本発明は、それぞれ任意の映像データ供給源からの映像データを循環記録する複数の記録デバイスと、前記映像データ供給源からの映像データを一時保持して前記複数の記録デバイスそれぞれに送り出すワークメモリと、を備え、前記個々の記録デバイス内には、前記映像データ供給源毎に、前記映像データを循環記録するための循環記録領域、前記映像データのヘッダ内から目次情報を書き出して前記映像データの記録状況を管理する目次情報記録領域、前記映像データ及び目次情報の記録アドレスを管理するアドレス管理テーブルが形成され、前記映像データの記録時に生じる前記書き出された目次情報との不整合を修復する映像記録装置であって、前記ワークメモリに前記複数の記録デバイスそれぞれに対応して形成される領域に対応して前記映像データ供給源からの映像データを一時保持する複数のワーク領域を形成し、個々のワーク領域内で、前記映像データのヘッダから目次情報を書き出して前記記録デバイス内の対応領域における循環記録領域、目次情報記録領域への書き込みの待機状態とし、前記対応領域内の単位ブロックそれぞれの書換状況を管理して前記目次情報の更新量が基準値を超えた時点で前記記録デバイス内の目次情報の更新を行うように前記映像データ及び目次情報の書き込みを制御するワークメモリ制御手段と、前記複数の記録デバイスそれぞれの前記映像データ供給源との対応領域について記録した映像データ中の目次情報と目次情報記録領域内の目次情報との不整合を定期的に判断して映像データと目次情報の不整合発生時における、目次情報と映像データの同期化時間を一定化する同期化手段とを具備するように構成したものである。   To achieve the above object, the present invention provides a plurality of recording devices that circulate and record video data from arbitrary video data supply sources, and a plurality of recording devices that temporarily hold video data from the video data supply sources. A work memory to be sent to each device, and in each recording device, for each video data supply source, a circular recording area for circular recording of the video data, and the table of contents information from within the header of the video data The table of contents information recording area for managing the recording status of the video data and the address management table for managing the recording addresses of the video data and the table of contents information are formed, and the written table of contents information generated at the time of recording the video data Recording apparatus that repairs inconsistencies with the plurality of recording devices in the work memory A plurality of work areas for temporarily storing video data from the video data supply source are formed corresponding to the areas formed in this manner, and the table of contents information is written out from the header of the video data in each work area and the recording is performed. When the writing status of the circular recording area and the table of contents information recording area in the corresponding area in the device is set to the standby state, the rewrite status of each unit block in the corresponding area is managed, and the update amount of the table of contents information exceeds the reference value The work memory control means for controlling the writing of the video data and the table of contents information so as to update the table of contents information in the recording device and the corresponding areas of the video data supply sources of the plurality of recording devices are recorded. Inconsistency between video data and table of contents information by periodically judging inconsistency between table of contents information in video data and table of contents information in table of contents information recording area In the event, which is constituted so as to comprise a synchronization means for constant the synchronization time of the index information and the image data.

ここで、前記複数の記録デバイスが前記目次情報の書き換え頻度に対して異なる特性を持つ場合に、前記ワークメモリ制御手段は、前記記録デバイスに対する平均アクセス時間を求め、更新回数と平均アクセス時間との積から修復所要時間を求め、全目次ブロックの修復所要時間の合計が修復目標時間を超えた時点で最も修復所要時間の長い目次情報を前記記録デバイスに書き出すものとし、前記同期化手段は、前記目次情報の不整合発生時における、目次情報と映像データの同期化時間を一定化すると同時に、記録デバイスへの目次情報の書き込み回数を抑えることを特徴とするものとする。   Here, when the plurality of recording devices have different characteristics with respect to the rewriting frequency of the table of contents information, the work memory control means obtains an average access time for the recording device, and calculates the number of updates and the average access time. The time required for repair is obtained from the product, and when the total time required for repair of all the contents blocks exceeds the repair target time, the table of contents information having the longest time required for repair is written to the recording device, and the synchronization means When the inconsistency of the table of contents information occurs, the synchronization time of the table of contents information and the video data is made constant, and at the same time, the number of times of writing the table of contents information to the recording device is suppressed.

本発明によれば、目次情報の修復時間の短縮と書き換え回数の低減を同時に実現することのできる映像記録装置を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the video recording apparatus which can implement | achieve shortening of restoration time of table-of-contents information and reduction of the rewrite frequency simultaneously can be provided.

本発明に係る映像記録装置の一実施形態を示すブロック構成図。1 is a block configuration diagram showing an embodiment of a video recording apparatus according to the present invention. 図1に示す実施形態のカメラ別記録領域を説明するための概念図。The conceptual diagram for demonstrating the recording area according to camera of embodiment shown in FIG. 図1に示す実施形態の内部部品の構成を示すブロック図。The block diagram which shows the structure of the internal component of embodiment shown in FIG. 図1に示す実施形態の映像データの格納形式を説明するための概念図。The conceptual diagram for demonstrating the storage format of the video data of embodiment shown in FIG. 図1に示す実施形態のアドレス変換テーブルを説明するための概念図。The conceptual diagram for demonstrating the address conversion table of embodiment shown in FIG. 図1に示す実施形態の目次情報ブロックと映像ブロックを説明するための概念図。The conceptual diagram for demonstrating the table of contents information block and video block of embodiment shown in FIG. 図1に示す実施形態のネットワーク型映像記録装置の不揮発性RAMの構成を示す概念図。The conceptual diagram which shows the structure of the non-volatile RAM of the network type video recording apparatus of embodiment shown in FIG. 図1に示す実施形態の定常運転時(映像受信・記録・配信実行時)の揮発性RAMの構成を示す概念図。The conceptual diagram which shows the structure of volatile RAM at the time of the steady operation (at the time of video reception / recording / delivery execution) of embodiment shown in FIG. 図1に示す実施形態のネットワーク型映像記録装置の定常運転時の動作を説明するための概念図。The conceptual diagram for demonstrating the operation | movement at the time of steady operation of the network type video recording apparatus of embodiment shown in FIG. 図1に示す実施形態のネットワーク型映像記録装置の起動時の処理を説明するためのフローチャート。2 is a flowchart for explaining processing at the time of starting the network type video recording apparatus of the embodiment shown in FIG. 1. 図1に示す実施形態の書き込みスレッドの処理内容を説明するためのフローチャート。The flowchart for demonstrating the processing content of the write thread of embodiment shown in FIG.

以下、図面を参照して本発明の実施の形態を詳細に説明する。
図1は本発明に係るネットワーク対応型の映像記録装置の一実施形態を示すブロック構成図である。図1において、1は本発明に係るネットワーク対応型映像記録装置であり、ネットワーク2に接続され、当該ネットワーク2上のIPカメラ装置3−1,3−2,…,3−m、情報端末装置4−1,…,4−nとの間で映像信号の送受がなされる。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing an embodiment of a network compatible video recording apparatus according to the present invention. In FIG. 1, reference numeral 1 denotes a network-compatible video recording apparatus according to the present invention, which is connected to a network 2 and has IP camera apparatuses 3-1, 3-2,. Video signals are transmitted and received between 4-1,..., 4-n.

上記映像記録装置1は、ハードディスク(以後HDDと記載)や半導体メモリ(以後SSDと記載)などの記録デバイスを、専用のケースに内包した複数の記録デバイス10−1,10−2,10−3,…,10−kを備える。以下の説明において、記録デバイスを代表する場合は、記録デバイス10と称する。   The video recording apparatus 1 includes a plurality of recording devices 10-1, 10-2, 10-3 including recording devices such as a hard disk (hereinafter referred to as HDD) and a semiconductor memory (hereinafter referred to as SSD) in a dedicated case. , ..., 10-k. In the following description, when a recording device is represented, it is referred to as a recording device 10.

上記ネットワーク2は、上述の映像信号を伝送する伝送路であり、LAN(Local Area Network)、インターネットあるいは公衆回線等のネットワークを含み、複数のコンピュータを結び制御信号やデータなどの信号を伝送する。   The network 2 is a transmission path for transmitting the above-described video signal, and includes a network such as a LAN (Local Area Network), the Internet, or a public line, and connects a plurality of computers to transmit signals such as control signals and data.

上記カメラ装置3−1,3−2,…,3−mはIP(Internet Protocol)通信機能を備え、それぞれ被写体または監視域の状況を撮影した映像信号をJPEG(Joint Photographic Experts Group)フォーマットやMPEG4(Moving Picture Experts Group 4)フォーマット等で圧縮し、IPパケットに乗せてネットワーク2に出力する。尚、以下の説明において、カメラ装置を代表する場合は、カメラ装置3と称する。カメラ装置3には、マイクあるいは人感センサ(図示せず)等のセンサ類が設けられているものもあり、これらのセンサ信号も映像信号に含まれるものとする。   Each of the camera devices 3-1, 3-2,..., 3-m has an IP (Internet Protocol) communication function, and each video signal obtained by photographing the subject or the status of the monitoring area is converted into a JPEG (Joint Photographic Experts Group) format or MPEG4. (Moving Picture Experts Group 4) Compressed in the format, etc., put on IP packet and output to network 2. In the following description, when a camera device is represented, it is referred to as a camera device 3. Some camera apparatuses 3 are provided with sensors such as a microphone or a human sensor (not shown), and these sensor signals are also included in the video signal.

上記情報端末装置4−1,…,4−nは、例えば、パーソナルコンピュータ(Personal Computer)等のデータ処理装置であり、ネットワーク接続でWebブラウザ等を搭載し、視聴PCとも呼ばれる。以下の説明において、情報端末装置を代表する場合は、情報端末装置4と称する。   The information terminal devices 4-1,..., 4-n are, for example, data processing devices such as personal computers, which are equipped with a web browser or the like by network connection and are also called viewing PCs. In the following description, when representing an information terminal device, it is referred to as an information terminal device 4.

図2は、上記ネットワーク対応型映像記録装置1の記録デバイス10内に、カメラ装置3毎の映像データを格納する循環記録用領域5を備えることを説明するための概念図である。図2に示すように、記録デバイス10内には、カメラ装置3−1,3−2,…,3−m毎に対応する循環記録用領域5−1,5−2,…,5−mが確保される。各循環記録用領域5−1,5−2,…,5−mはカメラ装置3−1,3−2,…,3−mからの映像データをリングバッファとして保持する領域である。   FIG. 2 is a conceptual diagram for explaining that the recording device 10 of the network-compatible video recording apparatus 1 includes a circular recording area 5 for storing video data for each camera apparatus 3. As shown in FIG. 2, in the recording device 10, circulating recording areas 5-1, 5-2,..., 5-m corresponding to the camera devices 3-1, 3-2,. Is secured. Each of the circular recording areas 5-1, 5-2,..., 5-m is an area for holding the video data from the camera devices 3-1, 3-2,.

すなわち、上記映像記録装置1では、ネットワーク2を介してカメラ装置3のいずれかから映像データを取得した場合に、記録デバイス10に対応する循環記録用領域5に格納する。また、ネットワーク2を介して情報端末装置(視聴PC)4からの映像要求を受信した場合には、記録デバイス10から指定の映像データを読み出し、要求元の情報端末装置4に送信する。   That is, in the video recording apparatus 1, when video data is acquired from any of the camera apparatuses 3 via the network 2, the video recording apparatus 1 stores the video data in the circular recording area 5 corresponding to the recording device 10. When a video request from the information terminal device (viewing PC) 4 is received via the network 2, the designated video data is read from the recording device 10 and transmitted to the requesting information terminal device 4.

情報端末装置4からは、循環記録用領域5内の任意のカメラ循環記録領域について、任意の時刻から任意の再生方法(順再生・逆再生、等倍速、早送り、コマ送り等)が行なえる。尚、ネットワーク型映像記録装置1の運用設定は、ネットワーク2を介した情報端末装置4で稼動するWeb画面または専用ソフトを用いて行なう。   From the information terminal device 4, an arbitrary playback method (forward playback / reverse playback, normal speed, fast forward, frame advance, etc.) can be performed from an arbitrary time on an arbitrary camera circular recording area in the circular recording area 5. The operation setting of the network type video recording apparatus 1 is performed using a Web screen or dedicated software that operates on the information terminal apparatus 4 via the network 2.

図3は、上記ネットワーク型映像記録装置1の内部構成を示す機能ブロック図である。図3において、6はコンピュータ基板であり、このコンピュータ基板6には、ネットワークインターフェース(I/F)61、記録デバイスインターフェース(I/F)62、CPU63の他、揮発性RAM(ランダムアクセスメモリ)7、不揮発性RAM8を搭載し、それぞれ内部バス60を通じて接続されている。   FIG. 3 is a functional block diagram showing the internal configuration of the network type video recording apparatus 1. In FIG. 3, reference numeral 6 denotes a computer board. The computer board 6 includes a network interface (I / F) 61, a recording device interface (I / F) 62, a CPU 63, and a volatile RAM (random access memory) 7. The nonvolatile RAM 8 is mounted and connected through the internal bus 60.

上記ネットワークインターフェース61はイーサネット(登録商標)用の信号変換部であり、ネットワーク2と内部バス60との間の信号を変換する。   The network interface 61 is a signal conversion unit for Ethernet (registered trademark), and converts signals between the network 2 and the internal bus 60.

上記記録デバイスインターフェース62は、ATA(Advanced Technology Attachment)やSCSI(Small Computer System Interface)といった記録デバイスバス向けの信号変換部であり、内部バス60と記録デバイス向けバス64との間の信号を変換する。ここで、上記記録デバイス向けバス64には記録デバイスであるHDD10a,SSD10b,…が混在して接続されているものとする。尚、説明を簡単にするため、装置に接続された記録デバイス数をDと記す。   The recording device interface 62 is a signal conversion unit for a recording device bus such as ATA (Advanced Technology Attachment) or SCSI (Small Computer System Interface), and converts a signal between the internal bus 60 and the recording device bus 64. . Here, it is assumed that HDDs 10a, SSDs 10b,... Serving as recording devices are connected to the recording device bus 64 in a mixed manner. For the sake of simplicity, the number of recording devices connected to the apparatus is denoted as D.

上記CPU63は、OS(オペレーティングシステム)およびネットワーク型映像記録装置1として稼動させるためのソフトウェアを実行する。不揮発性RAM8は、OSおよびネットワーク型映像記録装置1として稼動させるためのソフトウェアが格納してある。揮発性RAM7は、OSおよびNDR(ネットワークデジタルレコーダ(登録商標))ソフトウェアの一時情報および、ネットワークとHDD間で送受信するための映像データを一時的に格納する際に用いる。   The CPU 63 executes an OS (operating system) and software for operating as the network type video recording apparatus 1. The nonvolatile RAM 8 stores an OS and software for operating as the network type video recording apparatus 1. The volatile RAM 7 is used to temporarily store OS and NDR (Network Digital Recorder (registered trademark)) software temporary information and video data to be transmitted and received between the network and the HDD.

図4は、記録デバイス10−1(他の記録デバイスも同様)上への映像データの格納方法を示している。記録デバイス10−1内を、入力映像データの一単位よりも十分に大きいサイズで均等に領域分けを行なう。説明を容易とするため、この領域を以後「ブロック(Block)」と呼称する。例えば映像データの一単位が数十KByteから数百KByteとすると、ブロックのバイトサイズはその数十倍の数MByteから数十MByteが適当である。   FIG. 4 shows a method of storing video data on the recording device 10-1 (the same applies to other recording devices). The recording device 10-1 is equally divided into areas having a size sufficiently larger than one unit of input video data. For ease of explanation, this area is hereinafter referred to as a “Block”. For example, if one unit of video data is several tens of kilobytes to several hundreds of kilobytes, the byte size of the block is appropriately several tens of times from several megabytes to several tens of megabytes.

記録デバイス10−1には、アドレス変換テーブル0(デバイス→カメラ領域)11と、アドレス変換テーブル1(カメラ領域→デバイス)12と、目次情報ブロック13(13−1〜13−i)、と、映像ブロック14(14−1〜14−j)が存在する。テーブル11,12それぞれについて必要数のブロックを確保し、残りを映像用ブロックとする。この例では、アドレス変換テーブル0(デバイス→カメラ領域)11と、アドレス変換テーブル1(カメラ領域→デバイス)12は1個のブロック、目次情報ブロック13は4個のブロック13−1〜13−i、映像ブロック14はj個のブロック(14−1〜14−j)とした場合を示している。   The recording device 10-1 includes an address conversion table 0 (device → camera area) 11, an address conversion table 1 (camera area → device) 12, a table of contents information block 13 (13-1 to 13-i), The video block 14 (14-1 to 14-j) exists. A necessary number of blocks are secured for each of the tables 11 and 12, and the rest are used as video blocks. In this example, the address conversion table 0 (device → camera area) 11 and the address conversion table 1 (camera area → device) 12 are one block, and the table of contents information block 13 is four blocks 13-1 to 13-i. The video block 14 shows j blocks (14-1 to 14-j).

各カメラ装置3の循環記録用領域(図2の5−1〜5−m)は、各カメラ装置3用の領域として映像ブロック14を必要な数分を割り当て、循環利用することで実現する。   The circulation recording area (5-1 to 5-m in FIG. 2) of each camera device 3 is realized by allocating a necessary number of video blocks 14 as an area for each camera device 3 and using the circulation.

図5(a),(b)は、それぞれ図4のアドレス変換テーブル11,12のフォーマット構成を示す模式図である。図5(a)に示すアドレス変換テーブル0(デバイス→カメラ領域)11のブロック内には、アドレス情報110が映像データブロック数分(j個)存在する。アドレス情報には「どのカメラ装置3の何番目のブロック」の情報が格納される。このテーブル11により、デバイス10−1上の何番目のブロックが、どのカメラ装置3の何番目のブロックに割り当てられているかが判明する。どのカメラ装置3にも割り当てられてない場合には「空き」を示す情報が格納される。このテーブル11は、カメラ用の領域サイズを変更する場合に、空き領域を探索する場合にも使用する。   FIGS. 5A and 5B are schematic diagrams showing the format structures of the address conversion tables 11 and 12 shown in FIG. 4, respectively. In the block of the address conversion table 0 (device → camera area) 11 shown in FIG. 5A, the address information 110 exists for the number of video data blocks (j). Information on “what number block of which camera device 3” is stored in the address information. This table 11 reveals what number block on the device 10-1 is assigned to which number block of which camera device 3. If no camera device 3 is assigned, information indicating “free” is stored. This table 11 is also used when searching for a free area when changing the area size for the camera.

図5(b)に示すアドレス変換テーブル1(カメラ領域→デバイス)12のブロック内には、カメラ装置3毎のアドレステーブル(12−1〜12−m)と、上記デーブルがこのブロック内のどこに配置されているかを示すカメラ領域情報12−0が存在する。カメラ領域情報12−0には、各カメラの情報として、12−0−1〜12−0−mのカメラ数分の情報が存在し、各カメラ装置3に対応する循環記録用領域のブロック数と、このブロック(12)内のどこから該カメラ領域のテーブル情報が記載されているか、の情報を有する。   In the block of the address conversion table 1 (camera area → device) 12 shown in FIG. 5B, the address table (12-1 to 12-m) for each camera device 3 and where the table is in this block. There is camera area information 12-0 indicating whether the camera is arranged. The camera area information 12-0 includes information for the number of cameras of 12-0-1 to 12-0-m as information of each camera, and the number of blocks in the circular recording area corresponding to each camera device 3 And information on where in the block (12) the table information of the camera area is described.

12−1はカメラ装置3−1用の循環記録用領域のテーブル情報を示し、12−1−1〜12−1−X1(X1はカメラ3−1のブロック数)のアドレス情報が存在する。このアドレス情報には「カメラ装置3−1の領域の何番目のブロックは、どのデバイスの何番目のブロック」の情報が格納される(他のカメラ装置3−2〜3−mの場合も同様)。カメラ装置3からの取得した映像データを格納していく際には、このテーブルに記された順にブロックを使用していき、末尾に達するとまた先頭から使用することで、カメラ毎に循環記録領域を実現する。   12-1 shows the table information of the circular recording area for the camera device 3-1, and there is address information of 12-1-1-1 to 12-1-X1 (X1 is the number of blocks of the camera 3-1). This address information stores information of “what number block in the area of the camera device 3-1 is what number block in which device” (the same applies to other camera devices 3-2 to 3-m). ). When storing the video data acquired from the camera device 3, the blocks are used in the order described in this table, and when reaching the end, the blocks are used again from the beginning, so that a circular recording area is provided for each camera. Is realized.

尚、上記の例では、説明を容易とするため、アドレス変換テーブル11,12はそれぞれブロックを1つ備えるものとして説明したが、記録デバイス10の容量とブロックのバイト数によっては、複数のブロックを用いる場合もあり得る。   In the above example, for ease of explanation, the address conversion tables 11 and 12 have been described as having one block. However, depending on the capacity of the recording device 10 and the number of bytes of the block, a plurality of blocks may be included. It may be used.

図6(a),(b)は、それぞれ図4に示す目次情報ブロック13と映像ブロック14の説明用の概念図である。映像ブロック14−1内には、図6(b)に示すように、ヘッダ部140と映像フレーム141−1〜141−fを有する。映像フレーム141−1〜141−fは映像データの単位データであり、JPEGでは1枚、MPEG系ではIフレームから次のIフレームまでの映像データを示す。 6A and 6B are conceptual diagrams for explaining the table of contents information block 13 and the video block 14 shown in FIG. 4, respectively. As shown in FIG. 6B, the video block 14-1 includes a header portion 140 and video frames 141-1 to 141-f. Video frames 141-1 to 141-f are unit data of video data, and indicate video data from one frame in JPEG and from I frame to the next I frame in the MPEG system.

ヘッダ情報140には、目次情報130と、映像データアドレス142、ブロック番号143、カメラ番号144の情報を有する。映像データアドレス142は、それぞれの映像データがこのブロック内のどこから格納してあるかを示す情報である。ブロック番号143は、このブロックがこの循環記録領域の何番目に作成されたかを示すブロック番号を示す。このブロック番号は0からの連番であり、該循環記録領域の使用開始から何番目に作成したブロックかを示す。尚、領域の循環利用開始後も0に戻ることはない。カメラ番号144は、カメラ装置3の識別番号(1〜m)を示す。   The header information 140 includes table of contents information 130, video data address 142, block number 143, and camera number 144. The video data address 142 is information indicating where in the block each video data is stored. The block number 143 indicates a block number indicating what number in the circular recording area this block is created. This block number is a sequential number from 0 and indicates the number of the block created from the start of use of the circular recording area. It should be noted that it does not return to 0 after the start of circular use of the area. The camera number 144 indicates the identification number (1 to m) of the camera device 3.

一方、目次情報130には、図6(a)に示すように、状態フラグ131、ブロック内先頭データ時刻132、ブロック内先頭データ番号133、ブロック内フレーム数134の情報を有する。状態フラグ131は、目次情報と該映像ブロックの状態を示す。フラグの状態には「未使用」、「映像データ正常」、「映像データ破損」がある。ブロック内先頭データ時刻132は、該映像ブロック先頭映像データの時刻を示す。ブロック内先頭データ番号133は、該映像ブロック先頭映像データの時刻のデータ番号を示す。データ番号は0からの連番であり、該循環記録領域の使用開始から何番目に取得した映像データかを示す。ブロック内フレーム数134は、該映像ブロック内に映像データが何個格納されているかを示す。   On the other hand, as shown in FIG. 6A, the table of contents information 130 includes information on a status flag 131, intra-block head data time 132, intra-block head data number 133, and intra-block frame number 134. The status flag 131 indicates the table of contents information and the status of the video block. The flag states include “unused”, “video data normal”, and “video data corruption”. The in-block start data time 132 indicates the time of the image block start image data. The in-block head data number 133 indicates the data number at the time of the video block head video data. The data number is a serial number from 0 and indicates the number of video data acquired from the start of use of the circulating recording area. The intra-block frame number 134 indicates how many pieces of video data are stored in the video block.

ここで、状態フラグ131が「映像データ破損」状態の場合にも、情報132〜134として映像データが正常だった時の情報が維持される。映像データが正常だった時に情報が失われた場合には、前後の正常な目次情報から推測され矛盾のないダミー値となっている。   Here, even when the status flag 131 is in the “video data corruption” state, information when the video data is normal is maintained as the information 132 to 134. If the information is lost when the video data is normal, it is a dummy value that is inferred from the previous and subsequent normal table of contents information and has no contradiction.

目次情報ブロック13は複数個のブロック13−1〜13−iを用いている。この目次情報ブロック13内には、目次情報130が映像ブロック数分(j個)存在する。目次情報130−1〜130−jは、それぞれ、映像ブロック14−1〜14−mの目次情報である。目次情報ブロック13は、アドレス変換テーブル1(カメラ領域→デバイス)と組み合わせ、カメラ領域内から任意の時刻の映像データを探す際にも使用する。   The table of contents information block 13 uses a plurality of blocks 13-1 to 13-i. In this table of contents information block 13, there are as many table of contents information 130 as the number of video blocks (j). The table of contents information 130-1 to 130-j is table of contents information of the video blocks 14-1 to 14-m, respectively. The table of contents information block 13 is used in combination with the address conversion table 1 (camera area → device) to search for video data at an arbitrary time from the camera area.

この発明は、修復時間の上限値と記録デバイスの特性から、目次情報の書き出し頻度を自動的に制御するところに特徴がある。この特徴的な処理方法を図7から図9を用いて説明する。   The present invention is characterized in that the frequency of writing out the table of contents information is automatically controlled from the upper limit value of the repair time and the characteristics of the recording device. This characteristic processing method will be described with reference to FIGS.

図7は、ネットワーク型デジタル映像記録装置1の不揮発性RAM7の保有内容を示している。不揮発性RAM7には、実行ファイル71と、設定ファイル72が存在する。   FIG. 7 shows the contents held in the nonvolatile RAM 7 of the network type digital video recording apparatus 1. The nonvolatile RAM 7 includes an execution file 71 and a setting file 72.

実行ファイル71は、ネットワーク型デジタル映像記録装置1として動作させるためのソフトウェア群(OS、映像データの受信・記録・配信を行なうソフトウェア、Web経由で設定変更を行なうソフトウェア、カメラ装置3毎の映像記録領域を設定するソフトウェア、等)の実行ファイルである。   The execution file 71 is a software group (OS, software for receiving / recording / distributing video data, software for changing settings via the Web, and video recording for each camera device 3 for operating as the network type digital video recording apparatus 1. This is an execution file of software for setting an area.

設定ファイル72は、映像データの受信・記録・配信を行うソフトウェアの動作を指定するための設定情報を記載したファイルである。この設定ファイル72には、修復目標時間721、視聴ユーザ上限数722、カメラ毎設定情報723がカメラ数分(723−1〜723−m)存在する。修復目標時間721は、映像記録中に不意の電源断が発生した際に、目次情報13と映像データ14の不整合を修復するために使用してよい時間を指示する数値である。視聴ユーザ上限数722は、情報端末装置(視聴PC)4からの同時アクセス数の上限値を指示する数値である。以後、説明を容易とするためこの値をUと記す。カメラ毎設定情報723−mは、カメラ装置3−m用向けの設定情報であり、カメラ接続用情報724−mと、カメラ画質指定用情報725−mを有する。尚、723−1は724−1と725−1を含み、同様に、723−mは724−mと725−mを含むものとする。カメラ接続用情報724は、カメラ装置3−1のIPアドレスとポート番号等、カメラ装置3−1への接続に必要な情報を有する。カメラ画質指定用情報725は、1フレームの画素数、圧縮率、フレームレート、等、映像の画質を指定する情報を有する。   The setting file 72 is a file that describes setting information for designating the operation of software for receiving, recording, and distributing video data. In this setting file 72, there are the target restoration time 721, the viewing user upper limit number 722, and the setting information 723 for each camera for the number of cameras (723-1 to 723-m). The target repair time 721 is a numerical value that indicates a time that can be used to repair inconsistency between the table of contents information 13 and the video data 14 when an unexpected power failure occurs during video recording. The viewing user upper limit number 722 is a numerical value indicating an upper limit value of the simultaneous access number from the information terminal device (viewing PC) 4. Hereinafter, this value will be referred to as U for ease of explanation. The per-camera setting information 723-m is setting information for the camera device 3-m, and includes camera connection information 724-m and camera image designation information 725-m. 723-1 includes 724-1 and 725-1. Similarly, 723-m includes 724-m and 725-m. The camera connection information 724 includes information necessary for connection to the camera device 3-1, such as the IP address and port number of the camera device 3-1. The camera image quality designation information 725 includes information for designating image quality such as the number of pixels in one frame, compression rate, frame rate, and the like.

図8は、ネットワーク型デジタル映像記録装置1の定常運転時(映像受信・記録・配信実行時)の揮発性RAM8の状態を示している。定常運転時の揮発性RAM8には、カメラ毎ワークメモリ80がカメラ数分(80−1〜80−m)、ユーザ毎ワークメモリ81が視聴ユーザ上限数722分(81−1〜81−U)、記録デバイス毎ワークメモリ82が装置1内の記録デバイス数分(82−1〜82−D)、存在する。   FIG. 8 shows the state of the volatile RAM 8 during the steady operation of the network type digital video recording apparatus 1 (during video reception / recording / distribution). In the volatile RAM 8 at the time of steady operation, the work memory 80 for each camera is the number of cameras (80-1 to 80-m), and the work memory 81 for each user is the upper limit number of viewing users 722 minutes (81-1 to 81-U). There are as many recording device work memories 82 as the number of recording devices in the apparatus 1 (82-1 to 82-D).

カメラ毎ワークメモリ80は、アドレス変換テーブル(カメラ→デバイス)801と映像格納バッファ802と目次情報テーブル809を備え、情報としてブロック数803と、最新映像時刻804と、最新映像ブロック番号805と、最古映像時刻806と、最古映像ブロック番号807と、作成中ブロック番号808を持つ。   The per-camera work memory 80 includes an address conversion table (camera → device) 801, a video storage buffer 802, and a table of contents information table 809. As information, the number of blocks 803, latest video time 804, latest video block number 805, It has an old video time 806, an oldest video block number 807, and a block number 808 being created.

アドレス変換テーブル(カメラ→デバイス)801は、記録デバイス10のアドレス変換テーブル12内の該カメラ用循環領域用のテーブルを、メモリに読み出したものである。受信した映像データと目次情報を記録デバイスに格納する際、格納先の算出=「該カメラ用領域内で何番目のブロック」の値を「格納先の記録デバイスとその何番目のブロック」の値に変換するために用いる。   An address conversion table (camera → device) 801 is a table in which the camera circulation area table in the address conversion table 12 of the recording device 10 is read out to a memory. When the received video data and table of contents information are stored in the recording device, the storage location calculation = the “number of blocks in the camera area” value is the value of the “storage destination recording device and its block number”. Used to convert to

映像格納バッファ802は、カメラ装置3から受信した映像データをブロックに収まる範囲で格納していき、記録デバイスの映像ブロック14に書き出す形式とするために用いるバッファである。カメラ装置3からの受信した映像データの格納と、記録デバイス10への書き込みを並行して行なうため、ダブルバッファまたはそれ以上の枚数で構成する。   The video storage buffer 802 is a buffer that is used to store video data received from the camera device 3 within a range that can be stored in a block and to write it in the video block 14 of the recording device. In order to store the video data received from the camera device 3 and write to the recording device 10 in parallel, it is composed of a double buffer or more.

ブロック数803は、該カメラ用循環記録領域に確保されたブロック数を示す。この値は記録デバイス10のカメラ領域情報12−0の該カメラ用循環記録領域のブロック数をメモリに読み出したものである。最新映像時刻804と最新映像ブロック番号805は、該カメラ用循環記録領域の最新映像ブロックの、ブロック内先頭データ時刻131とブロック番号143の値を示す。最古映像時刻806と最古映像ブロック番号807は、該カメラ用循環記録領域の最古映像ブロックの、ブロック内先頭データ時刻131と、ブロック番号143の値を示す。作成中ブロック番号808は、カメラ装置3から映像を受信し詰め込み中のバッファが、該カメラ用の循環記録領域の何番目のブロックであるかを示す。 The block number 803 indicates the number of blocks secured in the camera circular recording area. This value is obtained by reading the number of blocks in the camera circular recording area of the camera area information 12-0 of the recording device 10 into the memory. The latest video time 804 and the latest video block number 805 indicate the values of the in-block head data time 131 and the block number 143 of the latest video block in the circulating recording area for the camera. The oldest video time 806 and the oldest video block number 807 indicate the values of the in-block head data time 131 and the block number 143 of the oldest video block in the camera circular recording area. The block number 808 being created indicates what number block in the circular recording area for the camera the buffer that is receiving and stuffing video from the camera device 3 is.

目次情報テーブル809は、該カメラの循環記録領域のアドレス順にソートした目次情報である。ネットワーク型映像記録装置1の起動時に、デバイス上のアドレス順に並んだ目次情報ブロック13の各目次情報130を、アドレス変換テーブル801を用いて、該カメラの循環記録領域のアドレス順にソートしたものが、目次情報テーブル809である。   The table of contents information table 809 is table of contents information sorted in the order of addresses of the circulating recording area of the camera. When the network type video recording apparatus 1 is started, the table of contents information 130 of the table of contents information block 13 arranged in the order of addresses on the device is sorted using the address conversion table 801 in the order of addresses in the circulation recording area of the camera. It is a table of contents information table 809.

ユーザ毎ワークメモリ81は、映像ブロック読み出用バッファ811を備え、情報として、ログインID812と、最終アクセス時刻813を持つ。映像ブロック読み出し用バッファ811は、記録デバイスから読み出した映像データを格納しておくために用いるバッファである。ログインID812は、情報端末装置(視聴PC)4の識別用の情報であり、情報端末装置4が視聴開始時のアクセス時に発行する情報である。最終アクセス時刻813は、該情報端末装置4からの最終アクセス時刻を示す。一定時間以上アクセスが無かった場合にタイムアウト処理を行なう際等に用いる。   The work memory 81 for each user includes a video block reading buffer 811 and has a login ID 812 and a last access time 813 as information. The video block reading buffer 811 is a buffer used for storing video data read from the recording device. The login ID 812 is information for identifying the information terminal device (viewing PC) 4 and is information that the information terminal device 4 issues when accessing when starting viewing. The last access time 813 indicates the last access time from the information terminal device 4. This is used when timeout processing is performed when there is no access for a certain period of time.

記録デバイス毎ワークメモリ82には、情報として、平均アクセス時間822と、該記録デバイスの目次情報ブロック数分の目次情報ブロック821(821−1〜821−i)と更新回数820(820−1〜820−i)が存在する。平均アクセス時間822は、ネットワーク型映像記録装置1の起動時の初期化処理時に計測した該デバイスからのリードアクセスの所要時間の平均を示す。平均アクセス時間822を算出するために、総アクセス時間8221と、総アクセス回数8222を有する。起動時処理の際、該記録デバイスへリードアクセスを行なった度、その際のアクセス時間を総アクセス時間8221に加算し、総アクセス回数8222を1加算し、総アクセス時間8221を総アクセス回数8222で除算し平均アクセス時間822を求める。   In the work memory 82 for each recording device, the average access time 822, the table of contents information blocks 821 (821-1 to 821-i) and the number of updates 820 (820-1 to 820-1) are stored as information. 820-i). The average access time 822 indicates the average time required for read access from the device measured during the initialization process when the network type video recording apparatus 1 is activated. In order to calculate the average access time 822, a total access time 8221 and a total access count 8222 are provided. During the start-up process, each time a read access is made to the recording device, the access time at that time is added to the total access time 8221, the total access count 8222 is incremented by 1, and the total access time 8221 is calculated as the total access count 8222. The average access time 822 is obtained by division.

目次情報ブロック821−1〜821−i内には、該記録デバイスの映像ブロック数分の目次情報8210(8210−1〜8210−j)が存在する。目次情報ブロック821はネットワーク型映像記録装置1の起動時に該記録デバイス10の目次情報ブロック13から読み出す。定常運転時では映像ブロックを該記録デバイスに書き出す度に、RAM8上の目次情報ブロック821を更新し、更新量が後述する基準を超えた時点で、RAM8上の目次情報821を記録デバイス10上の目次情報13に書き込みを行なう。終了時にはRAM8上の目次情報821全てを(821−1〜821−m)を該記録デバイス10上の目次情報13に書き戻す。   In the table of contents information blocks 821-1 to 821-i, there is table of contents information 8210 (8210-1 to 8210-j) for the number of video blocks of the recording device. The table of contents information block 821 is read from the table of contents information block 13 of the recording device 10 when the network type video recording apparatus 1 is activated. At the time of steady operation, the index information block 821 on the RAM 8 is updated each time a video block is written to the recording device, and the index information 821 on the RAM 8 is stored on the recording device 10 when the update amount exceeds a reference to be described later. Write to the table of contents information 13. At the end, all the table of contents information 821 on the RAM 8 is written back to the table of contents information 13 on the recording device 10 as (821-1 to 821-m).

更新回数820は、RAM8上の目次情報821と記録デバイス10上の目次情報13間での目次情報の相違数を示す。初期値は0である。定常運転時、映像ブロックを該記録デバイス10に書き出し、RAM8上の目次情報ブロック821を更新する度に、更新回数820を1加算する。RAM8上の目次情報821を記録デバイス10に書き出した際に0にリセットする。   The update count 820 indicates the number of differences in the table of contents information between the table of contents information 821 on the RAM 8 and the table of contents information 13 on the recording device 10. The initial value is 0. During steady operation, a video block is written to the recording device 10 and the update count 820 is incremented by 1 each time the table of contents information block 821 on the RAM 8 is updated. When the table of contents information 821 on the RAM 8 is written to the recording device 10, it is reset to zero.

図10は、ネットワーク型映像記録装置1の起動時処理を示すフローチャートである。ステップ200「スタート」は、ネットワーク型映像記録装置1の電源投入後のOS部の起動処理が完了し、ネットワーク型映像記録装置1用のソフトウェアの起動処理が開始された時点を示す。   FIG. 10 is a flowchart showing the startup process of the network type video recording apparatus 1. Step 200 “Start” indicates a point in time when the boot process of the software for the network type video recording apparatus 1 is started after the boot process of the OS unit after the network type video recording apparatus 1 is turned on is completed.

ステップ201「記録デバイス数確認」では、ネットワーク型映像記録装置1に、映像記録用の記録デバイス10が何個接続されているかを確認する処理を行なう。映像記録用の記録デバイス10が0個の場合には、この実施形態ではエラー状態とし、ログファイル出力および外部通知等の処理を行ない、起動処理を終了する。尚、映像記録を行なわず、映像データの中継のみを行なう運用もありえるが、本発明の説明から外れるので省略する。映像記録用の記録デバイスが1個以上存在すればステップ202に進む。   In Step 201 “Confirm Recording Device Number”, processing for confirming how many recording devices 10 for video recording are connected to the network type video recording apparatus 1 is performed. When there are no recording devices 10 for recording video, in this embodiment, an error state is set, log file output, external notification, and the like are performed, and the startup process is terminated. There may be an operation in which the video data is not relayed but only the video data is relayed, but it is omitted from the description of the present invention. If one or more recording devices for video recording exist, the process proceeds to step 202.

ステップ202「各記録デバイスの容量確認」では、各記録デバイス10内の容量=ブロック数を確認する。容量確認は、実際にリードアクセスを行ない末尾の探索を行う。記録デバイス10からリードアドレスを指定しリードアクセスする処理では、アドレスが容量外の場合にはその旨を示す「範囲外エラー」が戻る仕組みとなっている。末尾探索は、リードアドレスを「範囲外エラー」が戻るまで倍々と増やし、「範囲外エラー」を得た後は、「範囲外エラー」となる境界のリードアドレスを二分探索で絞り込む。このリードアクセスのリードサイズはブロックのバイトサイズとする。リード回数は、(記録デバイスの容量/ブロックのバイトサイズ)の2を底とした対数値の倍程度(例:ブロックサイズを1MB=220、記録デバイスのサイズを1TB=240とした場合には、log2(220)×2=40回)であり、処理時間は実用上問題ない。この際、リードアクセスに要した時間は総アクセス時間8221に加算し、総アクセス回数8222を1加算し、デバイス毎のアクセス平均時間822の算出に用いる。全映像用記録デバイスの容量確認を終えたらステップ203に進む。 In step 202 “Confirmation of capacity of each recording device”, the capacity in each recording device 10 = the number of blocks is confirmed. The capacity check is performed by actually performing read access and searching for the end. In the process of designating the read address from the recording device 10 and performing the read access, when the address is out of capacity, an “out of range error” indicating that is returned. In the tail search, the read address is doubled until the “out-of-range error” returns, and after the “out-of-range error” is obtained, the read address at the boundary that becomes the “out-of-range error” is narrowed down by the binary search. The read access read size is the byte size of the block. Read count is 2 bottom and the pair about twice the numeric value of (byte size of the volume / block of the recording device) (Example: If the block size 1MB = 2 20, 1TB the size of the recording device = 2 40 Log 2 (2 20 ) × 2 = 40 times ), and the processing time has no problem in practical use. At this time, the time required for the read access is added to the total access time 8221, the total access count 8222 is added by 1 and used to calculate the average access time 822 for each device. When the capacity confirmation of all the video recording devices is completed, the process proceeds to step 203.

ステップ203「記録デバイス毎ワークメモリ確保」では、揮発性RAM8に、ステップ201で検出した映像用記録デバイスの数分の記録デバイス毎ワークメモリ82を確保する。メモリが不足する場合には、その旨をログファイル出力および外部通知等の処理を行ない、起動処理を終了する。   In step 203 “Securing work memory for each recording device”, the work memory 82 for each recording device corresponding to the number of video recording devices detected in step 201 is secured in the volatile RAM 8. If the memory is insufficient, processing such as log file output and external notification is performed to that effect, and the start-up process is terminated.

ステップ204「目次情報読み込み」では、各映像用記録デバイス10の目次情報ブロック13を読み出し、ステップ203で確保した該記録デバイス毎ワークメモリ82の目次情報ブロック821に格納する。   In step 204 “read table of contents information”, the table of contents information block 13 of each video recording device 10 is read and stored in the table of contents information block 821 of the work memory 82 for each recording device secured in step 203.

ステップ205「カメラ数確認」では、各映像用記録デバイス10のアドレス変換テーブル12のカメラ領域情報12−0からカメラ数を取得する。映像用記録メディアが複数存在する場合には、全映像用記録メディアでアドレス変換テーブル12が一致した場合にステップ206に進む。一致しなかった場合には、映像用記録デバイス間の不整合として、その旨をログファイル出力および外部通知等の処理を行ない、起動処理を終了する。   In step 205 “camera number confirmation”, the number of cameras is acquired from the camera area information 12-0 of the address conversion table 12 of each video recording device 10. If there are a plurality of video recording media, the process proceeds to step 206 when the address conversion table 12 matches in all video recording media. If they do not match, it is determined that there is a discrepancy between the video recording devices, and processing such as log file output and external notification is performed, and the start-up processing is terminated.

ステップ206「カメラ毎ワークメモリ確保」では、揮発性RAM8に、ステップ205で取得したカメラ数分のカメラ毎ワークメモリ80を確保する。メモリが不足する場合には、その旨をログファイル出力および外部通知等の処理を行ない、起動処理を終了する。   In Step 206 “Securing work memory for each camera”, the work memory 80 for each camera for the number of cameras acquired in Step 205 is secured in the volatile RAM 8. If the memory is insufficient, processing such as log file output and external notification is performed to that effect, and the start-up process is terminated.

ステップ207「アドレス変換テーブル読み込み」では、各映像用記録デバイス10のアドレス変換テーブル12のカメラ領域毎部分(12−1〜12−m)を読み出し、該カメラ毎ワークメモリのアドレス変換テーブル801に格納する。   In step 207 “read address conversion table”, the camera area portion (12-1 to 12-m) of the address conversion table 12 of each video recording device 10 is read and stored in the address conversion table 801 of the work memory for each camera. To do.

ステップ208「目次情報カメラ毎ソート」では、記録デバイス10毎のアドレス順に並んだ目次情報821から、アドレス変換テーブル801を用いて、該カメラの循環記録領域のアドレス順の目次情報テーブル809を作成する。   In step 208 “sort by table of contents information camera”, a table of contents information table 809 in the order of addresses of the circulating recording area of the camera is created from the table of contents information 821 arranged in the order of addresses for each recording device 10 using the address conversion table 801. .

ステップ209「カメラ毎目次情報探索」では、目次情報が連続しているかを確認する。最古ブロックの目次情報の探索、最新ブロックの目次情報の探索、最古と最新間で連続している事の確認、の3段階で行なう。   In Step 209 “Search by Table of Contents Information for Each Camera”, it is confirmed whether the table of contents information is continuous. The search is performed in three stages: searching for the table of contents information of the oldest block, searching for table of contents information of the latest block, and confirming that it is continuous between the oldest and latest.

最古ブロック探索ではブロック内先頭データ番号133が最小の目次情報130を探し、最新ブロック探索ではブロック内先頭データ番号133が最大の目次情報130を探す。連続性の確認では、目次情報テーブル809をリングバッファとして扱い、最古ブロックから最新ブロックまで、目次情報130のブロック内先頭データ番号133+ブロック内フレーム数134の値が、次の目次情報のブロック内先頭データ番号と連続するかを確認していく。全て連続していれば、最古ブロックの情報を該カメラ用ワークメモリの最古映像時刻806と最古映像ブロック番号807に格納し、同様に最新ブロックの情報を該カメラ用ワークメモリの最新像時刻804と最新映像ブロック番号805に格納し、作成中ブロック番号808に最新映像ブロック番号805に1加算した値を入れ、ステップ211に進む。不連続箇所を検出した場合には、その旨をログファイル出力および外部通知等の処理を行ない、起動処理を一旦終了しステップ210に進む。   In the oldest block search, the table of contents information 130 having the smallest in-block head data number 133 is searched, and in the latest block search, the table of contents information 130 having the largest in-block head data number 133 is searched. In the confirmation of continuity, the table of contents information table 809 is treated as a ring buffer, and from the oldest block to the latest block, the value of the first data number 133 in the block of the table of contents information 130 + the number of frames in block 134 is within the block of the next table of contents information. Check if it is continuous with the first data number. If all are continuous, the oldest block information is stored in the oldest video time 806 and the oldest video block number 807 of the camera work memory, and the latest block information is similarly stored in the latest image of the camera work memory. The value stored in the time 804 and the latest video block number 805 is entered, and the value obtained by adding 1 to the latest video block number 805 is entered in the block number 808 being created. If a discontinuous portion is detected, processing such as log file output and external notification is performed to that effect, and the start-up processing is temporarily terminated and the routine proceeds to step 210.

ステップ210「修復」では、目次情報ブロック13と映像ブロック14の不整合を修復する処理を行なう。不整合部の映像ブロック14を記録デバイス10から読み出し、映像ブロック14が正常である場合には、映像ブロック14のヘッダ部の目次情報130を採用し、映像ブロック14が異常である場合には前後の正常映像ブロック14の目次情報から整合性のあるダミー目次情報130を作成する。これら修復処理の詳細については特許文献2に記載されている。ステップ210の終了後はステップ200から再開する。   In step 210 “repair”, processing for repairing inconsistency between the table of contents information block 13 and the video block 14 is performed. When the video block 14 of the inconsistent portion is read from the recording device 10 and the video block 14 is normal, the table of contents information 130 of the header portion of the video block 14 is adopted, and when the video block 14 is abnormal, Consistent dummy table of contents information 130 is created from the table of contents information of the normal video block 14. Details of these restoration processes are described in Patent Document 2. After step 210 ends, the process restarts from step 200.

ステップ211「カメラ毎サンプリング数算出」では、映像ブロック14の読み出しのサンプリング数を算出する。該カメラ装置3のブロック数が1024以下ならばサンプリング数は10、ブロック数が1024を超える場合には、サンプリング数=lg(ブロック数)とする。   In step 211 “calculation of sampling number for each camera”, the sampling number of reading of the video block 14 is calculated. If the number of blocks of the camera device 3 is 1024 or less, the sampling number is 10, and if the number of blocks exceeds 1024, the sampling number = lg (number of blocks).

ステップ212「カメラ毎目情報サンプリングチェック」では、映像データ14から読み出したヘッダ部の目次情報130と、目次情報テーブル809内の該目次情報130の比較を行なう。全目次情報の比較チェックは所要時間から現実的でないため、ステップ209で取得した最古ブロックと最新ブロックと、目次情報テーブル809をステップ211で算出したサンプリング数で等分したポイントのブロックにて比較を行なう。全て一致する場合にはステップ213に進む。不整合を発見した場合には、その旨をログファイル出力および外部通知等の処理を行ない、起動処理を一旦終了してステップ210に進む。この比較の際のリードアクセスの所要時間も、デバイス10毎のアクセス平均時間822の算出に用いる。リードアクセスに要した時間を総アクセス時間8221へ加算し、総アクセス回数8222に1加算する。   In step 212 “camera eye information sampling check”, the table of contents information 130 read from the video data 14 is compared with the table of contents information 130 in the table of contents information table 809. Since the comparison check of all the table of contents information is not realistic from the required time, the oldest block and the latest block acquired at step 209 are compared with the block at the point where the table of contents information table 809 is equally divided by the sampling number calculated at step 211. To do. If all match, the process proceeds to step 213. If an inconsistency is found, processing such as log file output and external notification is performed to that effect, and the start-up process is temporarily terminated and the process proceeds to step 210. The time required for the read access at the time of this comparison is also used for calculating the access average time 822 for each device 10. The time required for read access is added to the total access time 8221, and 1 is added to the total access count 8222.

ステップ213「設定ファイル読み込み」では、設定ファイル72内の情報を揮発性RAM8のワークメモリに読み出す。   In step 213 “read setting file”, the information in the setting file 72 is read into the work memory of the volatile RAM 8.

ステップ214「定常運転」では、起動処理を終了し定常運転に入る。   In step 214 “steady operation”, the start-up process is terminated and the steady operation is started.

図9は、ネットワーク型映像記録装置1の定常運転時の動作を説明するための概念図である。ネットワーク型映像記録装置1の定常運転の処理(受信・記録・配信)は、それぞれの処理を行なうスレッド(Thread)、すなわち受信スレッド91と、書込スレッド92と、配信スレッド93の連携で行なう。映像格納バッファ802はダブルバッファ以上の構成で運用し、各バッファの状態には「詰込中」「書込待ち」「空」の3状態があるものとする。   FIG. 9 is a conceptual diagram for explaining the operation at the time of steady operation of the network type video recording apparatus 1. The processing (reception / recording / distribution) of the network type video recording apparatus 1 is performed in cooperation with threads (Thread) for performing the respective processes, that is, the reception thread 91, the writing thread 92, and the distribution thread 93. It is assumed that the video storage buffer 802 operates with a configuration of a double buffer or more, and there are three states of each buffer: “clogging”, “waiting for writing”, and “empty”.

受信スレッド91は、ネットワーク2を介して、設定ファイル72のカメラ向け情報723の接続先情報724で指定されたカメラ装置3から、画質情報725で指定された画質で映像データを受信し、映像格納バッファ802の「詰込中」状態のバッファに詰め込みを行なう。「詰込中」バッファにそれ以上の映像データの詰め込みが行なえない場合には、そのバッファ状態を「書込待ち」とし、別途「空」状態のバッファ802の確保を試みる。確保できた場合には、作成中ブロック番号808を1加算し、該バッファの状態を「詰込中」とし、ヘッダ部140のブロック番号143として作成中ブロック番号808の値を入れ、カメラ番号144に担当するカメラ装置3の識別番号(1〜m)を入れ、映像の詰め込みを続行する。「空」状態のバッファが存在しない場合には、「空」状態のバッファが登場するまで待機する。   The reception thread 91 receives video data with the image quality specified by the image quality information 725 from the camera device 3 specified by the connection destination information 724 of the camera information 723 of the setting file 72 via the network 2 and stores the video. The buffer 802 is filled in the “packing” state buffer. If no more video data can be packed in the “packing” buffer, the buffer status is set to “waiting for writing”, and another attempt is made to secure a buffer 802 in the “empty” status. If it can be secured, 1 is added to the block number 808 being created, the buffer status is set to “clogging”, the value of the block number 808 being created is entered as the block number 143 of the header 140, and the camera number 144 The identification number (1 to m) of the camera device 3 in charge is entered, and the video stuffing is continued. If there is no “empty” buffer, it waits until an “empty” buffer appears.

受信スレッド91は受信を行なうカメラ装置3の台数分(m)だけ稼動する。書込スレッド92は、映像データと目次情報を、揮発性メモリ7から記録デバイス10に書き出す処理を行なう。詳細は図11を用いて後述する。配信スレッド93は、ネットワーク2を介して、情報端末装置(視聴PC)4からの映像要求を受け付け、要求映像データがどの映像ブロック14に入っているかを目次情報テーブル809から検索して映像ブロック番号を取得し、その映像ブロックを記録デバイス10から映像ブロック読み出し用バッファ811に読み出し、要求映像データを、情報端末装置(視聴PC)4に配信する。   The reception thread 91 operates for the number (m) of the camera devices 3 that perform reception. The writing thread 92 performs processing for writing video data and table of contents information from the volatile memory 7 to the recording device 10. Details will be described later with reference to FIG. The distribution thread 93 receives a video request from the information terminal device (viewing PC) 4 via the network 2 and searches the table of contents information table 809 to determine which video block 14 contains the requested video data, and the video block number. The video block is read from the recording device 10 to the video block reading buffer 811 and the requested video data is distributed to the information terminal device (viewing PC) 4.

図11は、書込スレッド92の処理内容を示すフローチャートである。図11において、ステップ300「スタート」は書込スレッド92が生成された時点を示す。   FIG. 11 is a flowchart showing the processing contents of the writing thread 92. In FIG. 11, Step 300 “Start” indicates a point in time when the writing thread 92 is generated.

ステップ301「「書込待ち」映像受信バッファ探索」では、各IPカメラ用ワークメモリ(80−1〜80−m)の映像格納バッファ802を調べ、状態が「書込待ち」のバッファを探す。存在しなければステップ307に進み、存在すればステップ302に進む。   In step 301 “search for“ waiting for writing ”video reception buffer”, the video storage buffer 802 of each IP camera work memory (80-1 to 80-m) is examined to search for a buffer whose status is “waiting for writing”. If it does not exist, the process proceeds to step 307, and if it exists, the process proceeds to step 302.

ステップ302「アドレス変換」では、ステップ301で検出したバッファのヘッダ部分140内のブロック番号143とカメラ番号144を、アドレス変換テーブル801を用いて、記録デバイス10の書き込み先の映像ブロック14のアドレスに変換を行なう。   In step 302 “address conversion”, the block number 143 and the camera number 144 in the header portion 140 of the buffer detected in step 301 are used as the address of the video block 14 to which the recording device 10 is written, using the address conversion table 801. Perform the conversion.

ステップ303では、ステップ301で発見したバッファを、ステップ302で変換した記録デバイス10上のアドレスの映像ブロック14へ書き出しを行ない、状態を「空」とする。   In step 303, the buffer found in step 301 is written to the video block 14 at the address on the recording device 10 converted in step 302, and the state is set to "empty".

ステップ304では、303でデバイスに記録した映像ブロックの目次情報130を、カメラ毎ワークメモリ80のカメラ領域毎ソート済み目次情報テーブル809と、記録デバイス毎ワークメモリ82の目次情報ブロック821に格納する。   In step 304, the table of contents information 130 of the video block recorded in the device in 303 is stored in the table of contents information table 809 sorted by camera area of the work memory 80 for each camera and the table of contents information block 821 of the work memory 82 for each recording device.

目次情報テーブル809への格納処理では、目次情報テーブル809内の格納先アドレスを算出し、該アドレスにヘッダ部140目次情報130を格納し、該カメラ毎ワークメモリ80の最新と最古の時刻とブロック番号(804〜807)の更新も行う。該アドレスは、ブロック番号(804〜807)の更新も行う。 In the storage processing in the table of contents information table 809, the storage destination address in the table of contents information table 809 is calculated, the table of contents information 130 of the header section 140 is stored at the address, and the latest and oldest time of the work memory 80 for each camera. The block number (804 to 807) is also updated. The address also updates the block number (804 to 807).

目次情報ブロック821への格納処理では、ヘッダ部140の目次情報130を、ステップ302で求めたアドレスを元に、記録デバイス毎ワークメモリ82上の目次ブロック8210にコピーを行ない、該目次情報8210の属する目次ブロック821の更新回数820を1加算する。   In the storing process in the table of contents information block 821, the table of contents information 130 of the header section 140 is copied to the table of contents block 8210 on the work memory 82 for each recording device based on the address obtained in step 302, and the table of contents information 8210 is stored. One is added to the update count 820 of the table of contents block 821 to which it belongs.

ステップ305では、各目次ブロック821の修復所要時間を、更新回数820と平均アクセス時間822の積から求め、全目次ブロック821の修復所用時間の合計が修復目標時間721を越えているか判定する。超えているならばステップ306に進み、越えてなければステップ307に進む。   In step 305, the repair time required for each table of contents block 821 is obtained from the product of the number of updates 820 and the average access time 822, and it is determined whether the total repair time for all table of contents blocks 821 exceeds the repair target time 721. If exceeded, the process proceeds to step 306, and if not exceeded, the process proceeds to step 307.

ステップ306では、ステップ305で求めた各目次ブロック821の修復所要時間の中から、最も修復所要時間の大きい目次情報821を、記録デバイスの目次情報ブロック13に書き出し、該目次情報ブロック13の更新回数820を0にリセットする。   In step 306, the table of contents information 821 having the longest time required for repairing among the time required for repairing each table of contents block 821 obtained in step 305 is written to the table of contents information block 13 of the recording device, and the number of times the table of contents information block 13 is updated Reset 820 to zero.

ステップ307では、数ミリ秒の待機の後にステップ301に進む。   In step 307, the process proceeds to step 301 after waiting for several milliseconds.

図11では簡易に説明したが、ステップ305では上記の判定に加え、ブロック毎の更新回数820が閾値を超えているかも判定に加えてもよい。この判定を加えれば、映像ブロックの書き出し先が偏る際等で、特定の目次ブロック821のみに更新が集中する場合に、該目次ブロック821内の目次情報8210の大半が更新されているにも関わらず、合計数では305には達し難く、記録デバイスへの書き出しが行われ難いという現象を回避することができる。   As described briefly in FIG. 11, in step 305, in addition to the above determination, whether or not the number of updates 820 for each block exceeds a threshold value may be added to the determination. If this determination is added, when updates are concentrated only on a specific table of contents block 821, such as when the writing destination of a video block is biased, most of the table of contents information 8210 in the table of contents block 821 is updated. In other words, it is difficult to reach 305 in the total number, and it is possible to avoid the phenomenon that writing to the recording device is difficult to be performed.

この処理を加える場合には、閾値は設定から与えられる変数とすべきであり、その値は目次ブロック821内の目次情報8210数以下の数とすべきである。目次ブロック821内の目次情報8210数を十割とした割合で与えてもよい。   When this processing is added, the threshold value should be a variable given from the setting, and the value should be a number equal to or less than the number of table of contents information 8210 in the table of contents block 821. The number of table of contents information 8210 in the table of contents block 821 may be given as a percentage.

または、図11の例より簡略化し、ステップ305にて全目次ブロック821の修復所用時間の合計が修復目標時間721を越えている場合には、ステップ306にて全ての目次ブロック821を記録デバイスに書き出すようにしてもよい。   Alternatively, if the total repair time of all the table of contents blocks 821 exceeds the repair target time 721 in step 305, the table of contents 821 is stored in the recording device in step 306. You may make it write out.

この目次情報の書き出し制御を用いることで、SSD10bのようにリードアクセスの速い記録デバイスの場合には、書き出し頻度が減ることから、書き換え回数を減らしてSSDの寿命を延ばす効果が得られる。また、HDD10aのようにリードアクセスが遅い記録デバイスの場合には、書き出し頻度が上がるため、不整合の数を減らして修復処理の所要時間を抑える効果が得られる。したがって、記録デバイス10にHDD10aとSSD10bを併用した場合でも、目次情報の修復時間を一定時間以下とする効果が得られる。   By using this table-of-contents information write-out control, in the case of a recording device with fast read access like the SSD 10b, the write-out frequency is reduced, so that the effect of reducing the number of rewrites and extending the life of the SSD can be obtained. Also, in the case of a recording device with slow read access such as the HDD 10a, the writing frequency increases, so that the effect of reducing the number of inconsistencies and reducing the time required for repair processing can be obtained. Therefore, even when the HDD 10a and the SSD 10b are used in combination in the recording device 10, the effect of making the table-of-contents information restoration time a predetermined time or less can be obtained.

尚、上記実施形態の説明では、書込スレッド92が映像格納バッファ802を探索していく形で簡易に説明したが、受信スレッド91が映像データを詰め込み終えた順に映像ブロックを書き出させるためには、映像格納バッファ802を、受信スレッド91から書込スレッド92へのFIFO(First In First Out)の形で実装する方がよい。   In the description of the above embodiment, the writing thread 92 searches the video storage buffer 802 for a simple explanation, but the receiving thread 91 writes video blocks in the order in which video data has been packed. It is better to mount the video storage buffer 802 in the form of FIFO (First In First Out) from the reception thread 91 to the writing thread 92.

この実施形態の説明では、書込スレッド92が各目次情報821の修復所要時間の監視と記録デバイス10の書き出しを行なうように記したが、これは限定するものでなく、他のスレッド、例えばネットワーク型映像記録装置1のソフトウェア状態の監視を行なう働きのスレッドに処理を行なわせてもよい。   In the description of this embodiment, it has been described that the writing thread 92 monitors the time required for repairing each table of contents information 821 and writes out the recording device 10, but this is not a limitation, and other threads such as a network, for example, Processing may be performed by a thread for monitoring the software state of the type video recording apparatus 1.

その他、本発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化することができる。また、上記実施形態に開示されている複数の構成要素の適宜な組合せにより種々の発明を形成することもできる。例えば、実施形態に示される全構成要素からいくつかの構成要素を削除してもよい。さらに、異なる実施形態に亘る構成要素を適宜組み合わせてもよい。   In addition, the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Various inventions can also be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, you may combine the component covering different embodiment suitably.

1…ネットワーク対応型映像記録装置、
2…ネットワーク、
3,3−1〜3−m…IPカメラ装置、
4,4−1〜4−n…情報端末装置(視聴PC)、
5,5−1〜5−m…循環記録用領域、
6…コンピュータ基板、60…内部バス、61…ネットワークインターフェース(I/F)、62…記録デバイスインターフェース(I/F)、63…CPU、64…記録デバイス向けバス、
7…揮発性RAM(ランダムアクセスメモリ)、71…実行ファイル、72…設定ファイル、721…修復目標時間、722…視聴ユーザ上限数、723,723−1〜723−m…カメラ毎設定情報、724…カメラ接続用情報、725…カメラ画質指定用情報、8…不揮発性RAM、80,80−1〜80−m…カメラ毎ワークメモリ、801…アドレス変換テーブル(カメラ→デバイス)、802…映像格納バッファ、803…ブロック数、804…最新映像時刻、805…最新映像ブロック番号、806…最古映像時刻、807…最古映像ブロック番号、808…作成中ブロック番号、809…目次情報テーブル、81,81−1〜81−U…ユーザ毎ワークメモリ、811…映像ブロック読み出用バッファ、812…ログインID、813…最終アクセス時刻、82,82−1〜82−D…記録デバイス毎ワークメモリ、820,820−1〜820−i…更新回数、821,821−1〜821−i…目次情報ブロック、8210,8210−1〜8210−j…目次情報、822…平均アクセス時間、8221…総アクセス時間、8222…総アクセス回数、
91…受信スレッド、92…書込スレッド、93…配信スレッド、
10,10−1〜10−k…記録デバイス、10a…HDD、10b…SSD、
11…アドレス変換テーブル0(デバイス→カメラ領域)、110…アドレス情報、
12,12−1〜12−m…アドレス変換テーブル1(カメラ領域→デバイス)、12−0,12−0−1〜12−0−m…カメラ領域情報、12−1−1〜12−1−X1…アドレス情報、
13,13−1〜13−i…目次情報ブロック、130,130−1〜130−j…目次情報、131…状態フラグ、132…ブロック内先頭データ時刻、133…ブロック内先頭データ番号、134…ブロック内フレーム数、
14,14−1〜14−j…映像ブロック、14−1〜14−m…映像ブロック、140…ヘッダ部、141−1〜141−f…映像フレーム、142…映像データアドレス、143…ブロック番号、144…カメラ番号。
1 ... Network compatible video recording device,
2 ... Network,
3,3-1 to 3-m ... IP camera device,
4,4-1 to 4-n ... information terminal device (viewing PC),
5,5-1 to 5-m ... circulation recording area,
6 ... Computer board, 60 ... Internal bus, 61 ... Network interface (I / F), 62 ... Recording device interface (I / F), 63 ... CPU, 64 ... Bus for recording device,
7 ... Volatile RAM (random access memory), 71 ... Execution file, 72 ... Setting file, 721 ... Restoration target time, 722 ... Viewing user upper limit number, 723, 723-1 to 723-m ... Setting information for each camera, 724 ... Camera connection information, 725 ... Camera image quality designation information, 8 ... Non-volatile RAM, 80, 80-1 to 80-m ... Work memory for each camera, 801 ... Address conversion table (camera to device), 802 ... Video storage Buffer, 803 ... Number of blocks, 804 ... Latest video time, 805 ... Latest video block number, 806 ... Oldest video time, 807 ... Oldest video block number, 808 ... Block number being created, 809 ... Table of contents information table, 81 81-1 to 81-U: Work memory for each user, 811: Buffer for reading video block, 812: Login ID 813 ... Last access time, 82, 82-1 to 82-D ... Work memory for each recording device, 820, 820-1 to 820-i ... Number of updates, 821, 821-1 to 821-i ... Table of contents information block, 8210 , 8210-1 to 8210-j ... Contents information, 822 ... Average access time, 8221 ... Total access time, 8222 ... Total access count,
91 ... Receiving thread, 92 ... Writing thread, 93 ... Delivery thread,
10, 10-1 to 10-k ... recording device, 10a ... HDD, 10b ... SSD,
11 ... Address conversion table 0 (device → camera area), 110 ... address information,
12, 12-1 to 12-m ... address conversion table 1 (camera area → device), 12-0, 12-0-1 to 12-0-m ... camera area information, 12-1-1 to 12-1 -X1 ... address information,
13, 13-1 to 13-i ... Contents information block, 130, 130-1 to 130-j ... Contents information, 131 ... Status flag, 132 ... First data time in block, 133 ... First data number in block, 134 ... Number of frames in block,
14, 14-1 to 14-j: video block , 14-1 to 14-m: video block, 140: header portion, 141-1 to 141-f ... video frame, 142 ... video data address, 143 ... block Number, 144... Camera number.

Claims (4)

それぞれ任意の映像データ供給源からの映像データを循環記録する複数の記録デバイスと、
前記映像データ供給源から受信した映像データを一時保持して前記複数の記録デバイスそれぞれに送り出すワークメモリと、を備え、
前記複数の記録デバイスの個々には、所定のブロックの単位で映像データ供給源毎に割り当てられる、前記映像データを循環記録するための記録領域記録される前記映像データのブロックのヘッダにある目次情報を書き出して前記映像データの記録状況を該所定のブロックの単位で管理する目次情報記録領域、前記映像データの記録アドレスを管理するアドレス管理テーブルが形成され、
前記映像データ供給源に対応して前記複数の記録デバイスのいずれかに形成される前記記録領域に循環記録された前記映像データと、前記書き出された目次情報との不整合を修復する映像記録装置であって、
該映像記録装置の起動時に、前記目次情報記録領域の目次情報を該ワークメモリに複製し、
個々の前記ワークメモリ内にバッファを構成して、前記受信した映像データを該所定のブロックに収まる範囲で該バッファに詰め込んでいき、これ以上詰め込めなくなったときに、該バッファから該記録領域のいずれかのブロックへヘッダと共に書き出すとともに、該ワークメモリ上の目次情報を該ヘッダから書き出した目次情報で更新する一方で前記目次情報記録領域への書き込み待機状態とし、該待機状態の目次情報の更新回数から算出される値が前記複数の記録デバイス毎に定める基準値を超えた時点で前記記録デバイス内の目次情報書き出しを行うように前記映像データ及び目次情報の書き込みを制御するワークメモリ制御手段と、
前記記録領域内の映像データ中の目次情報と目次情報記録領域内の目次情報との不整合を検査し、不整合があったときには、不整合部の映像データのブロックを対応する前記記録デバイスから読み出し、該読み出した映像データが正常であれば、該読み出した映像データのヘッダの目次情報から目次情報記録領域内の目次情報を修復し、目次情報と映像データの同期化する同期化手段と
を具備することを特徴とする映像記録装置。
A plurality of recording devices for circulatingly recording video data from arbitrary video data supply sources,
A work memory that temporarily stores video data received from the video data supply source and sends it to each of the plurality of recording devices;
Individual plurality of recording devices, assigned to each video data source in units of predetermined blocks, and record area for circulating recording the video data, the header block of the image data to be recorded there are a table of contents information recording areas Contents writes the information for managing the recording state of the video data in units of the predetermined block, and address management table for managing the recording address of the image data is formed,
Video recording for repairing inconsistency between the video data circularly recorded in the recording area formed in any of the plurality of recording devices corresponding to the video data supply source and the written table of contents information A device,
When starting the video recording device, the table of contents information of the table of contents information recording area is copied to the work memory,
A buffer is formed in each of the work memories, and the received video data is packed into the buffer within a range that can be accommodated in the predetermined block. The contents information on the work memory is updated with the contents information written from the header, while writing to the contents information recording area is in a standby state, and the contents information in the waiting state is updated. work memory control value calculated from the number of times to control the writing of the video data and the index information so as to perform writing for the contents information in the recording device at the time exceeds the reference value prescribed for each of the plurality of recording devices Means,
Check the inconsistency between the table of contents information in the video data in the recording area and the table of contents information in the table of contents information recording area, and if there is a mismatch, the block of the video data of the inconsistent portion from the corresponding recording device reading, if the read video data is normal, repair contents information table of contents information recording area from the table of contents information of the header of the read video data, and a synchronization means that they can synchronize the contents information and the video data Zoki recording apparatus movies characterized by including.
記複数の記録デバイスが前記目次情報の書き換え頻度に対して異なる特性を有し、それぞれの前記記録デバイスの目次情報記録領域は、該記録デバイス内で複数の目次ブロックにより構成され、前記更新回数は該目次ブロック毎に計数されるものであり
前記ワークメモリ制御手段は、前記複数の記録デバイス毎に平均アクセス時間を求め、前記更新回数と前記平均アクセス時間との積から修復所要時間を求め、いずれかの前記記録デバイスの全目次ブロックの修復所要時間の合計が修復目標時間を超えた時点で最も修復所要時間の長い目次情報を記録デバイスに書き出ことを特徴とする請求項1記載の映像記録装置。
Before SL have different properties plurality of recording devices with respect to the rewriting frequency of the index information, TOC information recording area of each of said recording device is composed of a plurality of contents blocks in the recording device, the update count Is counted for each table of contents block ,
Said work memory control means obtains the average access time for each of the plurality of recording devices, the number of updates and obtains the average access time and the repair time required from the product of any repair of all contents block of the recording device total Zoki recording apparatus movies according to claim 1, wherein the write out a long table of contents information of the most repair time required at the time of exceeding the restoration target time to the recording device of the required time.
前記複数の記録デバイスの1つはハードディスクドライブであり、他の1つは該ハードディスクドライブより高いランダムリード速度及び少ない書き換え可能回数を有するソリッドステートドライブであり、前記平均アクセス時間は少なくとも計測したリードアクセス時間に基づいて求められ、該ソリッドステートドライブへの目次情報への書き出しの頻度が、該ハードディスクドライブよりも減ることを特徴とする請求項2記載の映像記録装置。One of the plurality of recording devices is a hard disk drive, the other is a solid state drive having a higher random read speed and a smaller number of rewritable times than the hard disk drive, and the average access time is at least measured read access 3. The video recording apparatus according to claim 2, wherein the frequency of writing to the table of contents information to the solid state drive is determined based on time and less than that of the hard disk drive. それぞれ任意の映像データ供給源からの映像データを循環記録する複数の記録デバイスと、前記映像データ供給源から受信した映像データを一時保持して前記複数の記録デバイスそれぞれに送り出すワークメモリとを備え、前記複数の記録デバイスの個々には、所定のブロックの単位で映像データ供給源毎に割り当てられる、前記映像データを循環記録するための記録領域と、記録される前記映像データのブロックのヘッダにある目次情報を書き出して前記映像データの記録状況を該所定のブロックの単位で管理する目次情報記録領域と、前記映像データの記録アドレスを管理するアドレス管理テーブルとが形成され、前記映像データ供給源に対応して前記複数の記録デバイスのいずれかに形成される前記記録領域に循環記録された前記映像データと、前記書き出された目次情報との不整合を修復する映像記録装置に用いられる方法であって、A plurality of recording devices that circulate and record video data from any video data supply source, and a work memory that temporarily stores video data received from the video data supply source and sends it to each of the recording devices; Each of the plurality of recording devices has a recording area for circular recording of the video data and a header of the block of the video data to be recorded, which is allocated to each video data supply source in units of a predetermined block. A table of contents information recording area for writing the table of contents information and managing the recording status of the video data in units of the predetermined block, and an address management table for managing the recording address of the video data are formed, and the video data supply source Correspondingly, the video that is cyclically recorded in the recording area formed in any of the plurality of recording devices And over data, a method for use in a video recording apparatus for repairing a mismatch between the exported contents information,
該映像記録装置の起動時に、前記目次情報記録領域の目次情報を該ワークメモリに複製し、  When starting the video recording device, the table of contents information of the table of contents information recording area is copied to the work memory,
個々の前記ワークメモリ内にバッファを構成して、前記受信した映像データを該所定のブロックに収まる範囲で該バッファに詰め込んでいき、これ以上詰め込めなくなったときに、該バッファから該記録領域のいずれかのブロックへヘッダと共に書き出すとともに、該ワークメモリ上の目次情報を該ヘッダから書き出した目次情報で更新する一方で前記目次情報記録領域への書き込みは待機状態とし、該待機状態の目次情報の更新回数から算出される値が前記複数の記録デバイス毎に定める基準値を超えた時点で前記記録デバイス内の目次情報への書き出しを行うように前記映像データ及び目次情報の書き込みを制御することと、  A buffer is formed in each of the work memories, and the received video data is packed into the buffer within a range that can be accommodated in the predetermined block. The contents information on the work memory is updated with the contents information written from the header, while writing to the contents information recording area is in a standby state, and the contents information in the waiting state is updated. Controlling the writing of the video data and the table of contents information so as to write to the table of contents information in the recording device when a value calculated from the number of times exceeds a reference value determined for each of the plurality of recording devices;
前記記録領域内の映像データ中の目次情報と目次情報記録領域内の目次情報との不整合を検査し、不整合があったときには、不整合部の映像データのブロックを対応する前記記録デバイスから読み出し、該読み出した映像データが正常であれば、該読み出した映像データのヘッダの目次情報から目次情報記録領域内の目次情報を修復し、目次情報と映像データの同期化することと  Check the inconsistency between the table of contents information in the video data in the recording area and the table of contents information in the table of contents information recording area, and if there is a mismatch, the block of the video data of the inconsistent portion from the corresponding recording device If the read video data is normal, the table of contents information in the table of contents information recording area is restored from the table of contents information of the read video data, and the table of contents information and the video data are synchronized.
を有することを特徴とする映像記録方法。A video recording method comprising:
JP2009237641A 2009-10-14 2009-10-14 Video recording apparatus and video recording method Active JP5336993B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009237641A JP5336993B2 (en) 2009-10-14 2009-10-14 Video recording apparatus and video recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009237641A JP5336993B2 (en) 2009-10-14 2009-10-14 Video recording apparatus and video recording method

Publications (2)

Publication Number Publication Date
JP2011087080A JP2011087080A (en) 2011-04-28
JP5336993B2 true JP5336993B2 (en) 2013-11-06

Family

ID=44079717

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009237641A Active JP5336993B2 (en) 2009-10-14 2009-10-14 Video recording apparatus and video recording method

Country Status (1)

Country Link
JP (1) JP5336993B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3229464B1 (en) * 2014-12-01 2021-01-27 Hitachi Kokusai Electric Inc. Video recording device and video recording method
CN115412694A (en) * 2022-11-02 2022-11-29 北京国铁华晨通信科技有限公司 Video recording indexing method and video recording equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3851723B2 (en) * 1998-04-30 2006-11-29 株式会社東芝 Disk storage device and segment cache control method in the same device
JP2001209567A (en) * 2000-01-27 2001-08-03 Nec Eng Ltd Journal writing system
JP4237549B2 (en) * 2003-05-29 2009-03-11 株式会社日立国際電気 Circulation recorder
JP4583270B2 (en) * 2005-08-16 2010-11-17 株式会社日立国際電気 Recording device
JP4933861B2 (en) * 2005-09-22 2012-05-16 株式会社日立製作所 Storage control device, data management system, and data management method
JP4863749B2 (en) * 2006-03-29 2012-01-25 株式会社日立製作所 Storage device using flash memory, erase number leveling method thereof, and erase number level program

Also Published As

Publication number Publication date
JP2011087080A (en) 2011-04-28

Similar Documents

Publication Publication Date Title
CN106708425B (en) Distributed multi-mode storage management
JP5524279B2 (en) Information processing apparatus and information processing method
US8838911B1 (en) Systems, methods, and software for interleaved data stream storage
CN104424113B (en) Storage device and data processing method
US8806154B1 (en) Thin provisioning row snapshot with reference count map
CN111054067B (en) Game archive file storage method, electronic device and storage medium
US9298707B1 (en) Efficient data storage and retrieval for backup systems
US9715348B2 (en) Systems, methods and devices for block sharing across volumes in data storage systems
US10671285B2 (en) Tier based data file management
US8843716B2 (en) Computer system, storage apparatus and data transfer method
US20150301964A1 (en) Methods and systems of multi-memory, control and data plane architecture
US20110010495A1 (en) Autonomic reclamation processing on sequential storage media
US8942543B1 (en) Systems, methods, and software for improved video data recovery effectiveness
CN107851122A (en) Large-Scale Storage and Retrieval of Data with Well-Bounded Lives
CN109918352B (en) Memory system and method of storing data
US8478933B2 (en) Systems and methods for performing deduplicated data processing on tape
US8788713B2 (en) Compression block input/output reduction
CN108156428A (en) A kind of video monitoring system
JP5336993B2 (en) Video recording apparatus and video recording method
CN112583868A (en) Backup method, device, equipment and medium for cloud storage data
US7509342B2 (en) File data storage management method, file data storage device, program executing processing for storing file data, and storage medium
CN104202371A (en) Cross-device dilation method and device based on iSCSI block direct storage
KR102509256B1 (en) Techniques for Scheduled Anti-Entropy Recovery Design
US20230132442A1 (en) Method for processing data by using intermediate device, computer system, and intermediate device
JP6367968B2 (en) Video recording apparatus and video recording method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120330

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130430

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130507

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130703

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130723

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130802

R150 Certificate of patent or registration of utility model

Ref document number: 5336993

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350