JP7226394B2 - Recording device and recording method - Google Patents

Recording device and recording method Download PDF

Info

Publication number
JP7226394B2
JP7226394B2 JP2020089924A JP2020089924A JP7226394B2 JP 7226394 B2 JP7226394 B2 JP 7226394B2 JP 2020089924 A JP2020089924 A JP 2020089924A JP 2020089924 A JP2020089924 A JP 2020089924A JP 7226394 B2 JP7226394 B2 JP 7226394B2
Authority
JP
Japan
Prior art keywords
file
recording
video
data
recording device
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
JP2020089924A
Other languages
Japanese (ja)
Other versions
JP2021184574A (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.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP2020089924A priority Critical patent/JP7226394B2/en
Priority to TW110114468A priority patent/TWI786607B/en
Priority to PCT/JP2021/018995 priority patent/WO2021235489A1/en
Publication of JP2021184574A publication Critical patent/JP2021184574A/en
Application granted granted Critical
Publication of JP7226394B2 publication Critical patent/JP7226394B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/92Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback

Description

本開示は、カメラで撮影した映像データの記憶制御を行う録画装置に関する。 The present disclosure relates to a recording device that controls storage of video data captured by a camera.

SDカード(登録商標)などの記憶媒体にデータの書き込みと削除を繰り返していくと、記憶領域において次第に細かな空き領域が増加していく。そして、大きなファイルを保存する際には、少しずつ分割されて複数の領域またがって飛び飛びに記憶されてファイルが断片化された状態となる。その結果、例えばデータの書き込みや読み出し速度の低下などの性能低下が生じてしまう。 As data is repeatedly written to and deleted from a storage medium such as an SD card (registered trademark), fine empty areas gradually increase in the storage area. Then, when a large file is saved, it is divided little by little and stored intermittently across a plurality of areas, resulting in a fragmented file. As a result, performance degradation such as a decrease in data write/read speed occurs.

ドライブレコーダのようにデータの記憶が頻繁に行われる録画装置では、断片化が生じやすいという問題がある。下記特許文献1には、メモリカードの記憶領域を分割して映像データ記録用の複数の領域を確保しておくことで、データ書き込みを行う度に書き込み領域を確保することを抑制し、断片化を抑制しようとする技術が提案されている。 A recording device such as a drive recorder in which data is frequently stored has a problem that fragmentation is likely to occur. In Patent Document 1 below, by dividing the storage area of a memory card and securing a plurality of areas for recording video data, it is possible to suppress the need to secure a writing area each time data is written, thereby preventing fragmentation. Techniques have been proposed to suppress the

特開2017-134526号公報JP 2017-134526 A

特許文献1の技術は、予め映像記録用のファイルを用意しておき、そのファイルが記憶されるデータ領域を上書きすることで断片化を回避している。しかしながら、発明者の詳細な検討の結果、特許文献1の技術では、ユーザがPCなどの外部機器を用いて手動でメモリカード上のデータファイルを削除すると、ドライブレコーダにて予め用意されたデータ領域を認識することができなくなる。その結果、映像データを記憶するために使用可能な領域が減少してしまうという課題が見出された。 The technique of Patent Document 1 avoids fragmentation by preparing a video recording file in advance and overwriting a data area in which the file is stored. However, as a result of detailed examination by the inventor, in the technique of Patent Document 1, when a user manually deletes a data file on a memory card using an external device such as a PC, the data area prepared in advance by the drive recorder is deleted. become unable to recognize As a result, a problem was found that the area that can be used for storing video data is reduced.

本開示の1つの局面は、ユーザによるファイルの手動削除などが行われても、予め割り当てられた記憶領域の減少を抑制できる技術を提供する。 One aspect of the present disclosure provides a technology capable of suppressing decrease in a pre-allocated storage area even if files are manually deleted by a user.

本開示の一態様は、記憶媒体(3)に構成される記憶領域に映像データの記憶を行う録画装置(1)であって、記憶制御部(41)と、判定部(42)と、生成部(43)と、を備える。記憶制御部は、所定の複数のデータ領域それぞれに記憶された複数の記録用ファイルに、映像データが収められた映像ファイルを上書きすることにより映像ファイルを記憶するように構成される。判定部は、記憶領域における複数のデータ領域の位置を示すアドレス情報を参照して、複数のデータ領域それぞれに記録用ファイルが存在するか否かを判定するように構成される。生成部は、判定部により記録用ファイルが存在しないと判定されたデータ領域に、新たな記録用ファイルを生成して記憶するように構成される。 One aspect of the present disclosure is a recording device (1) that stores video data in a storage area configured in a storage medium (3), comprising a storage control unit (41), a determination unit (42), a generation a part (43); The storage control unit is configured to store a video file by overwriting a plurality of recording files stored in each of the plurality of predetermined data areas with the video file containing the video data. The determination unit is configured to refer to address information indicating positions of the plurality of data areas in the storage area and determine whether or not the recording file exists in each of the plurality of data areas. The generation unit is configured to generate and store a new recording file in the data area determined by the determination unit that the recording file does not exist.

このような構成によれば、いずれか1つ以上のデータ領域に記録用ファイルが存在していない場合には、記録用ファイルが生成されそのデータ領域に記憶される。つまり記録用ファイルは、映像ファイルを記憶するための記憶領域を確保している。そして、例えば記録用ファイルが外部のパーソナルコンピュータなどを用いてユーザにより削除されていたとしても、当該1つ以上のデータ領域には新たに記録用ファイルが生成されることから、そのデータ領域への映像ファイルの記憶が可能な状態となる。よって、映像ファイルを記憶するために予め割り当てられた記憶領域が減少してしまうことを抑制できる。 According to such a configuration, when a recording file does not exist in any one or more data areas, a recording file is generated and stored in that data area. That is, the recording file reserves a storage area for storing the video file. For example, even if a recording file has been deleted by the user using an external personal computer or the like, a new recording file is generated in the one or more data areas. It becomes possible to store video files. Therefore, it is possible to prevent the storage area allocated in advance for storing the video file from decreasing.

なお、上述した録画装置において、前記記録用ファイルには、映像データを示す映像ファイルと、前記生成部により生成されるダミーファイルと、が含まれてもよい。このような構成によれば、映像ファイル又はダミーファイルが存在するデータ領域に映像ファイルの記憶を行うことができる。 In the recording device described above, the recording file may include a video file representing video data and a dummy file generated by the generation unit. According to such a configuration, the video file can be stored in the data area where the video file or the dummy file exists.

本開示の他の一態様は、記憶媒体(3)に構成される記憶領域に映像データの記憶を行う録画方法であって、記憶領域における所定の複数のデータ領域それぞれの位置を示すアドレス情報を参照して、複数のデータ領域それぞれに記録用ファイルが存在するか否かを判定する。記録用ファイルが存在しないと判定されたデータ領域に、新たな記録用ファイルを生成して記憶する。複数のデータ領域それぞれに記憶された複数の記録用ファイルに、映像データが収められた映像ファイルを上書きすることにより映像ファイルを記憶する。 Another aspect of the present disclosure is a recording method for storing video data in a storage area configured in a storage medium (3), wherein address information indicating the position of each of a plurality of predetermined data areas in the storage area is By referring to it, it is determined whether or not a recording file exists in each of the plurality of data areas. A new recording file is generated and stored in the data area in which it is determined that no recording file exists. A video file is stored by overwriting a plurality of recording files stored in each of a plurality of data areas with a video file containing video data.

このような方法によれば、上述した本開示の一態様の録画装置と同様に、記録用ファイルが削除されていても新たに記録用ファイルを生成して記憶するため、映像ファイルを記憶するために予め割り当てられた記憶領域が減少してしまうことを抑制できる。 According to such a method, as in the recording apparatus of one aspect of the present disclosure described above, even if the recording file has been deleted, a new recording file is generated and stored. It is possible to suppress the decrease in the storage area pre-allocated to the .

ドライブレコーダの構成を示すブロック図である。1 is a block diagram showing the configuration of a drive recorder; FIG. 映像ファイルの記憶制御の概要を説明する図である。FIG. 4 is a diagram for explaining an overview of storage control of video files; 記憶領域の分割を説明する図である。FIG. 4 is a diagram for explaining division of a storage area; ファイル管理テーブルの一例である。It is an example of a file management table. データ領域割り当て処理のフローチャートである。9 is a flowchart of data area allocation processing;

以下、図面を参照しながら、本開示の実施形態を説明する。
[1.実施形態]
[1-1.構成]
図1に示すドライブレコーダ1は、メモリカード3に構成される記憶領域に、撮影装置にて撮影された映像データの記憶を行う装置である。このドライブレコーダ1が、録画装置に相当する。メモリカード3はドライブレコーダ1に着脱可能に構成された記憶装置であって、例えばフラッシュメモリを内蔵していてもよい。
Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[1. embodiment]
[1-1. composition]
A drive recorder 1 shown in FIG. 1 is a device that stores video data captured by a camera in a storage area configured in a memory card 3 . This drive recorder 1 corresponds to a recording device. The memory card 3 is a storage device configured to be detachable from the drive recorder 1, and may contain, for example, a flash memory.

ドライブレコーダ1は、制御部11を備える。また、ドライブレコーダ1は、メモリカードインタフェイス12、Gセンサ21、GPS(Global Positioning System)レシーバ22、カメラ23、揮発性メモリ24、不揮発性メモリ25、ディスプレイ26、LEDランプ27、スピーカ28、マイク29、及び操作ボタン30を備えてもよい。 The drive recorder 1 has a control section 11 . The drive recorder 1 also includes a memory card interface 12, a G sensor 21, a GPS (Global Positioning System) receiver 22, a camera 23, a volatile memory 24, a nonvolatile memory 25, a display 26, an LED lamp 27, a speaker 28, a microphone 29 and an operation button 30 may be provided.

制御部11は、ドライブレコーダ1を統括制御する。制御部11は、CPU11aと、例えば、RAM又はROM等の半導体メモリ(以下、メモリ11b)と、を有するマイクロコンピュータを備える。制御部11の各機能は、CPU11aが非遷移的実体的記憶媒体に格納されたプログラムを実行することにより実現される。この例では、メモリ11bが、プログラムを格納した非遷移的実体的記憶媒体に該当する。また、このプログラムが実行されることで、プログラムに対応する方法が実行される。なお、CPU11aは、1つのマイクロコンピュータを備えてもよいし、複数のマイクロコンピュータを備えてもよい。制御部11による制御の詳細は後述する。 The control unit 11 performs overall control of the drive recorder 1 . The control unit 11 includes a microcomputer having a CPU 11a and a semiconductor memory such as RAM or ROM (hereinafter referred to as memory 11b). Each function of the control unit 11 is realized by the CPU 11a executing a program stored in a non-transitional substantive storage medium. In this example, the memory 11b corresponds to a non-transitional substantive storage medium storing programs. Also, by executing this program, a method corresponding to the program is executed. The CPU 11a may have one microcomputer, or may have a plurality of microcomputers. The details of the control by the control unit 11 will be described later.

メモリカードインタフェイス12は、メモリカードスロット12aに挿入されたメモリカード3の制御を行う集積回路を備えている。制御部11はこのメモリカードインタフェイス12を介してメモリカード3へのデータの書き込み、メモリカード3からのデータの読み出し、メモリカード3のフォーマットなどを実行する。 The memory card interface 12 has an integrated circuit for controlling the memory card 3 inserted in the memory card slot 12a. Through the memory card interface 12, the control unit 11 writes data to the memory card 3, reads data from the memory card 3, formats the memory card 3, and the like.

Gセンサ21は、ドライブレコーダ1を搭載した車両に対する外部衝撃を検知する。Gセンサ21は、所定以上の大きさの外部衝撃を検知すると衝撃検知信号を出力する。Gセンサ21が出力した衝撃検知信号は制御部11に送られる。 The G sensor 21 detects an external impact on the vehicle on which the drive recorder 1 is mounted. The G sensor 21 outputs an impact detection signal when an external impact of a predetermined size or more is detected. The impact detection signal output by the G sensor 21 is sent to the control section 11 .

GPSレシーバ22は、GPS衛星からのGPS信号を受信する。GPSレシーバ22が受信したGPS信号は制御部11に送られる。制御部11はGPS信号に基づき車両の現在位置と現在時刻を取得する。 The GPS receiver 22 receives GPS signals from GPS satellites. A GPS signal received by the GPS receiver 22 is sent to the control unit 11 . The control unit 11 acquires the current position and current time of the vehicle based on the GPS signal.

カメラ23は、ドライブレコーダ1の周囲を撮影する。カメラ23が撮影した映像のデータは制御部11に送られる。
揮発性メモリ24は、カメラ23が撮影した映像のデータを一時的に記憶するキャッシュメモリである。不揮発性メモリ25は、後述するアドレス情報を記憶する。
The camera 23 photographs the surroundings of the drive recorder 1. - 特許庁Data of the image captured by the camera 23 is sent to the control unit 11 .
The volatile memory 24 is a cache memory that temporarily stores video data captured by the camera 23 . The nonvolatile memory 25 stores address information, which will be described later.

ディスプレイ26は、カメラ23が撮影した映像や、ドライブレコーダ1の設定画面、ガイド又は警報等を示す通知画像等を表示する。LEDランプ27は、ガイド又は警報等を示す例えば赤色の光を発光する。スピーカ28は、ガイド又は警報等を示す通知音声や、操作ボタン30の操作音を出力する。マイク29は、ドライブレコーダ1が搭載された車室内の音声を集音する。操作ボタン30は、ユーザがドライブレコーダ1の動作を操作するための1つ以上のボタンである。 The display 26 displays an image captured by the camera 23, a setting screen of the drive recorder 1, a notification image indicating a guide or an alarm, and the like. The LED lamp 27 emits, for example, red light that indicates a guide or alarm. The speaker 28 outputs a notification sound indicating a guide, an alarm, or the like, and an operation sound of the operation button 30 . A microphone 29 collects the sound inside the vehicle in which the drive recorder 1 is mounted. The operation button 30 is one or more buttons for the user to operate the drive recorder 1 .

制御部11は、プログラムにより実行される機能部として、記憶制御部41と、判定部42と、生成部43と、を備える。
記憶制御部41は、映像データが納められた映像ファイルをメモリカード3に構成される記憶領域に記憶する。図2を用いて、記憶制御部41による映像ファイルの記憶制御の概要を説明する。
The control unit 11 includes a storage control unit 41, a determination unit 42, and a generation unit 43 as functional units executed by programs.
The storage control unit 41 stores a video file containing video data in a storage area configured in the memory card 3 . The outline of the video file storage control by the storage control unit 41 will be described with reference to FIG.

メモリカード3に構成される記憶領域のうち、映像ファイルを記憶するための映像用記憶領域61は、予めN個のデータ領域(すなわち、図2における領域R、R…R)に分割されている。これら複数の領域について、区別をしない場合には単に領域Rと記載する。カメラ23から取得された映像データと、マイク29から集音された音声データは、映像ファイルとして順次上述した領域Rに記憶される。1つの映像ファイルは、上記領域Rのサイズよりも小さいサイズであり、例えば、所定のファイルサイズのファイル、又は、所定の撮影時間の映像データが含まれるファイルであってもよい。 Of the storage areas configured in the memory card 3, the video storage area 61 for storing video files is divided in advance into N data areas (that is, areas R 1 , R 2 . . . RN in FIG. 2). It is These multiple regions are simply referred to as region R when not distinguished. The video data acquired from the camera 23 and the audio data collected from the microphone 29 are sequentially stored in the area R described above as video files. One video file has a size smaller than the size of the area R, and may be, for example, a file of a predetermined file size or a file containing video data of a predetermined shooting time.

この領域Rには、記録用ファイルが記憶されている。記録用ファイルは、映像ファイルと、ダミーファイルと、を含んでもよい。言い換えると、記録用ファイルとは、映像ファイル及びダミーファイルのいずれか一方であってもよい。ダミーファイルは生成部43により生成されるファイルである。新たに記憶しようとする映像ファイルは、記録用ファイルに上書きすることにより、領域Rに記憶される。新たに映像ファイルが記憶される領域Rの順序は予め定められており、例えば撮影された時間順に、i番目の映像ファイルが領域Rに上書きして記憶されてもよい。具体的に説明すると、1個目に生成されたファイルは領域Rに記憶され、2個目に生成されたファイルは領域Rに記憶され、N個目に生成されたファイルは領域Rに記憶される。N+1個目以降に生成されたファイルは、古いファイルが記憶された領域Rから順に上書きされる。つまり、N+1個目に生成されたファイルは領域Rに記憶され、N+2個目に生成されたファイルは領域Rに記憶される。 This area R stores a recording file. A recording file may include a video file and a dummy file. In other words, the recording file may be either a video file or a dummy file. A dummy file is a file generated by the generation unit 43 . A video file to be newly stored is stored in the area R by overwriting the recording file. The order of areas R in which new video files are stored is predetermined. For example, the i-th video file may be overwritten and stored in the area Ri in order of shooting time. Specifically, the first generated file is stored in area R1 , the second generated file is stored in area R2 , and the Nth generated file is stored in area RN. stored in Files generated after the N+1th file are overwritten in order from the area R where the old file is stored. That is, the N+1th generated file is stored in the area R1 , and the N+2th generated file is stored in the area R2 .

このように記憶制御部41は、所定の複数のデータ領域それぞれに記憶された複数の記録用ファイルに、新たに取得された映像データが収められた映像ファイルを上書きする。つまり記憶制御部41は、過去に撮影された映像ファイル、及び、生成部43により生成されたダミーファイルに対して上書きをすることで、新たに取得した映像ファイルをメモリカード3に記憶する。 In this manner, the storage control unit 41 overwrites the plurality of recording files stored in each of the predetermined plurality of data areas with the video file containing the newly acquired video data. In other words, the storage control unit 41 stores the newly acquired video file in the memory card 3 by overwriting the video file captured in the past and the dummy file generated by the generation unit 43 .

記憶制御部41は、例えば、カメラ23が撮影した映像をメモリカード3に常時記憶してもよいし、Gセンサ21が出力した衝撃検知信号をトリガーとしたイベント発生時の映像を含むイベント発生前後の映像を記憶してもよい。また、制御部11は、GPSレシーバ22からの信号に基づいて、ドライブレコーダ1を搭載した車両の現在位置を測位した上で、作成された映像データに位置情報を追加してもよい。 The storage control unit 41 may, for example, always store the image captured by the camera 23 in the memory card 3, or store the image before and after the event including the image at the time of the event triggered by the impact detection signal output by the G sensor 21. image may be stored. Further, the control unit 11 may measure the current position of the vehicle equipped with the drive recorder 1 based on the signal from the GPS receiver 22, and then add the position information to the created video data.

判定部42は、複数のデータ領域それぞれに、上述した記録用ファイルが存在するか否かを判定するように構成されている。判定部42は、記録用ファイルの位置、すなわちメモリカード3が構成する記憶領域における複数のデータ領域の位置を、アドレス情報を参照して取得する。アドレス情報の詳細については後述する。 The determination unit 42 is configured to determine whether or not the recording file described above exists in each of the plurality of data areas. The determination unit 42 acquires the position of the recording file, that is, the positions of the plurality of data areas in the storage area of the memory card 3 by referring to the address information. Details of the address information will be described later.

生成部43は、判定部42により記録用ファイルが存在しないと判定されたデータ領域に、記録用ファイルの1つであるダミーファイルを新たに生成して記憶するように構成されている。ダミーファイルは、例えば拡張子に「.tmp」などが設定され、映像ファイルと区別できるようになっていてもよい。またダミーファイルは、新たに書き換えたファイルであってもよい。つまり、以前に記憶されていたファイルの内容を消すように、新たに作成したデータを記憶する。 The generation unit 43 is configured to newly generate and store a dummy file, which is one of the recording files, in the data area determined by the determination unit 42 that no recording file exists. The dummy file may have an extension of ".tmp", for example, so that it can be distinguished from the video file. Also, the dummy file may be a newly rewritten file. That is, the newly created data is stored so as to erase the contents of the previously stored file.

なお、初期設定時にダミーファイルが作成された以降は、領域Rには通常は映像ファイルが記憶されている。記録用ファイルが存在しない場合とは、例えばユーザが手動で映像ファイルを削除した場合などである。 After the dummy file is created at the time of initial setting, the area R usually stores the video file. A case where the recording file does not exist is, for example, a case where the user has manually deleted the video file.

[1-2.処理]
<初期設定時の処理>
初期設定では、制御部11は、以下に示すようにメモリカード3のフォーマットを行う。初期設定は、例えば、ドライブレコーダ1において初めて用いられるメモリカード3がメモリカードスロット12aに挿入された状態でドライブレコーダ1が起動されたときに開始される。
[1-2. process]
<Initial setting process>
In the initial setting, the control section 11 formats the memory card 3 as follows. The initialization is started, for example, when the drive recorder 1 is activated with the memory card 3 used for the first time in the drive recorder 1 inserted in the memory card slot 12a.

まず、CPU11aは、図3に示されるように、メモリカード3に構成される映像用記憶領域61を、複数のデータ領域に分割する。例えば、領域Rから領域RまでのN個のデータ領域に分割されてもよい。なお、ここでいうデータ領域とは、例えば、連続するクラスタのように、位置が離れていないひとまとまりの領域を意味する。メモリカード3にて用いられるファイルシステムは特に限定されない。各データ領域Rの開始位置は「startAddressデータ領域Ri」とし、終了位置は「endAddressデータ領域Ri」とする。分割されたデータ領域には、記録用ファイルが記憶される。例えば、ダミーファイルが生成されてデータ領域に記憶される。 First, the CPU 11a divides the video storage area 61 formed in the memory card 3 into a plurality of data areas, as shown in FIG. For example, it may be divided into N data areas from area R1 to area RN . Note that the data area here means a group of areas such as continuous clusters that are not separated from each other. A file system used in the memory card 3 is not particularly limited. The start position of each data area Ri is "startAddress data area Ri", and the end position thereof is "endAddress data area Ri". Recording files are stored in the divided data areas. For example, a dummy file is generated and stored in the data area.

各データ領域Rに関し、開始位置と終了位置の情報が、データ領域の位置を示すアドレス情報である。上述した分割により得られたアドレス情報は、ファイル管理テーブルとして記憶される。なおアドレス情報はファイル管理テーブル以外の手法で記憶されていてもよい。 For each data area Ri , information on the start position and end position is address information indicating the position of the data area. The address information obtained by the division described above is stored as a file management table. Note that the address information may be stored by a method other than the file management table.

図4に示されるファイル管理テーブルの一例には、ファイル名、開始位置、及び、終了位置の情報が記憶される。ファイル名は、例えば、領域Rに記憶されるファイルについて「記録用ファイルi」と設定されてもよい。つまり、複数のデータ領域の開始位置及び終了位置が、該データ領域に記憶される記録用ファイルのファイル名と対応付けて記憶される。ここで、ファイル名に拡張子「.avi」や「.tmp」などを加えてもよい。このように拡張子を付すことで、拡張子により当該ファイルが映像ファイルであるかダミーファイルであるかを判別できる。 An example of the file management table shown in FIG. 4 stores information on file names, start positions, and end positions. For example, the file name may be set as "recording file i" for the file stored in area Ri . That is, the start positions and end positions of a plurality of data areas are stored in association with the file names of the recording files stored in the data areas. Here, an extension such as ".avi" or ".tmp" may be added to the file name. By adding an extension in this way, it is possible to determine whether the file is a video file or a dummy file by the extension.

なお開始位置及び終了位置は、データ領域の位置の特定が可能であれば、必ずしも各データ領域において開始位置と終了位置の両方を記憶している必要はない。例えば、データ領域Rとデータ領域Ri+1とが連続配置されている場合には、「endAddressデータ領域Ri」は、「startAddressデータ領域R(i+1)」から特定できるため、省略することができる。 As for the start position and the end position, if the position of the data area can be specified, it is not necessary to store both the start position and the end position in each data area. For example, when data area Ri and data area Ri +1 are arranged consecutively, "endAddress data area Ri" can be specified from "startAddress data area R(i+1)" and can be omitted.

ファイル管理テーブルの記憶先は、不揮発性メモリ25でもよいし、メモリカード3が構成する記憶領域のうち、映像ファイルに割り当てられた映像用記憶領域61以外の領域でもよい。本実施形態では、一例として、両方に記憶する。 The storage destination of the file management table may be the non-volatile memory 25 or an area other than the video storage area 61 allocated to the video file among the storage areas of the memory card 3 . In this embodiment, as an example, both are stored.

<起動時の処理>
次に、CPU11aが実行するデータ領域割り当て処理について、図5のフローチャートを用いて説明する。
<Startup processing>
Next, data area allocation processing executed by the CPU 11a will be described using the flowchart of FIG.

まずS1では、CPU11aは、後述するS2-S5の処理のループを開始する。ループは、初期値が1である変数iが終値Nとなるまで実行される。変数iはS5が終了するごとに1加算される。 First, in S1, the CPU 11a starts a processing loop of S2 to S5, which will be described later. The loop is executed until the variable i, which has an initial value of 1, reaches the final value of N. The variable i is incremented by 1 each time S5 ends.

S2では、CPU11aは、ファイル管理テーブルから記録用ファイルiの開始位置と終了位置の情報を取得する。
S3では、CPU11aは、S2にて取得した記録用ファイルiの開始位置から終了位置までのデータ領域(すなわち、領域R)にあるファイルの状態を取得する。
In S2, the CPU 11a acquires information on the start position and end position of the recording file i from the file management table.
In S3, the CPU 11a acquires the state of the file in the data area (that is, area R i ) from the start position to the end position of the recording file i acquired in S2.

S4では、CPU11aは、該当ファイルが存在するか否かを判定する。例えば、領域Rに「記録用ファイルi」が記憶されているか否かを判定する。該当ファイルが存在する場合、処理がS6に移行する。一方、S4において、該当ファイルが存在しないと判定された場合、処理がS5に移行する。該当ファイルが存在しない場合とは、例えば、ユーザがメモリカード3を他のコンピュータ等に接続し、1つ以上の記録用ファイルを削除した場合が挙げられる。なお、例えば操作ボタン30を用いてドライブレコーダ1の機能として映像ファイルを削除した場合には、同時にダミーファイルを生成するように構成されていてもよい。 In S4, the CPU 11a determines whether or not the file exists. For example, it is determined whether or not "recording file i" is stored in area Ri . If the file exists, the process proceeds to S6. On the other hand, if it is determined in S4 that the file does not exist, the process proceeds to S5. A case where the corresponding file does not exist is, for example, a case where the user connects the memory card 3 to another computer or the like and deletes one or more recording files. For example, when the operation button 30 is used to delete the video file as a function of the drive recorder 1, a dummy file may be generated at the same time.

S5では、CPU11aは、記録用ファイルiの開始位置から終了位置までのデータ領域Rにて、ダミーファイルを作成する。例えば、「記録用ファイルi.tmp」というように、映像ファイル以外のファイルであることを示す拡張子を付したダミーファイルを作成してもよい。本実施形態では、領域Rに記憶される情報を実際に書き換えた上で、ダミーファイルを作成する。このS6の後、処理がS6に移行する。 In S5, the CPU 11a creates a dummy file in the data area Ri from the start position to the end position of the recording file i. For example, a dummy file may be created with an extension indicating that it is a file other than a video file, such as "recording file i.tmp". In this embodiment, the dummy file is created after actually rewriting the information stored in the area Ri . After S6, the process proceeds to S6.

S6では、i<Nであればiに1を加算してS2に戻る。またS6において、i=Nであれば、すなわち、全ての領域iにおいて記録用ファイルiが存在する状態となっていれば、本処理を終了する。 In S6, if i<N, 1 is added to i and the process returns to S2. Also, in S6, if i=N, that is, if the recording file i exists in all the areas i, this processing ends.

[1-3.効果]
以上詳述した実施形態によれば、以下の効果を奏する。
(1a)ドライブレコーダ1は、映像ファイル又はダミーファイルが存在する領域Rに上書きして映像ファイルを記憶するように構成されている。また、複数の領域Rにそれらのファイル(すなわち記録用ファイル)が存在するか否かを判定する。領域Rに記録用ファイルが存在していない場合には、ダミーファイルを生成して当該領域Rに記憶する。よって、例えば映像ファイルがユーザにより削除されていたとしても、アドレス情報に基づきダミーファイルを生成することで、当該ファイルが記憶されていたデータ領域への映像ファイルの記憶が可能な状態となる。このようにドライブレコーダ1では、記録用ファイルが失われていても、そのデータ領域を映像ファイルの記憶に利用することができるため、映像ファイルを記憶するために予め割り当てられた領域が減少してしまうことを抑制できる。
[1-3. effect]
According to the embodiment detailed above, the following effects are obtained.
(1a) The drive recorder 1 is configured to store a video file by overwriting the area Ri where the video file or dummy file exists. Also, it is determined whether or not those files (that is, recording files) exist in a plurality of areas Ri . If the recording file does not exist in the area Ri , a dummy file is generated and stored in the area Ri . Therefore, even if the video file has been deleted by the user, by generating a dummy file based on the address information, the video file can be stored in the data area in which the file was stored. Thus, in the drive recorder 1, even if the recording file is lost, the data area can be used for storing the video file, so the area allocated in advance for storing the video file is reduced. It can be suppressed.

(1b)ドライブレコーダ1では、記録用ファイルとして映像ファイルではないダミーファイルを作成する。そのため、ユーザが削除したファイルが再度視聴できる状態となることを抑制できる。またそのダミーファイルは、データ領域に記憶されているデータを新たに書き換えることによって作成されている。そのため、より高度に削除された映像ファイルの視聴を抑制できる。 (1b) The drive recorder 1 creates a dummy file that is not a video file as a recording file. Therefore, it is possible to prevent the file deleted by the user from becoming available for viewing again. The dummy file is created by newly rewriting the data stored in the data area. Therefore, it is possible to suppress the viewing of the deleted video file to a higher degree.

(1c)ドライブレコーダ1では、メモリカード3及び不揮発性メモリ25の両方にアドレス情報を示すファイル管理テーブルが記憶されている。そのため、いずれかのファイル管理テーブルが失われたとしても問題なく作動できる。また、メモリカード3と不揮発性メモリ25それぞれに記憶される上記アドレス情報はドライブレコーダ1起動時、乃至はメモリカード3交換時に同期されることにより、メモリカード3の同期のペースを下げることができ、制御部11の処理負荷を下げることができる。 (1c) In the drive recorder 1, both the memory card 3 and the nonvolatile memory 25 store file management tables indicating address information. Therefore, even if one of the file management tables is lost, it can operate without problems. Further, the address information stored in the memory card 3 and the nonvolatile memory 25 are synchronized when the drive recorder 1 is started or when the memory card 3 is replaced, so that the pace of synchronization of the memory card 3 can be reduced. , the processing load of the control unit 11 can be reduced.

[2.他の実施形態]
以上、本開示の実施形態について説明したが、本開示は上述の実施形態に限定されることなく、種々変形して実施することができる。
[2. Other embodiments]
Although the embodiments of the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments, and various modifications can be made.

(2a)上記実施形態では、メモリカード3と不揮発性メモリ25の両方に、アドレス情報を含むファイル管理テーブルを記憶する構成を例示したが、これに限定されるものではない。例えば、不揮発性メモリ25のみにアドレス情報を記憶する構成としてもよい。この構成であれば、ドライブレコーダ1の内部のメモリであるためアクセス速度が速い結果、アドレス情報を更新する際の処理速度が速くなる。また、メモリカード3の書き換え負荷を低減できる。また例えば、メモリカード3のみにアドレス情報を記憶する構成としてもよい。この構成であれば、ドライブレコーダ1にてメモリカード3を識別するための情報を保持する必要がなくなる。またアドレス情報は、クラウドに保存されていてもよい。 (2a) In the above embodiment, the configuration in which the file management table including the address information is stored in both the memory card 3 and the nonvolatile memory 25 was exemplified, but the present invention is not limited to this. For example, the address information may be stored only in the nonvolatile memory 25 . With this configuration, the memory inside the drive recorder 1 has a high access speed, resulting in a high processing speed when updating the address information. Also, the rewriting load of the memory card 3 can be reduced. Alternatively, for example, the address information may be stored only in the memory card 3 . With this configuration, the drive recorder 1 does not need to hold information for identifying the memory card 3 . Address information may also be stored in the cloud.

(2b)図2のS3にて記録用ファイル以外のファイルが発見された場合には、例えば、そのデータ領域は映像ファイルの記憶に用いられないように構成されていてもよい。
(2c)図2のS5では、ダミーファイルを生成し記憶する構成を例示した。しかしながら、S5で当該データ領域に記憶されるファイルは、記録用ファイルとして設定された種類のファイルであって、映像ファイル以外のファイルであれば、特に限定されない。
(2b) If a file other than the recording file is found in S3 of FIG. 2, for example, the data area may be configured not to be used for storing the video file.
(2c) In S5 of FIG. 2, a configuration for generating and storing a dummy file is exemplified. However, the file stored in the data area in S5 is not particularly limited as long as it is a file of the type set as the recording file and is a file other than the video file.

(2d)ダミーファイルの具体的な構成は特に限定されない。ダミーファイルは特別な情報を含まないファイルであってもよい。また、削除されたデータ領域にダミーファイルを生成して記憶する際に、データの書き換えを行わない構成であってもよい。言い換えると、削除されたファイルが復活できる可能性がある状態でダミーファイルが生成される構成であってもよい。 (2d) The specific configuration of the dummy file is not particularly limited. A dummy file may be a file that does not contain any special information. In addition, when a dummy file is generated and stored in the deleted data area, the data may not be rewritten. In other words, the configuration may be such that a dummy file is generated in a state where there is a possibility that the deleted file can be restored.

(2e)本開示に記載の制御部11及びその手法は、コンピュータプログラムにより具体化された一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリを構成することによって提供された専用コンピュータにより、実現されてもよい。あるいは、本開示に記載の制御部11及びその手法は、一つ以上の専用ハードウェア論理回路によってプロセッサを構成することによって提供された専用コンピュータにより、実現されてもよい。もしくは、本開示に記載の制御部11及びその手法は、一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリと一つ以上のハードウェア論理回路によって構成されたプロセッサとの組み合わせにより構成された一つ以上の専用コンピュータにより、実現されてもよい。また、コンピュータプログラムは、コンピュータにより実行されるインストラクションとして、コンピュータ読み取り可能な非遷移有形記憶媒体に記憶されてもよい。 (2e) Control unit 11 and techniques described in this disclosure may be provided by configuring a processor and memory programmed to perform one or more functions embodied by a computer program. It may be implemented by a computer. Alternatively, the controller 11 and techniques described in this disclosure may be implemented by a dedicated computer provided by configuring the processor with one or more dedicated hardware logic circuits. Alternatively, the control unit 11 and techniques described in this disclosure are a combination of a processor and memory programmed to perform one or more functions and a processor configured by one or more hardware logic circuits. may be implemented by one or more dedicated computers configured by Computer programs may also be stored as computer-executed instructions on a computer-readable non-transitional tangible storage medium.

(2f)上記実施形態における1つの構成要素が有する複数の機能を、複数の構成要素によって実現したり、1つの構成要素が有する1つの機能を、複数の構成要素によって実現したりしてもよい。また、複数の構成要素が有する複数の機能を、1つの構成要素によって実現したり、複数の構成要素によって実現される1つの機能を、1つの構成要素によって実現したりしてもよい。また、上記実施形態の構成の一部を省略してもよい。また、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加又は置換してもよい。 (2f) A plurality of functions possessed by one component in the above embodiment may be realized by a plurality of components, or a function possessed by one component may be realized by a plurality of components. . Also, a plurality of functions possessed by a plurality of components may be realized by a single component, or a function realized by a plurality of components may be realized by a single component. Also, part of the configuration of the above embodiment may be omitted. Moreover, at least part of the configuration of the above embodiment may be added or replaced with respect to the configuration of the other above embodiment.

(2g)上述したドライブレコーダ1の他、制御部11を構成要素とするシステム、制御部11としてコンピュータを機能させるためのプログラム、このプログラムを記憶した半導体メモリ等の非遷移的実体的記憶媒体、記録制御方法など、種々の形態で本開示を実現することもできる。 (2g) In addition to the drive recorder 1 described above, a system having the control unit 11 as a component, a program for causing a computer to function as the control unit 11, a non-transitional physical storage medium such as a semiconductor memory storing this program, The present disclosure can also be implemented in various forms such as a recording control method.

1…ドライブレコーダ、3…メモリカード、41…記憶制御部、42…判定部、43…生成部。 1 -- drive recorder, 3 -- memory card, 41 -- memory control section, 42 -- determination section, 43 -- generation section.

Claims (8)

記憶媒体(3)に構成される記憶領域に映像データの記憶を行う録画装置(1)であって、
所定の複数のデータ領域それぞれに記憶された複数の記録用ファイルに、映像データが収められた映像ファイルを上書きすることにより映像ファイルを記憶するように構成された記憶制御部(41)と、
前記記憶領域における前記複数のデータ領域の位置を示すアドレス情報を参照して、複数の前記データ領域それぞれに前記記録用ファイルが存在するか否かを判定するように構成された判定部(42)と、
前記判定部により前記記録用ファイルが存在しないと判定された前記データ領域に、新たな前記記録用ファイルを生成して記憶するように構成された生成部(43)と、を備える録画装置。
A recording device (1) for storing video data in a storage area configured in a storage medium (3),
a storage control unit (41) configured to store a video file by overwriting a plurality of recording files stored in each of a plurality of predetermined data areas with a video file containing the video data;
A determination unit (42) configured to refer to address information indicating positions of the plurality of data areas in the storage area and determine whether or not the recording file exists in each of the plurality of data areas. and,
A recording device comprising: a generation unit (43) configured to generate and store a new recording file in the data area determined by the determination unit that the recording file does not exist.
請求項1に記載の録画装置であって、
前記生成部は、前記記録用ファイルとして、映像ファイル以外のファイルを生成する、録画装置。
The recording device according to claim 1,
The recording device, wherein the generation unit generates a file other than a video file as the recording file.
請求項2に記載の録画装置であって、
前記生成部は、前記記録用ファイルとして、新たに書き換えたファイルを生成する、録画装置。
The recording device according to claim 2,
The recording device, wherein the generation unit generates a newly rewritten file as the recording file.
請求項1から請求項3までのいずれか1項に記載の録画装置であって、
前記アドレス情報は、当該記憶媒体、又は、当該録画装置が有する不揮発性メモリに記憶されている、録画装置。
The recording device according to any one of claims 1 to 3,
The recording device, wherein the address information is stored in the storage medium or a non-volatile memory of the recording device.
請求項4に記載の録画装置であって、
前記アドレス情報は、当該記憶媒体、及び、当該録画装置が有する不揮発性メモリに記憶されている、録画装置。
The recording device according to claim 4,
The recording device, wherein the address information is stored in the storage medium and a non-volatile memory of the recording device.
請求項1から請求項5までのいずれか1項に記載の録画装置であって、
前記アドレス情報は、前記複数のデータ領域の開始位置及び終了位置を、該データ領域に記憶される前記記録用ファイルのファイル名と対応付けて記憶する、録画装置。
The recording device according to any one of claims 1 to 5,
The recording apparatus stores the address information by associating start positions and end positions of the plurality of data areas with file names of the recording files stored in the data areas.
請求項1から請求項6までのいずれか1項に記載の録画装置であって、
前記記録用ファイルは、映像データを示す映像ファイルと、前記生成部により生成されるダミーファイルと、が含まれる、録画装置。
The recording device according to any one of claims 1 to 6,
The recording device, wherein the recording file includes a video file representing video data and a dummy file generated by the generation unit.
記憶媒体(3)に構成される記憶領域に映像データの記憶を行う録画方法であって、
前記記憶領域における所定の複数のデータ領域それぞれの位置を示すアドレス情報を参照して、前記複数のデータ領域それぞれに記録用ファイルが存在するか否かを判定し、
前記記録用ファイルが存在しないと判定された前記データ領域に、新たな前記記録用ファイルを生成して記憶し、
前記複数のデータ領域それぞれに記憶された複数の前記記録用ファイルに、映像データが収められた映像ファイルを上書きすることにより映像ファイルを記憶する、録画方法。
A recording method for storing video data in a storage area configured in a storage medium (3),
determining whether or not a recording file exists in each of the plurality of data areas by referring to address information indicating the position of each of the plurality of predetermined data areas in the storage area;
generating and storing a new recording file in the data area where it is determined that the recording file does not exist;
A video recording method, comprising: storing a video file by overwriting a video file containing video data in the plurality of recording files stored in each of the plurality of data areas.
JP2020089924A 2020-05-22 2020-05-22 Recording device and recording method Active JP7226394B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2020089924A JP7226394B2 (en) 2020-05-22 2020-05-22 Recording device and recording method
TW110114468A TWI786607B (en) 2020-05-22 2021-04-22 Video recording device and video recording method
PCT/JP2021/018995 WO2021235489A1 (en) 2020-05-22 2021-05-19 Video recording device and video recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020089924A JP7226394B2 (en) 2020-05-22 2020-05-22 Recording device and recording method

Publications (2)

Publication Number Publication Date
JP2021184574A JP2021184574A (en) 2021-12-02
JP7226394B2 true JP7226394B2 (en) 2023-02-21

Family

ID=78707884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020089924A Active JP7226394B2 (en) 2020-05-22 2020-05-22 Recording device and recording method

Country Status (3)

Country Link
JP (1) JP7226394B2 (en)
TW (1) TWI786607B (en)
WO (1) WO2021235489A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000324435A (en) 1999-03-11 2000-11-24 Sony Corp Disk device
JP2002207625A (en) 2001-01-12 2002-07-26 Sanyo Electric Co Ltd Data recording device
JP2005339628A (en) 2004-05-25 2005-12-08 Sony Corp Recording device and method, reading device and method, recording medium and program
JP2009064263A (en) 2007-09-06 2009-03-26 Toshiba Corp Memory device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100694069B1 (en) * 2004-11-29 2007-03-12 삼성전자주식회사 Recording apparatus including plurality of data blocks of different sizes, file managing method using the same and printing apparatus including the same
FR2881598B1 (en) * 2005-02-01 2007-08-03 Canon Kk METHOD AND DEVICE FOR RECORDING IMAGES COMPRISING PANORAMA, VISUALIZING AND MODIFYING PANORAMA
US20180247504A1 (en) * 2017-02-27 2018-08-30 Ring Inc. Identification of suspicious persons using audio/video recording and communication devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000324435A (en) 1999-03-11 2000-11-24 Sony Corp Disk device
JP2002207625A (en) 2001-01-12 2002-07-26 Sanyo Electric Co Ltd Data recording device
JP2005339628A (en) 2004-05-25 2005-12-08 Sony Corp Recording device and method, reading device and method, recording medium and program
JP2009064263A (en) 2007-09-06 2009-03-26 Toshiba Corp Memory device

Also Published As

Publication number Publication date
JP2021184574A (en) 2021-12-02
TWI786607B (en) 2022-12-11
WO2021235489A1 (en) 2021-11-25
TW202213985A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
JP4908849B2 (en) File deletion method, file opening method, file deletion program, and file opening program
JP4955002B2 (en) MEMORY CONTROLLER, NONVOLATILE STORAGE DEVICE, ACCESS DEVICE, AND NONVOLATILE STORAGE SYSTEM
US8452915B2 (en) Memory controller, nonvolatile memory device, access device, and nonvolatile memory system
US8930424B2 (en) Data storage system and method for protecting the system in case of power-failure
US10120791B2 (en) Data read apparatus, data read method, and storage medium storing data read program
JP7226394B2 (en) Recording device and recording method
US7904669B2 (en) Information processing device, image pickup device, information processing method and computer program
JP2006344177A (en) Data erasing system and data erasing program
KR20150137661A (en) Method and apparatus for fragmentation prevention of non-volatile memory for blackbox device
JP7146428B2 (en) Image recording device and its control method
JP4262220B2 (en) Digital camera
US20190304509A1 (en) Image recording apparatus and control method thereof
JP2010015251A (en) Recording device
US20080181064A1 (en) Content processing apparatus
JP2006260158A (en) Information processing apparatus, information processing method and program
US11507306B2 (en) Recording apparatus that records data using file system, control method therefor, and storage medium storing control program therefor
US10817215B2 (en) Data storage system and control method for non-volatile memory
US10950274B2 (en) Image recording apparatus, method for controlling same, and non-transitory computer-readable storage medium
JP6782826B1 (en) Image judgment device, image judgment method and image judgment program
US20160078897A1 (en) Recording and playback device
US20210055877A1 (en) Control apparatus, control method of recording apparatus, and non-transitory computer readable storage medium
JP2002116942A (en) Memory unit
JP2007310533A (en) Nonvolatile storage system, nonvolatile storage device, and file data write-in method
JP2016015057A (en) Recording device
US20090319587A1 (en) Memory controller, nonvolatile memory device, and nonvolatile memory system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220128

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: 20230110

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230123

R151 Written notification of patent or utility model registration

Ref document number: 7226394

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151