JP2008262610A - Information processor and information processing method, program storing medium, and program - Google Patents
Information processor and information processing method, program storing medium, and program Download PDFInfo
- Publication number
- JP2008262610A JP2008262610A JP2007102401A JP2007102401A JP2008262610A JP 2008262610 A JP2008262610 A JP 2008262610A JP 2007102401 A JP2007102401 A JP 2007102401A JP 2007102401 A JP2007102401 A JP 2007102401A JP 2008262610 A JP2008262610 A JP 2008262610A
- Authority
- JP
- Japan
- Prior art keywords
- data
- recording
- recorded
- recording medium
- area
- 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.)
- Withdrawn
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
Description
本発明は情報処理装置および情報処理方法、プログラム格納媒体、並びにプログラムに関し、特に、記録メディアに記録された圧縮映像データに対するインサート編集を行う場合において好適な情報処理装置および情報処理方法、プログラム格納媒体、並びにプログラムに関する。 The present invention relates to an information processing device, an information processing method, a program storage medium, and a program, and more particularly to an information processing device, an information processing method, and a program storage medium that are suitable for performing insert editing on compressed video data recorded on a recording medium. As well as programs.
MPEG(Moving Picture Coding Experts Group/Moving Picture Experts Group)などに代表される画像圧縮方式では、フレーム間予測を用いて映像信号を圧縮符号化することで、高い圧縮効率を実現している。 In an image compression method represented by MPEG (Moving Picture Coding Experts Group / Moving Picture Experts Group) or the like, high compression efficiency is realized by compressing and encoding a video signal using inter-frame prediction.
例えばMPEGにおいて、Iピクチャ、Pピクチャ、およびBピクチャから構成される双方向のフレーム間予測を用いた圧縮符号化方式は、Long GOP(Group of Picture)方式の圧縮と呼ばれている。 For example, in MPEG, a compression coding method using bidirectional inter-frame prediction composed of an I picture, a P picture, and a B picture is called Long GOP (Group of Picture) compression.
ここで、Iピクチャとは、フレーム内(Intra)符号化画像のことであり、他の画面とは独立に符号化されるピクチャであり、この情報のみで画像を復号することができるものである。Pピクチャとは、フレーム間(inter)順方向予測符号化画像のことであり、時間的に前(順方向)のフレームからの差分によって表現される前方向予測符号化ピクチャである。また、Bピクチャとは、双方向予測符号化画像のことであり、時間的に前(順方向)、または後(逆方向)、または前後(双方向)のピクチャを利用して動き補償フレーム間予測により符号化されるピクチャである。 Here, an I picture is an intra-frame (Intra) coded image, which is a picture that is coded independently of other screens, and can be decoded only with this information. . A P picture is an inter-frame (inter) forward predictive encoded image, and is a forward predictive encoded picture represented by a difference from a temporally previous (forward) frame. A B picture is a bi-directional predictive encoded image, and is used between motion compensation frames using temporally forward (forward), backward (reverse), or forward / backward (bidirectional) pictures. It is a picture encoded by prediction.
従来、Long GOP方式で圧縮(エンコード)されたストリームをカット編集(アセンブル編集とも称する)する方法が提案されており、そのようなカット編集においては、図1に示すように、ストリームA1とストリームB1とが編集点において接続される(例えば、特許文献1参照)。 Conventionally, there has been proposed a method of performing cut editing (also referred to as assembly editing) on a stream compressed (encoded) by the Long GOP method. In such cut editing, as shown in FIG. 1, a stream A1 and a stream B1 Are connected at the editing point (see, for example, Patent Document 1).
なお、図中、Pa1およびPb1はそれぞれ、ストリームA1およびストリームB1における編集点を示しており、図中、縦方向の線は、それぞれのストリームにおけるGOPの切れ目を示している。 In the figure, Pa1 and Pb1 indicate edit points in the stream A1 and the stream B1, respectively. In the figure, the vertical line indicates a GOP break in each stream.
図1の例においては、ストリームA1の編集点Pa1を含むGOPの開始位置α1から編集点Pa1までの部分と、ストリームB1の編集点Pb1から、その編集点Pb1を含むGOPの終了位置β1までの部分がデコードされて接続され、ストリームC1とされる。そして、接続されて得られたストリームC1は再エンコード区間とされて、再エンコード区間の開始位置のVBV(Video Buffering Verifier)バッファのオキュパンシが、ストリームA1の位置α1におけるオキュパンシの位置から推移が開始され、再エンコード区間の終了位置におけるオキュパンシが、ストリームB1の位置β1におけるオキュパンシの位置で終了するように、再エンコード区間が再エンコードされる。 In the example of FIG. 1, the part from the start position α1 of the GOP including the editing point Pa1 of the stream A1 to the editing point Pa1, and the editing point Pb1 of the stream B1 to the end position β1 of the GOP including the editing point Pb1. The parts are decoded and connected to form a stream C1. The stream C1 obtained by the connection is set as a re-encoding section, and the occupancy of the VBV (Video Buffering Verifier) buffer at the start position of the re-encoding section starts to change from the occupancy position at the position α1 of the stream A1. The re-encoding section is re-encoded so that the occupancy at the end position of the re-encoding section ends at the position of the occupancy at the position β1 of the stream B1.
そして、再エンコードされたストリームC1は、その開始位置および終了位置が、それぞれストリームA1の位置α1以前の部分およびストリームB1の位置β1以降の部分と接続され、ストリームD1とされる。すなわち、ストリームA1の区間a1および区間b1までの符号、ストリームC1の区間d1の符号、並びにストリームB1の区間c1以降の符号からなるストリームD1が、編集の結果として得られたストリームとされる。 Then, the re-encoded stream C1 has a start position and an end position connected to a part before the position α1 of the stream A1 and a part after the position β1 of the stream B1, respectively, to form a stream D1. That is, the stream D1 including the code up to the section a1 and the section b1 of the stream A1, the code of the section d1 of the stream C1, and the code after the section c1 of the stream B1 is a stream obtained as a result of editing.
ところで、上述したカット編集の技術が用いられて、記録メディアに記録されているストリーム(以下、下地データとも称する)における所定の区間を、他のストリーム(以下、上書きデータ)に置き換えることによって、下地データの所定の区間に上書きデータを挿入するインサート編集が知られている。 By the way, the above-described cut editing technique is used to replace a predetermined section in a stream (hereinafter also referred to as background data) recorded on a recording medium with another stream (hereinafter referred to as overwrite data). Insert editing is known in which overwrite data is inserted into a predetermined section of data.
インサート編集においては、図2に示すように、下地データであるストリームA2に対して、上書きデータであるストリームB2の所定の区間が挿入され、ストリームB2が挿入されるIN点の近傍およびOUT点の近傍が、カット編集における場合と同様に再エンコードされる。なお、図中、縦方向の線は、それぞれのストリームにおけるGOPの切れ目を示している。 In the insert editing, as shown in FIG. 2, a predetermined section of the stream B2, which is the overwrite data, is inserted into the stream A2, which is the background data, and the vicinity of the IN point and the OUT point where the stream B2 is inserted. The neighborhood is re-encoded as in cut editing. In the figure, vertical lines indicate the GOP breaks in each stream.
図2の例においては、ストリームA2における位置IN2から位置OUT2までの区間に、ストリームB2の位置IN3から位置OUT3までの区間が挿入される。このとき、位置IN2を含むGOPの開始位置α2から位置IN2までの部分と、ストリームB2の位置IN3から、その位置IN3を含むGOPの終了位置β2までの部分とがデコードされて接続され、ストリームC2とされる。 In the example of FIG. 2, the section from the position IN3 to the position OUT3 of the stream B2 is inserted into the section from the position IN2 to the position OUT2 in the stream A2. At this time, the part from the start position α2 to the position IN2 of the GOP including the position IN2 and the part from the position IN3 of the stream B2 to the end position β2 of the GOP including the position IN3 are decoded and connected, and the stream C2 It is said.
同様に、ストリームB2の位置OUT3を含むGOPの開始位置γ2から位置OUT3までの部分と、ストリームA2の位置OUT2から、その位置OUT2を含むGOPの終了位置δ2までの部分とがデコードされて接続され、ストリームD2とされる。 Similarly, the portion from the start position γ2 to the position OUT3 of the GOP including the position OUT3 of the stream B2 and the portion from the position OUT2 of the stream A2 to the end position δ2 of the GOP including the position OUT2 are decoded and connected. , Stream D2.
さらに、ストリームC2およびストリームD2が再エンコードされ、ストリームA2およびストリームB2と、再エンコードされたストリームC2およびストリームD2とが接続されてストリームE2とされる。 Further, the stream C2 and the stream D2 are re-encoded, and the stream A2 and the stream B2 and the re-encoded stream C2 and the stream D2 are connected to be a stream E2.
すなわち、ストリームA2の位置α2までの区間a2の符号、ストリームC2の区間j2の符号、ストリームB2の位置β2から位置γ2までの区間、すなわち区間g2、区間h2、および区間i2の符号、ストリームD2の区間k2の符号、並びにストリームA2の位置δ2以降の区間f2の符号からなるストリームE2が、インサート編集の結果として得られるストリームとされる。 That is, the code of the section a2 up to the position α2 of the stream A2, the code of the section j2 of the stream C2, the section of the stream B2 from the position β2 to the position γ2, that is, the codes of the section g2, the section h2, and the section i2, and the stream D2 A stream E2 including the code of the section k2 and the code of the section f2 after the position δ2 of the stream A2 is a stream obtained as a result of the insert editing.
なお、以下の説明において、位置IN2または位置IN3をIN点とも称し、位置OUT2または位置OUT3をOUT点とも称する。 In the following description, the position IN2 or the position IN3 is also referred to as an IN point, and the position OUT2 or the position OUT3 is also referred to as an OUT point.
このような記録メディアに記録されているストリームの所定の区間を、他のストリームに置き換えるインサート編集は、VTR(Video Tape Recorder)に記録されている動画像信号に対してインサート編集を行う場合と同様の効果が得られる。すなわち、下地データが記録されている記録メディアに、他のデータを記録する記録容量がない場合においても、下地データの編集の対象となる区間に他のデータを上書きすることで、記録メディアに記録されている下地データを編集することができる。 Insert editing that replaces a predetermined section of a stream recorded on such a recording medium with another stream is the same as when insert editing is performed on a moving image signal recorded on a VTR (Video Tape Recorder). The effect is obtained. In other words, even when the recording medium on which the background data is recorded does not have a recording capacity for recording other data, the other data is overwritten in the section to be edited of the background data, so that the data is recorded on the recording medium. The background data being edited can be edited.
多くの記録メディアにおいては、その記録メディアへのデータの記録時にクラスタ管理が行われている。すなわち、多くの記録メディアでは、その記録メディアごと、または記録メディアにデータを記録する装置の動作を制御するOS(Operating System)ごとに、記録メディアの記録単位である固有の大きさのクラスタが用意され、記録されるデータは、そのクラスタの大きさに分割されて記録メディアに記録される。ここで、クラスタの大きさは、例えば1Byte以上の所定の大きさとされる。 In many recording media, cluster management is performed when data is recorded on the recording medium. That is, in many recording media, a cluster of a specific size, which is a recording unit of the recording medium, is prepared for each recording medium or for each OS (Operating System) that controls the operation of a device that records data on the recording medium. The data to be recorded is divided into the cluster size and recorded on the recording medium. Here, the size of the cluster is, for example, a predetermined size of 1 Byte or more.
例えば、可変長符号化された動画像ファイルが記録メディアに記録される場合、その動画像ファイルは、各フレームがクラスタの大きさに分割され、フレームごとに記録される。したがって、1つのクラスタには、1つのフレームのデータだけが格納されて記録される。 For example, when a variable length encoded moving image file is recorded on a recording medium, each frame of the moving image file is divided into clusters and recorded for each frame. Therefore, only one frame of data is stored and recorded in one cluster.
ところが、動画像の1フレーム分の符号長、すなわち各フレームの大きさは、必ずしもクラスタの大きさの整数倍ではないため、記録メディア上の動画像ファイルが記録されているクラスタのなかには、クラスタギャップを有するクラスタが存在する。 However, since the code length of one frame of a moving image, that is, the size of each frame is not necessarily an integral multiple of the size of the cluster, a cluster gap is included in a cluster in which a moving image file on a recording medium is recorded. There is a cluster with
したがって、互いにストリーム全体のデータ量が等しいストリームであっても、フレームの絵柄が異なる場合、各フレームの大きさは異なるので、それらのストリームを記録するときのクラスタギャップを有するクラスタの数も異なり、それぞれのストリームを記録メディアに記録するために必要とされるクラスタ数、つまり記録容量も異なる。 Therefore, even if the data amount of the entire stream is equal to each other, if the frame design is different, the size of each frame is different, so the number of clusters having a cluster gap when recording these streams is also different, The number of clusters required for recording each stream on the recording medium, that is, the recording capacity is also different.
例えば、図3に示すように、ストリームPおよびストリームQを記録メディアに記録する場合、それらのストリームの符号量は同じであっても、ストリームを記録するために必要となるクラスタ数は異なる。 For example, as shown in FIG. 3, when the stream P and the stream Q are recorded on the recording medium, the number of clusters required for recording the stream is different even if the code amount of the streams is the same.
図3には、ストリームPおよびストリームQを構成する各フレーム、すなわち各ピクチャの符号量および各ピクチャの記録に必要とされるクラスタ数と、ストリームPおよびストリームQの符号量およびそれらのストリームの記録に必要とされるクラスタ数とが示されている。なお、ストリームPおよびストリームQは、ピクチャレートが30Hz、ビットレートが50Mbps、GOP内のピクチャ数が15、IピクチャまたはPピクチャの間隔を示すM値が3である、CBR(Constant Bit Rate)によりエンコードされたストリームであり、図3における1つのクラスタの大きさは2000Byteとされている。 FIG. 3 shows each frame constituting stream P and stream Q, that is, the code amount of each picture and the number of clusters required for recording each picture, the code amount of stream P and stream Q, and the recording of those streams. The number of clusters required for each is shown. Note that the stream P and the stream Q have a picture rate of 30 Hz, a bit rate of 50 Mbps, the number of pictures in the GOP is 15, and an M value indicating an interval between I pictures or P pictures is 3, which is based on CBR (Constant Bit Rate). This is an encoded stream, and the size of one cluster in FIG. 3 is 2000 bytes.
図3の例では、ストリームPの先頭のピクチャI2の符号量は10000000Byteであり、クラスタ数は5000個とされている。これに対して、ストリームQの先頭のピクチャI2の符号量は9999986Byteであり、クラスタ数は5000個であるので、ストリームQのピクチャI2の符号量は、ストリームPのピクチャI2の符号量よりも少ないが、記録に必要なクラスタ数はストリームPのピクチャI2と同じ数となっている。 In the example of FIG. 3, the code amount of the leading picture I2 of the stream P is 10000000 bytes and the number of clusters is 5000. On the other hand, since the code amount of the leading picture I2 of the stream Q is 9999986 Bytes and the number of clusters is 5000, the code amount of the picture I2 of the stream Q is smaller than the code amount of the picture I2 of the stream P. However, the number of clusters required for recording is the same as the picture I2 of the stream P.
また、ピクチャB0以降のピクチャ、すなわちピクチャB0乃至ピクチャB13のそれぞれについては、ストリームQよりもストリームPの方が各ピクチャの符号量は1Byteだけ少なく、クラスタ数も1個だけ少なくなっている。 In addition, for each of the pictures after the picture B0, that is, the pictures B0 to B13, the stream P has a smaller code amount of 1 byte and the number of clusters by one than the stream Q.
さらに、ストリームPおよびストリームQのそれぞれは、符号量が25000000Byteであり同じであるが、ストリームPを記録するために必要なクラスタ数が12500個であるのに対して、ストリームQを記録するために必要なクラスタ数は12514個であり、ストリームPにおける場合よりも14個だけ多くなっている。 Further, each of the stream P and the stream Q has the same code amount of 25000000 bytes, but the number of clusters necessary for recording the stream P is 12,500, whereas the stream Q is recorded. The required number of clusters is 12,514, which is 14 more than in the stream P.
このように、可変長符号化により得られたストリームは、同じデータ量のストリームであっても、記録メディアにおける記録に必要な記録容量は異なる。そのため、図2を参照して説明したインサート編集を行い、下地データの所定の区間に上書きデータを上書きしようとした場合に、その下地データの区間と、上書きデータとは、データ量が同じであっても、記録メディア上の大きさ、すなわち記録に必要なクラスタ数は一般には異なるので、上書きデータの記録に必要なクラスタ数が、下地データにおける上書きデータが挿入される区間のクラスタ数よりも多いときには、下地データに上書きデータを挿入することができなくなってしまう。 Thus, even if the streams obtained by variable length coding are streams having the same data amount, the recording capacities required for recording on the recording medium are different. Therefore, when the insert editing described with reference to FIG. 2 is performed and overwrite data is overwritten in a predetermined section of the background data, the data amount of the background data section and the overwrite data is the same. However, since the size on the recording medium, that is, the number of clusters necessary for recording is generally different, the number of clusters necessary for recording the overwrite data is larger than the number of clusters in the section where the overwrite data is inserted in the base data. In some cases, it becomes impossible to insert overwrite data into the background data.
つまり、図2において、ストリームA2乃至ストリームD2のそれぞれがCBRによりエンコードされて得られたストリームである場合、VBVバッファのオキュパンシが連続で、またビットレートが0となる期間はないため、ストリームA2における位置α2から位置δ2までの区間、すなわち区間b2から区間e2までの総符号量と、ストリームE2における区間j2から区間k2までの総符号量とは同じとなる。しかしながら、記録に必要なクラスタ数は必ずしも同じではないため、記録メディアにおけるストリームA2の位置α2から位置δ2までの部分に、ストリームE2の区間j2乃至区間k2までの部分を上書きすることができないおそれがある。 That is, in FIG. 2, when each of stream A2 to stream D2 is a stream obtained by encoding by CBR, the occupancy of the VBV buffer is continuous and there is no period in which the bit rate is 0. The total code amount from the position α2 to the position δ2, that is, the total code amount from the section b2 to the section e2, and the total code amount from the section j2 to the section k2 in the stream E2 are the same. However, since the number of clusters required for recording is not necessarily the same, there is a possibility that the portion from the section j2 to the section k2 of the stream E2 cannot be overwritten on the portion from the position α2 to the position δ2 of the stream A2 on the recording medium. is there.
従来、下地データにおける上書きデータが挿入される部分のクラスタ数よりも、上書きデータの記録に必要なクラスタ数が多く、下地データを上書きデータに書き換えることができない場合、上書きデータは、記録メディア上における下地データが記録されている領域とは異なる領域に記録されていた。 Conventionally, when the number of clusters required for recording overwrite data is larger than the number of clusters in the portion where overwrite data is inserted in the background data and the background data cannot be rewritten to the overwrite data, the overwrite data is recorded on the recording medium. It was recorded in an area different from the area where the background data was recorded.
したがって、下地データのクラスタ数よりも、上書きデータの記録に必要なクラスタ数が多いために下地データを上書きデータに書き換えることができず、さらに下地データが記録されている記録メディアに、上書きデータを記録するために必要な記録容量が残っていない場合には、下地データを編集することができなくなってしまう。 Therefore, since the number of clusters required for recording the overwrite data is larger than the number of clusters of the background data, the background data cannot be rewritten to the overwrite data, and the overwrite data is not recorded on the recording medium on which the background data is recorded. If the recording capacity necessary for recording does not remain, the base data cannot be edited.
また、記録メディアに予め上書きデータを記録するための記録領域をある程度確保しておくこともできるが、その記録領域の大きさは、編集の回数や上書きデータの大きさによって異なる。従来においては、予め適切な大きさの記録領域を算出する方法がなく、予め適切な大きさの記録領域を確保しておくことは困難であった。 In addition, a recording area for recording overwrite data in advance on the recording medium can be secured to some extent, but the size of the recording area varies depending on the number of editing operations and the size of the overwrite data. Conventionally, there is no method for calculating a recording area of an appropriate size in advance, and it has been difficult to secure a recording area of an appropriate size in advance.
さらに、インサート編集の結果、記録メディア上における下地データの所定の区間を上書きデータに書き換えることができず、上書きデータが下地データの記録されている領域とは異なる領域に記録された場合、インサート編集において下地データの所定の区間に接続された上書きデータは、上書きデータの直前に再生される下地データが記録されている位置とは物理的に不連続な位置に記録されているので、上書きデータの部分の再生を行うときには、その上書きデータの直前に再生される下地データが記録されている位置から、上書きデータが記録されている位置までジャンプして再生しなければならなかった。 Furthermore, as a result of the insert editing, if the predetermined section of the background data on the recording medium cannot be rewritten to the overwrite data, and the overwrite data is recorded in an area different from the area where the background data is recorded, Since the overwrite data connected to a predetermined section of the background data is recorded at a position physically discontinuous from the position where the background data to be reproduced immediately before the overwrite data is recorded, When the part is reproduced, it is necessary to jump from the position where the background data to be reproduced immediately before the overwrite data is recorded to the position where the overwrite data is recorded and reproduce it.
そのような場合、記録メディアや、データを再生する装置特有の条件によっては、記録位置の物理的なジャンプに長い時間が必要とされたり、データを一時的に記憶するバッファが必要とされたりするので、ジャンプやバッファリングにより生じるある程度の遅延が容認されなければ、下地データに挿入される上書きデータの再生区間には時間的な制限が必要であった。 In such a case, depending on the conditions specific to the recording medium and the device that reproduces the data, a long time is required for the physical jump of the recording position, or a buffer for temporarily storing the data is required. Therefore, if a certain amount of delay caused by jumping or buffering is not allowed, a time limit is necessary for the reproduction section of the overwrite data inserted into the base data.
本発明は、このような状況に鑑みてなされたものであり、記録メディアに記録できる記録容量が残り少ない場合であっても、インサート編集されたストリームを確実に記録メディアに記録することができるようにするものである。 The present invention has been made in view of such a situation, and it is possible to reliably record an insert edited stream on a recording medium even when the recording capacity that can be recorded on the recording medium is small. To do.
本発明の第1の側面の情報処理装置は、物理的な記録単位ごとにデータが記録される記録媒体に、所定のデータ単位ごとにデータを記録する情報処理装置であって、前記記録媒体に記録される前記データを、前記データを編集する場合の基準となる基準単位ごとに取得する取得手段と、前記取得手段により取得された前記基準単位の前記データの前記記録媒体への記録を制御する記録制御手段と、前記取得手段により取得された前記基準単位の前記データに含まれる前記所定のデータ単位数を検出し、検出された前記基準単位の前記データに含まれる前記所定のデータ単位数と同じ数の前記物理的な記録単位を、予備の記録領域として、前記記録媒体に配置する予備記録領域配置手段とを備える。 An information processing apparatus according to a first aspect of the present invention is an information processing apparatus that records data for each predetermined data unit on a recording medium on which data is recorded for each physical recording unit. An acquisition unit that acquires the data to be recorded for each reference unit serving as a reference when editing the data, and controls recording of the data of the reference unit acquired by the acquisition unit to the recording medium A recording control unit; detecting the predetermined number of data units included in the data of the reference unit acquired by the acquiring unit; and the predetermined number of data units included in the detected data of the reference unit A preliminary recording area arranging unit that arranges the same number of physical recording units on the recording medium as a spare recording area;
前記予備記録領域配置手段には、前記基準単位に対応する前記予備の記録領域を、前記記録制御手段により記録が制御された前記基準単位の前記データに続いて、まとめて前記記録媒体に配置させるようにすることができる。 The preliminary recording area arranging means arranges the preliminary recording areas corresponding to the reference unit together on the recording medium following the data of the reference unit whose recording is controlled by the recording control means. Can be.
前記記録制御手段には、前記記録媒体の前記データが記録された領域のいずれかに、前記所定のデータ単位ごとに上書きデータを更に記録する場合、前記記録媒体上の前記上書きデータにデータが置き換えられる第1の領域を検出させるようにすることができ、前記第1の領域の先頭から、前記上書きデータが連続して記録され、前記第1の領域の前記上書きデータが記録されていない領域に、予備の記録領域が配置されるように、前記記録媒体への前記上書きデータの記録を制御させるようにすることができる。 In the recording control unit, when further overwriting data is recorded for each predetermined data unit in any of the areas where the data is recorded on the recording medium, the data is replaced with the overwriting data on the recording medium. A first area to be detected can be detected, and the overwrite data is continuously recorded from the head of the first area, and the overwrite data in the first area is not recorded. The recording of the overwrite data on the recording medium can be controlled so that a spare recording area is arranged.
前記記録制御手段により、前記記録媒体の前記データが記録された領域のいずれかに、前記所定のデータ単位ごとに前記上書きデータが更に記録された場合、前記上書きデータが記録されている前記第1の領域を示す第1の設定情報を前記記録媒体に記録する第1の設定情報記録手段を更に備えさせるようにすることができる。 When the overwriting data is further recorded for each of the predetermined data units in any of the areas in which the data of the recording medium is recorded by the recording control unit, the overwriting data is recorded in the first The first setting information recording means for recording the first setting information indicating the area on the recording medium can be further provided.
前記記録制御手段により、前記記録媒体の前記データが記録された領域のいずれかに、前記所定のデータ単位ごとに前記上書きデータが更に記録された場合、前記上書きデータが記録された前記第1の領域の最後尾を示す第2の設定情報を前記記録媒体に記録する第2の設定情報記録手段を更に備えさせるようにすることができる。 When the overwriting data is further recorded for each of the predetermined data units in any of the areas where the data of the recording medium is recorded by the recording control unit, the first overwriting the overwriting data. Second setting information recording means for recording second setting information indicating the end of the area on the recording medium may be further provided.
前記記録制御手段により前記記録媒体の前記データが記録された領域のいずれかに、前記所定のデータ単位ごとに上書きデータを更に記録する場合、前記記録媒体に記録されている前記第1の設定情報および前記第2の設定情報を検出する設定情報検出手段と、前記設定情報検出手段により検出された前記第1の設定情報および前記第2の設定情報に基づいて、前記上書きデータが記録される前記第1の領域の最後尾が、過去にいずれかの上書きデータが記録された第2の領域の途中であると判断された場合、前記記録媒体に記録されているデータの書き換え範囲を延長する書き換え範囲決定手段とを更に備えさせるようにすることができる。 When overwriting data is further recorded for each predetermined data unit in any of the areas where the data of the recording medium is recorded by the recording control means, the first setting information recorded on the recording medium And setting information detecting means for detecting the second setting information, and the overwriting data is recorded based on the first setting information and the second setting information detected by the setting information detecting means. Rewriting that extends the rewriting range of data recorded on the recording medium when it is determined that the end of the first area is in the middle of the second area in which any overwritten data has been recorded in the past A range determining means may be further provided.
前記設定情報検出手段により検出された前記第1の設定情報および前記第2の設定情報に基づいて、前記上書きデータが記録される前記第1の領域の最後尾が、過去にいずれかの上書きデータが記録された前記第2の領域の途中であると判断された場合、前記取得手段には、前記記録媒体の前記第2の領域のうち、前記第1の領域と異なる部分に記録されている記録済みデータを読み出して取得させるようにすることができ、前記記録制御手段には、前記第1の領域の先頭位置から、前記所定のデータ単位ごとに前記上書きデータを更に記録するとともに、前記上書きデータの記録終了位置から、前記取得手段により取得された前記記録済みデータを再記録し、前記第2の領域の前記記録済みデータが記録されていない領域に、予備の記録領域が配置されるように、前記記録媒体への前記上書きデータおよび前記記録済みデータの記録を制御させるようにすることができる。 Based on the first setting information and the second setting information detected by the setting information detecting means, the tail of the first area where the overwrite data is recorded is any overwrite data in the past. Is recorded in a portion different from the first area in the second area of the recording medium. Recorded data can be read and acquired, and the recording control means further records the overwrite data for each predetermined data unit from the start position of the first area, and also overwrites the overwrite data. The recorded data acquired by the acquisition unit is re-recorded from the data recording end position, and a spare recording area is recorded in the area of the second area where the recorded data is not recorded. So it is positioned, may be so as to control the recording of the overwrite data and the recorded data on the recording medium.
本発明の第1の側面の情報処理方法は、物理的な記録単位ごとにデータが記録される記録媒体に、所定のデータ単位ごとにデータを記録する情報処理装置の情報処理方法であって、前記記録媒体に記録される前記データを、前記データを編集する場合の基準となる基準単位ごとに取得し、前記基準単位の前記データに含まれる前記所定のデータ単位数を検出し、取得された前記基準単位の前記データの前記記録媒体への記録を制御し、検出された前記基準単位の前記データに含まれる前記所定のデータ単位数と同じ数の前記物理的な記録単位を、予備の記録領域として、前記記録媒体に配置するステップを含む。 An information processing method according to a first aspect of the present invention is an information processing method for an information processing apparatus that records data for each predetermined data unit on a recording medium on which data is recorded for each physical recording unit. The data recorded on the recording medium is acquired for each reference unit serving as a reference when editing the data, and the predetermined number of data units included in the data of the reference unit is detected and acquired. Control recording of the data of the reference unit to the recording medium, and reserve the same number of physical recording units as the predetermined number of data units included in the detected data of the reference unit The area includes a step of arranging on the recording medium.
本発明の第1の側面のプログラムは、物理的な記録単位ごとにデータが記録される記録媒体に、所定のデータ単位ごとにデータを記録する処理をコンピュータに実行させるプログラムであって、前記記録媒体に記録される前記データを、前記データを編集する場合の基準となる基準単位ごとに取得し、前記基準単位の前記データに含まれる前記所定のデータ単位数を検出し、取得された前記基準単位の前記データの前記記録媒体への記録を制御し、検出された前記基準単位の前記データに含まれる前記所定のデータ単位数と同じ数の前記物理的な記録単位を、予備の記録領域として、前記記録媒体に配置するステップを含む処理をコンピュータに実行させる。 A program according to a first aspect of the present invention is a program for causing a computer to execute a process of recording data for each predetermined data unit on a recording medium on which data is recorded for each physical recording unit. The data recorded on the medium is acquired for each reference unit serving as a reference in editing the data, the predetermined number of data units included in the data of the reference unit is detected, and the acquired reference Control recording of the unit data to the recording medium, and use the same number of physical recording units as the predetermined number of data units included in the detected data of the reference unit as a spare recording area , Causing the computer to execute processing including the step of arranging the recording medium.
本発明の第1の側面においては、記録媒体に記録されるデータが、データを編集する場合の基準となる基準単位ごとに取得され、基準単位のデータに含まれる所定のデータ単位数が検出され、取得された基準単位のデータの記録媒体への記録が制御され、検出された基準単位のデータに含まれる所定のデータ単位数と同じ数の物理的な記録単位が、予備の記録領域として、記録媒体に配置される。 In the first aspect of the present invention, data recorded on a recording medium is acquired for each reference unit serving as a reference in editing data, and a predetermined number of data units included in the reference unit data is detected. The recording of the acquired reference unit data to the recording medium is controlled, and the same number of physical recording units as the predetermined number of data units included in the detected reference unit data are reserved recording areas. Arranged on a recording medium.
本発明の第2の側面の情報処理装置は、物理的な記録単位ごとに下書きデータが記録されている記録媒体に、所定のデータ単位ごとに上書きデータを記録する情報処理装置であって、前記記録媒体に記録される前記上書きデータを、前記データを編集する場合の基準となる基準単位ごとに取得する取得手段と、前記記録媒体上に前記下書きデータが記録されている領域のうち、前記上書きデータにデータが置き換えられる第1の領域を検出し、前記第1の領域の先頭から、前記取得手段により取得された前記上書きデータが連続して記録されるように、前記記録媒体への前記上書きデータの記録を制御する記録制御手段と、前記第1の領域の前記上書きデータが記録されていない領域に、予備の記録領域を配置する予備記録領域配置手段とを備える。 An information processing apparatus according to a second aspect of the present invention is an information processing apparatus for recording overwrite data for each predetermined data unit on a recording medium on which draft data is recorded for each physical recording unit, Acquisition means for acquiring the overwrite data recorded on a recording medium for each reference unit serving as a reference when editing the data, and the overwrite in an area where the draft data is recorded on the recording medium The overwriting on the recording medium is performed such that a first area where data is replaced with data is detected, and the overwriting data obtained by the obtaining unit is continuously recorded from the top of the first area. Recording control means for controlling data recording; and preliminary recording area arranging means for arranging a spare recording area in an area where the overwrite data in the first area is not recorded. Obtain.
本発明の第2の側面の情報処理方法は、物理的な記録単位ごとに下書きデータが記録されている記録媒体に、所定のデータ単位ごとに上書きデータを記録する情報処理装置の情報処理方法であって、前記記録媒体に記録される前記上書きデータを、前記データを編集する場合の基準となる基準単位ごとに取得し、前記記録媒体上に前記下書きデータが記録されている領域のうち、前記上書きデータにデータが置き換えられる第1の領域を検出し、前記第1の領域の先頭から、前記上書きデータが連続して記録されるように、前記記録媒体への前記上書きデータの記録を制御し、前記第1の領域の前記上書きデータが記録されていない領域に、予備の記録領域を配置するステップを含む。 An information processing method according to a second aspect of the present invention is an information processing method for an information processing apparatus that records overwrite data for each predetermined data unit on a recording medium on which draft data is recorded for each physical recording unit. The overwriting data recorded on the recording medium is acquired for each reference unit serving as a reference when the data is edited, and the overwriting data is recorded on the recording medium in the area where the draft data is recorded. The first area where the data is replaced with the overwriting data is detected, and the recording of the overwriting data on the recording medium is controlled so that the overwriting data is continuously recorded from the head of the first area. And a step of arranging a spare recording area in an area where the overwrite data of the first area is not recorded.
本発明の第2の側面のプログラムは、物理的な記録単位ごとに下書きデータが記録されている記録媒体に、所定のデータ単位ごとに上書きデータを記録する処理をコンピュータに実行させるプログラムであって、前記記録媒体に記録される前記上書きデータを、前記データを編集する場合の基準となる基準単位ごとに取得し、前記記録媒体上に前記下書きデータが記録されている領域のうち、前記上書きデータにデータが置き換えられる第1の領域を検出し、前記第1の領域の先頭から、前記上書きデータが連続して記録されるように、前記記録媒体への前記上書きデータの記録を制御し、前記第1の領域の前記上書きデータが記録されていない領域に、予備の記録領域を配置するステップを含む処理をコンピュータに実行させる。 A program according to a second aspect of the present invention is a program that causes a computer to execute a process of recording overwrite data for each predetermined data unit on a recording medium on which draft data is recorded for each physical recording unit. The overwriting data recorded on the recording medium is acquired for each reference unit serving as a reference when the data is edited, and the overwriting data in an area where the draft data is recorded on the recording medium Detecting the first area where the data is replaced, and controlling the recording of the overwrite data on the recording medium so that the overwrite data is continuously recorded from the top of the first area, A computer is caused to execute a process including a step of arranging a spare recording area in an area where the overwrite data of the first area is not recorded.
本発明の第2の側面においては、記録媒体に記録される上書きデータが、データを編集する場合の基準となる基準単位ごとに取得され、記録媒体上に下書きデータが記録されている領域のうち、上書きデータにデータが置き換えられる第1の領域が検出され、第1の領域の先頭から、上書きデータが連続して記録されるように、記録媒体への上書きデータの記録が制御され、第1の領域の上書きデータが記録されていない領域に、予備の記録領域を配置する。 In the second aspect of the present invention, the overwrite data recorded on the recording medium is acquired for each reference unit serving as a reference when editing the data, and the draft data is recorded on the recording medium. The first area in which the data is replaced with the overwrite data is detected, and the recording of the overwrite data on the recording medium is controlled so that the overwrite data is continuously recorded from the top of the first area. A spare recording area is arranged in the area where no overwrite data is recorded.
編集装置は、独立した装置であっても良いし、記録装置、記録再生装置、または、情報処理装置の、編集やデータの記録処理を行うブロックであっても良い。 The editing device may be an independent device, or may be a block that performs editing and data recording processing of a recording device, a recording / reproducing device, or an information processing device.
以上のように、本発明の第1の側面によれば記録媒体にデータを記録することができ、とくに、データの上書き時にクラスタ数が不足してしまうことがないように、予備の記録領域を配置して、データを記録媒体に記録することができる。 As described above, according to the first aspect of the present invention, data can be recorded on a recording medium. In particular, a spare recording area is provided so that the number of clusters is not insufficient when data is overwritten. The data can be recorded on a recording medium.
また、本発明の第2の側面によれば、記録媒体に記録されているデータに対して、上書きデータを書き込むことができ、特に、データの上書き時に予備の記録領域を配置することができる。 Further, according to the second aspect of the present invention, it is possible to write overwrite data on data recorded on a recording medium, and in particular, it is possible to arrange a spare recording area when data is overwritten.
以下に本発明の実施の形態を説明するが、本発明の構成要件と、明細書または図面に記載の実施の形態との対応関係を例示すると、次のようになる。この記載は、本発明をサポートする実施の形態が、明細書または図面に記載されていることを確認するためのものである。従って、明細書または図面中には記載されているが、本発明の構成要件に対応する実施の形態として、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その構成要件に対応するものではないことを意味するものではない。逆に、実施の形態が構成要件に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その構成要件以外の構成要件には対応しないものであることを意味するものでもない。 Embodiments of the present invention will be described below. Correspondences between constituent elements of the present invention and the embodiments described in the specification or the drawings are exemplified as follows. This description is intended to confirm that the embodiments supporting the present invention are described in the specification or the drawings. Therefore, even if there is an embodiment which is described in the specification or the drawings but is not described here as an embodiment corresponding to the constituent elements of the present invention, that is not the case. It does not mean that the form does not correspond to the constituent requirements. Conversely, even if an embodiment is described here as corresponding to a configuration requirement, that means that the embodiment does not correspond to a configuration requirement other than the configuration requirement. It's not something to do.
本発明の第1の側面の情報処理装置は、物理的な記録単位(例えば、クラスタ)ごとにデータが記録される記録媒体に、所定のデータ単位(例えば、フレーム)ごとにデータを記録する情報処理装置であって、前記記録媒体に記録される前記データを、前記データを編集する場合の基準となる基準単位(例えば、1GOP)ごとに取得する取得手段(例えば、図15乃至図17の符号化データ取得制御部81)と、前記取得手段により取得された前記基準単位の前記データの前記記録媒体への記録を制御する記録制御手段(例えば、15乃至図17の符号化データ記録処理部82)と、前記取得手段により取得された前記基準単位の前記データに含まれる前記所定のデータ単位数を検出し、検出された前記基準単位の前記データに含まれる前記所定のデータ単位数と同じ数の前記物理的な記録単位を、予備の記録領域(例えば、予備クラスタ)として、前記記録媒体に配置する予備記録領域配置手段(例えば、図15乃至図17の予備クラスタ配置部83)とを備える。
The information processing apparatus according to the first aspect of the present invention is information that records data for each predetermined data unit (for example, frame) on a recording medium on which data is recorded for each physical recording unit (for example, cluster). A processing device for acquiring the data recorded on the recording medium for each reference unit (for example, 1 GOP) serving as a reference in editing the data (for example, reference numerals in FIGS. 15 to 17) And a recording control means for controlling recording of the data of the reference unit acquired by the acquisition means onto the recording medium (for example, the encoded data
前記記録制御手段は、前記記録媒体の前記データが記録された領域のいずれかに、前記所定のデータ単位ごとに上書きデータを更に記録する場合、前記記録媒体上の前記上書きデータにデータが置き換えられる第1の領域(例えば、差し替え区間)を検出し、前記第1の領域の先頭から、前記上書きデータが連続して記録され、前記第1の領域の前記上書きデータが記録されていない領域に、予備の記録領域が配置されるように、前記記録媒体への前記上書きデータの記録を制御することができる。 The recording control means replaces the data with the overwriting data on the recording medium when the overwriting data is further recorded for each of the predetermined data units in any of the areas of the recording medium where the data is recorded. A first area (for example, a replacement section) is detected, and the overwrite data is continuously recorded from the beginning of the first area, and the overwrite data in the first area is not recorded. The recording of the overwrite data on the recording medium can be controlled so that a spare recording area is arranged.
前記記録制御手段により、前記記録媒体の前記データが記録された領域のいずれかに、前記所定のデータ単位ごとに前記上書きデータが更に記録された場合、前記上書きデータが記録されている前記第1の領域を示す第1の設定情報(たとえば、書き換えフラグ)を前記記録媒体に記録する第1の設定情報記録手段(例えば、図16または図17の書き換えフラグ設定部111)を更に備えることができる。
When the overwriting data is further recorded for each of the predetermined data units in any of the areas in which the data of the recording medium is recorded by the recording control unit, the overwriting data is recorded in the first The first setting information recording means (for example, the rewrite
前記記録制御手段により、前記記録媒体の前記データが記録された領域のいずれかに、前記所定のデータ単位ごとに前記上書きデータが更に記録された場合、前記上書きデータが記録された前記第1の領域の最後尾を示す第2の設定情報(たとえば、書き換え終了フラグ)を前記記録媒体に記録する第2の設定情報記録手段(例えば、図16または図17の書き換え終了フラグ設定部112)を更に備えることができる。
When the overwriting data is further recorded for each of the predetermined data units in any of the areas where the data of the recording medium is recorded by the recording control unit, the first overwriting the overwriting data. Second setting information recording means (for example, the rewriting end
前記記録制御手段により前記記録媒体の前記データが記録された領域のいずれかに、前記所定のデータ単位ごとに上書きデータを更に記録する場合、前記記録媒体に記録されている前記第1の設定情報および前記第2の設定情報を検出する設定情報検出手段(例えば、図17の書き換え終了フラグ検出部131および書き換えフラグ検出部132)と、前記設定情報検出手段により検出された前記第1の設定情報および前記第2の設定情報に基づいて、前記上書きデータが記録される前記第1の領域の最後尾が、過去にいずれかの上書きデータが記録された第2の領域(たとえば、書き換えフラグが1である領域)の途中であると判断された場合、前記記録媒体に記録されているデータの書き換え範囲を延長する書き換え範囲決定手段(例えば、図17の上書き範囲決定処理部133)とを更に備えることができる。
When overwriting data is further recorded for each predetermined data unit in any of the areas where the data of the recording medium is recorded by the recording control means, the first setting information recorded on the recording medium And setting information detecting means for detecting the second setting information (for example, the rewrite completion
前記設定情報検出手段により検出された前記第1の設定情報および前記第2の設定情報に基づいて、前記上書きデータが記録される前記第1の領域の最後尾が、過去にいずれかの上書きデータが記録された前記第2の領域(たとえば、書き換えフラグが1である領域)の途中であると判断された場合、前記取得手段は、前記記録媒体の前記第2の領域のうち、前記第1の領域と異なる部分に記録されている記録済みデータを読み出して取得することができ、前記記録制御手段は、前記第1の領域の先頭位置から、前記所定のデータ単位ごとに前記上書きデータを更に記録するとともに、前記上書きデータの記録終了位置から、前記取得手段により取得された前記記録済みデータを再記録し、前記第2の領域の前記記録済みデータが記録されていない領域に、予備の記録領域が配置されるように、前記記録媒体への前記上書きデータおよび前記記録済みデータの記録を制御することができる。 Based on the first setting information and the second setting information detected by the setting information detecting means, the tail of the first area where the overwrite data is recorded is any overwrite data in the past. Is determined to be in the middle of the second area (for example, the area where the rewrite flag is 1), the acquisition means includes the first area out of the second area of the recording medium. Recorded data recorded in a portion different from the area of the first area can be read and acquired, and the recording control means further reads the overwrite data for each predetermined data unit from the head position of the first area. Recording and re-recording the recorded data acquired by the acquiring means from the recording end position of the overwrite data, and the recorded data in the second area is recorded. If not regions can be as spare recording area is arranged to control the recording of the overwrite data and the recorded data on the recording medium.
本発明の第1の側面の情報処理方法は、物理的な記録単位(例えば、クラスタ)ごとにデータが記録される記録媒体に、所定のデータ単位(例えば、フレーム)ごとにデータを記録する情報処理装置の情報処理方法であって、前記記録媒体に記録される前記データを、前記データを編集する場合の基準となる基準単位(例えば、1GOP)ごとに取得し(例えば、図18のステップS11の処理)、前記基準単位の前記データに含まれる前記所定のデータ単位数を検出し(例えば、図18のステップS12の処理)、取得された前記基準単位の前記データの前記記録媒体への記録を制御し(例えば、図18のステップS13の処理)、検出された前記基準単位の前記データに含まれる前記所定のデータ単位数と同じ数の前記物理的な記録単位を、予備の記録領域(例えば、予備クラスタ)として、前記記録媒体に配置する(例えば、図18のステップS14の処理)ステップを含む。 The information processing method according to the first aspect of the present invention provides information for recording data for each predetermined data unit (for example, frame) on a recording medium on which data is recorded for each physical recording unit (for example, cluster). In the information processing method of the processing device, the data recorded on the recording medium is acquired for each reference unit (for example, 1 GOP) serving as a reference in editing the data (for example, step S11 in FIG. 18). And the predetermined number of data units included in the data of the reference unit is detected (for example, the process of step S12 in FIG. 18), and the acquired data of the reference unit is recorded on the recording medium. (For example, the process of step S13 in FIG. 18), and the same number of physical recording units as the predetermined number of data units included in the detected data of the reference unit, As Bei recording area (e.g., spare cluster), arranged on the recording medium (for example, step S14 in FIG. 18) includes the step.
本発明の第1の側面のプログラムは、物理的な記録単位(例えば、クラスタ)ごとにデータが記録される記録媒体に、所定のデータ単位(例えば、フレーム)ごとにデータを記録する処理をコンピュータに実行させるプログラムであって、前記記録媒体に記録される前記データを、前記データを編集する場合の基準となる基準単位(例えば、1GOP)ごとに取得し(例えば、図18のステップS11の処理)、前記基準単位の前記データに含まれる前記所定のデータ単位数を検出し(例えば、図18のステップS12の処理)、取得された前記基準単位の前記データの前記記録媒体への記録を制御し(例えば、図18のステップS13の処理)、検出された前記基準単位の前記データに含まれる前記所定のデータ単位数と同じ数の前記物理的な記録単位を、予備の記録領域(例えば、予備クラスタ)として、前記記録媒体に配置する(例えば、図18のステップS14の処理)ステップを含む処理をコンピュータに実行させる。 The program according to the first aspect of the present invention is a computer that performs processing for recording data for each predetermined data unit (for example, frame) on a recording medium on which data is recorded for each physical recording unit (for example, cluster). 18 is acquired for each reference unit (for example, 1 GOP) serving as a reference when editing the data (for example, the process of step S11 in FIG. 18). ), Detecting the predetermined number of data units included in the data of the reference unit (for example, the process of step S12 in FIG. 18), and controlling the recording of the acquired data of the reference unit on the recording medium (For example, the process of step S13 in FIG. 18), the physical number of the same number as the predetermined number of data units included in the detected data of the reference unit. The recording unit, the spare recording area (e.g., spare cluster) as is disposed in the recording medium (for example, step S14 in FIG. 18) to execute processing including the steps on a computer.
本発明の第2の側面の情報処理装置は、物理的な記録単位(例えば、クラスタ)ごとに下書きデータが記録されている記録媒体に、所定のデータ単位(例えば、フレーム)ごとに上書きデータを記録する情報処理装置であって、前記記録媒体に記録される前記上書きデータを、前記データを編集する場合の基準となる基準単位(例えば、1GOP)ごとに取得する取得手段(例えば、図16または図17の符号化データ取得制御部81)と、前記記録媒体上に前記下書きデータが記録されている領域のうち、前記上書きデータにデータが置き換えられる第1の領域(例えば、差し替え区間)を検出し、前記第1の領域の先頭から、前記取得手段により取得された前記上書きデータが連続して記録されるように、前記記録媒体への前記上書きデータの記録を制御する記録制御手段(例えば、16または図17の符号化データ記録処理部82)と、前記第1の領域の前記上書きデータが記録されていない領域に、予備の記録領域(例えば、予備クラスタ)を配置する予備記録領域配置手段(例えば、図16または図17の予備クラスタ配置部83)とを備える。
The information processing apparatus according to the second aspect of the present invention provides overwriting data for each predetermined data unit (for example, frame) on a recording medium on which draft data is recorded for each physical recording unit (for example, cluster). An information processing apparatus for recording, wherein the overwriting data recorded on the recording medium is acquired for each reference unit (for example, 1 GOP) serving as a reference in editing the data (for example, FIG. 16 or The encoded data acquisition control unit 81) of FIG. 17 detects a first area (for example, a replacement section) in which data is replaced with the overwrite data among areas where the draft data is recorded on the recording medium. The overwrite data to the recording medium is recorded so that the overwrite data acquired by the acquisition unit is continuously recorded from the top of the first area. Recording control means for controlling recording (for example, the encoded data
本発明の第2の側面の情報処理方法は、物理的な記録単位(例えば、クラスタ)ごとに下書きデータが記録されている記録媒体に、所定のデータ単位(例えば、フレーム)ごとに上書きデータを記録する情報処理装置の情報処理方法であって、前記記録媒体に記録される前記上書きデータを、前記データを編集する場合の基準となる基準単位(例えば、1GOP)ごとに取得し(例えば、図19のステップS42の処理)、前記記録媒体上に前記下書きデータが記録されている領域のうち、前記上書きデータにデータが置き換えられる第1の領域(例えば、差し替え区間)を検出し(例えば、図19のステップS43の処理)、前記第1の領域の先頭から、前記上書きデータが連続して記録されるように、前記記録媒体への前記上書きデータの記録を制御し(例えば、図19のステップS45の処理)、前記第1の領域の前記上書きデータが記録されていない領域に、予備の記録領域(例えば、予備クラスタ)を配置する(例えば、図19のステップS47の処理)ステップを含む。 The information processing method according to the second aspect of the present invention provides overwriting data for each predetermined data unit (for example, frame) on a recording medium on which draft data is recorded for each physical recording unit (for example, cluster). An information processing method of an information processing apparatus for recording, wherein the overwrite data recorded on the recording medium is acquired for each reference unit (for example, 1 GOP) serving as a reference in editing the data (for example, FIG. 19 in step S42), a first area (for example, a replacement section) in which data is replaced with the overwrite data is detected from the areas where the draft data is recorded on the recording medium (for example, FIG. 19 in step S43), the overwriting data is recorded on the recording medium so that the overwriting data is continuously recorded from the top of the first area. (For example, the processing of step S45 in FIG. 19), a spare recording area (for example, a spare cluster) is arranged in an area where the overwrite data in the first area is not recorded (for example, FIG. 19). Step S47).
本発明の第2の側面のプログラムは、物理的な記録単位(例えば、クラスタ)ごとに下書きデータが記録されている記録媒体に、所定のデータ単位(例えば、フレーム)ごとに上書きデータを記録する処理をコンピュータに実行させるプログラムであって、前記記録媒体に記録される前記上書きデータを、前記データを編集する場合の基準となる基準単位(例えば、1GOP)ごとに取得し(例えば、図19のステップS42の処理)、前記記録媒体上に前記下書きデータが記録されている領域のうち、前記上書きデータにデータが置き換えられる第1の領域(例えば、差し替え区間)を検出し(例えば、図19のステップS43の処理)、前記第1の領域の先頭から、前記上書きデータが連続して記録されるように、前記記録媒体への前記上書きデータの記録を制御し(例えば、図19のステップS45の処理)、前記第1の領域の前記上書きデータが記録されていない領域に、予備の記録領域(例えば、予備クラスタ)を配置する(例えば、図19のステップS47の処理)ステップを含む処理をコンピュータに実行させる。 The program according to the second aspect of the present invention records overwrite data for each predetermined data unit (for example, frame) on a recording medium on which draft data is recorded for each physical recording unit (for example, cluster). A program for causing a computer to execute processing, wherein the overwrite data recorded on the recording medium is acquired for each reference unit (for example, 1 GOP) serving as a reference in editing the data (for example, FIG. 19). In step S42, a first area (for example, a replacement section) in which data is replaced with the overwrite data is detected from the areas where the draft data is recorded on the recording medium (for example, in FIG. 19). Step S43), the overwriting to the recording medium so that the overwriting data is continuously recorded from the top of the first area. Data recording is controlled (for example, the process of step S45 in FIG. 19), and a spare recording area (for example, a spare cluster) is arranged in the area of the first area where the overwrite data is not recorded (for example, a spare cluster). , The process of step S47 in FIG. 19) is executed by the computer.
以下、図を参照して、本発明の実施の形態について説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図4は本発明を適用した編集装置31のハードウェア構成を示すブロック図である。 FIG. 4 is a block diagram showing a hardware configuration of the editing apparatus 31 to which the present invention is applied.
CPU(Central Processing Unit)41は、ノースブリッジ42に接続され、例えば、HDD(Hard disk Drive)46または記録メディア48に記録されているデータの読み出しなどの処理を制御したり、CPU52が実行する編集処理を制御するための制御信号やコマンドを生成して出力する。ノースブリッジ42は、PCIバス(Peripheral Component Interconnect/Interface)44に接続され、例えば、CPU41の制御に基づいて、サウスブリッジ45を介して、HDD46または記録メディア48に記録されているデータの供給を受けて、PCIバス44、PCIブリッジ49を介して、メモリ50、デコーダ54、またはデコーダ55に供給する。また、ノースブリッジ42は、メモリ43とも接続されており、CPU41の処理に必要なデータを授受する。
A CPU (Central Processing Unit) 41 is connected to the
メモリ43は、CPU41が実行する処理に必要なデータを保存する。サウスブリッジ45は、HDD46のデータの書き込みおよび読み出しを制御する。HDD46には、記録メディア48に記録するための圧縮映像データ(以下、適宜、下地データも称する)や、下地データが記録された記録メディア48の所定の位置に挿入される圧縮映像データ(以下、適宜、上書きデータとも称する)が記録される。
The
また、サウスブリッジ45には、ドライブ47が接続されており、ドライブ47は、記録メディア48から下地データを読み出したり、サウスブリッジ45から供給された下地データや上書きデータを記録メディア48に記録する。記録メディア48は、例えば、磁気ディスク、光ディスク、光磁気ディスク、或いは半導体メモリなどからなり、インサート編集の対象となる下地データを記録している。
A
PCIブリッジ49は、メモリ50のデータの書き込みおよび読み出しを制御したり、デコーダ54、デコーダ55、またはストリームスプライサ57への圧縮映像データの供給を制御するとともに、PCIバス44およびコントロールバス51のデータの授受を制御する。メモリ50は、PCIブリッジ49の制御に基づいて、HDD46または記録メディア48より読み出された、インサート編集される圧縮映像データや、ストリームスプライサ57から供給される編集後の圧縮映像データを記憶する。
The
CPU52は、ノースブリッジ42、PCIバス44、PCIブリッジ49、およびコントロールバス51を介して、CPU41から供給された制御信号やコマンドにしたがって、PCIブリッジ49、デコーダ54乃至デコーダ56、ストリームスプライサ57、エフェクト/スイッチ58、エンコーダ59、およびスイッチ60が実行する処理を制御する。メモリ53は、CPU52の処理に必要なデータを記憶する。
The
デコーダ54乃至デコーダ56は、CPU52の制御に基づいて、供給された圧縮映像データをデコードし、非圧縮の映像信号(ベースバンドの画像データ)を出力する。また、デコーダ54乃至デコーダ56は、編集装置31に含まれない独立した装置として設けられていても良い。例えば、デコーダ56が、独立した装置として設けられている場合、デコーダ56は、後述する処理により編集されて生成された圧縮映像データの供給を受け、復号し、出力することができるようになされる。
Based on the control of the
ストリームスプライサ57は、CPU52の制御に基づいて、供給された圧縮映像データをデコーダ56に供給したり、PCIブリッジ49を介してメモリ50に供給して保存させたりする。また、ストリームスプライサ57は、エンコーダ59から、エンコード処理において取得されたデータの供給を受け、PCIブリッジ49を介して、メモリ50に供給して保存させることも可能である。
Based on the control of the
エフェクト/スイッチ58は、CPU52の制御に基づいて、デコーダ54またはデコーダ55、もしくは、入力端子61から非圧縮の映像信号の供給を受け、CPU52の制御に基づいて、供給される非圧縮の映像信号の出力を切り替える。すなわち、エフェクト/スイッチ58は、供給された非圧縮の映像信号を所定のフレームで結合するとともに、必要に応じて所定の範囲にエフェクトを施して、エンコーダ59に供給する。エンコーダ59は、CPU52の制御に基づいて、供給された非圧縮の映像信号をエンコードする。すなわちエンコーダ59は、非圧縮の映像信号をエンコードすることにより、再エンコードされたストリームである再符号化ストリームを生成する。
The effect /
スイッチ60は、CPU52の制御に基づいて、エフェクト/スイッチ58から出力されるベースバンド画像信号、または、ストリームスプライサ57から供給され、デコーダ56によってデコードされたベースバンド画像信号のいずれかを、外部の、例えば、表示装置などに出力する。
Based on the control of the
また、入力端子61からは、ベースバンドの画像データが入力され、エフェクト/スイッチ58に供給される。
Also, baseband image data is input from the
次に、図5は、図4の編集装置31の機能の構成例を示すブロック図である。なお、図5において、図4における場合と対応する部分には同一の符号を付してあり、その説明は適宜省略する。 Next, FIG. 5 is a block diagram illustrating a functional configuration example of the editing device 31 in FIG. In FIG. 5, parts corresponding to those in FIG. 4 are denoted by the same reference numerals, and description thereof is omitted as appropriate.
編集装置31は、制御部71、取得部72、ドライブ47、デコーダ54、デコーダ55、およびエンコーダ59から構成される。
The editing device 31 includes a
制御部71は、CPU41およびCPU52から構成され、編集装置31の各部を制御する。取得部72は、制御部71の制御に基づいて、HDD46から、またはドライブ47を介して記録メディア48から圧縮映像データを取得して、デコーダ54またはデコーダ55に供給する。なお、圧縮映像データが記録されるHDD46が取得部72に含まれるようにしてもよいし、取得部72が編集装置31に接続されている他の装置から上書きデータとしての圧縮映像データを取得するようにしてもよい。
The
デコーダ54およびデコーダ55は、取得部72から供給された圧縮映像データをデコードし、その結果として得られた非圧縮の映像信号をエンコーダ59に供給する。なお、図5に示す編集装置31には、圧縮映像データをデコードするデコーダとして、2つのデコーダ54およびデコーダ55が設けられているが、編集装置31に設けられるデコーダは1つであってもよいし、3以上であってもよい。
The
エンコーダ59は、デコーダ54およびデコーダ55においてデコードされたか、または、入力端子61から入力され、接続された映像信号をエンコードし、エンコードにより得られた圧縮映像データを、取得部72を介してドライブ47に供給する。
The
次に、編集装置31の動作について説明する。 Next, the operation of the editing device 31 will be described.
編集装置31は、記録メディア48に下地データ(符号化ストリーム)を記録することができる。
The editing device 31 can record background data (encoded stream) on the
編集装置31は、HDD46に記録された符号化ストリーム、または、入力端子61から供給されて、エンコーダ59によって符号化された符号化ストリームを、記録メディア48に記録することができる。
The editing device 31 can record the encoded stream recorded in the
CPU41は、エンコーダ59によって符号化され、メモリ50に供給されて記憶されている符号化ストリーム、または、HDD46に記録されている符号化ストリームが、サウスブリッジ45を介して、ドライブ47に供給され、記録メディア48に記録されるように、各部を制御する。
The
上述したように、可変長符号化により得られたストリームは、同じデータ量のストリームであっても、記録メディアにおける記録に必要な記録容量は異なる。そのため、図2を参照して説明したインサート編集を行い、下地データの所定の区間に上書きデータを上書きしようとした場合に上書きデータが上書きされる範囲における下地データの区間とは、データ量が同じであっても、記録メディア上の大きさ、すなわち記録に必要なクラスタ数は一般には異なるので、上書きデータの記録に必要なクラスタ数が、下地データにおける上書きデータが挿入される区間のクラスタ数よりも多いときには、下地データに上書きデータを挿入することができなくなってしまう。 As described above, even if the streams obtained by variable length coding are streams having the same data amount, the recording capacities required for recording on the recording medium are different. For this reason, when the insert editing described with reference to FIG. 2 is performed and the overwrite data is overwritten in a predetermined section of the background data, the data amount is the same as the section of the background data in the range where the overwrite data is overwritten. However, since the size on the recording medium, that is, the number of clusters required for recording is generally different, the number of clusters required for recording the overwrite data is larger than the number of clusters in the section where the overwrite data in the base data is inserted. If there are too many, it becomes impossible to insert the overwrite data into the background data.
図6を用いて、下書きデータであるストリームAの所定のIN点からOUT点までの間を、上書きデータBに置き換える上書き編集が行われる場合について説明する。 A case will be described with reference to FIG. 6 where overwriting editing is performed in which a portion between a predetermined IN point and an OUT point of stream A, which is draft data, is replaced with overwriting data B.
ユーザからIN点とOUT点が指定されたとき、それぞれの編集素材において、IN点を含むGOPを基準とした所定範囲と、OUT点を含むGOPを基準とした所定範囲のベースバンドデータが得られて、例えば、上述した特開2006−67095号公報に記載されている技術を用いて、スプライシング処理が実行され、IN点を含む所定範囲α乃至β´およびOUT点を含む所定範囲γ乃至δ´と、β´乃至γの部分とが接続されて、記録メディア48に上書きされる。
When the IN point and OUT point are specified by the user, the baseband data of the predetermined range based on the GOP including the IN point and the predetermined range based on the GOP including the OUT point is obtained for each editing material. Thus, for example, the splicing process is performed using the technique described in Japanese Patent Application Laid-Open No. 2006-67095 described above, and the predetermined ranges α to β ′ including the IN point and the predetermined ranges γ to δ ′ including the OUT point. And β ′ to γ are connected, and the
例えば、上書き用の編集素材が、入力端子61から入力されるベースバンド信号である場合について、図7を用いて説明する。
For example, a case where the editing material for overwriting is a baseband signal input from the
まず、記録メディア48から、符号化ストリームAのうちのIN点を含む1GOPが読み出され、デコーダ54に供給されてデコードされ、エフェクト/スイッチ58に供給される。そして、IN点までの間は、エフェクト/スイッチ58からは、記録メディア48から読み出された符号化ストリームAに対応するベースバンドデータが出力されて、エンコーダ59に供給されて、エンコードされる。そして、IN点においてエフェクト/スイッチ58が切換えられて、入力端子61から入力されるベースバンド信号がエンコーダ59に供給され、上書き部分のベースバンド信号がエンコードされる。
First, 1 GOP including the IN point in the encoded stream A is read from the
すなわち、記録メディア48への上書きは、IN点から開始されるのではなく、IN点手前のαから、新規に符号化が実行されて、記録メディア48への符号化ストリームの上書きが開始される。
That is, overwriting to the
そして、記録メディア48から、符号化ストリームAのうちのOUT点を含む1GOPが読み出され、デコーダ54に供給されて、デコードされ、エフェクト/スイッチ58に供給される。OUT点までは入力端子61から入力されるベースバンド信号がエンコーダ59に供給されているが、OUT点においてエフェクト/スイッチ58が切換えられて、エンコーダ59にOUT点以降の記録メディア48から読み出された符号化ストリームAに対応するベースバンドデータが供給される。
Then, 1 GOP including the OUT point in the encoded stream A is read from the
OUT点を含むGOPの符号化は、その後ろのGOP、すなわち、再符号化されないストリームAとVBVバッファの占有量が連続するように、制限付きで符号化される。なお、再符号化された部分と再符号化されていない部分、すなわち、図7中のδ´の部分においてVBVバッファの占有量が連続するようになされていれば、符号化の制限の方法は、いずれの方法であっても良く、また、OUT点を含む再符号化の範囲(すなわち、制限付符号化が実行される部分)も、1GOP以上の範囲であっても良い。IN点とOUT点によって定められる上書き部分にスプライシングのための再エンコード範囲を含むαからδ´の範囲を、差し替え区間と称する。 The GOP including the OUT point is encoded with a restriction such that the subsequent GOP, that is, the stream A that is not re-encoded and the occupation amount of the VBV buffer are continuous. If the VBV buffer occupancy continues in the re-encoded part and the non-re-encoded part, that is, the δ ′ part in FIG. Any method may be used, and the range of re-encoding including the OUT point (that is, the portion where restricted encoding is executed) may be in a range of 1 GOP or more. A range from α to δ ′ including a re-encoding range for splicing in the overwritten portion defined by the IN point and the OUT point is referred to as a replacement interval.
このとき、差し替え区間αからδ´の範囲において、下地であるストリームAと、上書きデータであるベースバンドデータを符号化した符号化ストリームの符号量が等しくても、記録メディア48への記録時に、それぞれのフレームの絵柄によって、フレーム毎のクラスタ数が変化し、下地よりも上書きデータの方が大きなクラスタ数を必要としてしまう可能性がある。 At this time, in the range of the replacement interval α to δ ′, even when the code amount of the encoded stream obtained by encoding the baseband data as the overwrite data and the base stream data as the overwrite data is equal, Depending on the design of each frame, the number of clusters for each frame may change, and the overwrite data may require a larger number of clusters than the background.
ここで、差し替え区間α乃至δ'におけるフレーム数をmとする。 Here, m is the number of frames in the replacement interval α to δ ′.
フレーム数、総データ量Sを固定して、任意の絵柄データを考えた場合、最もクラスタ数が大きくなるのは、図8に示されるように、(m-1)フレームに関して各々のデータ量がクラスタサイズの整数倍+1byteとなる場合である。なお、図8においては、枠が1クラスタを表し、ハッチがかかっている部分が実データを表すものとする。 When arbitrary picture data is considered with the number of frames and the total data amount S fixed, the largest number of clusters is as shown in FIG. This is a case where the integer multiple of the cluster size + 1 byte. In FIG. 8, the frame represents one cluster, and the hatched portion represents actual data.
これに対して、フレーム数、総データ量を固定して、任意の絵柄データを考えた場合、最もクラスタ数が小さくなるのは、図9に示されるように、(m-1)フレームに関して各々のデータ量がクラスタサイズの整数倍となる場合である。 On the other hand, when arbitrary picture data is considered with the number of frames and the total data amount fixed, the number of clusters is the smallest for each of (m−1) frames as shown in FIG. Is the case where the amount of data is an integer multiple of the cluster size.
図8を用いて説明した、クラスタ数が最も多く必要となる状態と、図9を用いて説明した、クラスタ数が最も少なくて済む状態とのクラスタ数差は、(m-1)または(m-2)である。 The difference between the number of clusters described in FIG. 8 that requires the most number of clusters and the state described in FIG. 9 that requires the smallest number of clusters is (m−1) or (m -2).
例えば、最大クラスタ数となる絵柄を有するストリームを最小クラスタ数となる絵柄を有するストリームに変更した場合、最大クラスタ数時の1byteしかデータを含まないクラスタ(m-1)個が最小クラスタ数時には無くなるので、(m-1)個のクラスタが減少する。そして、総データ量が同一であるので、最後のフレームに(m-1)byteのデータが加えられることになるが、mの数がクラスタの容量と比較して少ない場合、このフレームに関するクラスタは増えない。すなわち、フレーム数、総データ量を固定したときの最大クラスタ数と最小クラスタ数のクラスタ数差は、最大で(m-1)個である。 For example, if a stream with a pattern with the maximum number of clusters is changed to a stream with a pattern with the minimum number of clusters, the cluster (m-1) containing only 1 byte of data at the maximum number of clusters will be lost at the minimum number of clusters. Therefore, (m-1) clusters decrease. Since the total amount of data is the same, (m-1) bytes of data are added to the last frame, but if the number of m is small compared to the capacity of the cluster, the cluster for this frame is Will not Increase. That is, the maximum difference between the maximum number of clusters and the minimum number of clusters when the number of frames and the total amount of data are fixed is (m−1).
このことにより、mフレームに関するデータ差し替えを行う場合、その範囲内に予め(m-1)個以上の予備クラスタがあれば、フレーム数、総データ量が同一である、任意の絵柄のデータを差し替えることが可能になる。 As a result, when data regarding m frames is replaced, if there are (m-1) or more spare clusters in the range in advance, the data of any picture with the same number of frames and total data amount is replaced. It becomes possible.
そこで、CPU41は、記録メディア48に下地データが記録されるとき、1フレームにつき1クラスタの予備クラスタを含むように符号化ストリームが記録されるように、各部を制御する。これにより、下地データの任意位置に、フレーム数、総データ量が同一である、任意の絵柄のデータを差し替えても、クラスタ数が足りなくなることはない。
Therefore, when the base data is recorded on the
したがって、CPU41は、編集処理により得られてPCIブリッジ49、PCIバス44、および、ノースブリッジ42を介して供給される、差し替え区間の符号化ストリームを、メモリ43に一時保存し、その1フレームにつき1クラスタの予備クラスタを配置したのち、サウスブリッジ45を介してドライブ47に供給し、記録メディア48への記録を制御する。
Therefore, the
1フレームにつき1クラスタの予備クラスタは、1フレームごとに配置されていても良いが、1GOPごとに、GOPの最後にまとめられて配置されるようにしても良い。ここで、インサート編集に伴うデータ差し替えは、符号化ストリームにおけるGOPの単位を基準として実行されるので、予備クラスタは、1フレームを基準にして配置されるのではなく、1GOPを基準として配置されるものとする。すなわち、下書きデータにおいては、1GOPごとに、そのGOPの最後に、GOPに含まれるフレームの数と等しい予備クラスタが配置されている。 A spare cluster of one cluster per frame may be arranged for each frame, but may be arranged at the end of the GOP for each GOP. Here, the data replacement accompanying the insert editing is executed with reference to the GOP unit in the encoded stream, so the spare cluster is not set with reference to one frame but is set with reference to 1 GOP. Shall. That is, in the draft data, a spare cluster equal to the number of frames included in the GOP is arranged at the end of the GOP for each GOP.
次に、上書き処理が実行される場合について説明する。 Next, a case where the overwriting process is executed will be described.
ドライブ47には、編集装置31において、または、異なる他の装置において、1フレームにつき1クラスタの予備クラスタを含む下地データ(符号化ストリーム)が記録された記録メディア48が装着されている。その下地データに挿入される上書きデータ(符号化ストリーム)としては、HDD46に記録されているデータを用いても良いし、入力端子61から入力されるベースバンド画像データを用いても良い。
The
CPU41は、図示しない操作入力部からユーザの操作入力を受け、編集される2つのストリームと、その編集点の情報を受け、記録メディア48から編集点付近の所定範囲の符号化ストリームを読み出して、上書きデータと編集する処理を実行し、差し替え区間の符号化ストリームの生成を制御する。
The
上述したように、記録メディア48には、1フレームにつき1クラスタの予備クラスタを含む下地データ(符号化ストリーム)が記録されている。
As described above, background data (encoded stream) including one spare cluster per frame is recorded on the
そこで、図10に示されるように、IN点を含むGOPの先頭が差し替え区間の先頭αとなり、OUT点を含むGOPの最後が差し替え区間の終了点εとされた場合、CPU41は、編集処理により得られてPCIブリッジ49、PCIバス44、および、ノースブリッジ42を介して供給され、メモリ43に一時保存されている、記録メディア48に上書きされる差し替え区間の符号化ストリームに対して、各フレーム間、各GOP間に予備クラスタを配置せずに、差し替え区間の符号化ストリームを、その先頭から連続して記録メディア48に書き込ませ、上書きされた符号化ストリームの最後の点ε´から、差し替え区間の終了点εまでの間にまとまって予備クラスタが配置されるように、記録メディア48への差し替え区間における記録処理を制御する。
Therefore, as shown in FIG. 10, when the beginning of the GOP including the IN point is the beginning α of the replacement section and the end of the GOP including the OUT point is the end point ε of the replacement section, the
このように、上書き編集された差し替え区間の予備クラスタ配置は、差し替え区間の最後にまとめて配置されているので、更に上書き編集が行われる場合、2回目の上書き編集のための差し替え区間の終了点が、1回目の上書き編集時の差し替え区間内であるときに、クラスタ数が不足してしまう恐れがある。この場合、1回目の上書き編集における差し替え区間の終了フレームまで、2回目の上書き編集のための差し替え区間を延長する必要がある。 As described above, the spare cluster arrangement of the replacement section that has been overwritten is arranged collectively at the end of the replacement section. Therefore, when further overwrite editing is performed, the end point of the replacement section for the second overwrite editing. However, there is a possibility that the number of clusters may be insufficient when it is within the replacement section during the first overwrite editing. In this case, it is necessary to extend the replacement section for the second overwrite editing until the end frame of the replacement section in the first overwrite editing.
そこで、記録メディア48において2回目以上の上書きを実行可能にする場合、既にデータ変更を行った区間を、記録メディア48の管理情報として、記録メディア48に記憶しておく必要がある。
Therefore, when it is possible to execute overwriting for the second time or more in the
記録メディア48の管理情報としては、新規の上書き処理のためのデータ差し替え時に、差し替え区間の終了フレームが、既に書き換えされた差し替え区間の途中であるか否かが検出可能な情報と、終了フレームが既に書き換えされた差し替え区間の途中であった場合、その先にある、既に書き換えされた差し替え区間の終了点の位置を検出可能な情報とが必要となる。
The management information of the
そこで、記録メディア48において2回目以上の上書きを実行可能にする場合、編集装置31においては、記録メディア48に記録される符号化ストリームの1フレームごとに、書き換えにより記録されているフレームであることを示すフラグである書き換えフラグと、既に書き換えされた差し替え区間の終了点であることを示すフラグである書き換え終了フラグとの2bitの情報を付加する。
Therefore, when the
例えば、図11に示されるように、記録メディア48に最初に下地データが記録される場合、1フレームに1クラスタの予備クラスタが配置され、書き換えフラグおよび書き換え終了フラグは、全て0に設定される。
For example, as shown in FIG. 11, when the background data is recorded on the
そして、まだ上書きが行われたことのない範囲、すなわち、書き換えフラグおよび書き換え終了フラグが全て0に設定されている範囲において上書き編集が実行されて、α乃至βの範囲が差し替え区間となった場合、差し替え区間の先頭のαの位置から、上書きされる符号化ストリームが予備クラスタ無しで記録される。その記録範囲がα乃至β´であった場合、α乃至β´の範囲の書き換えフラグが1に設定される。 When overwriting is performed in a range where overwriting has not yet been performed, that is, a range in which the rewriting flag and the rewriting end flag are all set to 0, and the range from α to β becomes a replacement section The encoded stream to be overwritten is recorded without a spare cluster from the position of α at the head of the replacement section. When the recording range is α to β ′, the rewrite flag in the range of α to β ′ is set to 1.
そして、β´乃至βの範囲に予備クラスタが配置され、β´乃至βの範囲の書き換えフラグが1に設定されるとともに、差し替え区間の最後、すなわち、βの部分の書き換え終了フラグが1に設定される。 Then, a spare cluster is arranged in the range of β ′ to β, the rewrite flag in the range of β ′ to β is set to 1, and the end of the replacement section, that is, the rewrite end flag in the part of β is set to 1. Is done.
そして、図12に示されるように、既に上書きが行われている範囲、すなわち、書き換えフラグが1である範囲の途中から、まだ、上書きが行われていない範囲、すなわち、書き換えフラグおよび書き換え終了フラグが0である範囲のいずれか、または、既に上書きが行われている範囲の終了点、すなわち、書き換えフラグが1でありかつ書き換え終了フラグが1である点の区間が、2度目以降の上書き処理による差し替え区間となった場合、それ以前の上書き処理によりまとまって設定された予備クラスタの全てが、その上書き処理による差し替え区間に含まれるため、その差し替え区間のみでデータの差し替えを行っても、クラスタ数が不足することはない。そのため、差し替え区間の先頭のγの位置から、上書きされる符号化ストリームが予備クラスタ無しで記録される。その記録範囲がγ乃至δ´であった場合、γ乃至δ´の範囲の書き換えフラグが1に設定される。 Then, as shown in FIG. 12, from the middle of the range where the overwrite has already been performed, that is, the range where the rewrite flag is 1, the range where the overwrite has not yet been performed, that is, the rewrite flag and the rewrite end flag. Overwrite processing for the second time or later is either one of the ranges where 0 is 0, or the end point of the range where overwrite has already been performed, that is, the section where the rewrite flag is 1 and the rewrite end flag is 1 Since all of the spare clusters set together by the previous overwrite process are included in the replacement section by the overwriting process, even if the data is replaced only in the replacement section, the cluster There is no shortage of numbers. Therefore, the encoded stream to be overwritten is recorded without a spare cluster from the position of γ at the head of the replacement section. When the recording range is γ to δ ′, the rewrite flag in the range of γ to δ ′ is set to 1.
そして、δ´乃至δの範囲に予備クラスタが配置され、δ´乃至δの範囲の書き換えフラグが1に設定されるとともに、差し替え区間の最後、すなわち、δの部分の書き換え終了フラグが1に設定される。 A spare cluster is arranged in the range from δ ′ to δ, the rewrite flag in the range from δ ′ to δ is set to 1, and the rewrite end flag in the end of the replacement section, that is, the part of δ is set to 1. Is done.
そして、図13に示されるように、まだ、上書きが行われていない範囲、すなわち、書き換えフラグが0である範囲のいずれかから、既に上書きが行われている範囲、すなわち、書き換えフラグが1であって、書き換え終了フラグが0である箇所までの区間が、2度目以降の上書き処理による差し替え区間となった場合、それ以前の上書き処理によりまとまって設定された予備クラスタが、その上書き処理による差し替え区間に含まれないため、その差し替え区間のみでデータの差し替えを行ったときに、クラスタ数が不足してしまう可能性がある。 Then, as shown in FIG. 13, the range that has not been overwritten yet, that is, the range in which the rewrite flag is 0, the range that has already been overwritten, that is, the rewrite flag is 1. If the section up to the location where the rewrite end flag is 0 becomes the replacement section by the second and subsequent overwrite processing, the spare cluster set by the previous overwrite processing is replaced by the overwrite processing. Since it is not included in the section, there is a possibility that the number of clusters may be insufficient when data is replaced only in the replacement section.
そのため、差し替え区間の先頭のεの位置から、上書きされる符号化ストリームが予備クラスタ無しで記録されたときの記録範囲の終了点は、予備クラスタ分を考慮しない場合の終了点であるζに対して、ε寄りである書き換え終了点#1となるかもしれないし、その逆側である書き換え終了点#2となるかもしれない。ここで、差し替え区間の先頭のεの位置から、上書きされる符号化ストリームが予備クラスタ無しで記録されたときの記録範囲のうち、書き換えフラグが0に設定されていたε乃至αの範囲の書き換えフラグが1に設定される。
Therefore, the end point of the recording range when the encoded stream to be overwritten is recorded without a spare cluster from the position of ε at the beginning of the replacement section is the end point when ζ is not considered for the spare cluster. Thus, it may be the rewrite
このため、記録メディア48の予備クラスタ分を考慮しない場合の終了点であるζからδ´までに記録されていた符号化ストリームが読み出されて、上書きされる符号化ストリームが予備クラスタ無しで記録されたときの記録範囲の終了点(書き換え終了点#1または書き換え終了点#2)に続いて記録される。
For this reason, the encoded stream recorded from ζ to δ ′, which is the end point when the spare cluster portion of the
予備クラスタは、δ´乃至δの領域にまとまって配置されているので、記録メディア48のζからδ´までに記録されていた符号化ストリーム再記録時の終了点は、δとなるかまたはδよりも前になる。そして、その終了点からδまでに領域が存在するならば、その間に予備クラスタが配置され、ε乃至δの範囲の書き換えフラグの設定は1のままとなり、差し替え区間の最後、すなわち、δの部分の書き換え終了フラグも1のままとなる。
Since the spare clusters are arranged in a region of δ ′ to δ, the end point at the time of re-recording the encoded stream recorded from ζ to δ ′ of the
そして、図14に示されるように、上書きが行われていない範囲、すなわち、書き換えフラグが0である範囲のいずれかから、既に上書きが行われている範囲、すなわち、書き換えフラグが1である範囲を含んで、まだ上書きが行われていない範囲、すなわち、書き換えフラグおよび書き換え終了フラグが0である範囲のいずれか、または、既に上書きが行われている範囲の終了点、すなわち、書き換えフラグが1でありかつ書き換え終了フラグが1である点の区間が、2度目以降の上書き処理による差し替え区間となった場合、それ以前の上書き処理によりまとまって設定された予備クラスタの全てが、その上書き処理による差し替え区間に含まれるため、その差し替え区間のみでデータの差し替えを行っても、クラスタ数が不足することはない。そのため、差し替え区間の先頭のηの位置から、上書きされる符号化ストリームが予備クラスタ無しで記録される。その記録範囲がη乃至θ´であった場合、η乃至θ´の範囲の書き換えフラグが0であった部分の書き換えフラグが1に設定される。 Then, as shown in FIG. 14, a range in which overwriting has already been performed, that is, a range in which the rewriting flag is 1, from one of the ranges in which overwriting has not been performed, that is, the range in which the rewriting flag is 0 , The range that has not been overwritten yet, that is, the range in which the rewrite flag and the rewrite end flag are 0, or the end point of the range that has already been overwritten, that is, the rewrite flag is 1. And the section with the rewrite end flag set to 1 is a replacement section for the second and subsequent overwriting processes, all of the spare clusters set together by the previous overwriting process are processed by the overwriting process. Because it is included in the replacement section, the number of clusters is insufficient even if data is replaced only in the replacement section. No. Therefore, the encoded stream to be overwritten is recorded without a spare cluster from the position of η at the head of the replacement section. When the recording range is η to θ ′, the rewrite flag of the portion where the rewrite flag in the range of η to θ ′ is 0 is set to 1.
そして、θ´乃至θの範囲に予備クラスタが配置され、θ´乃至θの範囲の書き換えフラグが1に設定されるとともに、差し替え区間の最後、すなわち、θの部分の書き換え終了フラグが1に設定される。 Then, the spare cluster is arranged in the range of θ ′ to θ, the rewrite flag in the range of θ ′ to θ is set to 1, and the rewrite end flag in the end of the replacement section, that is, the portion of θ is set to 1. Is done.
なお、編集装置31は、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データを記録可能な装置であっても良い。また、編集装置31は、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データを記録可能であり、かつ、記録メディア48の上書きが行われていない領域に1回だけ上書き編集を行うことが可能な装置であっても良い。また、編集装置31は、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データを記録可能であるとともに、記録メディア48に複数回上書き編集を行うことが可能な装置であっても良い。更に、編集装置31は、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データが記録された記録メディア48の上書きが行われていない領域に1回だけ上書き編集を行うことが可能な装置であっても良い。また、編集装置31は、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データが記録された記録メディア48に複数回上書き編集を行うことが可能な装置であっても良い。
The editing device 31 may be a device capable of recording background data so that the
図15に、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データを記録可能な編集装置31の制御部71、すなわち、CPU41およびCPU52が有する機能を説明するための機能ブロック図を示す。
FIG. 15 is a functional block diagram for explaining the functions of the
CPU41は、符号化データ取得制御部81、符号化データ記録処理部82、予備クラスタ配置部83、および、編集処理制御部84の機能を有しており、CPU52は、スイッチング処理部91、デコード処理部92、エンコード処理部93、および、スプライシング制御部94の機能を有している。
The
符号化データ取得制御部81は、下地データの基となる符号化データ、例えば、HDD46に記録されている符号化データや、デコーダ54およびデコーダ55においてデコードされたか、または、入力端子61から入力された非圧縮ベースバンド信号が、所定のIN点またはOUT点で接続された後、エンコーダ59においてエンコードされることにより得られた符号化データの取得を制御し、メモリ43への記録を制御する。
The encoded data
符号化データ記録処理部82は、符号化データ取得制御部81により取得が制御され、メモリ43への記録が制御された符号化データを、サウスブリッジ45を介して、ドライブ47へ供給し、記録メディア48に記録する処理を制御する。
The encoded data
予備クラスタ配置部83は、符号化データ記録処理部82により記録メディア48への記録が制御される符号化データとともに記録メディア48へ記録される予備クラスタの配置を制御する。
The spare
編集処理制御部84は、ユーザの操作入力を基に、デコーダ54乃至デコーダ56、ストリームスプライサ57、エフェクト/スイッチ58、エンコーダ59、および、スイッチ60の動作を制御して、記録メディア48へ記録されるデータを上述したような編集処理により生成させるためのコマンドなどを生成し、ノースブリッジ42、PCIバス44、PCIブリッジ49、および、コントロールバス51を介して、生成したコマンドをCPU52に供給する。
The edit
スイッチング処理部91は、編集処理制御部84から供給されたコマンドに基づいて、記録メディア48へ記録されるデータを上述したような編集処理により生成させるために、エフェクト/スイッチ58の動作を制御する。
The switching
デコード処理部92は、編集処理制御部84から供給されたコマンドに基づいて、記録メディア48へ記録されるデータを上述したような編集処理により生成させるために、デコーダ54乃至デコーダ56の動作を制御する。
Based on the command supplied from the edit
エンコード処理部93は、編集処理制御部84から供給されたコマンドに基づいて、記録メディア48へ記録されるデータを上述したような編集処理により生成させるために、エンコーダ59の動作を制御する。
The
スプライシング制御部94は、編集処理制御部84から供給されたコマンドに基づいて、記録メディア48へ記録されるデータを上述したような編集処理により生成させるために、ストリームスプライサ57の動作を制御する。
The
次に、図16に、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データを記録可能であり、かつ、フレームにつき1クラスタの予備クラスタを含むように下地データが記録された記録メディア48に、各位置において1回だけ上書き編集を行うことができる、編集装置31の制御部71、すなわち、CPU41およびCPU52が有する機能を説明するための機能ブロック図を示す。
Next, in FIG. 16, the base data can be recorded on the
なお、図15における場合と対応する部分には、同一の符号を付してあり、その説明は適宜省略する。 Note that portions corresponding to those in FIG. 15 are denoted by the same reference numerals, and description thereof will be omitted as appropriate.
すなわち、図16における場合のCPU41が有する機能は、図15における場合に対して、書き換えフラグ設定部111および書き換え終了フラグ設定部112が新たに備えられているものである。
That is, the function of the
書き換えフラグ設定部111は、上書きデータを記録した場合、または、上書きデータに対して与えられる予備クラスタを配置した場合、図11乃至図14を用いて説明した書き換えフラグを設定するものである。
The rewrite
書き換え終了フラグ設定部112は、上書きデータに対して与えられる予備クラスタを配置したのちに、その最後の部分に、図11乃至図14を用いて説明した書き換え終了フラグを設定するものである。
The rewrite end
次に、図17に、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データを記録可能であり、かつ、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データが記録された記録メディア48に複数回上書き編集を行うことが可能な編集装置31の制御部71、すなわち、CPU41およびCPU52が有する機能を説明するための機能ブロック図を示す。
Next, in FIG. 17, it is possible to record background data so that the
なお、図15または図16における場合と対応する部分には、同一の符号を付してあり、その説明は適宜省略する。 Note that portions corresponding to those in FIG. 15 or FIG. 16 are denoted by the same reference numerals, and description thereof will be omitted as appropriate.
すなわち、図17における場合のCPU41が有する機能は、図16における場合に対して、書き換え終了フラグ検出部131、書き換えフラグ検出部132、および、上書き範囲決定処理部133が新たに備えられているものである。
That is, the function of the
書き換え終了フラグ検出部131は、下地データが記録された記録メディア48に上書きデータを記録するとき、差し替え区間内のいずれかの位置に、図11乃至図14を用いて説明した書き換え終了フラグが設定されているか否かを検出する。
The rewrite end
書き換えフラグ検出部132は、下地データが記録された記録メディア48に上書きデータを記録するとき、差し替え区間内のいずれかの位置に、図11乃至図14を用いて説明した書き換えフラグが設定されているか否かを検出する。
When the rewrite
上書き範囲決定処理部133は、上書き範囲、すなわち、差し替え区間を決定し、書き換え終了フラグ検出部131による書き換え終了フラグの検出結果および書き換えフラグ検出部132による書き換えフラグの検出結果とともに、符号化データ取得制御部81、符号化データ記録処理部82、および、予備クラスタ配置部83に、差し替え区間の情報を供給する。
The overwrite range
なお、図16においては、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データを記録可能であり、かつ、フレームにつき1クラスタの予備クラスタを含むように下地データが記録された記録メディア48に、各位置において1回だけ、上書き編集を行うことができる、編集装置31の制御部71について説明し、図17においては、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データを記録可能であり、かつ、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データが記録された記録メディア48に複数回上書き編集を行うことが可能な編集装置31の制御部71について説明したが、編集装置は、下地データを記録することはできないが、フレームにつき1クラスタの予備クラスタを含むように下地データが記録された記録メディア48に、各位置において1回だけ、上書き編集を行うことができるものであってもよいし、下地データを記録することはできないが、記録メディア48に1フレームにつき1クラスタの予備クラスタを含むように下地データが記録された記録メディア48に複数回上書き編集を行うことが可能なものであってもよいことは言うまでもない。
In FIG. 16, the base data can be recorded on the
なお、フレームにつき1クラスタの予備クラスタを含むように下地データが記録された記録メディア48に対して、各位置において1回だけ、上書き編集を行うことができるようになされている場合、書き換えフラグのみを用いるようにすれば良い。
Note that if the
編集された符号化ストリームを、サーバ等に記録しているのではなく、記録メディア48に記録しているということは、編集装置31において編集され、サーバ等に記録する前の状態であるか、または、サーバ等から読み出されて、編集装置31など他の装置の内部の記録媒体(例えば、HDD46など)に記録させるためのデータ移動を目的としている状態であることが多い。
The fact that the edited encoded stream is not recorded on the server or the like but is recorded on the
すなわち、この状態では、複数回の編集を繰り返すことは考えにくく、もし、複数回の編集を繰り返す必要があれば、編集装置31などの内部の記録媒体(例えば、HDD46など)に記録した後に編集処理を行えばよいのである。 That is, in this state, it is difficult to repeat a plurality of edits, and if it is necessary to repeat a plurality of edits, the edit is performed after recording on an internal recording medium such as the editing device 31 (for example, HDD 46). What is necessary is just to process.
なお、フレームにつき1クラスタの予備クラスタを含むように下地データが記録された記録メディア48に対して、各位置において1回だけ上書き編集を行うことができるようになされている場合、編集装置31においては、差し替え区間に上書きされる編集結果の上書きデータを、HDD46、または、メモリ43に完成された状態で一時保存した後、サウスブリッジ45を介してドライブ47に供給し、記録メディア48に一度にまとめて記録してしまうようにしなければならない。
If the
次に、図18のフローチャートを参照して、編集装置31において実行される、下書き処理について説明する。 Next, a draft process executed in the editing apparatus 31 will be described with reference to the flowchart of FIG.
なお、下書きデータ自体が編集データである場合には、この処理が実行される前に、編集処理制御部84の制御に基づいて、編集処理が実行されている。
When the draft data itself is edit data, the edit process is executed based on the control of the edit
ステップS11において、符号化データ取得制御部81は、記録メディア48に記録される1GOP分の下書きデータの取得を制御し、メモリ43に保存する。
In step S <b> 11, the encoded data
ステップS12において、符号化データ取得制御部81は、このGOPに含まれるフレーム数を取得する。
In step S12, the encoded data
ステップS13において、符号化データ記録処理部82は、取得した1GOPの下書きデータを、サウスブリッジ45を介して、ドライブ47へ供給し、記録メディア48に記録する処理を制御する。
In step S <b> 13, the encoded data
ステップS14において、予備クラスタ配置部83は、このGOPに含まれるフレーム数と同数のクラスタが、ステップS13において記録メディア48に記録された1GOP分の下書きデータに続く予備クラスタとして配置されるように、ドライブ47による記録メディア48への予備クラスタの記録設定を制御する。
In step S14, the spare
ステップS15において、符号化データ取得制御部81は、下書きデータの供給は終了であるか否かを判断する。
In step S15, the encoded data
ステップS15において、下書きデータの供給は終了ではないと判断された場合、処理は、ステップS11に戻り、それ以降の処理が繰り返される。ステップS15において、下書きデータの供給は終了であると判断された場合、処理は終了される。 If it is determined in step S15 that the supply of draft data is not complete, the process returns to step S11, and the subsequent processes are repeated. If it is determined in step S15 that the supply of draft data is complete, the process is terminated.
このような処理により、フレームにつき1クラスタの予備クラスタを含む下地データを、記録メディア48に記録することができる。このとき、書き換えフラグおよび書き換え終了フラグは、いずれも設定されない、すなわち、全て0となっている。
By such processing, background data including one spare cluster per frame can be recorded on the
次に、図19のフローチャートを参照して、編集装置31において、フレームにつき1クラスタの予備クラスタを含む下地データが記録された記録メディア48に対して、1回目の上書き処理を実行する上書き処理1について説明する。
Next, referring to the flowchart of FIG. 19, in the editing apparatus 31, an
ステップS41において、編集処理制御部84は、CPU52に各種コマンドを送信し、編集処理を制御する。そして、CPU52のスイッチング処理部91、デコード処理部92、エンコード処理部93、および、スプライシング制御部94により、編集のために必要な処理が実行されて、差し替え区間の符号化データ(上書きデータ)が生成される。
In step S41, the editing
ステップS42において、符号化データ取得制御部81は、記録メディア48に記録される1GOP分の上書きデータを取得する。
In step S <b> 42, the encoded data
ステップS43において、符号化データ記録制御部82は、下書きデータが記録されている領域のうち、上書きデータが上書きされる領域である差し替え区間を認識する。差し替え区間は、上述したように、インサート編集のIN点およびOUT点の区間よりも長い所定の区間である。
In step S43, the encoded data
ステップS44において、符号化データ記録制御部82は、上書きされる領域の書き換えフラグは0であるか否かを判断する。ステップS44において、上書きされる領域の書き換えフラグは0ではないと判断された場合、ここでは、1回目の上書きが実行される場合の処理であるので、エラー処理として、処理は、後述するステップS50に進む。
In step S44, the encoded data
ステップS44において、上書きされる領域の書き換えフラグは0であると判断された場合、ステップS45において、符号化データ記録制御部82は、上書きデータをデータの書き換え領域である差し替え区間の先頭から連続して記録メディア48に記録するように、各部を制御する。
If it is determined in step S44 that the rewrite flag of the area to be overwritten is 0, in step S45, the encoded data
ステップS46において、書き換えフラグ設定部111は、上書きデータの記録部分に対応する書き換えフラグを1とする。
In step S46, the rewrite
ステップS47において、予備クラスタ配置部83は、上書きデータの記録部分から上書きされる領域である差し替え区間の終了部分までに予備クラスタをまとめて配置する。
In step S47, the spare
ステップS48において、書き換えフラグ設定部111は、予備クラスタが配置された部分の書き換えフラグを1とする。
In step S48, the rewrite
ステップS49において、書き換え終了フラグ設定部112は、予備クラスタの終了位置の書き換え終了フラグを1とし、処理が終了される。
In step S49, the rewrite end
ステップS44において、上書きされる領域の書き換えフラグは0ではないと判断された場合、ここでは、1回目の上書きが実行される場合の処理であるので、ステップS50において、CPU41は、図示しない表示部や、図示しない音声出力部から、エラーメッセージを出力し、処理が終了される。
If it is determined in step S44 that the rewrite flag of the area to be overwritten is not 0, here, the process is performed when the first overwriting is executed, so in step S50, the
このような処理により、1フレームにつき1クラスタの予備クラスタを含むように下地データが記録された記録メディア48の上書きが行われていない領域に、1回目の上書き編集を行うことができる。
By such processing, it is possible to perform the first overwriting editing in an area where the
次に、図20のフローチャートを参照して、編集装置31において、フレームにつき1クラスタの予備クラスタを含む下地データが記録された記録メディア48に対して、複数回の上書き処理が実行可能な場合の上書き処理2について説明する。
Next, referring to the flowchart of FIG. 20, when the editing apparatus 31 can perform a plurality of overwriting processes on the
ステップS71において、編集処理制御部84は、CPU52に各種コマンドを送信し、編集処理を制御する。そして、CPU52のスイッチング処理部91、デコード処理部92、エンコード処理部93、および、スプライシング制御部94により、編集のために必要な処理が実行されて、差し替え区間の符号化データ(上書きデータ)が生成される。
In step S71, the editing
ステップS72において、符号化データ取得制御部81は、記録メディア48に記録される1GOP分の上書きデータを取得する。
In step S <b> 72, the encoded data
ステップS73において、符号化データ記録制御部82は、下書きデータが記録されている領域のうち、上書きデータが上書きされる領域である差し替え区間を認識する。差し替え区間は、上述したように、インサート編集のIN点およびOUT点の区間よりも長い所定の区間である。
In step S <b> 73, the encoded data
ステップS74において、書き換え終了フラグ検出部131は、上書きされる領域の終了部分の書き換え終了フラグの値を検出し、上書き範囲決定処理部133に供給し、書き換えフラグ検出部132は、上書きされる領域の終了部分の書き換えフラグの値を検出し、上書き範囲決定処理部133に供給する。上書き範囲決定処理部133は、上書きされる領域の終了部分において、書き換えフラグが1、かつ、書き換え終了フラグは0であるか否かを判断する。ステップS74において、書き換えフラグが1、かつ、書き換え終了フラグは0であると判断された場合、処理は、後述するステップS80に進む。
In step S74, the rewrite end
ステップS74において、書き換えフラグが1ではないか、または、書き換え終了フラグは0ではないと判断された場合、ステップS75乃至ステップS79において、図19のステップS45乃至ステップS49と基本的に同様の処理が実行されて、処理が終了される。 If it is determined in step S74 that the rewrite flag is not 1 or the rewrite end flag is not 0, in steps S75 to S79, basically the same processing as in steps S45 to S49 in FIG. Once executed, the process is terminated.
すなわち、上書きデータが書き換え領域の先頭から連続して記録され、上書きデータの記録部分に対応する書き換えフラグが1に設定される。そして、上書きデータの記録部分から上書きされる領域である差し替え区間の終了部分までに予備クラスタがまとめて配置され、予備クラスタが配置された部分の書き換えフラグが1に設定され、予備クラスタの終了位置の書き換え終了フラグが1に設定されて、処理が終了される。 That is, the overwrite data is continuously recorded from the beginning of the rewrite area, and the rewrite flag corresponding to the recording portion of the overwrite data is set to 1. Then, the spare cluster is arranged together from the recording part of the overwriting data to the end part of the replacement section which is the area to be overwritten, the rewrite flag of the part where the spare cluster is arranged is set to 1, and the end position of the spare cluster Is set to 1, and the processing is terminated.
ステップS74において、書き換えフラグが1、かつ、書き換え終了フラグは0であると判断された場合、ステップS80において、符号化データ取得制御部81は、ドライブ47を制御して、記録メディア48において、上書きされる領域に続く領域で、書き換えフラグが1の部分(書き換え終了フラグが1の箇所までの部分)に記録されているデータのうち、予備クラスタを除く部分のデータを、記録メディア48から読み出させて、サウスブリッジ45およびノースブリッジ42を介して取得し、メモリ43に保存する。
If it is determined in step S74 that the rewrite flag is 1 and the rewrite end flag is 0, in step S80, the encoded data
ステップS81において、符号化データ記録制御部82は、上書きデータを、書き換え領域の先頭から連続して記録する。
In step S81, the encoded data
ステップS82において、書き換えフラグ設定部111は、上書きデータの記録部分に対応する書き換えフラグを1とする。
In step S82, the rewrite
ステップS83において、符号化データ記録制御部82は、記録メディア48の上書きデータが記録された領域に続いて、ステップS80において、記録メディア48から読み出され、メモリ43に記録されたデータ、すなわち、記録メディア48において、上書きされる領域に続く領域で、書き換えフラグが1の部分(書き換え終了フラグが1の箇所までの部分)に記録されているデータのうち、予備クラスタを除く部分のデータが記録されるように、各部を制御する。
In step S83, the encoded data
ステップS84において、予備クラスタ配置部83は、新たにデータが記録された部分から、書き換えフラグが1の部分(書き換え終了フラグが1の箇所までの部分)に、予備クラスタをまとめて配置して、処理が終了される。
In step S84, the spare
このようにして、編集装置31において、フレームにつき1クラスタの予備クラスタを含む下地データが記録された記録メディア48に対して、複数回の上書き処理を実行することができる。
In this way, the editing apparatus 31 can execute multiple overwrite processes on the
以上説明した処理を、Professional Disc(商標)にデータを記録するにあたって適用する場合について説明する。 A case where the above-described processing is applied when data is recorded on the Professional Disc (trademark) will be described.
Professional Disc(商標)においては、MXF(Material eXchange Format)のフォーマットでデータが記録されるようになされており、MXFは、図21に示されるように、SMPTE336Mで規定されているKLV方式でフレーム毎のES(エレメンタリストリーム)データがパッキングされて記録されるようになされている。 In Professional Disc (trademark), data is recorded in the MXF (Material eXchange Format) format. As shown in FIG. 21, MXF is frame-by-frame in the KLV format defined by SMPTE336M. ES (elementary stream) data is packed and recorded.
Professional Disc(商標)に、データ量がS[byte]であるmフレームのデータを記録するのに必要となる最大クラスタ数は、図22に示されるように、(m-1)フレームにおいて、各々のデータ量がクラスタサイズの整数倍+1byteとなる場合である。なお、図22と次の図23においても、枠が1クラスタを表し、ハッチがかかっている部分が実データを表すものとする。 As shown in FIG. 22, the maximum number of clusters required for recording m frames of data with S [byte] on the Professional Disc (trademark) is as follows. Is the case where the data amount is an integer multiple of the cluster size + 1 byte. In FIG. 22 and the next FIG. 23, the frame represents one cluster and the hatched portion represents actual data.
これに対して、フレーム数、総データ量を固定して、任意の絵柄データを考えた場合、最もクラスタ数が小さくなるのは、図23に示されるように、mフレームに関して各々のデータ量がクラスタサイズの整数倍となる場合である。 On the other hand, when arbitrary picture data is considered with the number of frames and the total amount of data fixed, the number of clusters is the smallest as shown in FIG. This is a case that is an integral multiple of the cluster size.
したがって、Professional Disc(商標)に、データ量がS[byte]であるmフレームのデータを記録する場合には、図22を用いて説明した、クラスタ数が最も多く必要となる状態と、図23を用いて説明した、クラスタ数が最も少なくて済む状態とのクラスタ数差は、 (m-1)個ではなく、m個となる。 Therefore, when recording m-frame data with a data amount of S [byte] on Professional Disc (trademark), the state in which the number of clusters described in FIG. The difference in the number of clusters from the state where the number of clusters is the smallest, as described using, is not (m−1), but m.
上述した処理においては、下書き時に、m個のフレームに対し、(m-1)個ではなく、m個の予備クラスタを割り当てているので、Professional Disc(商標)に、データ量がS[byte]であるmフレームのデータを記録する場合にも、上述した処理をそのまま適用することが可能である。 In the above-described processing, since m spare clusters are assigned to m frames instead of (m-1) at the time of drafting, the amount of data is S (byte) in the Professional Disc (trademark). The above-described processing can be applied as it is to record m-frame data.
また、記録メディア48として、Professional Disc(商標)が用いられている場合、所定のフレームデータ記録位置にジャンプするための、ファイル中のデータ開始位置を記録したテーブルであるPicture Pointerを内部に記録することができるようになされている。
In addition, when Professional Disc (trademark) is used as the
Picture Pointerには、例えば、図24のBに示されるように、ピクチャサイズ、先頭データから所定のフレームデータの開始位置までのデータオフセット値、該当するフレームのピクチャタイプ、当該ピクチャがGOPの先頭であるかどうかのフラグなどのフレームに関する情報が、フレーム表示順に全てのフレーム分用意されている。 In the Picture Pointer, for example, as shown in FIG. 24B, the picture size, the data offset value from the head data to the start position of the predetermined frame data, the picture type of the corresponding frame, the picture at the head of the GOP Information about frames, such as a flag indicating whether or not there is, is prepared for all frames in the frame display order.
そして、本発明が適用された編集装置31において、記録メディア48として、Professional Disc(商標)が用いられている場合、図24のBに示される情報に加えて、図24のAで示されるように、書き換えフラグと書き換え終了フラグの2bitの情報を、フレーム表示順に全てのフレーム分用意するものとする。
When the Professional Disc (trademark) is used as the
そして、記録メディア48に記録されるデータに対して、破壊編集が行われた場合、データ差し替えを実行したフレームに関しては、書き換えフラグまたは書き換え終了フラグが書き換えられることになる。
When destructive editing is performed on the data recorded on the
上述した一連の処理は、ハードウェアにより実行させることもできるし、ソフトウェアにより実行させることもできる。この場合、上述した処理は、図25に示されるようなパーソナルコンピュータ500により実行される。
The series of processes described above can be executed by hardware or can be executed by software. In this case, the above-described processing is executed by a
図25において、CPU(Central Processing Unit)501は、ROM(Read Only Memory)502に記憶されているプログラム、または、記憶部508からRAM(Random Access Memory)503にロードされたプログラムに従って各種の処理を実行する。RAM503にはまた、CPU501が各種の処理を実行する上において必要なデータなどが適宜記憶される。
25, a CPU (Central Processing Unit) 501 performs various processes according to a program stored in a ROM (Read Only Memory) 502 or a program loaded from a
CPU501、ROM502、およびRAM503は、内部バス504を介して相互に接続されている。この内部バス504にはまた、入出力インターフェース505も接続されている。
The
入出力インターフェース505には、キーボード、マウスなどよりなる入力部506、CRT,LCDなどよりなるディスプレイ、スピーカなどよりなる出力部507、ハードディスクなどより構成される記憶部508、並びに、モデム、ターミナルアダプタなどより構成される通信部509が接続されている。通信部509は、電話回線やCATVを含む各種のネットワークを介しての通信処理を行う。
The input /
入出力インターフェース505にはまた、必要に応じてドライブ510が接続され、磁気ディスク、光ディスク、光磁気ディスク、あるいは半導体メモリなどによりなるリムーバブルメディア521が適宜装着され、それらから読み出されたコンピュータプログラムが、必要に応じて記憶部508にインストールされる。
A drive 510 is also connected to the input /
また、本明細書において、記録媒体に記録されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。 Further, in the present specification, the step of describing the program recorded on the recording medium is not limited to the processing performed in chronological order according to the described order, but may be performed in parallel or It also includes processes that are executed individually.
なお、本明細書において、システムとは、複数の装置により構成される装置全体を表すものである。 In the present specification, the term “system” represents the entire apparatus constituted by a plurality of apparatuses.
なお、本発明の実施の形態は、上述した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変更が可能である。 The embodiment of the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention.
31 編集装置, 41 CPU, 43 メモリ, 46 HDD, 47 ドライブ, 48 記録メディア, 52 CPU, 54乃至56 デコーダ, 58 エフェクト/スイッチ, 59 エンコーダ, 71 制御部, 81 符号化データ取得制御部, 82 符号化データ記録処理部, 83 予備クラスタ配置部, 84 編集処理制御部, 111 書き換えフラグ設定部, 112 書き換え終了フラグ設定部, 131 書き換え終了フラグ検出部, 132 書き換えフラグ検出部, 133 上書き範囲決定処理部 31 Editing Device, 41 CPU, 43 Memory, 46 HDD, 47 Drive, 48 Recording Media, 52 CPU, 54 to 56 Decoder, 58 Effect / Switch, 59 Encoder, 71 Control Unit, 81 Encoded Data Acquisition Control Unit, 82 Code Data rewrite processing unit, 83 spare cluster placement unit, 84 editing process control unit, 111 rewrite flag setting unit, 112 rewrite end flag setting unit, 131 rewrite end flag detection unit, 132 rewrite flag detection unit, 133 overwrite range determination processing unit
Claims (14)
前記記録媒体に記録される前記データを、前記データを編集する場合の基準となる基準単位ごとに取得する取得手段と、
前記取得手段により取得された前記基準単位の前記データの前記記録媒体への記録を制御する記録制御手段と、
前記取得手段により取得された前記基準単位の前記データに含まれる前記所定のデータ単位数を検出し、検出された前記基準単位の前記データに含まれる前記所定のデータ単位数と同じ数の前記物理的な記録単位を、予備の記録領域として、前記記録媒体に配置する予備記録領域配置手段と
を備える情報処理装置。 In an information processing apparatus for recording data for each predetermined data unit on a recording medium on which data is recorded for each physical recording unit,
Obtaining means for obtaining the data recorded on the recording medium for each reference unit serving as a reference in editing the data;
Recording control means for controlling recording of the data of the reference unit acquired by the acquiring means on the recording medium;
The number of the predetermined data units included in the data of the reference unit acquired by the acquisition unit is detected, and the same number of the physical units as the predetermined number of data units included in the detected data of the reference unit An information processing apparatus comprising: a preliminary recording area arranging unit that arranges a typical recording unit as a spare recording area on the recording medium.
請求項1に記載の情報処理装置。 The preliminary recording area arranging unit collectively arranges the preliminary recording areas corresponding to the reference unit on the recording medium following the data of the reference unit whose recording is controlled by the recording control unit. Item 4. The information processing apparatus according to Item 1.
請求項1に記載の情報処理装置。 The recording control means replaces the data with the overwriting data on the recording medium when the overwriting data is further recorded for each of the predetermined data units in any of the areas of the recording medium where the data is recorded. A first recording area is detected, the overwrite data is continuously recorded from the beginning of the first area, and a spare recording area is arranged in the first area where the overwrite data is not recorded. The information processing apparatus according to claim 1, wherein recording of the overwrite data on the recording medium is controlled.
を更に備える請求項3に記載の情報処理装置。 When the overwriting data is further recorded for each of the predetermined data units in any of the areas in which the data of the recording medium is recorded by the recording control unit, the overwriting data is recorded in the first The information processing apparatus according to claim 3, further comprising: first setting information recording means for recording first setting information indicating the area of the first setting information on the recording medium.
を更に備える請求項4に記載の情報処理装置。 When the overwriting data is further recorded for each of the predetermined data units in any of the areas where the data of the recording medium is recorded by the recording control unit, the first overwriting the overwriting data. The information processing apparatus according to claim 4, further comprising: second setting information recording means for recording second setting information indicating a tail end of the area on the recording medium.
前記設定情報検出手段により検出された前記第1の設定情報および前記第2の設定情報に基づいて、前記上書きデータが記録される前記第1の領域の最後尾が、過去にいずれかの上書きデータが記録された第2の領域の途中であると判断された場合、前記記録媒体に記録されているデータの書き換え範囲を延長する書き換え範囲決定手段と
を更に備える請求項5に記載の情報処理装置。 When overwriting data is further recorded for each predetermined data unit in any of the areas where the data of the recording medium is recorded by the recording control means, the first setting information recorded on the recording medium And setting information detecting means for detecting the second setting information;
Based on the first setting information and the second setting information detected by the setting information detecting means, the tail of the first area where the overwrite data is recorded is any overwrite data in the past. The information processing apparatus according to claim 5, further comprising: a rewriting range determining unit that extends a rewriting range of data recorded on the recording medium when it is determined that the data is in the middle of the second area recorded. .
前記取得手段は、前記記録媒体の前記第2の領域のうち、前記第1の領域と異なる部分に記録されている記録済みデータを読み出して取得し、
前記記録制御手段は、前記第1の領域の先頭位置から、前記所定のデータ単位ごとに前記上書きデータを更に記録するとともに、前記上書きデータの記録終了位置から、前記取得手段により取得された前記記録済みデータを再記録し、前記第2の領域の前記記録済みデータが記録されていない領域に、予備の記録領域が配置されるように、前記記録媒体への前記上書きデータおよび前記記録済みデータの記録を制御する
を更に備える請求項6に記載の情報処理装置。 Based on the first setting information and the second setting information detected by the setting information detecting means, the tail of the first area where the overwrite data is recorded is any overwrite data in the past. Is determined to be in the middle of the recorded second area,
The acquisition means reads and acquires recorded data recorded in a portion different from the first area in the second area of the recording medium,
The recording control means further records the overwrite data for each predetermined data unit from the start position of the first area, and the recording means acquired by the acquisition means from the recording end position of the overwrite data Recorded data is re-recorded, and the overwriting data and the recorded data on the recording medium are arranged such that a spare recording area is arranged in an area where the recorded data is not recorded in the second area. The information processing apparatus according to claim 6, further comprising: controlling recording.
前記記録媒体に記録される前記データを、前記データを編集する場合の基準となる基準単位ごとに取得し、
前記基準単位の前記データに含まれる前記所定のデータ単位数を検出し、
取得された前記基準単位の前記データの前記記録媒体への記録を制御し、
検出された前記基準単位の前記データに含まれる前記所定のデータ単位数と同じ数の前記物理的な記録単位を、予備の記録領域として、前記記録媒体に配置する
ステップを含む情報処理方法。 In an information processing method of an information processing apparatus for recording data for each predetermined data unit on a recording medium on which data is recorded for each physical recording unit,
The data recorded on the recording medium is acquired for each reference unit serving as a reference when editing the data,
Detecting the predetermined number of data units included in the data of the reference unit;
Controlling the recording of the acquired data of the reference unit to the recording medium;
An information processing method including a step of arranging, on the recording medium, the same number of physical recording units as the predetermined number of data units included in the detected data of the reference unit as a spare recording area.
前記記録媒体に記録される前記データを、前記データを編集する場合の基準となる基準単位ごとに取得し、
前記基準単位の前記データに含まれる前記所定のデータ単位数を検出し、
取得された前記基準単位の前記データの前記記録媒体への記録を制御し、
検出された前記基準単位の前記データに含まれる前記所定のデータ単位数と同じ数の前記物理的な記録単位を、予備の記録領域として、前記記録媒体に配置する
ステップを含む処理をコンピュータに実行させるプログラム。 A program for causing a computer to execute a process of recording data for each predetermined data unit on a recording medium on which data is recorded for each physical recording unit,
The data recorded on the recording medium is acquired for each reference unit serving as a reference when editing the data,
Detecting the predetermined number of data units included in the data of the reference unit;
Controlling the recording of the acquired data of the reference unit to the recording medium;
The computer executes a process including the step of placing the same number of physical recording units as the predetermined number of data units included in the detected data of the reference unit on the recording medium as a spare recording area Program to make.
前記記録媒体に記録される前記上書きデータを、前記データを編集する場合の基準となる基準単位ごとに取得する取得手段と、
前記記録媒体上に前記下書きデータが記録されている領域のうち、前記上書きデータにデータが置き換えられる第1の領域を検出し、前記第1の領域の先頭から、前記取得手段により取得された前記上書きデータが連続して記録されるように、前記記録媒体への前記上書きデータの記録を制御する記録制御手段と、
前記第1の領域の前記上書きデータが記録されていない領域に、予備の記録領域を配置する予備記録領域配置手段と
を備える情報処理装置。 In an information processing apparatus for recording overwrite data for each predetermined data unit on a recording medium on which draft data is recorded for each physical recording unit,
Obtaining means for obtaining the overwriting data recorded on the recording medium for each reference unit serving as a reference in editing the data;
Of the areas where the draft data is recorded on the recording medium, the first area where the data is replaced with the overwrite data is detected, and the acquisition means acquires the first area from the head of the first area. Recording control means for controlling the recording of the overwrite data on the recording medium so that the overwrite data is continuously recorded;
An information processing apparatus comprising: a preliminary recording area arranging unit that arranges a spare recording area in an area where the overwrite data of the first area is not recorded.
前記記録媒体に記録される前記上書きデータを、前記データを編集する場合の基準となる基準単位ごとに取得し、
前記記録媒体上に前記下書きデータが記録されている領域のうち、前記上書きデータにデータが置き換えられる第1の領域を検出し、
前記第1の領域の先頭から、前記上書きデータが連続して記録されるように、前記記録媒体への前記上書きデータの記録を制御し、
前記第1の領域の前記上書きデータが記録されていない領域に、予備の記録領域を配置する
ステップを含む情報処理方法。 In an information processing method of an information processing apparatus for recording overwrite data for each predetermined data unit on a recording medium on which draft data is recorded for each physical recording unit,
The overwriting data recorded on the recording medium is acquired for each reference unit serving as a reference when editing the data,
A first area in which data is replaced by the overwrite data is detected in the area where the draft data is recorded on the recording medium;
Controlling the recording of the overwrite data on the recording medium so that the overwrite data is continuously recorded from the beginning of the first area;
An information processing method including a step of arranging a spare recording area in an area where the overwrite data of the first area is not recorded.
前記記録媒体に記録される前記上書きデータを、前記データを編集する場合の基準となる基準単位ごとに取得し、
前記記録媒体上に前記下書きデータが記録されている領域のうち、前記上書きデータにデータが置き換えられる第1の領域を検出し、
前記第1の領域の先頭から、前記上書きデータが連続して記録されるように、前記記録媒体への前記上書きデータの記録を制御し、
前記第1の領域の前記上書きデータが記録されていない領域に、予備の記録領域を配置する
ステップを含む処理をコンピュータに実行させるプログラム。 A program for causing a computer to execute a process of recording overwrite data for each predetermined data unit on a recording medium on which draft data is recorded for each physical recording unit,
The overwriting data recorded on the recording medium is acquired for each reference unit serving as a reference when editing the data,
A first area in which data is replaced by the overwrite data is detected in the area where the draft data is recorded on the recording medium;
Controlling the recording of the overwrite data on the recording medium so that the overwrite data is continuously recorded from the beginning of the first area;
A program for causing a computer to execute a process including a step of arranging a spare recording area in an area where the overwrite data of the first area is not recorded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007102401A JP2008262610A (en) | 2007-04-10 | 2007-04-10 | Information processor and information processing method, program storing medium, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007102401A JP2008262610A (en) | 2007-04-10 | 2007-04-10 | Information processor and information processing method, program storing medium, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008262610A true JP2008262610A (en) | 2008-10-30 |
Family
ID=39984986
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007102401A Withdrawn JP2008262610A (en) | 2007-04-10 | 2007-04-10 | Information processor and information processing method, program storing medium, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008262610A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011028802A (en) * | 2009-07-23 | 2011-02-10 | Sony Corp | Editing apparatus, editing method, and program |
JP2011028800A (en) * | 2009-07-23 | 2011-02-10 | Sony Corp | Video and audio recording apparatus and editing method |
-
2007
- 2007-04-10 JP JP2007102401A patent/JP2008262610A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011028802A (en) * | 2009-07-23 | 2011-02-10 | Sony Corp | Editing apparatus, editing method, and program |
JP2011028800A (en) * | 2009-07-23 | 2011-02-10 | Sony Corp | Video and audio recording apparatus and editing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5332773B2 (en) | Image processing apparatus and method | |
US7716259B2 (en) | File splitting apparatus, file splitting method and file splitting program | |
US8542746B2 (en) | Decoding control apparatus which decodes the fewest pictures (although not displayed) prior to an edit point | |
JP5011017B2 (en) | Image decoding device | |
US7477831B2 (en) | Apparatus and method for video editing | |
WO2008126157A1 (en) | An editing apparatus and an editing method | |
JP4241839B2 (en) | Data and file system information recording apparatus and recording method | |
JP4251219B2 (en) | Editing apparatus and editing method | |
JP4552802B2 (en) | Recording apparatus, recording method, recording method program, and recording medium recording the recording method program | |
US20080152313A1 (en) | Image processing apparatus | |
JP2001086462A (en) | Moving image recording device and moving image reproducing device | |
JP2008262610A (en) | Information processor and information processing method, program storing medium, and program | |
JP4983429B2 (en) | Transcoder, video storage device, and video data storage / readout method | |
JP4438059B2 (en) | Image reproducing apparatus and control method thereof | |
WO2005043901A1 (en) | Resume reproduction system | |
JP4173094B2 (en) | Method and system for recording video segments on a storage medium | |
JP2008262609A (en) | Information processor and information processing method, program storing medium, and program | |
JP2004355794A (en) | Recording and reproducing device and method | |
JP3670210B2 (en) | Recording method | |
JP2008310889A (en) | Recording and reproducing device | |
JP2000276856A (en) | Device and method for recording data and device and method for reproducing data | |
JP4048809B2 (en) | Data processing apparatus and method, recording medium, and program | |
JP2009105477A (en) | Reproducing device and reproducing method | |
JP4289403B2 (en) | Editing apparatus and editing method | |
JP4614895B2 (en) | Transcoder and transcoding method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20100706 |