JP2007018631A - Data recorder and its control method, data recorder control program, and recording medium whereon this program is recorded - Google Patents
Data recorder and its control method, data recorder control program, and recording medium whereon this program is recorded Download PDFInfo
- Publication number
- JP2007018631A JP2007018631A JP2005200769A JP2005200769A JP2007018631A JP 2007018631 A JP2007018631 A JP 2007018631A JP 2005200769 A JP2005200769 A JP 2005200769A JP 2005200769 A JP2005200769 A JP 2005200769A JP 2007018631 A JP2007018631 A JP 2007018631A
- Authority
- JP
- Japan
- Prior art keywords
- recording
- data
- stream
- error
- management information
- 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.)
- Granted
Links
Images
Abstract
Description
本発明は、データ記録装置およびその制御方法、データ記録装置制御プログラム、ならびに該プログラムを記録した記録媒体に関するものである。特に、本発明は、映像データならびに音声データをストリームデータとしてリアルタイムに、ハードディスク、光ディスク等のランダムアクセス可能な記録媒体に記録するデータ記録装置などに関するものである。 The present invention relates to a data recording apparatus, a control method therefor, a data recording apparatus control program, and a recording medium on which the program is recorded. In particular, the present invention relates to a data recording apparatus for recording video data and audio data as stream data in real time on a randomly accessible recording medium such as a hard disk or an optical disk.
従来から、ハードディスク等の磁気ディスクやCD/MO/MD/DVD等のメディアを記録媒体に用いた記録装置において、記録媒体へデータを記録する際にベリファイ作業を行うことによって、記録エラーを低減する方法が広く使われている。特に、光ディスク等の光学記録媒体においては、ディスク上の埃・汚れ・欠陥により記録エラーがしばしば発生する。 Conventionally, in a recording apparatus using a magnetic disk such as a hard disk or a medium such as CD / MO / MD / DVD as a recording medium, a recording error is reduced by performing a verification operation when recording data on the recording medium. The method is widely used. In particular, in an optical recording medium such as an optical disk, a recording error often occurs due to dust, dirt, or a defect on the disk.
リアルタイム性を必要としないデータの記録においては、通常、一度記録したデータを読み込んでエラーを検出し、記録エラーがあった場合は再度記録しなおすといったベリファイ処理によって記録エラーおよび記録エラーによるデータの消失を防止している。 When recording data that does not require real-time performance, it is normal to read the recorded data once to detect an error and then re-record it if there is a recording error. Is preventing.
しかしながら、ストリームデータなどのリアルタイム性の要求されるデータの記録では、ベリファイ処理により記録処理が中断すると、その間のデータは記録できずに消失してしまう。 However, in the recording of data such as stream data that requires real-time characteristics, if the recording process is interrupted by the verify process, the data during that time cannot be recorded and is lost.
この問題を解決するために、ベリファイ処理のリトライ回数を制限する方法や、一般に記録媒体への転送速度がストリームのビットレートよりも速いため、常に記録媒体への記録処理を行われているわけではなく、記録処理が中断している期間が存在することを利用し、この期間にのみベリファイ処理を行う方法が知られている(例えば、特許文献1参照)。 In order to solve this problem, the method of limiting the number of retries of the verify process or the transfer speed to the recording medium is generally faster than the bit rate of the stream, so the recording process to the recording medium is not always performed. In addition, there is known a method of using the fact that there is a period during which the recording process is interrupted and performing the verify process only during this period (for example, see Patent Document 1).
一方、ビットストリームに多少のエラーが含まれる程度では、再生画像にブロックノイズが発生する程度であり、視聴上の支障は少ないと言えることから、リアルタイムにデータの記録を行うために、ベリファイ処理を行わない方法がある。 On the other hand, if there is some error in the bitstream, block noise will be generated in the reproduced image, and it can be said that there are few problems in viewing. Therefore, in order to record data in real time, verify processing is performed. There is no way to do it.
高ビットレートのストリームデータをリアルタイム記録する場合や、高速ダビング時に有効であるため、DVD−RAMドライブなどで広く採用されている。この方法においても、アドレス検出エラーや制御エラー等の記録エラーの検出が行えるため、信頼性が大きく低下することはない。 It is widely used in DVD-RAM drives and the like because it is effective when recording high bit rate stream data in real time or at high speed dubbing. Also in this method, since a recording error such as an address detection error or a control error can be detected, the reliability is not greatly reduced.
ベリファイ処理を行わないことで、高速にリアルタイムデータの記録が行えるが、万一アドレス検出エラー等の記録エラーが発生した場合には、やはりエラー処理のため記録処理が中断し、記録されずに消失するデータがでてしまう。 By not performing verification processing, real-time data can be recorded at high speed. However, if a recording error such as an address detection error occurs, the recording processing is interrupted due to error processing, and it is lost without being recorded. Data to be output.
この問題点について、図10に基づいて具体的に説明する。図10は、従来技術における記録エラーの発生を示す概略図である。 This problem will be specifically described with reference to FIG. FIG. 10 is a schematic diagram showing the occurrence of a recording error in the prior art.
図示のように、ストリームデータは、バッファ12に転送され、バッファ12上に記憶されたデータが所定の量を超えた場合、記録媒体12に記録される。通常、記録媒体14への転送速度はストリームのビットレートよりも早いため、実際に記録媒体14へ記録するのに要する時間はバッファ12に蓄積される時間よりも短い。データ記録装置は、時刻t1に記録エラーを検出した場合、ストリームデータの転送を停止する。
As shown in the figure, the stream data is transferred to the
光ディスクのような記録媒体において、ディスクの欠陥があった場合、記録エラーが発生した周辺において、記録および再生に非常に失敗しやすい状態になっている。多少のエラーでは視聴上の支障は少ないが、連続してエラーが発生するとデコーダが正常に動作しなくなり再生が継続できなくなることがある。そのため、エラー発生位置より前に記録したデータを再生して正常に記録できているか否かを確かめるベリファイを行い、正常記録できている箇所まで遡ってデータを削除する。 In a recording medium such as an optical disk, when there is a defect in the disk, recording and reproduction are very likely to fail in the vicinity where a recording error has occurred. Some errors cause little trouble in viewing, but if errors occur continuously, the decoder may not operate normally and playback may not be continued. For this reason, the data recorded before the error occurrence position is reproduced to verify whether or not the data is normally recorded, and the data is deleted retroactively to the position where the data can be normally recorded.
エラー処理の完了後、時刻t2においてストリームデータの転送が再開される。そのため、削除されたデータ区間に加え、エラー処理のための転送中断中のストリームデータも消失してしまう。 After the error processing is completed, transfer of stream data is resumed at time t2. Therefore, in addition to the deleted data section, the stream data whose transfer is interrupted for error processing is also lost.
ここで、光ディスクなどの記録媒体に対し、従来、どのようなデータ単位でデータが記録されるかについて、図11および図12に基づいて説明する。 Here, what data unit is conventionally recorded on a recording medium such as an optical disk will be described with reference to FIGS.
図11は、従来技術における光ディスクなどの記録媒体上に記録されたデータを示す概念図である。 FIG. 11 is a conceptual diagram showing data recorded on a recording medium such as an optical disk in the prior art.
図示のように、記録媒体14には、データがECC(Error Correcting Code)ブロック61の単位で書き込まれる。ECCブロック61は、セクタ71によって構成されている。セクタ71は、それぞれ、2048byteで構成され、誤り訂正を行うために、32セクタで1つのECCブロック61を構成している。
As shown in the figure, data is written on the
ECCとは、プレマスタリングの際に、データを暗号化し、冗長データをディスクメディア上に記録するシステムである。該冗長データは再生時に利用され、データの転送中に発生するエラーを検出し、訂正するために使用される。 ECC is a system that encrypts data and records redundant data on a disk medium during pre-mastering. The redundant data is used at the time of reproduction, and is used to detect and correct errors that occur during data transfer.
ECCブロックとは、光ディスクなどの記録媒体に書き込むための最小単位であり、エラー訂正をより強固なものにするため、16セクタを1ECCブロックとする技術が広く使用されている。本発明では、32セクタを1つのECCブロック61とし、ECCブロック61単位で記録媒体に記録するものとする。
An ECC block is a minimum unit for writing on a recording medium such as an optical disk, and a technique of making 16 sectors into one ECC block is widely used in order to make error correction more robust. In the present invention, 32 sectors are defined as one
図12は、従来技術における記録媒体に記録したGOP(Group Of Picture)61およびECC71の対応関係を示す概念図である。
FIG. 12 is a conceptual diagram showing a correspondence relationship between a GOP (Group Of Picture) 61 and an
GOPとは、MPEG−1およびMPEG−2において定められている映像の符号化アルゴリズムであり、圧縮および再生ならびに編集を行う際の単位となる映像信号の数フレームずつの組み合わせを意味する。 GOP is a video encoding algorithm defined in MPEG-1 and MPEG-2, and means a combination of several frames of a video signal that is a unit for compression, reproduction, and editing.
GOP71は、それぞれ、記録媒体上への記録単位であるECC61にまたがって記録媒体に記録される。
Each GOP 71 is recorded on the recording medium across the
MPEG(Moving Picture Experts Group)を用いた圧縮画像ではGOPを単位としてランダムアクセスが可能となり、MPEG−2ではフィールド単位でのアクセスも可能となる。 In a compressed image using MPEG (Moving Picture Experts Group), random access is possible in units of GOP, and in MPEG-2, access in units of fields is also possible.
入力信号をそのまま符号化するフレーム内符号化フレームであるIピクチャ(Intra−coded Picture)、双方向予測を用いるフレーム間符号化フレームであるPピクチャ(Predictive−coded Picture)、一方向の動き補償予測を用いるフレーム内挿符号化フレームであるBピクチャ(Bidirectinally predictive−coded Picture)をまとめたものがGOPと呼ばれる符号化の単位となる。 An I picture (Intra-coded Picture) that is an intra-frame coded frame that encodes an input signal as it is, a P picture (Predictive-coded Picture) that is an inter-frame coded frame using bidirectional prediction, and unidirectional motion compensated prediction A group of B pictures (Bidirectionally Predictive-coded Pictures), which are frames interpolated and encoded using G, is a unit of encoding called GOP.
ストリーム管理情報としてGOPの先頭位置を記録しておくことによって、デコード可能なデータに高速にアクセスして再生することが可能になる。 By recording the head position of the GOP as stream management information, it becomes possible to access and reproduce the decodable data at high speed.
また、MPEG−2では、ストリームデータに該当フレームを表示する時間情報PTS(Presentation Time Stamp)がフレーム毎に付加されている。 In MPEG-2, time information PTS (Presentation Time Stamp) for displaying a corresponding frame in stream data is added for each frame.
PTSをストリーム管理情報として記録しておくことによって、ストリームデータの所望の時間から再生するためにアクセスすることが可能になる。 By recording the PTS as stream management information, it is possible to access the stream data for reproduction from a desired time.
ストリームデータが記録の一時停止などの原因で分断される場合、PTSの基準時間が不連続となり、ストリームデータのデコード処理が正常に行われないことがある。デコードを正常におこなうために、データが不連続であることを示す情報が必要となる。 When the stream data is divided due to a recording pause or the like, the PTS reference time may become discontinuous, and the stream data decoding process may not be performed normally. In order to perform decoding normally, information indicating that the data is discontinuous is required.
以上のことを踏まえて、供給されるストリームデータをバッファリングし、バッファ上のストリームデータを読み出して記録媒体に記録する記録装置において、該記録媒体に記録したストリームデータを読み出して記録エラーを検出するに際に、記録エラーを検出して記録媒体への記録を中断した場合、バッファリングされたストリームデータを消去し、ストリームデータのバッファリングを新たに開始して記録を継続すると共に、データが不連続であることを示すフラグを記録することで、再生時も正常に復号が行うことができる方法が提案されている(例えば、特許文献2参照)。
しかしながら、上記従来の方法ではいずれも、記録エラー発生時に記録したデータを再生する動作とエラーを検出するベリファイ処理を繰り返すため、データ記録中断に時間がかかり記録処理再開までに消失するデータ量が多くなってしまうという問題を生じる。 However, in each of the above conventional methods, since the operation of reproducing the data recorded when a recording error occurs and the verify process for detecting the error are repeated, it takes a long time to interrupt the data recording, and a large amount of data is lost before the recording process is resumed. The problem of becoming.
また、上記特許文献2の構成では、ベリファイ処理を行わない方法においては記録エラー発生時に正常に記録されているところまで遡ってストリームデータを削除する必要があるため、同様にエラー処理に時間がかかり記録処理再開までに消失するデータ量が多くなってしまうという問題を生じる。
Further, in the configuration of
記録再開までの時間を短縮するためエラー修復処理を記録エラー発生時ではなく、記録終了後に行ったとしても、ストリームファイルの中間部分を削除する必要があるため、エラー処理に手間がかかるという問題を生じる。 Even if the error recovery process is performed after the end of recording to reduce the time to resume recording, it is necessary to delete the middle part of the stream file. Arise.
本発明は、上記の問題点に鑑みてなされたものであり、その目的は、記録エラーが発生した場合でも記録エラー発生から記録再開までの時間を短縮し、記録エラーが発生したデータを自然な形で容易に修復することができる記録装置を提供するものである。 The present invention has been made in view of the above problems, and its object is to reduce the time from the occurrence of a recording error to the resumption of recording even when a recording error occurs, so that the data in which the recording error has occurred can be naturally reproduced. It is an object of the present invention to provide a recording apparatus that can be easily repaired in a form.
本発明のデータ記録装置は、上記問題を解決するために、ランダムアクセス可能な記録媒体にストリームデータをストリームファイルとして記録するデータ記録装置において、記録エラーが発生した場合、新たなファイルとして前記ストリームデータを前記記録媒体に記録し、記録を続行するデータ記録部を備えることを特徴としている。 In order to solve the above problem, the data recording apparatus of the present invention records the stream data as a new file when a recording error occurs in a data recording apparatus that records stream data as a stream file on a randomly accessible recording medium. Is recorded on the recording medium, and a data recording unit for continuing the recording is provided.
上記の構成によれば、記録媒体への記録エラーが発生した場合、その場でファイルの正常書き込み確認やベリファイ処理などのエラー処理を行わずに、新たなファイルとして記録媒体への記録を続行するので、記録再開までの処理時間が短く、記録エラーによって失われるストリームデータを低減することができるという効果を奏する。 According to the above configuration, when a recording error to the recording medium occurs, recording to the recording medium as a new file is continued without performing error processing such as normal file writing confirmation or verification processing on the spot. Therefore, the processing time until the recording is restarted is short, and the stream data lost due to the recording error can be reduced.
また、記録エラー発生後のストリームデータを新たなファイルとして記録媒体に記録することにより、エラーが発生したファイルのエラー発生位置を、ファイルの末尾から容易に検索できるので、後でエラー修復処理を行う場合に処理時間を短縮することができるという効果を奏する。 In addition, by recording the stream data after the occurrence of the recording error as a new file on the recording medium, the error occurrence position of the file in which the error has occurred can be easily searched from the end of the file. In this case, the processing time can be shortened.
本発明のデータ記録装置では、前記ストリームデータを前記記録媒体に記録する前に前記ストリームデータをバッファリングするバッファをさらに備え、データ記録部は、記録エラーが発生した場合、バッファにバッファリングされているストリームデータのうち、記録エラーが発生する以前に記録媒体に記録した部分を起点に、前記ストリームデータを新たなファイルとして前記記録媒体に記録することが好ましい。 The data recording apparatus of the present invention further includes a buffer for buffering the stream data before recording the stream data on the recording medium, and the data recording unit is buffered in the buffer when a recording error occurs. It is preferable to record the stream data as a new file on the recording medium starting from the portion recorded on the recording medium before the recording error occurs.
上記の構成によれば、バッファ上に残っているデータを利用して、記録エラー発生時点より少し前のデータから新しいストリームファイルとして記録することができるため、記録エラーによって失われた部分を補完することができ、記録エラーによるデータの消失を最小限に留めるというさらなる効果を奏する。 According to the above configuration, the data remaining in the buffer can be used to record as a new stream file from data slightly before the time when the recording error occurred, so the portion lost due to the recording error is complemented. This has the additional effect of minimizing data loss due to recording errors.
本発明のデータ記録装置では、前記ストリームデータを解析することにより、ストリームデータの再生制御に必要なストリーム情報を含むストリーム管理情報を生成する管理情報生成部と、前記ストリーム管理情報を含む管理情報を一時記憶するためのメモリとをさらに備え、前記データ記録部は、さらに、入力されるストリームデータの記録媒体への記録が完了した時点以降に、前記メモリ上の前記管理情報を前記記録媒体に記録することが好ましい。 In the data recording apparatus of the present invention, a management information generation unit that generates stream management information including stream information necessary for reproduction control of stream data by analyzing the stream data, and management information including the stream management information And a memory for temporarily storing, wherein the data recording unit further records the management information on the memory on the recording medium after the recording of the input stream data to the recording medium is completed. It is preferable to do.
上記の構成によれば、ストリームデータの記録媒体への記録エラーが起きたとき、エラーが起きたファイルの情報をメモリに記憶して、ストリームデータの記録を滞りなく継続し、記録エラー発生時の復帰処理を高速化することができるという効果を奏する。 According to the above configuration, when a recording error of the stream data in the recording medium occurs, the information of the file in which the error has occurred is stored in the memory, and the recording of the stream data is continued without delay. There is an effect that the restoration process can be speeded up.
また、メモリ上でストリーム管理情報の修正処理を行うことができるので、修正処理の際の読み込み・書き込みが高速になり、修復処理を高速化できるという効果を奏する。 In addition, since the stream management information correction process can be performed on the memory, the reading and writing at the time of the correction process become faster, and the repair process can be speeded up.
また、メモリ上で修正処理を行い、最終的に確定したデータのみを記録媒体に記録するため、記録媒体へのアクセスを減らし、記録媒体の寿命が伸びるという効果を奏する。 Further, since the correction process is performed on the memory and only the finally determined data is recorded on the recording medium, the access to the recording medium is reduced and the life of the recording medium is extended.
また、メモリ上に一時記憶したストリーム管理情報を用いて、前後データの繋がりを考慮したエラー修復処理を行うことができるという効果を奏する。 In addition, the stream management information temporarily stored in the memory can be used to perform an error recovery process in consideration of the connection between the preceding and subsequent data.
本発明のデータ記録装置では、前記管理情報生成部は、さらに、記録エラーが発生した場合、エラー管理情報を生成しており、前記管理情報は、前記エラー管理情報を含むことが好ましい。 In the data recording apparatus of the present invention, it is preferable that the management information generation unit further generates error management information when a recording error occurs, and the management information includes the error management information.
上記の構成によれば、記録媒体への記録エラーが発生した場合、エラー発生状況をメモリ上に記録し、ストリームデータの記録を滞りなく継続し、記録エラー発生時の復帰処理を高速化することができるという効果を奏する。 According to the above configuration, when a recording error to the recording medium occurs, the error occurrence state is recorded in the memory, the stream data recording is continued without delay, and the recovery process when the recording error occurs is accelerated. There is an effect that can be.
また、一連の処理が終了した時点で、メモリ上に記録したエラー発生状況の情報を用いて、記録エラーが発生したストリームファイルおよびストリーム管理情報の修復処理を行うことができるという効果を奏する。 In addition, when the series of processing is completed, it is possible to perform the repair processing of the stream file in which the recording error has occurred and the stream management information by using the information on the error occurrence status recorded on the memory.
本発明のデータ記録装置では、前記エラー管理情報は、記録エラーが発生したときに記録していたストリームファイルを識別する識別子を含むことが好ましい。 In the data recording apparatus of the present invention, it is preferable that the error management information includes an identifier for identifying a stream file recorded when a recording error occurs.
上記構成によれば、データ確定後にストリームファイルおよびストリーム管理情報の修復処理を行う際に、修復が必要なファイルを容易に特定できるというさらなる効果を奏する。 According to the above configuration, when the restoration process of the stream file and the stream management information is performed after the data is determined, there is an additional effect that a file that needs to be restored can be easily identified.
本発明のデータ記録装置では,前記エラー管理情報は、記録エラーが発生した時点の前後に記録された2つのストリームファイルを識別する識別子を含むことが好ましい。 In the data recording apparatus of the present invention, it is preferable that the error management information includes an identifier for identifying two stream files recorded before and after a recording error occurs.
上記構成によれば、記録エラーによって二つ以上に分断されて記録媒体上に記録されているストリームファイルを特定することができるので、記録処理の終了後に、連続して再生する1つのストリームファイルとみなして処理ができるというさらなる効果を奏する。 According to the above configuration, since it is possible to specify a stream file that is divided into two or more due to a recording error and recorded on the recording medium, one stream file that is continuously played after the end of the recording process There is a further effect that the processing can be performed.
本発明のデータ記録装置では、前記エラー管理情報は、記録エラーが発生した時に記録していたストリームデータ内のエラー発生位置を含むことが好ましい。 In the data recording apparatus of the present invention, it is preferable that the error management information includes an error occurrence position in the stream data recorded when a recording error occurs.
上記構成によれば、記録エラーの発生位置がエラー管理情報としてメモリに記録されているので、記録処理終了後にエラー修復処理を行う場合、修復処理で削除・修正するべき部分の検索が容易なので、修復処理を高速化することができるというさらなる効果を奏する。 According to the above configuration, since the recording error occurrence position is recorded in the memory as error management information, when performing the error repair process after the recording process is completed, it is easy to search for a part to be deleted / corrected in the repair process. There is an additional effect that the restoration process can be speeded up.
本発明のデータ記録装置では、入力されるストリームデータの記録媒体への記録が完了した後、前記エラー管理情報を参照して、前記記録媒体上の記録エラーが発生したストリームデータを修復処理し、前記メモリ上の対応する管理情報を更新する記録エラー修復部をさらに備え、前記データ記録部は、記録エラーの修復処理が全て完了した場合、前記メモリ上の修復処理を行った前記管理情報を前記記録媒体に記録することが好ましい。 In the data recording apparatus of the present invention, after the recording of the input stream data to the recording medium is completed, the stream data in which the recording error has occurred on the recording medium is repaired with reference to the error management information, A recording error repair unit that updates the corresponding management information on the memory, and the data recording unit stores the management information that has been repaired on the memory when the recording error repair process is completed; Recording on a recording medium is preferable.
上記構成によれば、メモリ上にストリーム管理情報およびエラー管理情報が記憶されているため、メモリ上でエラー修復処理を行うことができ、修復のための読み出し・書き込みを高速化することができるというさらなる効果を奏する。 According to the above configuration, since stream management information and error management information are stored in the memory, it is possible to perform error repair processing on the memory, and to speed up reading and writing for repair. There is a further effect.
また、メモリ上でエラー修復処理を行うため、エラー修復を行った最終的なストリーム管理情報だけを記録媒体に記録するので、記録媒体への不要なアクセスを減らし、記録媒体の寿命を伸ばすことができるというさらなる効果を奏する。 In addition, since error correction processing is performed on the memory, only the final stream management information after error correction is recorded on the recording medium, so unnecessary access to the recording medium can be reduced and the life of the recording medium can be extended. There is a further effect of being able to.
本発明のデータ記録装置では、前記記録データ修復部は、記録エラーの修復処理が全て完了した場合、前記記録エラーが発生した時点の前後に記録された2つのストリームファイルを、連続して再生を行う一連のファイルとすることが望ましい。 In the data recording device of the present invention, the recording data restoration unit continuously reproduces the two stream files recorded before and after the point at which the recording error occurs when all of the recording error restoration processes are completed. It is desirable to have a series of files to perform.
上記構成によれば、記録媒体への記録エラーによって分断された2つ以上のファイルを、連続して再生するファイルとして関連付けることができ、あたかもエラーが発生していない1つのファイルとして扱うことができるというさらなる効果を奏する。 According to the above configuration, two or more files divided due to a recording error on the recording medium can be associated as files to be continuously played back, and can be handled as if one file had no error. There is a further effect.
本発明のデータ記録装置の制御方法は、上記問題を解決するために、ランダムアクセス可能な記録媒体にストリームデータをストリームファイルとして記録するデータ記録装置の制御方法であって、記録エラーが発生した場合、新たなファイルとして前記ストリームデータを前記記録媒体に記録し、記録を続行するステップを含むことを特徴としている。 In order to solve the above problem, the data recording apparatus control method of the present invention is a data recording apparatus control method for recording stream data as a stream file on a randomly accessible recording medium, and when a recording error occurs. And recording the stream data on the recording medium as a new file and continuing the recording.
上記の方法によれば、記録媒体への記録エラーが発生した場合、その場でファイルの正常書き込み確認やベリファイ処理などのエラー処理を行わずに、新たなファイルとして記録媒体への記録を続行するので、記録再開までの処理時間が短く、記録エラーによって失われるストリームデータを低減することができるという効果を奏する。 According to the above method, when a recording error to the recording medium occurs, recording to the recording medium as a new file is continued without performing error processing such as normal file writing confirmation or verification processing on the spot. Therefore, the processing time until the recording is restarted is short, and the stream data lost due to the recording error can be reduced.
また、記録エラー発生後のストリームデータを新たなファイルとして記録媒体に記録することにより、エラーが発生したファイルのエラー発生位置を、ファイルの末尾から容易に検索できるので、後でエラー修復処理を行う場合に処理時間を短縮することができるという効果を奏する。 In addition, by recording the stream data after the occurrence of the recording error as a new file on the recording medium, the error occurrence position of the file in which the error has occurred can be easily searched from the end of the file. In this case, the processing time can be shortened.
本発明のデータ記録装置の制御方法では、前記データ記録装置は、管理情報を一時記憶するためのメモリとをさらに備えており、前記ストリームデータを解析することにより、ストリームデータの再生制御に必要なストリーム情報を含むストリーム管理情報を生成し、前記管理情報の一部としてメモリに一時記憶するステップと、入力されるストリームデータの記録媒体への記録が完了した時点以降に、前記メモリ上の前記管理情報を前記記録媒体に記録するステップとをさらに含むことが好ましい。 In the control method of the data recording apparatus of the present invention, the data recording apparatus further includes a memory for temporarily storing management information, and is necessary for reproduction control of stream data by analyzing the stream data. Generating stream management information including stream information, temporarily storing the stream management information in a memory as a part of the management information, and the management on the memory after the recording of the input stream data to the recording medium is completed Preferably, the method further includes a step of recording information on the recording medium.
上記の方法によれば、ストリームデータの記録媒体への記録エラーが起きたとき、エラーが起きたファイルの情報をメモリに記憶して、ストリームデータの記録を滞りなく継続し、記録エラー発生時の復帰処理を高速化することができるという効果を奏する。 According to the above method, when a recording error of the stream data on the recording medium occurs, the information of the file in which the error has occurred is stored in the memory, and the recording of the stream data is continued without delay. There is an effect that the restoration process can be speeded up.
また、メモリ上でストリーム管理情報の修正処理を行うことができるので、修正処理の際の読み込み・書き込みが高速になり、修復処理を高速化できるという効果を奏する。 In addition, since the stream management information correction process can be performed on the memory, the reading and writing at the time of the correction process become faster, and the repair process can be speeded up.
また、メモリ上で修正処理を行い、最終的に確定したデータのみを記録媒体に記録するため、記録媒体へのアクセスを減らし、記録媒体の寿命が伸びるという効果を奏する。 Further, since the correction process is performed on the memory and only the finally determined data is recorded on the recording medium, the access to the recording medium is reduced and the life of the recording medium is extended.
また、メモリ上に一時記憶したストリーム管理情報を用いて、前後データの繋がりを考慮したエラー修復処理を行うことができるという効果を奏する。 In addition, the stream management information temporarily stored in the memory can be used to perform an error recovery process in consideration of the connection between the preceding and subsequent data.
なお、上記データ記録装置における各部を、データ記録装置制御プログラムによりコンピュータ上で実行させることができる。さらに、上記データ記録装置制御プログラムをコンピュータ読み取り可能な記録媒体に記憶させることにより、任意のコンピュータ上で上記データ記録装置制御プログラムを実行させることができる。 Each unit in the data recording apparatus can be executed on a computer by a data recording apparatus control program. Further, by storing the data recording device control program in a computer-readable recording medium, the data recording device control program can be executed on any computer.
本発明の記憶装置は、記録エラーが発生した場合、新たなファイルとしてストリームデータを記録媒体に記録し、記録を続行するため、記録再開までの処理時間が短く、記録エラーによって失われるストリームデータを低減できるという効果を奏する。 When a recording error occurs, the storage device of the present invention records the stream data as a new file on the recording medium and continues the recording. Therefore, the processing time until the recording is restarted is short, and the stream data lost due to the recording error is recorded. There is an effect that it can be reduced.
また、エラーが発生したファイルのエラー発生位置を、ファイルの末尾から容易に検索できるので、後でエラー修復処理を行う場合に処理時間を短縮できるという効果を奏する。 In addition, since the error occurrence position of the file in which the error has occurred can be easily searched from the end of the file, there is an effect that the processing time can be shortened when error correction processing is performed later.
本発明のデータ記録装置では、管理情報を一時記憶するためのメモリとを備え、入力されるストリームデータの記録媒体への記録が完了した時点以降に、メモリ上の管理情報を記録媒体に記録するため、記録エラーが起きたとき、エラーが起きたファイルの情報をメモリに記憶して、ストリームデータの記録を滞りなく継続し、記録エラー発生時の復帰処理を高速化し、修復処理を高速化し、記録媒体の寿命を伸ばし、前後データの繋がりを考慮したエラー修復処理を行うことができるという効果を奏する。 The data recording apparatus of the present invention includes a memory for temporarily storing management information, and records the management information on the memory on the recording medium after the recording of the input stream data to the recording medium is completed. Therefore, when a recording error occurs, the information of the file in which the error has occurred is stored in the memory, the recording of the stream data is continued without delay, the recovery process when the recording error occurs is accelerated, the repair process is accelerated, There is an effect that the life of the recording medium can be extended and an error recovery process can be performed in consideration of the connection between the preceding and subsequent data.
[実施形態1]
本発明の一実施形態について図1〜図9に基づいて説明すると以下の通りである。
[Embodiment 1]
An embodiment of the present invention will be described below with reference to FIGS.
図1は、本発明の一実施形態を示すもので、データ記録装置の各部の概略構成を示すブロック図である。 FIG. 1 shows an embodiment of the present invention, and is a block diagram showing a schematic configuration of each part of a data recording apparatus.
本実施形態の記録装置10は、バッファ12、記録媒体14、メモリ16、データ入力部18、ストリーム制御部20、記録制御部30、および、管理情報制御部40を備えている。
The
バッファ12は、入力されたストリームデータを一時記憶し、記録制御部30を介して記録媒体14に記録するための高速なメモリで、例えば、FIFO(First In First Out)方式のメモリである。
The
なお、本実施形態において、ストリームデータとは、リアルタイム性の高い映像(動画)の、途切れなく流れるように転送される一続きのデータを指すものとする。 In the present embodiment, the stream data refers to a series of data that is transferred so that a video (moving image) with high real-time characteristics flows without interruption.
記録媒体14は、例えば、ハードディスク等の磁気ディスクやCD/MO/MD/DVD等のメディアを用いた記録媒体である。記録媒体14には、ストリームデータを記録したストリームファイル、ストリーム管理情報データを記録したストリーム管理情報ファイル、および、上記のファイルの位置およびサイズの情報を含むファイル管理情報(いわゆるTOC)のデータが記録される。
The
メモリ16は、ストリーム管理情報、エラー管理情報、記録媒体14上に記録された各ファイルの位置およびサイズの情報を含むファイル管理情報、および、その他の情報を一時記憶するためのものである。
The
なお、本実施形態において、関連するストリームデータ、ストリーム管理データ、エラー管理データのセットをタイトル呼び、同じセットに含まれるデータ同士を、同一タイトルと呼ぶものとする。 In this embodiment, a set of related stream data, stream management data, and error management data is called a title, and data included in the same set is called an identical title.
ストリーム管理情報は、対応するストリームデータの再生をスムーズに行うための情報であり、例えば、ファイル先頭からのパケット番号で示されるストリームデータのGOP先頭位置情報、総パケット数、ストリームデータに含まれるエレメンタリーストリームの情報、および、その他のストリーム情報などを含んでいる。 The stream management information is information for smoothly reproducing the corresponding stream data. For example, the GOP head position information of the stream data indicated by the packet number from the head of the file, the total number of packets, and the elements included in the stream data. It includes information on the mental stream and other stream information.
エラー管理情報は、記録エラーが発生した場合に記録エラーの発生状況を示す情報であり、エラー発生を識別するエラー発生フラグ、エラーが発生したストリームファイルを識別する識別子、エラーの発生によって複数のファイルに分けて記録されたストリームファイルを識別する識別子を含んでいる。上記の他、タイトル名、記録開始時間、再生時間長、再生開始および再生終了を示す表示時間(プレゼンテーションタイム)情報、ストリーム管理情報の識別子、ストリームファイル上のエラー発生位置、および、その他の情報を含んでもよい。 The error management information is information indicating the occurrence status of a recording error when a recording error occurs. An error occurrence flag for identifying the occurrence of an error, an identifier for identifying the stream file in which the error has occurred, and a plurality of files depending on the occurrence of the error An identifier for identifying the stream file recorded separately is included. In addition to the above, title name, recording start time, playback time length, display time (presentation time) information indicating playback start and playback end, identifier of stream management information, error occurrence position on stream file, and other information May be included.
なお、ストリーム管理情報データおよびエラー管理データの対応関係について、詳細は後述する。 The correspondence relationship between the stream management information data and the error management data will be described later in detail.
データ入力部18は、外部と接続し、音声や映像などのストリームデータを入力するためのものである。
The
ストリーム制御部20は、データ入力部18から受け取ったストリームデータを解析してストリームデータおよびストリーム解析データを作成し、ストリームデータをバッファ12へ転送するとともに、ストリーム解析データを管理情報制御部40へ転送する。バッファ12にストリームデータが所定量蓄積された場合、ストリーム制御部20は、ストリームデータを記録制御部30に転送する。ストリーム制御部20はストリーム解析部22とバッファ監視部24とを含んでいる。
The
ストリーム解析部22は、入力されたストリームデータを解析し、管理情報制御部40へ転送するためのものである。ストリーム解析部22は、圧縮符号化されたストリームデータの解析を行い、例えば、MPEG−2(Moving Picture Image Coding Expert Group−2)により符号化された動画データでは、GOP開始位置、GOP先頭フレームの表示時間情報(PTS)、および、その他のストリーム情報を解析して、ストリーム解析データを生成する。
The
バッファ監視部24は、バッファ12を監視し、バッファ12に一時記憶されたストリームデータが所定の量に達した場合、バッファ12に一時記憶されたストリームデータを記録制御部30に転送する指示を出すためのものである。
The
記録制御部30は、バッファ12から転送されたストリームデータならびにメモリ16から転送されたストリーム管理情報、エラー管理情報、および、ファイル管理情報を含む各種の管理情報データを記録媒体14に記録するためのものである。記録制御部30は、記録エラー検出部32と、データ記録部34とを含んでいる。
The
記録エラー検出部32は、記録媒体14への記録処理を監視し、記録エラーが発生した場合、エラー発生を伝えるエラー検出信号をストリーム制御部20、管理情報制御部40、および、データ記録部34に送信するためのものである。
The recording
データ記録部34は、バッファ12から転送されてきたストリームデータおよびメモリ16から転送されてきた管理情報データを記録媒体14に記録するためのものである。データ記録部34は、記録エラー検出部32によってエラー検出信号が送信された場合、現在記録を行っているストリームファイルの記録を中断し、現在受信しているストリームデータを新たなストリームファイルとして記録媒体14に記録し、新たなストリームファイルの記録媒体14上の記録位置データを管理情報生成部41に通知する処理を行う。
The
管理情報制御部40は、ストリーム解析部22から受け取ったストリーム解析データおよび記録制御部30から受け取ったエラー検出信号および記録位置データを処理し、管理情報としてメモリ16に転送するためのものである。管理情報制御部40は、管理情報生成部42と、エラー修復部44とを含んでいる。
The management
管理情報生成部42は、ストリーム解析部22からのストリーム解析データをもとにストリーム管理情報を生成する。また、管理情報生成部42は、記録エラー検出部32からのエラー検出信号およびデータ記録部34からの記録位置データをもとにエラー管理情報を生成する。生成したストリーム管理情報およびエラー管理情報は、メモリ16に転送される。なお、管理情報生成部42は、上記の受け取ったデータをもとに記録媒体14のファイル管理情報を作成してもよい。
The management
エラー修復部44は、メモリ16に一時記憶されたストリーム管理情報およびエラー管理情報をもとに、記録媒体14に記録されたストリームファイルおよび記録媒体14のファイル管理情報を修正するためのものである。なお、エラー修復処理については、詳細は後述する。
The
次に、本実施形態で用いる各データファイルの詳細について、図2〜3を参照して説明する。 Next, details of each data file used in the present embodiment will be described with reference to FIGS.
図2は、本実施形態におけるストリームデータ、管理情報データ、エラー管理データ、および、各データを記録したファイル群50の関係を示す概略図である。
FIG. 2 is a schematic diagram showing the relationship between stream data, management information data, error management data, and a
本実施形態では、エラー管理データとして、以下で詳細を説明するプレイリストファイルを用いるものとする。 In the present embodiment, a playlist file that will be described in detail below is used as error management data.
ストリームファイルS1〜S3には、それぞれ、ストリームデータDATA1〜DATA3が記録されている。 Stream data DATA1 to DATA3 are recorded in the stream files S1 to S3, respectively.
ストリーム管理情報ファイルM1〜M3には、対応するストリームファイルS1〜S3を識別する識別子I1〜I3と、ストリーム再生開始の表示時間(PTS)を示すデータIN1〜IN3と、再生終了の表示時間(PTS)を示すデータOUT1〜OUT3とを含み、さらに、ストリームファイルをスムーズに再生するためのファイル先頭からのパケット番号で示されるストリームデータのGOP先頭位置情報、GOP先頭フレームの表示時間情報(PTS)、総パケット数、ストリームデータに含まれるエレメンタリーストリームの情報、および、その他のストリーム情報が記録されている。 The stream management information files M1 to M3 include identifiers I1 to I3 for identifying the corresponding stream files S1 to S3, data IN1 to IN3 indicating a display time (PTS) for starting stream reproduction, and a display time (PTS for reproducing end). ), And GOP head position information of the stream data indicated by the packet number from the head of the file for smoothly reproducing the stream file, display time information (PTS) of the GOP head frame, The total number of packets, information on elementary streams included in the stream data, and other stream information are recorded.
なお、上述のストリーム再生開始の表示時間情報IN1〜IN3および再生終了の表示時間OUT1〜OUT3は、ストリームデータを連続に記録するものとして単一の再生開始の表示時間情報および再生終了の表示時間情報のデータで示したが、ストリームデータが不連続に記録する場合は不連続な領域ごとに再生開始の表示時間情報および再生終了の表示時間情報のデータが必要となる。 Note that the display time information IN1 to IN3 and the display time OUT1 to OUT3 at the end of the above-described stream reproduction are the single display time information at the start of reproduction and the display time information at the end of reproduction, as stream data is continuously recorded. However, when the stream data is recorded discontinuously, display start time display time information and display end time display data are required for each discontinuous area.
プレイリストファイル(エラー管理データ)P1〜P3は、対応する管理情報ファイルM1〜M3を識別する管理情報ファイル識別子I1〜I3およびエラー発生フラグERROR1〜ERROR3が記録されている。本実施形態では、I1=M1,P2、ERROR1=TRUE、I2=M2,P1、ERROR2=FALSE、I3=M3、ERROR3=FALSEとなっている。 In the playlist files (error management data) P1 to P3, management information file identifiers I1 to I3 for identifying the corresponding management information files M1 to M3 and error occurrence flags ERROR1 to ERROR3 are recorded. In this embodiment, I1 = M1, P2, ERROR1 = TRUE, I2 = M2, P1, ERROR2 = FALSE, I3 = M3, and ERROR3 = FALSE.
上記各データを記録したファイル群50は、P1・M1・S1がタイトル1を、P2・M2・S2がタイトル2を、P3・M3・S3がタイトル3をそれぞれ形成している。
In the
なお、一連の記録データ(タイトル)であることを示すタイトル名TITLE1〜TITLE3、一連の記録データ(タイトル)の記録開始時刻TIME1〜TIME3、一連の記録データ(タイトル)の合計再生時間SIZE1〜SIZE3、ストリーム再生開始の表示時間情報(PTS)IN1〜IN3および再生終了の表示時間情報(PTS)OUT1〜OUT3、および、その他の付加情報をプレイリストファイルに記録してもよい。 Note that the title names TITLE1 to TITLE3 indicating a series of recording data (titles), the recording start times TIME1 to TIME3 of the series of recording data (titles), the total playback time SIZE1 to SIZE3 of the series of recording data (titles), Display time information (PTS) IN1 to IN3 at the start of stream reproduction, display time information (PTS) OUT1 to OUT3 at the end of reproduction, and other additional information may be recorded in the playlist file.
ストリームファイルS1’、ストリーム管理情報ファイルM1’、および、プレイリストファイルP1’は、エラー修復処理をおこなったS1、M1、および、P1それぞれのデータである。分断されたストリームファイルS1およびS2は、プレイリストファイルP1に記録された管理情報ファイル識別子I1=M1,P2およびエラー発生フラグERROR1=TRUE、プレイリストファイルP2に記録された管理情報ファイル識別子I2=M2,P1にもとづき、ストリーム管理情報ファイルM2をプレイリストP1に関連付けるエラー修復処理を行い、プレイリストP2自体は削除される。 The stream file S1 ', the stream management information file M1', and the playlist file P1 'are the data of S1, M1, and P1 that have been subjected to the error recovery process. The divided stream files S1 and S2 are management information file identifiers I1 = M1, P2 and error occurrence flag ERROR1 = TRUE recorded in the playlist file P1, and management information file identifiers I2 = M2 recorded in the playlist file P2. , P1, an error recovery process for associating the stream management information file M2 with the playlist P1 is performed, and the playlist P2 itself is deleted.
エラー修復処理の詳細については、後述する。エラー修復処理によって、プレイリストファイルP1には管理情報ファイルM1およびM2が関連付けられる。ストリームファイルS1、ストリーム管理情報ファイルM1、および、プレイリストファイルP1は、S1’、M1’、および、P1’に更新され、プレイリストファイルP2は削除される。 Details of the error repair processing will be described later. The management information files M1 and M2 are associated with the playlist file P1 by the error repair process. The stream file S1, the stream management information file M1, and the playlist file P1 are updated to S1 ', M1', and P1 ', and the playlist file P2 is deleted.
エラー修復処理が完了すると、P1’・M1’・S1’・M2・S2が同一タイトルとなる。 When the error repair process is completed, P1 ', M1', S1 ', M2, and S2 have the same title.
次に、本実施形態で行う各処理および全体の処理の流れについて、図3〜図7を参照して説明する。 Next, each processing performed in the present embodiment and the flow of the entire processing will be described with reference to FIGS.
図3は、本実施形態における記録エラー発生時の記録処理を示す概略図である。 FIG. 3 is a schematic diagram showing a recording process when a recording error occurs in the present embodiment.
下段のストリームデータd1〜d25は、バッファ12に転送されるストリームデータである。
Lower stream data d1 to d25 are stream data transferred to the
バッファ12は、ストリームデータd6〜d13に相当する8個分のデータを一時記憶するだけのサイズを持つものとする。
It is assumed that the
実線で示されたストリームデータd1〜d15は、時刻t3までにバッファ12に実際に転送されたストリームデータを示し、破線で示されたストリームデータd16〜d25はこれからバッファに転送される予定のストリームデータを示す。
Stream data d1 to d15 indicated by solid lines indicate stream data actually transferred to the
上段のストリームデータe1〜e24は、記録媒体14に記録されるストリームデータである。
The upper stream data e1 to e24 are stream data recorded on the
実線で示されたストリームデータe1〜e12、e14は、時刻t3までに記録媒体14に実際に記録されたストリームデータを示し、点線でしめされたストリームデータe15〜e24はこれから記録媒体に記録される予定のストリームデータを示す。
Stream data e1 to e12 and e14 indicated by solid lines indicate stream data actually recorded on the
データ入力部18から入力されたストリームデータは、バッファ12に一時記憶され、バッファ12上に記憶されたストリームデータが所定の量を超えた場合、記録媒体12に記録される。
The stream data input from the
今、時刻t1において、ストリームデータe12を記録中に記録エラーが発生したものとする。このとき、データ入力部18からバッファ12へのストリームデータの一時記録を停止すると共に、バッファ12から記録媒体14へのストリームデータの転送を一時停止し、ストリームデータd13は転送されない。
It is assumed that a recording error has occurred during the recording of the stream data e12 at time t1. At this time, the temporary recording of the stream data from the
本実施形態では、記録エラー発生時にはベリファイ処理やエラー修復処理を行わずにエラー発生情報をメモリ16に記録し、エラー復帰処理を短時間で終了して、記録処理に戻る。
In this embodiment, when a recording error occurs, error occurrence information is recorded in the
時刻t2においてエラー復帰処理が終了した場合、データ入力部18からバッファ12へのデータの一時記録を再開し、ストリームデータd14がバッファ12に一時記録されると、ストリームデータd14を起点にバッファ12から記録媒体14へのデータの転送を再開し、ストリームデータe14を記録媒体へ記録する。
When the error recovery process is completed at time t2, the temporary recording of data from the
最終的に、一連のストリームデータの転送後に行われるエラー修復処理によって、再生ができないストリームデータe11〜e12は削除され、バッファ12上のストリームデータd11〜d13に相当するストリームデータが消失する。
Eventually, the stream data e11 to e12 that cannot be reproduced is deleted by the error recovery process performed after the series of stream data is transferred, and the stream data corresponding to the stream data d11 to d13 on the
以上のように、エラー復帰処理を短時間で終了することで、エラー復帰処理に費やす時間を短縮し、データの消失を低減する。 As described above, by ending the error recovery process in a short time, the time spent on the error recovery process is shortened and the loss of data is reduced.
図4は、本実施形態における記録処理の流れを示すフロー図である。 FIG. 4 is a flowchart showing the flow of recording processing in the present embodiment.
まず、記録処理が開始されると、管理情報制御部40において管理情報をメモリ16に記録する準備が行われる(S401)。具体的には、記録媒体14上にストリームファイルを新規作成し、メモリ16上にストリームファイルのファイル管理情報、ストリーム管理情報、および、エラー管理情報を新規作成する。
First, when the recording process is started, the management
次に、信号入力部18より入力されたストリームデータは、ストリーム解析部22で解析され、バッファ12に転送される(S402)。
Next, the stream data input from the
また、ストリーム解析部22で解析されたストリーム解析データをもとに、管理情報生成部42はストリーム管理情報を作成し、メモリ16の一時記録領域に転送して更新する(S403)。
Further, based on the stream analysis data analyzed by the
次に、バッファ監視部24は、バッファ12に転送されたストリームデータが所定量に達しているか監視し(S404)、所定量に達している場合、バッファ12に蓄積されたストリームデータは記録制御部205に所定量転送される(S405)。バッファ12に蓄積されたストリームデータが所定量に達しない場合、S402に戻ってストリームデータの転送を続行する。
Next, the
記録制御部30に転送されたストリームデータは、データ記録部34によって記憶媒体14に記録される。このとき、記録エラー検出部32によって記録エラーの発生を監視し(S406)、記録エラーが検出された場合、エラー復帰処理が行われ(S410)、その後、S402に戻ってストリームデータの転送を続行する。
The stream data transferred to the
記録エラーが発生しなかった場合、管理情報生成部42はメモリ16の作業領域に格納されているストリーム管理情報、ファイル管理情報のうち記録媒体14への記録が完了した分の情報を確定し、メモリ16の作業領域とは別の記憶領域へ転送する(S407)。
If no recording error has occurred, the management
その後、記録処理を停止するか判断し(S408)、停止する場合は録画停止処理を行って(S409)、記録処理を終了する。記録処理を停止しない場合、S402に戻ってストリームデータの転送を続行する。 Thereafter, it is determined whether or not the recording process is to be stopped (S408). If the recording process is to be stopped, a recording stop process is performed (S409), and the recording process is terminated. If the recording process is not stopped, the flow returns to S402 to continue the transfer of the stream data.
なお、確定された各管理情報ファイルの記録媒体14への記録は、記録停止時に行ってもよいが、記録媒体14のメディア排出指示があった場合や、記録装置10の電源OFF指示があった場合に行ってもよい。
Recording of each determined management information file to the
次に、本実施形態におけるエラー復帰処理の手順について説明する。 Next, an error recovery process procedure according to this embodiment will be described.
図5は、本実施形態におけるエラー復帰処理の流れを示すフロー図であり、図4のS410にあたる。 FIG. 5 is a flowchart showing the flow of error recovery processing in this embodiment, which corresponds to S410 in FIG.
記録エラー検出部32が記録エラーを検出すると、図5に示すエラー復帰処理が開始される。
When the
記録エラー検出部32からエラー検出信号がストリーム制御部20および管理情報生成部に送信され、ストリーム制御部20はストリームデータの転送を停止する(S501)。
An error detection signal is transmitted from the recording
データ記録部34は記録媒体14に現在記録しているストリームファイルを終了するための処理を行う。管理情報生成部42は、記録していたストリームファイルに対応する分のストリーム管理情報およびファイル管理情報を作成し、各管理情報の確定を行う(S502)。
The
各管理情報が確定された後、終了した古いストリームファイルおよび新たに作成するストリームファイルがエラーによって分断された連続するデータであることをエラー管理情報に記録する(S503)。具体的には、図2に示されるように、エラー管理情報である対応するプレイリストファイル内のエラー発生フラグをTRUEにし、管理情報ファイル識別子部分にエラー発生ファイルの識別子として、連続するストリーム管理情報を指し示すエラー管理情報識別子を追加する。 After each management information is determined, it is recorded in the error management information that the finished old stream file and the newly created stream file are continuous data divided by an error (S503). Specifically, as shown in FIG. 2, the error occurrence flag in the corresponding playlist file which is error management information is set to TRUE, and the continuous stream management information is used as the error occurrence file identifier in the management information file identifier portion. Add an error management information identifier that points to.
上記の処理の後に、新たに作成されたストリームファイルのエラー管理情報ファイルであるプレイリストファイルを、上記メモリ16上に新たに作成し、新たに作成するストリームファイルおよびストリーム管理情報と対応付ける(S504)。
After the above processing, a playlist file which is an error management information file of a newly created stream file is newly created on the
その後、バッファ12の記録ポインタをバッファ12の先頭に移し(S505)、ストリーム制御部20は、ストリームデータのバッファ12への転送を再開する(S506)。ストリームデータは、新たに作成したストリームファイルに記録される。
Thereafter, the recording pointer of the
次に、本実施形態における記録停止処理の手順について説明する。 Next, the procedure of the recording stop process in this embodiment will be described.
図6は、本実施形態における記録停止処理の流れを示すフロー図であり、図4のS409にあたる。 FIG. 6 is a flowchart showing the flow of the recording stop process in this embodiment, which corresponds to S409 in FIG.
記録停止処理が開始されると、ストリーム制御部20は、ストリームデータのバッファ12への転送を停止し(S601)、バッファ12に残ったストリームデータを記録制御部30に転送し、記録制御部30が記録媒体14に記録する(S602)。
When the recording stop process is started, the
管理情報生成部42は、記録中のタイトルに対応するストリーム管理情報、エラー管理情報、および、ファイル管理情報を更新して管理情報の確定処理を行う(S603)。確定した管理情報は、管理情報制御部40によってメモリ16上に転送される。
The
管理情報制御部40は、さらに、メモリ16上に一時記憶されているエラー管理情報を参照し、エラー発生フラグをチェックする(S604)。エラー発生フラグ=TRUEのエラー管理情報が存在しない場合、記録停止処理はそのまま終了する。エラー発生フラグ=TRUEのエラー管理情報が1つでもあった場合、記録エラー修復処理を行う(S605)。
The management
図7は、本実施形態におけるエラー修復処理の流れを示すフロー図である。 FIG. 7 is a flowchart showing the flow of error repair processing in the present embodiment.
エラー修復処理が開始されると、エラー修復部44は、記録制御部30を通じて記録媒体14上の修復処理を行うストリームデータの初期再生位置を決定する(S701)。
When the error repair process is started, the
初期再生位置は、エラー発生地点よりも前の位置で、符号化されたデータを復号するために必要な情報が揃った、ランダムアクセス可能なデータ単位(例えば、GOP)である。 The initial reproduction position is a data unit (for example, GOP) that is randomly accessible and has information necessary for decoding encoded data at a position before the error occurrence point.
また、ECCブロック71のデータ単位で書き込みを行う記録媒体であれば、ECCブロック71のデータ単位で削除する量を決定しなければならない。上記単位で初期値を時系列に沿って逆にたどり、再生可能な初期位置を決定するまでさかのぼって確認する(図12参照)。
In addition, in the case of a recording medium in which writing is performed in units of data in the
上記方法による時系列逆順の検索によって、エラー修正を行うストリームファイルの先頭まで戻った場合、該ストリームデータに再生可能な部分は存在しないため、S708のタイトルの削除処理に進む。まだ、ストリームファイルの先頭まで戻っていない場合、エラー修復部44は、記録媒体14から上記戻った位置から所定量(例えば、1ブロック分)のストリームデータをメモリ16に転送し(S703)、転送したストリームデータが再生可能な正しいデータであるかどうか判断する(S704)。
If the search returns to the beginning of the stream file for which error correction is performed by the time-series reverse search by the above method, there is no reproducible portion in the stream data, and the process proceeds to the title deletion process in S708. If the head has not yet returned to the beginning of the stream file, the
上記戻った位置からのストリームデータの再生が可能でなかった場合、再生位置をさらに時系列逆順にさかのぼり(S707)、S702〜S704の処理に戻る。上記ストリームデータが再生可能な正しいデータであった場合、上記戻った位置から最後までのストリームデータを削除する(S705)。 If it is not possible to reproduce the stream data from the returned position, the reproduction position is further traced back in time series reverse order (S707), and the process returns to S702 to S704. If the stream data is correct and reproducible, the stream data from the returned position to the end is deleted (S705).
上記の処理で削除したストリームデータに対応するストリーム管理情報についても、同様に削除処理を行う(S706)。ここで、エラー修復処理を確定し、エラー修復処理を行ったストリームファイルに対応する同一タイトルのエラー管理情報のエラー発生フラグをFALSEに変更する。 The stream management information corresponding to the stream data deleted in the above process is similarly deleted (S706). Here, the error repair process is confirmed, and the error occurrence flag of the error management information of the same title corresponding to the stream file subjected to the error repair process is changed to FALSE.
その後、エラー管理情報をチェックし、エラー発生フラグがTRUEになっている全てのストリームデータに対して修復作業が完了したか、判断を行う(S709)。まだ、エラー発生フラグがTRUEになっているエラー管理情報が残っている場合、次のエラー管理情報に移って(S711)、S701に戻り、対応するストリームファイルの修復処理を同様に続行する。 Thereafter, the error management information is checked, and it is determined whether or not the repair work has been completed for all stream data for which the error occurrence flag is TRUE (S709). If there is still error management information with the error occurrence flag set to TRUE, the process proceeds to the next error management information (S711), returns to S701, and continues the repair processing of the corresponding stream file in the same manner.
全てのエラー管理情報のエラー発生フラグがFALSEであった場合、管理情報ファイル識別子が2つ以上存在するプレイリストファイルに対して、連続する同一タイトルのストリームデータならびにストリーム管理情報を結合する処理を行う(S710)。 When the error occurrence flag of all error management information is FALSE, a process for combining continuous stream data and stream management information of the same title is performed on a playlist file having two or more management information file identifiers. (S710).
具体的には、同一タイトルのストリームデータおよびストリーム管理情報を連続して再生できるように、1つのエラー管理情報に一連のストリームデータおよびストリーム管理情報の識別子を追加し、追加した分のエラー管理情報を削除する(図2のP1’を参照)。 Specifically, a series of stream data and stream management information identifiers are added to one error management information so that stream data and stream management information of the same title can be continuously played back, and error management information for the added amount Is deleted (see P1 ′ in FIG. 2).
以上の手順で、エラー修復処理を終了する。 With the above procedure, the error repair process is completed.
図8は、本実施形態におけるストリームファイル、管理情報ファイル、および、エラー管理情報であるプレイリストファイルが、エラー修復処理により変更される様子を示す概略図である。 FIG. 8 is a schematic diagram showing how a stream file, a management information file, and a playlist file that is error management information are changed by error correction processing in the present embodiment.
ストリームファイルS1は、時刻Tstartで記録を開始し、ある時点でエラーが発生し、時刻T1においてエラーを検出し、ストリームデータの記録を停止する。 The stream file S1 starts recording at the time Tstart, an error occurs at a certain point, the error is detected at the time T1, and the recording of the stream data is stopped.
ストリーム管理情報ファイルM1は、時刻TstartにおいてストリームファイルS1と同時に更新を開始し、時刻T1において記録を停止するまで更新を続ける。 The stream management information file M1 starts updating at the same time as the stream file S1 at time Tstart and continues to be updated until recording is stopped at time T1.
プレイリストファイルP1は、ストリーム管理情報ファイルM1と同時に作成され、対応する管理情報ファイルを示す識別子I1に上記ストリーム管理情報のファイル名M1が記憶される。 The playlist file P1 is created simultaneously with the stream management information file M1, and the file name M1 of the stream management information is stored in the identifier I1 indicating the corresponding management information file.
時刻Terrorにおいてエラーが発生したとき、ストリームファイルS1および管理情報ファイルM1のエラー修復処理はおこなわずに、プレイリストファイルP1のエラー発生フラグERROR1をTRUEにする。また、新しいストリームファイルS2がストリームファイルS1と連続するデータであることを識別するために、管理情報ファイル識別子I1にプレイリストファイルP2の識別子を追加する。 When an error occurs at time Terror, the error occurrence flag ERROR1 of the playlist file P1 is set to TRUE without performing error repair processing of the stream file S1 and the management information file M1. Further, in order to identify that the new stream file S2 is continuous data with the stream file S1, the identifier of the playlist file P2 is added to the management information file identifier I1.
その後、新しいストリームファイルS2、新しいストリーム管理情報ファイルM2、新しいプレイリストファイルP2を作成し、ストリームデータの記録を続行する。 Thereafter, a new stream file S2, a new stream management information file M2, and a new playlist file P2 are created, and recording of the stream data is continued.
ストリームファイルS2は、時刻T2において新たなファイルとして記録を再開され、時刻Tendにおいて記録を終了する。 Recording of the stream file S2 is resumed as a new file at time T2, and the recording ends at time Tend.
ストリーム管理情報ファイルM2は、時刻T2においてストリームファイルS2と同時に新たなファイルとして更新を再開し、時刻Tendにおいて記録を停止するまで同様に更新を続ける。 The stream management information file M2 is updated again as a new file at the time T2 at the same time as the stream file S2, and is continuously updated until the recording is stopped at the time Tend.
プレイリストファイルP2は、ストリーム管理情報ファイルM2と同時に作成され、対応する管理情報ファイルを示す識別子I2に上記ストリーム管理情報のファイル名M2およびエラーが発生する前に記録していたプレイリストファイルのファイル名P1が記録され、エラー発生フラグERROR2にFALSEを記録する。 The playlist file P2 is created at the same time as the stream management information file M2, and the file name M2 of the stream management information and the file of the playlist file recorded before the error occurs in the identifier I2 indicating the corresponding management information file The name P1 is recorded, and FALSE is recorded in the error occurrence flag ERROR2.
時刻Tendにおいて一連の記録が終了し、ストリームファイルS1およびS2に対応するストリーム管理情報データM1およびM2が確定される。このとき、記録エラーが発生したストリームファイルS1およびストリーム管理情報ファイルM1のエラー修復処理は未だ行われていない。 At time Tend, a series of recording ends, and stream management information data M1 and M2 corresponding to the stream files S1 and S2 are determined. At this time, the error repair processing of the stream file S1 and the stream management information file M1 in which the recording error has occurred has not been performed yet.
以上がストリームデータ記録時の各ファイルの記録内容である。 The above is the recording contents of each file when recording stream data.
次に、ストリームデータの記録終了後に、記録エラー修復処理を行う場合の各データの変化について説明する。 Next, changes in each data when the recording error repair process is performed after the end of the recording of the stream data will be described.
エラー修復処理において、エラー発生フラグがTRUEであるプレイリストファイルが検出される。ストリームファイルS1の末尾にエラーがあると判断し、エラー修復処理を行う。ストリームファイルS1の末尾から正常に再生可能であるデータにたどり着くまでECCブロック71単位でさかのぼる。 In the error recovery process, a playlist file whose error occurrence flag is TRUE is detected. It is determined that there is an error at the end of the stream file S1, and error recovery processing is performed. From the end of the stream file S1, the data is traced back in units of ECC blocks 71 until data that can be normally reproduced is reached.
正常に再生できた所定の量だけデータを削除し(S1’)、対応するストリーム管理情報ファイルM1内のストリーム管理情報データを更新する(M1’)。さらに、プレイリストファイルP1のエラー発生フラグERROR1をFALSEに更新する。 The data is deleted by a predetermined amount that can be normally reproduced (S1 '), and the stream management information data in the corresponding stream management information file M1 is updated (M1'). Further, the error occurrence flag ERROR1 of the playlist file P1 is updated to FALSE.
なお、削除する所定の量は、GOPの情報をもとにECC単位で決定することが望ましい。また、ストリームファイルS1およびS1’、ストリーム管理情報ファイルM1およびM1’は、そのデータ内容のみが違うものであり、同一のファイルを指す。 Note that the predetermined amount to be deleted is desirably determined in ECC units based on GOP information. Further, the stream files S1 and S1 'and the stream management information files M1 and M1' are different from each other only in data contents, and indicate the same file.
ストリームファイルS1’および管理情報ファイルM1’への更新終了後、プレイリストファイルP1の管理情報ファイル識別子I1に記録されたファイル名から、プレイリストファイルP2を参照し、プレイリストP2の管理情報ファイル識別子I2から、ストリームファイルS1ならびにストリームファイルS2がエラーによって分断された連続するストリームデータであることを認識する。プレイリストファイルP1の管理情報ファイル識別子I1をM1’+M2に更新し(P1’)、プレイリストファイルP2を削除する。上記処理によって、プレイリストファイルP1’のみでストリームデータS1’およびS2と、ストリーム管理情報ファイルM1’およびM2とが連続して再生する同一のタイトルであることを示すことができる。 After the update to the stream file S1 ′ and the management information file M1 ′ is completed, the playlist file P2 is referenced from the file name recorded in the management information file identifier I1 of the playlist file P1, and the management information file identifier of the playlist P2 From I2, it is recognized that the stream file S1 and the stream file S2 are continuous stream data divided by an error. The management information file identifier I1 of the playlist file P1 is updated to M1 '+ M2 (P1'), and the playlist file P2 is deleted. By the above processing, it is possible to indicate that the stream data S1 'and S2 and the stream management information files M1' and M2 are the same title to be reproduced continuously only by the playlist file P1 '.
なお、本実施形態では、エラーが発生したエラー管理データのみエラーフラグをTUREにし、連続するデータであることを識別するための管理情報ファイル識別子を用いて関連付けたが、データの安全性を高めるために、エラー発生時に記録していたファイルと、エラー発生後に新たに作成したファイルとの両方のエラー管理データにおいて、エラーフラグをTRUEにしてもよい。この場合、連続したタイトルの最後のタイトルは、エラーは発生していないため、ファイル終端のエラー部分の削除処理は不要である。 In this embodiment, only error management data in which an error has occurred is associated with a management information file identifier for identifying that the error flag is set to TURE and identifying continuous data. In addition, the error flag may be set to TRUE in the error management data of both the file recorded when the error occurs and the file newly created after the error occurs. In this case, since no error has occurred in the last title of consecutive titles, it is not necessary to delete the error portion at the end of the file.
また、本実施形態では、管理情報ファイル識別子にプレイリストファイル名を追加で記録することで連続するデータであることを関連付けたが、管理情報データの内容やタイトル名を参照して連続するデータであること、すなわち、同一タイトルであることを識別してもよい。 In the present embodiment, the management information file identifier is associated with continuous data by additionally recording a playlist file name. However, the management information file identifier refers to continuous data with reference to the contents of the management information data and the title name. It may be identified that there is a certain title, that is, the same title.
また、本実施形態では、プレイリストファイルをエラー管理情報ファイルとして用いたが、これに限らず、エラーが発生したタイトルおよびエラーが発生した場所を記録したエラーテーブルをエラー管理情報ファイルとしてメモリ上に作成してもよい。 In this embodiment, the playlist file is used as the error management information file. However, the present invention is not limited to this, and an error table that records the title where the error occurred and the location where the error occurred is stored in the memory as an error management information file. You may create it.
なお、本実施形態において、ストリームデータとは、映像(動画)の、途切れなく流れるように転送される一続きのデータを指すものとしたが、映像のない音声のみのデータであってもよいし、映像および音声を含むデータであってもよい。 In the present embodiment, the stream data refers to a series of data transferred so that the video (moving image) flows without interruption, but may be audio-only data without video. It may be data including video and audio.
[実施形態2]
次に、本発明の別の実施形態について図9に基づいて説明する。本実施形態のストリームデータ記録方法は、図3に示されるストリームデータ記録方法に比べて、新たなファイルへ記録するストリームデータが異なり、その他の構成は同様である。なお、上記実施形態で説明した構成と同様の機能を有する構成には同一の符号を付して、その説明を省略する。
[Embodiment 2]
Next, another embodiment of the present invention will be described with reference to FIG. The stream data recording method of this embodiment is different from the stream data recording method shown in FIG. 3 in the stream data to be recorded in a new file, and the other configurations are the same. In addition, the same code | symbol is attached | subjected to the structure which has the function similar to the structure demonstrated in the said embodiment, and the description is abbreviate | omitted.
図9は、本実施形態における記録エラー発生時の記録処理を示す概略図である。 FIG. 9 is a schematic diagram illustrating a recording process when a recording error occurs in the present embodiment.
下段のストリームデータd1〜d25は、バッファ12に転送されるストリームデータである。
Lower stream data d1 to d25 are stream data transferred to the
バッファ12は、ストリームデータd7〜d14に相当する8個分のデータを一時記憶するだけのサイズを持つものとする。
The
実線で示されたストリームデータd1〜d14は、バッファ12に実際に転送されたストリームデータを示し、点線で示されたストリームデータd16〜d25はこれから転送される予定のストリームデータを示す。
Stream data d1 to d14 indicated by solid lines indicate stream data actually transferred to the
上段のストリームデータe1〜e22は、記録媒体14に記録されるストリームデータである。
The upper stream data e <b> 1 to e <b> 22 is stream data recorded on the
実線で示されたストリームデータe1〜e12は、記録媒体14に実際に記録されたストリームデータを示し、点線でしめされたストリームデータe12〜e22はこれから記録される予定のストリームデータを示す。
Stream data e1 to e12 indicated by solid lines indicate stream data actually recorded on the
今、時刻t1において、ストリームデータe12を記録中に記録エラーが発生したものとする。このとき、バッファ12から記録媒体14へのストリームデータの転送を一時停止し、ストリームデータd13は転送されない。ここで、データ入力部18からバッファ12へのストリームデータの一時記録は停止しないで記録を継続する。
It is assumed that a recording error has occurred during the recording of the stream data e12 at time t1. At this time, the transfer of the stream data from the
本実施形態では、記録エラー発生時にはベリファイ処理やエラー修復処理を行わずにエラー発生情報をメモリ16に記録し、エラー復帰処理を短時間で終了して、記録処理に戻る。
In this embodiment, when a recording error occurs, error occurrence information is recorded in the
時刻t1において、エラー復帰処理を短時間で終了し、新たなストリームファイルとしてストリームデータを記録媒体14に記録する処理を再開する。その際、エラーが発生したストリームデータe12よりも前のストリームデータe11に対応するストリームデータが、バッファ12から記録媒体14に転送される。
At time t1, the error recovery process is completed in a short time, and the process of recording the stream data on the
図示の例では、新たなストリームファイルの作成にあたり、バッファ12上に残っているe11に対応するストリームデータd11を先頭にd12、d13……とストリームデータを記録媒体14に転送する。これによって、記録エラーが発生して失われるストリームデータに対応するストリームデータであって、バッファ上に保存されているストリームデータを記録媒体14に再送することで、記録エラー修復処理の際、消失するデータを減少し、理想的には消失するデータを0とすることが可能になる。
In the example shown in the figure, when creating a new stream file, the stream data d11 corresponding to e11 remaining on the
なお、再送するストリームデータは1つ前のブロックには限らず、バッファサイズの許す範囲でさらに前のストリームデータから再送してもよい。 The stream data to be retransmitted is not limited to the previous block, and may be retransmitted from the previous stream data as long as the buffer size allows.
また、上記実施形態に示すデータ記録方法を用いる場合、エラーが発生したストリームファイルと新たに作成したストリームファイルとのデータの重複を避けるために、再送によって記録したストリームデータのブロック情報をエラー管理情報(プレイリストファイル)等に記録しておくことが望ましい。該情報を参照しエラー修復処理を行うことで、重複するデータの存在しないストリームファイルをエラー修復によって実現することができる。 In addition, when using the data recording method shown in the above embodiment, in order to avoid duplication of data between the stream file in which an error has occurred and the newly created stream file, the block information of the stream data recorded by retransmission is error management information. It is desirable to record in (playlist file) or the like. By referring to the information and performing error repair processing, a stream file in which duplicate data does not exist can be realized by error repair.
本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope shown in the claims, and embodiments obtained by appropriately combining technical means disclosed in different embodiments. Is also included in the technical scope of the present invention.
例えば、上記実施形態のデータ記録装置の各部や各処理ステップは、CPUなどの演算手段が、ROM(Read Only Memory)やRAMなどの記憶手段に記憶されたプログラムを実行し、キーボードなどの入力手段、ディスプレイなどの出力手段、あるいは、インターフェース回路などの通信手段を制御することにより実現することができる。したがって、これらの手段を有するコンピュータが、上記プログラムを記録した記録媒体を読み取り、当該プログラムを実行するだけで、上記データ記録装置の各種機能および各種処理を実現することができる。また、上記プログラムをリムーバブルな記録媒体に記録することにより、任意のコンピュータ上で上記の各種機能および各種処理を実現することができる。 For example, each unit and each processing step of the data recording apparatus according to the above embodiment is such that a calculation unit such as a CPU executes a program stored in a storage unit such as a ROM (Read Only Memory) or a RAM, and an input unit such as a keyboard. It can be realized by controlling output means such as a display or communication means such as an interface circuit. Therefore, the computer having these means can realize various functions and various processes of the data recording apparatus simply by reading the recording medium storing the program and executing the program. In addition, by recording the program on a removable recording medium, the various functions and various processes described above can be realized on an arbitrary computer.
この記録媒体としては、マイクロコンピュータで処理を行うために図示しないメモリ、例えばROMのようなものがプログラムメディアであっても良いし、また、図示していないが外部記憶装置としてプログラム読み取り装置が設けられ、そこに記録媒体を挿入することにより読み取り可能なプログラムメディアであっても良い。 As the recording medium, a program medium such as a memory (not shown) such as a ROM may be used for processing by the microcomputer, and a program reading device is provided as an external storage device (not shown). It may be a program medium that can be read by inserting a recording medium there.
また、何れの場合でも、格納されているプログラムは、マイクロプロセッサがアクセスして実行される構成であることが好ましい。さらに、プログラムを読み出し、読み出されたプログラムは、マイクロコンピュータのプログラム記憶エリアにダウンロードされて、そのプログラムが実行される方式であることが好ましい。なお、このダウンロード用のプログラムは予め本体装置に格納されているものとする。 In any case, the stored program is preferably configured to be accessed and executed by the microprocessor. Furthermore, it is preferable that the program is read out, and the read program is downloaded to a program storage area of the microcomputer and the program is executed. It is assumed that this download program is stored in advance in the main unit.
また、上記プログラムメディアとしては、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスクやCD/MO/MD/DVD等のディスクのディスク系、ICカード(メモリカードを含む)等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にプログラムを担持する記録媒体等がある。 The program medium is a recording medium configured to be separable from the main body, such as a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a flexible disk or a hard disk, or a disk such as a CD / MO / MD / DVD. Fixed disk, IC card (including memory card), etc., or semiconductor ROM such as mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash ROM, etc. In particular, there are recording media that carry programs.
また、インターネットを含む通信ネットワークを接続可能なシステム構成であれば、通信ネットワークからプログラムをダウンロードするように流動的にプログラムを担持する記録媒体であることが好ましい。 In addition, if the system configuration is capable of connecting to a communication network including the Internet, the recording medium is preferably a recording medium that fluidly carries the program so as to download the program from the communication network.
さらに、このように通信ネットワークからプログラムをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、あるいは別な記録媒体からインストールされるものであることが好ましい。 Further, when the program is downloaded from the communication network as described above, it is preferable that the download program is stored in the main device in advance or installed from another recording medium.
本発明の記憶装置は、記録エラーによって失われるストリームデータを低減でき、エラー修復処理を行う場合に処理時間を短縮でき、記録エラー発生時の復帰処理を高速化し、修復処理を高速化し、記録媒体の寿命を伸ばし、前後データの繋がりを考慮したエラー修復処理を行うことができるため、ハードディスク等の磁気ディスクやCD/MO/MD/DVD等のメディアを記録媒体に用いた記録装置に好適に適用できる。 The storage device of the present invention can reduce stream data lost due to a recording error, reduce processing time when performing error repair processing, speed up recovery processing when a recording error occurs, speed up repair processing, and recording medium Can be applied to recording devices that use magnetic disks such as hard disks and media such as CD / MO / MD / DVD as recording media. it can.
10 データ記録装置
12 バッファ
14 記録媒体
16 メモリ
18 データ入力部
20 ストリーム制御部
22 ストリーム解析部
24 バッファ監視部
30 記録制御部
32 記録エラー検出部
34 データ記録部
40 管理情報制御部
42 管理情報生成部
44 エラー修復部
DESCRIPTION OF
Claims (13)
記録エラーが発生した場合、新たなファイルとして前記ストリームデータを前記記録媒体に記録し、記録を続行するデータ記録部を備えることを特徴とするデータ記録装置。 In a data recording apparatus for recording stream data as a stream file on a randomly accessible recording medium,
A data recording apparatus comprising: a data recording unit that records the stream data as a new file on the recording medium and continues recording when a recording error occurs.
データ記録部は、記録エラーが発生した場合、バッファにバッファリングされているストリームデータのうち、記録エラーが発生する以前に記録媒体に記録した部分を起点に、前記ストリームデータを新たなファイルとして前記記録媒体に記録することを特徴とする請求項1記載のデータ記録装置。 A buffer for buffering the stream data before recording the stream data on the recording medium;
When a recording error occurs, the data recording unit starts from a portion of the stream data buffered in the buffer, which has been recorded on the recording medium before the recording error occurs, as a new file. The data recording apparatus according to claim 1, wherein the data recording apparatus records on a recording medium.
前記ストリーム管理情報を含む管理情報を一時記憶するためのメモリとをさらに備え、
前記データ記録部は、さらに、入力されるストリームデータの記録媒体への記録が完了した時点以降に、前記メモリ上の前記管理情報を前記記録媒体に記録することを特徴とする請求項1または2記載のデータ記録装置。 A management information generating unit that generates stream management information including stream information necessary for stream data reproduction control by analyzing the stream data;
A memory for temporarily storing management information including the stream management information;
The data recording unit further records the management information in the memory on the recording medium after the time point when the recording of the input stream data to the recording medium is completed. The data recording device described.
前記管理情報は、前記エラー管理情報を含むことを特徴とする請求項3記載のデータ記録装置。 The management information generation unit further generates error management information indicating a recording error occurrence state when a recording error occurs,
4. The data recording apparatus according to claim 3, wherein the management information includes the error management information.
前記データ記録部は、記録エラーの修復処理が全て完了した場合、前記メモリ上の修復処理を行った前記管理情報を前記記録媒体に記録することを特徴とする請求項1〜7のいずれか1項に記載のデータ記録装置。 After the recording of the input stream data to the recording medium is completed, the stream data in which the recording error has occurred on the recording medium is repaired with reference to the error management information, and the corresponding management information on the memory A recording error repairing unit for updating
The said data recording part records the said management information which performed the repair process on the said memory on the said recording medium, when all the correction processes of a recording error are completed, The any one of Claims 1-7 characterized by the above-mentioned. The data recording device according to item.
記録エラーが発生した場合、新たなファイルとして前記ストリームデータを前記記録媒体に記録し、記録を続行するステップを含むことを特徴とするデータ記録装置の制御方法。 A control method of a data recording apparatus for recording stream data as a stream file on a randomly accessible recording medium,
A method for controlling a data recording apparatus, comprising: a step of recording the stream data as a new file on the recording medium and continuing the recording when a recording error occurs.
前記ストリームデータを解析することにより、ストリームデータの再生制御に必要なストリーム情報を含むストリーム管理情報を生成し、前記管理情報の一部としてメモリに一時記憶するステップと、
入力されるストリームデータの記録媒体への記録が完了した時点以降に、前記メモリ上の前記管理情報を前記記録媒体に記録するステップとをさらに含むことを特徴とする請求項10記載のデータ記録装置の制御方法。 The data recording device further includes a memory for temporarily storing management information,
Analyzing the stream data to generate stream management information including stream information necessary for reproduction control of the stream data, and temporarily storing it in a memory as part of the management information;
11. The data recording apparatus according to claim 10, further comprising a step of recording the management information on the memory on the recording medium after the time point when the recording of the input stream data on the recording medium is completed. Control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005200769A JP4382012B2 (en) | 2005-07-08 | 2005-07-08 | DATA RECORDING DEVICE AND ITS CONTROL METHOD, DATA RECORDING DEVICE CONTROL PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005200769A JP4382012B2 (en) | 2005-07-08 | 2005-07-08 | DATA RECORDING DEVICE AND ITS CONTROL METHOD, DATA RECORDING DEVICE CONTROL PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007018631A true JP2007018631A (en) | 2007-01-25 |
JP4382012B2 JP4382012B2 (en) | 2009-12-09 |
Family
ID=37755664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005200769A Expired - Fee Related JP4382012B2 (en) | 2005-07-08 | 2005-07-08 | DATA RECORDING DEVICE AND ITS CONTROL METHOD, DATA RECORDING DEVICE CONTROL PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4382012B2 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009193614A (en) * | 2008-02-13 | 2009-08-27 | Sharp Corp | Optical disk drive, and recording and reproducing device |
WO2010134242A1 (en) * | 2009-05-22 | 2010-11-25 | 株式会社日立製作所 | Data processing system that performs reverse reproduction in stream data processing |
JP2012044616A (en) * | 2010-08-23 | 2012-03-01 | Nec Personal Computers Ltd | Playback device, control method and program |
JP2012043532A (en) * | 2011-11-28 | 2012-03-01 | Sharp Corp | Recording and reproducing device |
JP2013175276A (en) * | 2007-06-05 | 2013-09-05 | Micron Technology Inc | Solid state memory utilizing analog communication of data values |
-
2005
- 2005-07-08 JP JP2005200769A patent/JP4382012B2/en not_active Expired - Fee Related
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013175276A (en) * | 2007-06-05 | 2013-09-05 | Micron Technology Inc | Solid state memory utilizing analog communication of data values |
JP2009193614A (en) * | 2008-02-13 | 2009-08-27 | Sharp Corp | Optical disk drive, and recording and reproducing device |
WO2010134242A1 (en) * | 2009-05-22 | 2010-11-25 | 株式会社日立製作所 | Data processing system that performs reverse reproduction in stream data processing |
JP2010272022A (en) * | 2009-05-22 | 2010-12-02 | Hitachi Ltd | Data processing system adapted for reverse reproduction in stream data processing |
JP2012044616A (en) * | 2010-08-23 | 2012-03-01 | Nec Personal Computers Ltd | Playback device, control method and program |
JP2012043532A (en) * | 2011-11-28 | 2012-03-01 | Sharp Corp | Recording and reproducing device |
Also Published As
Publication number | Publication date |
---|---|
JP4382012B2 (en) | 2009-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7340153B2 (en) | Apparatus and method for recording and reproducing information | |
US7676141B2 (en) | Recording apparatus and recording method | |
JPH11242850A (en) | Real time data recording system | |
JP4937280B2 (en) | Data recording method, data editing method, data decoding method, apparatus therefor, and recording medium | |
US8270813B2 (en) | Apparatus, method and computer program for processing information | |
JP4382012B2 (en) | DATA RECORDING DEVICE AND ITS CONTROL METHOD, DATA RECORDING DEVICE CONTROL PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM | |
JP2004178788A (en) | Recording device and recording method | |
EP1509918A1 (en) | Device and method for recording information with characteristic point information control | |
JP2004164731A (en) | Device and method for recording, recording medium, and program | |
JP4503419B2 (en) | Digital video recording device | |
JP2001045420A (en) | Recorder, method and computer-readable storage medium | |
JP3986973B2 (en) | AV data recording method, AV data recording apparatus, data recording medium, and program | |
JP3857995B2 (en) | Content recording / playback device | |
US8340500B2 (en) | Video signal recording apparatus | |
US20080013926A1 (en) | Recording Apparatus and Method, Storage Medium, and Program | |
JP4255796B2 (en) | DATA RECORDING DEVICE, DATA RECORDING METHOD, DATA RECORDING PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM | |
JP2002184104A (en) | Recording method | |
JP2008171566A (en) | Device and method for reproducing data, and device and method for recording data | |
JPH1093927A (en) | Data processing monitor device and data error detecting method | |
JP2010287299A (en) | Moving image reproducing device | |
JP2005228469A (en) | Recording and reproducing apparatus and method, and providing medium | |
JP2007066512A (en) | Av data recording method, av data recording device, data recording medium, program, and program recording medium | |
JP2006324010A (en) | Data reproducing apparatus and data recorder | |
US20060093314A1 (en) | Editing of data frames | |
JPH10269699A (en) | Digital data recording device and recording and reproducing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070803 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090202 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090623 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090818 |
|
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: 20090915 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090916 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121002 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131002 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |