The present invention relates to a data recording method, data recording device, data recording medium, data reproduction method, and data reproduction device, concerning recording video or audio data to a random-access storage medium such as a hard disk and an optical disk.
Digital video recording/reproducing devices (hereinafter, video disk recorder) adopting disks as media have become popular. A recording format for such devices is often the QuickTime® file format or the AVI (Audio Video Interleave) file format, in consideration of compatibility with PCs (personal computers).
Japanese Laid-Open Patent Application No. 2001-84705 (Tokukai 2001-84705; published on Mar. 30, 2001) discloses a method for managing contents in a disk when the above-mentioned file format for PCs is adopted. Referring to
An index file 300 stores a table of data in the disk 305. There are entries corresponding to the respective QuickTime movie files. Each entry stores sets of reduced image data 311 through 313 representing respective scenes, and the names of files including these scenes.
To display an index to the user, miniature images 321 through 323 produced by decoding the sets of miniature image data 311 through 313 in the entry are caused to appear on a contents selection screen 307. The user then selects a file that he/she wants to reproduce or edit, from these miniature images on the contents selection screen 307. When, for instance, the user selects the miniature image 323 and instructs the reproduction of the same, a file 303 including the contents corresponding to the miniature image 323 is acquired and the reproduction of the contents in the file 303 starts.
The index file 300 includes (i) pointers to respective files storing the contents of the disk 305 and (ii) sets of miniature image data. Thus, the contents selection screen 307 can be shown only by reading out the index file 300 from the disk 305, so that the time required for causing the index display (contents selection screen) to appear on the screen is short. As the contents selection screen 307 is frequently called, this reduction of the time greatly lighten the frustration of the user.
In recent years, the use of write-once optical disks has increased at a faster rate. A typical example of the write-once optical disks is CD-R. Also, DVD-R has dropped in price and become increasingly common. In the situation where the foregoing index file is applied to these write-once optical disk, the following problem arises.
The index file is a file having a property of increasing its size with use. In write-once disks, additional recording to a once-recorded field is impossible. In dealing with a file increasing its size with use, like index file, it is difficult to use the file without a wasted storage space. For example, if a new index file is additionally written each time addition, deletion, change, or the other of an entry occurs with respect to the index file, a large amount of wasted storage space is caused.
The present invention has been attained in view of the above problem, and an object of the present invention is to provide a data recording method which can reduce a wasted storage space in a write-once storage medium.
A data recording method of the present invention is a recording method for recording a set of first data, a set of second data, and a set of third data on a recording medium, the set of first data including sets of fourth data, the set of third data including sets of information regarding the respective sets of fourth data.
In a data recording method of the present invention, the set of second data may have zero or more sets of data which are same as the sets of fourth data.
In a data recording method of the present invention, whether or not the set of second data includes the same data as the set of fourth data can be based on attribute of the set of fourth data.
In a data recording method of the present invention, the attribute of the set of fourth data may be amount of data.
In a data recording method of the present invention, the attribute of the set of fourth data may be hierarchical information.
In a data recording method of the present invention, the attribute of the set of fourth data may be priority.
In a data recording method of the present invention, the attribute of the set of fourth data may be a time at which data associated with the set of fourth data has been reproduced.
In a data recording method of the present invention, the attribute of the set of fourth data may be recorded on the recording medium.
A data recording method of the present invention may be such that the set of first data and the set of second data are managed as one file, and the set of second data including the set of fourth data is made up of an integer number of recording units.
In a data recording method of the present invention, to store the set of second data including the set of fourth data in the integer number of recording units, a set of ineffective data may be inserted.
In a data recording method of the present invention, a set of data for nullifying the set of ineffective data is recorded on the recording medium.
In a data recording method of the present invention, an insertion position of the set of ineffective data may be a position at which the set of ineffective data can be inserted.
A data recording method of the present invention may be such that the set of first data includes a front and a rear of the set of fourth data, managed as different files, and relevant information between the files is recorded on the recording medium.
In a data recording method of the present invention, the set of first data may include a set of field reserving data.
A data recording method of the present invention may be such that the set of first data and the set of second data are recorded in different files, and reading control information of the files is recorded on the recording medium.
A data recording method of the present invention may be such that the set of first data and the set of second data are managed as different files, and relevant information between the files is recorded on the recording medium.
In a data recording method of the present invention, the relevant information may be represented by a name of the file.
A data recording method of the present invention may be such that the set of third data is a name of a file including the set of fourth data being available and is positional information inside the file.
In a data recording method of the present invention, the set of third data may be information which nullifies the set of fourth data.
In a data recording method of the present invention, the set of third data and the set of fourth data may be recorded in different files.
In a data recording method of the present invention, the set of first data and the set of second data may be managed as one file.
In a data recording method of the present invention, the set of fourth data may be recorded in such a manner that its head position of the fourth data is fit to a boundary of recording units.
In a data recording method of the present invention, the set of second data may be made up of an integer number of recording units.
In a data recording method of the present invention, the set of third data may be positional information of the set of fourth data being available, inside the file.
In a data recording method of the present invention, the set of third data may be information which nullifies the set of fourth data.
In a data recording method of the present invention, the set of third data may be recorded close on the recording medium.
A data recording method of the present invention may be such that sets of fifth data are recorded on the recording medium, and each of the sets of fourth data is information regarding the set of fifth data.
In a data recording method of the present invention, information regarding the set of fifth data may be at least one of representative image data, representative audio data, title data, and attribute data of the set of fifth data.
In a data recording method of the present invention, the recording medium may be write-once medium.
In a data recording method of the present invention, the set of third data may be recorded close to information indicating a last additional writing end position.
In a data recording method of the present invention, the set of second data may be additional data of the set of first data.
A data recording device of the present invention is a data recording device including recording means which records a set of first data, a set of second data, and a set of third data on a recording medium, the set of first data including sets of fourth data, the set of third data including sets of information regarding the respective sets of fourth data.
A data recording medium of the present invention is a recording medium which includes a set of first data, a set of second data, and a set of third data recorded thereon, the set of first data including sets of fourth data, the set of third data including sets of information regarding the respective sets of fourth data.
A data reproduction method of the present invention is a data reproduction method for reproducing a set of data in a recording medium which includes a set of first data, a set of second data, and a set of third data recorded thereon, the set of first data including sets of fourth data, the set of third data being information regarding the set of fourth data, wherein: reproduction control is carried out in accordance with the set of third data.
A data reproduction device of the present invention is a data reproduction device which reproduces a set of data in a recording medium which includes a set of first data, a set of second data, and a set of third data recorded thereon, the set of first data including sets of fourth data, the set of third data being information regarding the set of fourth data, the data reproduction device comprising: control means which carries out control in accordance with the set of third data.
According to the present invention, at the time of recording of additionally written data, information which manages availability/invalidity of an existing data is recorded, whereby the reuse of the existing data is possible, thus reducing wasted recording space.
Further, according to the present invention, at the time of recording of additionally written data, the same data as the existing data is recorded depending on the attribute of the existing data, whereby it is possible to read out data having a particular attribute at a high speed, thus improving responses to the user.
For a fuller understanding of the nature and advantages of the invention, reference should be made to the ensuing detailed description taken in conjunction with the accompanying drawings.
FIGS. 2(a)-2(c) are diagrams illustrating relationships between management information and an AV stream in a QuickTime file format.
FIGS. 11(a)-(c) are diagrams illustrating an example of reproduction range specification by Edit atom.
FIGS. 25(a) and 25(b) are diagrams illustrating a relationship of management information in a UDF.
FIGS. 32(a) and 32(b) are diagrams illustrating a directory/file structure before update of an AV Index file and a recorded state on a storage medium, respectively, in First Embodiment of the present invention.
FIGS. 34(a) and 34(b) are diagrams illustrating an example of a recorded state on the storage medium immediately after recording process is performed, in First Embodiment of the present invention.
FIGS. 45(a) and 45(b) are diagrams illustrating an example of a recorded state on the storage medium before and after merge of the AV Index file in Second Embodiment of the present invention.
FIGS. 51(a) and 51(b) are diagrams illustrating an example of a recorded state on the storage medium after update of the AV Index file in Third Embodiment of the present invention.
FIGS. 53(a) and 53(b) are diagrams illustrating AV Index file update process (in the case when the variation in the amount of data of Movie atom is an integer multiple of sector) in Fourth Embodiment of the present invention.
FIGS. 55(a) and 55(b) are diagrams illustrating AV Index file update process (in the case when the variation in the amount of data of Movie atom is not an integer multiple of sector) in Fourth Embodiment of the present invention.
FIGS. 57(a) and 57(b) are diagrams illustrating an example of a relationship between the AV Index file and fields in Fourth Embodiment of the present invention.
FIGS. 59(a) and 59(b) are diagrams illustrating an example of a recorded state on the storage medium after update of the AV Index file by a third update method in Fourth Embodiment of the present invention.
The following will describe in detail embodiments of the present invention with reference to the attached drawings. Arrangements shared by all embodiments will be described first, and then descriptions specific to respective embodiments will be given.
System Configuration
Note that, the video disk recorder in
The host CPU 101 controls, through the bus 100, the demultiplexer 112, the multiplexer 113, and the pickup 107, the audio decoder 115, the video decoder 116, the audio encoder 117, and the video encoder 118 (despite the members 115 through 118 are not connected to the bus 100 in
On the occasion of reproduction, data being read out from the optical disk 106 through the pickup 107 are error-corrected by the ECC decoder 108 and then temporarily held in the reproducing buffer 110. In response to a data transmission request from the audio decoder 115 and the video decoder 116, the host CPU 101 instructs the demultiplexer 112 to distribute sets of data in the reproducing buffer 110 to decoders appropriate to the respective types of data, with reference to management information regarding the data being reproduced.
Note that, the pickup 107, the ECC decoder 108, the reproducing buffer 110, the demultiplexer 112, the audio decoder 115, the video decoder 116, the host CPU 101, and the RAM 102 constitutes “reproducing means” recited in the claims.
In the meantime, on the occasion of recording, data having been compressed and encoded by the audio encoder 117 and the video encoder 118 is supplied to the multiplexing buffer 114, AV-multiplexed by the multiplexer 113, and then supplied to the recording/after-recording buffer 111. The ECC encoder 109 adds an error-correction code to the data held in the recording/after-recording buffer 111, and then the data is recorded on the optical disk 106 by the pickup 107.
Note that, the pickup 107, the ECC encoder 109, the recording/after-recording buffer 111, the multiplexer 113, the multiplexing buffer 114, the audio encoder 117, the video encoder 118, the host CPU 101, and the RAM 102 constitutes “recording means” recited in the claims.
Audio data is encoded with the MPEG-1 Layer-II, while video data is encoded with the MPEG-2. The optical disk 106 is a DVD-R that is a write-once optical disk. One sector is made up of 2048 bytes, and an ECC block is made up of 16 sectors for the sake of error-correction.
File Format
The following will describe QuickTime file format used as a format for AV stream management in the present invention. The QuickTime file format is a format for multimedia data management which has been developed by Apple Computer Inc., and has been widely used in the PC world.
The QuickTime file format is made up of data including video data and audio data (also collectively referred to as “media data”) and management information. In the present case, the media data and management information are paired up and referred to as QuickTime movie (“movie” for short). The data and management information being paired up may be stored in one file or in different files.
When being stored in one file, the media data and management information are arranged as illustrated in
When being stored in different files, the management information and media data are arranged as shown in
As illustrated in
Now, a format of management information in QuickTime will be described with reference to
Each atom can include another atom. That is, atoms are arranged hierarchically.
Next, how the Sample table atom is structured will be described. Before the description, a method of managing data in QuickTime will be described with reference to
Also, in the QuickTime format, the reproduction time and data size of each sample are in control. A field in a file, in which samples belonging to one track are successively provided in the order of reproduction, is termed “chunk”. Chunks are also assigned numbers beginning from 1, which indicate the order of reproduction.
In the QuickTime format, moreover, the address of each chunk, the address being counted from the head of the file, and the number of samples in each chunk are in control. In accordance with such information, the location of a sample corresponding to a particular time can be figured out.
“Sync sample atom” manages samples that are ready for being decoded in all the samples. “Sample-to-chunk atom” manages the number of samples included in each chunk. “Sample size atom” manages the size of each sample. “Chunk offset atom” manages the address of each chunk, the address being counted from the head of the file.
“Edit atom”, as illustrated in
The Track duration indicates reproduction time of a field on the track, the field being managed by the entry. The Media time indicates the location of the head of the filed on the media data. The Media rate indicates the speed of reproducing the field. Note that, when the Media time is −1, the reproduction of samples on the track is paused for the Track duration of the entry. This field is termed “empty edit”.
First, in the entry #1, the Track duration is 13000, the Media time is 20000, and the Media rate is 1. Thus, in the field from the head of the track to 13000, the field from the time 20000 to the time 33000 in the sample is reproduced. Next, in the entry #2, the Track duration is 5000 and the Media time is −1. Thus, in the field from the time 13000 to the time 18000 in the track, no reproduction is carried out.
At the end, in the entry #3, the Track duration is 10000, the Media time is 0, and the Media rate is 1. Thus, from the time 18000 to the time 28000 of the track, the field from the time 0 to the time 10000 in the sample is reproduced.
Next, the following will describe “Fragmented Movie” that is a concept introduced to respond to power shutdown or others caused during recording. The Fragmented movie is a concept introduced in Motion JPEG2000 that is one application of the QuickTime format, and the Fragmented movie can manage information equivalent to the foregoing Sample table atom for each fragment AV stream. The Motion JPEG2000 normally uses the term “box”, instead of “atom”. However, the following description will use the term “atom” for uniformity.
Recording in this order can minimize damage caused by power shutdown during recording. The Movie atom includes “Movie extends atom” for indicating that the QuickTime movie is a Fragmented movie. The Movie extends atom stores therein a default value for each track included in the QuickTime movie.
Further, the Movie fragment atom includes management information regarding the fragment AV stream managed by the Movie fragment atom. The management information includes: “Movie fragment header atom” which stores therein information regarding the entire fragment AV stream managed by the Movie fragment atom; and “Track fragment atom” which stores therein information regarding each track in the fragment AV stream.
The Track fragment atom includes: “Track fragment header atom” that stores therein information regarding fragment AV stream belonging to the track managed by the Track fragment atom; and “Track fragment run atom” that manages logical successive fields (Track run) making up the fragment AV stream belonging to the track. The following will describe each of the atoms in detail.
Structure of AV Stream
The following will describe a structure of an AV stream which is common to all embodiments of the present invention with reference to
One CU is made up of integer number of Video Units (VU). The VU is a minimum unit that can be reproduced by itself. This allows the VU to be an entry point of the reproduction.
Note that, the GOP is a unit of video compression under the MPEG-2 video standard and is made up of a plurality of video frames (typically, about 15 frames). The AAU is a unit of audio compression under the MPEG-1 Layer-II standard, and is made up of 1152 audio wave sample points. When a sampling frequency is 48 kHz, a reproduction time per AAU is 0.024 second. In the VU, the AAU and the GOP are provided in this order in order to reduce the delay required for carrying out audio/video synchronous reproduction.
To realize the reproduction of each VU by itself, “Sequence Header” (SH) is provided at the head of each set of video data in the VU. The reproduction time of the VU is defined by the multiplication of the number of video frames included in the VU by the cycle of the video frames.
Method of Management AV Stream
A method of managing the AV stream is based on the foregoing QuickTime file format.
Method of Determining CU
Next, how the CU is determined is described. According to this method, one device (reference device model) is assumed as a reference, and keeping this assumption in mind, a unit for sequential recording is determined in such a manner as not to interrupt the seamless reproduction.
First, the reference device model will be described with reference to
It is assumed here that seamless reproduction in the present model is assured on the condition that, at the start of decoding the VU, at least one VU exists on the track buffer 502. The speed of inputting audio frame data to the ECC encoder 501 and the speed of outputting the data from the ECC decoder 501 are both determined as Rs.
Moreover, the maximum period for pausing the reading and recording carried out by accessing is determined as Ta. Further, a period required for a short access (about 100 tracks) is determined as Tk. Note that, each of these periods includes a period for seeking, a period for waiting for the rotation, and a period from the access to the output of data which is initially read out from the disk, the data being outputted from the ECC. In the present embodiment, In the present embodiment, Rs=20 Mbps, Ta=1 second, and Tk=0.2 second.
When the reproduction is carried out using the above-described reference device model, it is possible to assure that there is no underflow of the track buffer 502, if the following condition is met.
Before describing the condition, the definitions of symbols are given as follows: The i-th successive field constituting the AV stream is C#i, and the reproduction time included in the C#i is Tc(i). Tc(i) is an aggregate of the reproduction times of the VUs whose heads are included in the C#i. Also, a period of time for accessing from the C#i to the C#i+1 is Ta.
Furthermore, a period of time of reading out VUs corresponding to the reproduction time Tc(i) is Tr(i). With these symbols in mind, the condition with which the underflow of the track buffer 502 does not occur is represented by the following formula for an arbitrary C#i, provided that the maximum reading time including the jumping between discrete sets of data is Tr(i).
Tc(i)≧Tr(i)+Ta <Formula 1>
This is because, this formula is a sufficient condition to meet the following sufficient condition for seamless reproduction.
ΣiTc(i)≧Σi(Tr(i)+Ta)
Substituting Tr(i)=Tc(i)×(Rv+Ra)/Rs for Tr(i) in Formula 1 and solving the formula for Tc(i), the following condition of Tc(i), which can assure the seamless reproduction, is obtained.
Tc(i)≧(Ta×Rs)/(Rs−Rv−Ra) <Formula 2>
In other words, the seamless reproduction is assured if the aggregate of the VUs whose headers are included in the respective successive fields meets the formula above. On this occasion, it is possible to set a limitation in such a manner as to cause the respective successive fields include complete groups of VUs in which the total reproduction times meet the formula above.
In the automatically-divided movie file, it is also necessary to meet Formula 2. However, the first CU of the first automatically-divided movie and the last CU of the last automatically-divided movie do not necessarily meet Formula 2, because of the following reasons: The first CU can be compensated by causing the start of the reproduction to be later than the start of reading out data from the storage medium. Meanwhile, regarding the last CU, it is unnecessary to care about the successive reproduction as no data follows this CU. Loosening the conditions with regard to the first and last CUs, it is possible to effectively utilize free areas which are short.
File System
The following will describe a UDF (Universal Disk Format) which is a format of a file system adopted in the descriptions of the present invention with reference to FIGS. 25(a)-(b) and
The FSD 603 includes positional information (composed of a logical block number and the number of logical blocks and termed “extent”) of a FE 604 that is a File Entry (FE) of a root directory. The FE manages a group of extents, and the FE rewrites, adds, and deletes the extents so that the sequence of actual sets of data making up a file can be changed, and data can be inserted and deleted. The FE 604 manages a field 605 which stores therein a collection of File Identifier Descriptors (FIDs). The File Identifier Descriptor (FID) stores therein names of files and directories under the root director, and others. A FID 611 and a FID 612 in the field 605 includes sets of positional information of a FE 606 and a FE 608, respectively. The FE 606 and the FE 608 manage file names of a file 621 and a file 622, respectively, and further manages a collection of extents. The FE 606 manages, as extents, a field 607 and a field 610 both of which are fields making up actual data of the file 621. In the present case, for access to actual data of the file 621, links may be followed in the following order: the AVDP 602, the VDS 601, the FSD 603, the FE 604, the FID 611, the FE 606, the field 607 and the field 610.
Next, the following will describe the UDF supporting for a write-once disk with reference to
The following will describe first embodiment of the present invention with reference to
Management Information Format
As described above, to manage various types of files (hereinafter referred to as “AV files”) in a disk, e.g. QuickTime movies and still image data, a special QuickTime movie file termed an AV Index file 1740 is provided in the disk.
Note that, the AV file is equivalent to “main data” recited in the claims, the AV Index file is equivalent to “index data” recited in the claims.
The AV Index file 1740 manages a plurality of entries, and each AV file in the disk is managed by a corresponding entry.
The Movie atom 1791 is made up of the following four tracks: a Property track 1793 for managing sets of attribute information (attribute data) of the respective entries; a Title track 1794 for managing sets of title character string data of the respective entries; a Thumbnail track 1795 for managing sets of representative image data of the respective entries; and an Intro music track 1796 for managing sets of representative audio data of the respective entries.
The sets of attribute information, title character string data, representative image data, and representative audio data regarding the respective entries are managed as samples in the respective tracks 1793 through 1796. Taking the AV file 1741 as an example, the attribute information is managed by the sample 1701 on the Property track 1793, the title character string data is managed by the sample 1711 on the Title track 1794, the representative image data is managed by the sample 1721 on the Thumbnail track 1795, and the representative audio data is managed by the sample 1731 on the Intro music track 1796. The samples are coordinated with each other in accordance with the reproduction start times of the respective samples. That is, it is determined that samples which are on different tracks but reproduced in an identical period correspond to the same entry.
The Movie data atom 1792 stores therein the attribute information, title character string data, representative image data, and representative audio data concerning each AV file.
Note that, the attribute information, title character string data, representative image data, and representative audio data are equivalent to “index information” recited in the claims.
A set of the attribute information is structured as illustrated in
“Creation-time” indicates when the entry corresponding to the attribute information is generated, while “modification-time” indicates when the entry corresponding to the attribute information is modified. “Duration” indicates a reproduction time of the entry corresponding to the attribute information. “File-identifier” stores, when the entry corresponding to the attribute information corresponds to a file, a file name of the file therein.
The “flags” is now described with reference to
Other types of data stored in the Movie data atom 1792 are now described. The representative image data is JPEG-reduced images each having the size of 160×120 pixels, the title character string data is text data, and the representative audio data is data compressed under MPEG-1 Audio Layer-II.
Flow of Entire Process
When the optical disk 106 is inserted, management information of a file system is first read according to the foregoing sequence (Step 2000). Then, an AV Index file is read from the optical disk 106 to display an index screen (Step 2001). Next, it is checked whether or not the AV Index should be recorded on the disk at this timing. The recording timing is a timing when the necessity for temporarily recording information regarding the AV Index file on the optical disk 106 of the RAM 102 arises for the disk eject instruction, power-off, or reading of new information into the RAM 102 from the optical disk 106. If now is the recording timing, AV Index recording process in Steps 2003 and 2004 is performed. On the other hand, if it is not the recording timing, it is checked whether or not any instruction from the user have been received (Step 2008). If any instruction has been received, various processes (see
Next, steps shown in Steps 2003 through 2007 will be described. First, recording of the AV Index file is carried out based on information on the RAM 102 (Step 2003), and file and directory information is recorded (Step 2004). Then, it is checked whether or not a trigger of AV Index recording is power-off or disk eject (Step 2005). If the trigger is power-off or disk eject, the VAT is recorded (Step 2006), and the “Border out” that is a field for indicating an additional writing end position is recorded (Step 2007). In the case of reproduction of this optical disk 106, the VAT must be first read out, the “Border out” is information for looking for the position of the VAT. Therefore, before file reading, a reproduction device always moves its pickup to a radial direction of an optical disk, finds the last “Border out”, and reads out a VAT immediately in front of the “Border out”. An arrangement of the present embodiment in which a field where the content of the latest AV Index file is recorded is placed close to the “VAT” and “Border out” enables reduction of a period for seeking until the AV Index file is read out. This enables quick views of representative image, title, and others to the user, resulting in improvement in responses to the user.
Next, the various processes in Step 2009 will be described with reference to
The following is a detailed description of each process. Here, it is assumed that an initial state before the process is started is such that on the optical disk 106, files have been recorded with a directory structure illustrated in
Recording Process
Recording process in the present embodiment is now described with reference to FIGS. 34(a) and 34(b). When the user instructs recording, the audio encoder 117 and the video encoder 118 are activated to start encoding input data from a camera and microphone not shown in the foregoing encoding scheme. Encoded audio data and video data are multiplexed by the multiplexer 113 in accordance with the foregoing AV stream format. At the time, a size and reproduction time of GOP, which will be necessary for recording Movie atom later, are stored in the RAM 102. Further, head image, which has been extracted as representative image from input video and has been reduced, is JPEG-encoded to generate representative image data, and the representative image data is held in the RAM 102. An AV stream, as a result of multiplexing, is recorded on the optical disk 106 by the pickup 107 by way of the recording/after-recording buffer 111 and the ECC encoder 109. Recording of the AV stream on the optical disk 106 is performed in the right direction from location of 2100 in
In response to an instruction for stopping recording from the user, when an AV stream which remains in the recording/after-recording buffer 1111 is completely recorded on the optical disk 106, the number of bytes of the recorded AV stream is stored in the RAM 102, and then Movie atom is recorded. Recording is started from a sector boundary 2112 as illustrated in
The following will describe the reason for taking such a recording structure. In the QuickTime file format, size in the Movie data atom and content of the Movie atom are sets of information having a property of not being determined before completion of recording. A usual size of the AV stream is larger than that of the recording/after-recording buffer 111, so that the AV stream must be recorded before recording of the Movie atom. At this time, in the case of a rewritable disk, it is possible to return toward the front location (to the left of the AV stream 2100 in
At the time when recording is completed, a line given line number 3 in
Entry Deletion Process
Entry deletion process in the present embodiment will be now described. Here, it is assumed that a state of the AV Index management table before being deleted is in the state illustrated in
Entry Data Change Process
Entry data change process in the present embodiment will be now described. Here, it is assumed that a state of the AV Index management table before entry data is changed is in the state illustrated in
AV Index Recording Process
An AV Index file recording process in the present embodiment will be described with reference to
Next, Sample table of a newly recorded AV Index file is established on the RAM 102 (Step 2404). Specifically, the Sample table is established in such a manner that data having a small amount and desired to be quickly accessed from the user and device because of its importance for them, such as attribute information and title character string data, is recorded in the newly recorded AV Index file, and data less important, such as representative image data and representative audio data (e.g. representative image is ineffective in a device just having display means which displays a character string of one line thereon), except for newly added data, is made reference to the existing AV Index file.
Whether recording in the newly recorded AV Index file or making reference to the existing AV Index file is determined in accordance with attribute of each of the sets of data: attribute information, title character string data, representative image data, and representative audio data. As the attribute of this data considered is the amount of data, as described above. In addition to the amount of data, hierarchal information of the data, priority of the data, a time when the AV file corresponding to the data has been reproduced are also considered. Such a data attribute may be recorded on the optical disk 106.
The above process is performed by the host CPU 101 and the RAM 102 as “index data generation means” recited in the claims.
With this arrangement, it is possible to prevent decrease in access performance to highly important information while reducing wasted recording space. Next, Movie atom of the newly recorded AV Index file is recorded (Step 2405), sets of attribute information and title character string of all entries in the AV Index management table are recorded (Step 2406), and at the end, representative image data and representative audio data, which are added newly, are recorded. What data is newly added is judged from whether or not the representative image data recording location in the AV Index management table is “NULL”.
Note that, the name of the newly recorded AV Index file is a name obtained by addition of 1 to a maximum value of values taken fifth through eighth numbers from the names of the existing AV Index files on the optical disk 106. For example, in the case where the names of the existing AV Index files are AVIF0000.MOV through AVIF0100.MOV, the name of the newly recorded AV Index file is SHRP0101.MOV. With this arrangement, which is the latest AV Index file can be judged from its name, and reference to the AV Index files except for the latest AV Index file can easily reproduce a previous snapshot (state) in the optical disk 106.
Thus, the name of the AV Index file is recorded, as relevant information among the AV Index files, on the optical disk 106, whereby it is possible to easily access to a history of changes made to contents of recording on the optical disk 106. Further, serial numbers are partially put on the names of the AV Index files, whereby the order of histories can be grasped easily.
The following will specifically describe a recorded state on the optical disk 106 immediately after the above process is performed. Here, it is assumed that before the AV Index file recording process is started, there exists an AV Index management table having contents of
Note that, the AV Index file 2204 is equivalent to “old index data” or “first data” recited in the claims. The AV Index file 2242 is equivalent to “new index data (new index data)” or “second data” recited in the claims.
Therefore, the first data is already-recorded data, and the second data is newly-recorded data. Recording timing is different between the first data and the second data, and they are recorded at a distance from each other on the storage medium. On the occasion of reproduction, the first data is read out in preference to the second data. Also, it can be said that the second data is additional data of the first data.
Further, the Movie atom 2231 is equivalent to “third data” recited in the claims, and entry data included in the AV Index file 2204, such as attribute information, title character string data, representative image data, and representative audio data (see
Further, “reference information” or “information regarding fourth data” in the claims are equivalent to any of samples (see
Further, the AV file is equivalent to “fifth data” in the claims. Therefore, it can be said that the fourth data, such as attribute information, title character string data, representative image data, and representative audio data, is data having information regarding the fifth data.
Index File Screen Display Process
The following will describe the index file screen display process in the present embodiment with reference to
As described earlier, in the Step 2301, reference to the AV Index files except for the latest AV Index file makes it possible to easily reproduce a past snapshot (state) in the optical disk 106.
Variations
In the present embodiment, deleted entry and pre-change entry data are not managed by the latest AV Index file. However, they may be managed by the latest AV Index file. Specifically, it can be considered that an entry having attribute such as deletion of the existing entry or change of the existing entry data is defined and added. Alternatively, a table which manages availability/invalidity for each sample may be added and recorded to the Sample table.
Further, in the present embodiment, for reference to the existing data, external reference function of the QuickTime file format is used; however, the same function can be realized by using a function of a file system. For example, a sector including data externally referred in the present embodiment is determined as an extent of the latest AV Index file, and is referred to from the Movie atom, whereby the same function can be realized without using the external reference function of the QuickTime file format. Taking
Moreover, on the occasion of recording entry data such as representative image data, when the head position of the entry data is recorded in such a manner so as to be aligned with a boundary of the sector, the head of the entry data is the head of the extent. This simplifies the foregoing process and decreases a rate of including redundant data in the AV Index file.
In the present embodiment, sets of entry data such as representative image data are stored in the AV Index file. However, only the sets of entry data may be managed collectively, or the sets of entry data may be managed as one file for each type of the entry data. Alternatively, the sets of entry data may be recorded in the AV file so as to be referred to by the AV Index file. With this arrangement, in the AV Index file update process, the entry data can be always referred to a common data file. This eliminates the need for a process of changing a location referred for the entry data.
Furthermore, in the present embodiment, in the latest AV Index file, representative image data or representative audio data included in the existing AV Index file are not recorded, but is referred to the latest AV Index file. However, even the representative image data or representative audio data included in the existing AV Index file may be recorded in the latest AV Index file so that particular data can be read out from the optical disk 106 at a high speed and the responses to the user can be improved. As the particular data considered is, for example, representative image data regarding a recorded AV file in a hierarchal directory at the lower level. Also, it can be naturally considered that at a timing of recording the latest AV Index file (at the time of disk eject or power-off), representative image data and representative audio data regarding a file viewed to the user are recorded in the latest AV Index file. With this arrangement, at the time of disk eject or power-off, it is possible to reproduce the previous state (e.g. screen display) in a short time.
Whether the representative image data and representative audio data are recorded in the newly recorded AV Index file or are referred to the existing AV Index file is determined in accordance with attributes of these representative image data and representative audio data. As this attribute considered is, as described above, hierarchal information of the data and a time at which an AV file corresponding to the data has been reproduced.
As illustrated in
Second embodiment of the present invention will be described with reference to
Management Information Format
A structure of an AV Index file in the present embodiment is the same as that of the AV Index file in First Embodiment, except that “User data atom” in “Movie atom” includes “index link atom” illustrated in
Flow of Entire Process
Since the flow from disk insertion to disk eject or power-off in the present embodiment is the same as that in First Embodiment, description thereof is omitted.
Recording Process
Since the recording process in the present embodiment is the same as that in First Embodiment, description thereof is omitted.
Entry Deletion Process
Since the entry deletion process in the present embodiment is the same as that in First Embodiment, description thereof is omitted.
Entry Data Change Process
Since the entry data change process in the present embodiment is the same as that in First Embodiment, description thereof is omitted.
AV Index Recording Process
The AV Index recording process in the present embodiment will be described with reference to
Next, in accordance with information in the AV Index management table, Sample table is established (Step 3103). Specifically, each line added after insertion of the optical disk 106 is first determined as one entry, and for each entry, a sample which manages attribute information, representative image data, representative audio data, and title character string data is generated.
Then, information is stored in the sample depending on type of the line. As to a line indicating entry deletion, “invalid” is set in “status of entry” of the attribute information, and size information of the sample which manages representative image data, representative audio data, and title character string data is set to 0. As to the other lines, a sample is made up in such a manner that the latest attribute information, representative data, representative audio data, and title character string data are recorded in the latest AV Index file. Note that, “invalid” set in the status of entry is information which makes invalid the entry corresponding to that line. The status of entry is equivalent to “third data” recited in the claims.
Next, Movie atom is recorded (Step 3104), and at the end, attribute information, representative data, representative audio data, and title character string data are recorded. Note that, in the field “previous” in the index link atom of the Movie atom, the file name of the previous latest AV Index file is stored.
Note that, the name of the newly recorded AV Index file is a name obtained by addition of 1 to a maximum value of values taken fifth through eighth numbers from the names of the existing AV Index files on the optical disk 106.
The following will specifically describe a recorded state of the optical disk 106 immediately after the foregoing process. Here, it is assumed that before the AV Index file recording process is started, there exists an AV Index management table having the contents of
In First Embodiment, the Movie atom in the latest AV Index file manages information regarding all entries existing in the optical disk 106. Therefore, the Movie atom in the latest AV Index file includes duplicate information of the Movie atom in the previous AV Index file, and the duplicate information causes wasted storage space by the amount thereof. On the contrary, in the present embodiment, the Movie atom of the latest AV Index file manages only the differences (addition and deletion of entries, and change of entry data) from the previous AV Index file, so that the present embodiment has the advantage of less duplicate recording of management information, as compared to First Embodiment.
AV Index Merge Process
When the foregoing AV Index recording is repeated, a plurality of AV Index files are recorded in a dispersed manner on the optical disk 106, as illustrated in
The merge process is described using an example.
Thus, information stored in the field “previous” of the index link atom in the User data atom of the Movie atom is information for controlling reading of files, and this information is equivalent to “reading control information” recited in the claims.
Edit-Process Redoing Process
As described above, the AV Index file is recorded at the time of disk eject or power-off, or at an arbitrary timing, so that a previous snapshot (state) by the recorded AV Index file can be easily reproduced.
Edit operation or other operations performed during a period from reading of the existing AV Index from the disk to writing of the changed AV Index into the disk can be easily cancelled since the AV Index management table is on the RAM. Meanwhile, a lower number in the AV Index file name shows that the AV Index file was generated earlier, so that it is easy to return to a previous state by the AV Index. It is possible to identify when the AV Index file was generated, in accordance with date and time information set in the AV Index file.
In the present case, it is considered to return the latest AV Index file to a three previous AV Index file, for example. Here, “return” means that the contents of the present AV Index management table on the RAM and edit operation managed on the first and second previous AV Index files are all abandoned to return to the three previous AV Index file. This is realized by going, three times, steps back to the previous AV Index file managed in the field “previous” of the index link atom. The three previous AV Index file grasped by the index link atom is read out from the disk, and edit operation or other operations is continued with respect to the three previous AV Index file. On the occasion of actual recording of the latest AV Index file to the disk, the file name of the three previous AV Index file is stored in the field “previous” of the index link atom in the User data atom of the Movie atom.
With this arrangement, on the occasion of reading the AV Index file by returning from the latest AV Index file to a previous AV Index file, reference to the field “previous” makes it possible to prevent data for which edit operation has been cancelled from being read again. Further, the AV Index file for which edit operation has been cancelled still remains, so that a function of easily reproducing a previous state including the cancelled edit operation is not impaired. Furthermore, what are recorded to cause the three previous AV Index file to be the latest AV Index file are, as an AV Index file having a file number that is not used and having the highest file number among AV index files in the disk, (1) a special AV Index file storing one attribute information in which 0 (no entry is managed) for the number of samples is recorded to indicate that no available entry is managed or (2) a special AV Index file storing one attribute information in which “NULL” is recorded to all fields to indicate that no available entry is managed, and (3) a special AV Index file storing the file name of the three previous AV Index file in the index link atom. This makes it possible to go back to the three previous AV Index file from the first read AV Index file having the highest file number among the AV Index files in the disk.
Index File Screen Display Process
The following will describe the index file screen display process in the present embodiment with reference to
Note that, when attribute information of a line having the same entry-number as that of the line already existing in the AV Index management table is read out, the information is discarded. Upon completion of reading of available entry data, the file is closed (Step 2306). Then, the field “previous” of the index link atom in the previously opened AV Index file is referred to in order to acquire the name of an AV Index file to be read next (Step 3207). Next, it is determined whether or not the previously opened AV Index file is an AV Index to be last read (Step 3208). Specifically, if “NULL” indicating that there is no reference is specified to the name of the AV Index file to be read next in the index link atom, it is determined that the previously opened AV Index file is the last AV Index. If that AV Index is not the AV Index to be read last, a file having the name of the AV Index file to be read next is opened (Step 3209), and Step 3203 and the subsequent steps are performed.
As described above, in the Step 3201, reference to the AV Index file except for the latest AV Index file makes it possible to easily reproduce a previous snapshot (state) in the optical disk 106.
Variations
In the present embodiment, in updating entry data such as representative image data, all sets of entry data in an entry including the entry data to be updated are re-recorded. Taking
Further, in the present embodiment, entry deletion is carried out by addition of an entry having the same entry-number and “invalid” status of entry. Alternatively, entry deletion may be carried out by deletion of an AV Index file which manages an entry to be deleted. In this case, the number of entry managed in each AV Index file is limited to one. Further, entry deletion may be carried out by changing the file name of the AV Index file which manages an entry to be deleted, so as to make it ineffective.
The following will describe third embodiment of the present invention with reference to
Management Information Format
For example, when Movie fragment atom 4103 manages m-number of entries, m-number of samples are managed respectively for attribute information, representative audio data, representative image data, and title character string data. The data corresponding to the sample is stored in Movie data atom 4102 that is Movie data atom which corresponds to the Movie fragment atom 4103.
Note that, formats of attribute information, representative audio data, representative image data, and title character string data are the same as those in First Embodiment, so that descriptions thereof are omitted.
Flow of Entire Process
A flow from disk insertion to disk eject or power-off in the present embodiment is the same as that in First Embodiment, so that descriptions thereof are omitted. Here, it is assumed that an initial state before the process is started is such that on the optical disk 106, files have been recorded with a directory structure which is the same as that in First Embodiment, illustrated in
Further, as to SHRP0001.MOV, attribute information, title character string data, and representative image data are recorded in a field 4212, a field 4215, and a field 4218, respectively. As to SHRP0002.MOV, attribute information, title character string data, and representative image data are recorded in a field 4213, a field 4216, and a field 4219, respectively. As to SHRP0003.MOV, attribute information, title character string data, and representative image data are recorded in a field 4214, a field 4217, and a field 4220, respectively, and at the end, Movie fragment atom which manages the foregoing sets of entry data and Skip atom which will be described later are recorded in a field 4221 and a field 4222, respectively. Further, it is assumed that as a result of the index screen display process described later, a table, illustrated in
Recording Process
Since recording process in the present embodiment is the same as that in First Embodiment, description thereof is omitted.
Entry Deletion Process
Since an entry deletion process in the present embodiment is the same as that in First Embodiment, description thereof is omitted.
Entry Data Change Process
Since entry data change process in the present embodiment is the same as that in First Embodiment, description thereof is omitted.
AV Index Recording Process
AV Index recording process in the present embodiment will be described with reference to
Thereafter, to cause the field subjected to recording at this time to be included in the existing AV Index file, this field is added as new extent to the FE which manages the AV Index file, and the FE is additionally written into the disk. The size adjustment using the Skip atom is carried out to be consistent as QuickTime file even when the extent adding process is carried out.
Thus, the FE which is added the extent thereto and is additionally written into the disk is equivalent to “third data” recited in the claims.
The following will specifically describe a recorded state on the optical disk 106 immediately after the above process is performed. It is assumed that before the AV Index file recording process is started, there exists an AV Index management table having contents of
To fields 4236 and 4237 respectively recorded are sets of representative image data of SHRP0002.MOV 4202 and SHRP0004.MOV 4241. To fields 4238 and 4239 respectively recorded are Movie fragment atom and skip atom for aligning the bottom end of the file with a sector boundary. In the situation that existing information and latest information regarding the AV Index file are recorded in fields 4204 and 4242, respectively, and the field 4242 is added, as a subsequent extent, to the FE of the AV Index file, fields of the AV Index file are read sequentially in the direction from left to right in
Index File Screen Display Process
The following will describe Index file screen display process in the present embodiment with reference to
Variations
The present embodiment, as with Second Embodiment, makes it possible to reduce wasted recording space by recording type information of entry data to be changed illustrated in
Further, in the present embodiment, entry deletion is carried out by additionally writing an entry having the same entry-number. Alternatively, entry deletion may be carried out by deleting, from the FE of the AV Index file, an extent corresponding to Fragmented Movie which manages an entry to be deleted. Note that, it is necessary to ignore discontinuous sequence-numbers.
Still further, in the present embodiment, reading of the file starts from the head of the file, so that a time to access to recently recorded sets of entry data tends to be longer. In order to avoid this problem, the FE of the AV Index file may be set so that sets of entry data are arranged in an order such that a newly recorded entry data comes first. In this case, needless to say, as has been described in the First and Second Embodiments, duplicate recording of only entry data having a particular attribute may be carried out for high-speed access to entry data.
The following will describe fourth embodiment of the present invention with reference to FIGS. 53(a) through 59(b). The present embodiment is similar to First Embodiment; however, the present embodiment is different from First Embodiment in that recorded data including Movie atom is reused wherever possible by manipulation of the FE regarding the AV Index file. The following description focuses on AV Index file update process.
A management information format of the present embodiment is the same as that of First Embodiment, so that description thereof is omitted.
AV Index File Update Process (in the Case when the Variation in the Amount of Data in Movie Atom is an Integer Multiple of Sector)
First, referring to FIGS. 53(a), 53(b), and 54, the following will describe AV Index file update process in the case when the variation in size of the Movie atom is only an integer multiple of sector (including the case when the size of the Movie atom does not change by update of the AV Index file).
First, the following will describe
It is assumed that the AV Index file illustrated in
According to change process, post-change attribute information 5113, post-change atom header 5112, and change result 5114 of the change-required part 5104 are recorded in the following manner: First, as to the post-change attribute information 5113, the data 5205, the attribute information 5113, padding 5207, and the data 5206 are recorded in this order. The padding 5207 is invalid data for making the amount of aggregate data of the data 5205, the attribute information 5113, the padding 5207, and the data 5206, equal to an integer multiple of a sector size.
Note that, the padding 5207 is equivalent to “ineffective data” recited in the claims.
Next, as to the post-change atom header 5112, the data 5203, the atom header 5112, and the data 5204 are recorded in this order. For the atom header 5112, there occurs no change in the amount of data, so that there is no need to use such a padding that has been described in association with recording of the attribute information.
Next, as to the change result 5114, the data 5207, the change result 5114, and the data 5202 are recorded in this order. As mentioned above, there occurs no change in the amount of data, so that there is no need to use the padding.
At the end, the FE of the AV Index file is structured and additionally written so that R1, R10, R3, R9, R5, R6, and R8 in
Such a FE restructured and additionally written is equivalent to “third data” recited in the claims.
According to the above-mentioned process, the AV Index file is rewritten as illustrated in
The foregoing AV Index file update process minimizes wasted recording space caused by the change.
AV Index File Update Process (in the Case when the Variation in the Amount of Data in the Movie Atom is not an Integer Multiple of Sector)
Next, referring to FIGS. 55(a), 55(b), and 56, the following will describe AV Index file update process in the case when the variation in size of the Movie atom is variation except for an integer multiple of sector.
It is assumed that the AV Index file illustrated in
According to change process, the data 5311, the data 5313, the additional management information 5303, and the additional entry data 5302 are recorded in the following manner: First, the data 5311, the additional management information 5303, the data 5313, and data 5314 are recorded in this order from the top sector of the sectors. Also, the additional entry data 5302 is recorded in another sector string. Note that, the data 5314 is ineffective data that exists from the end of the data 5313 to the end of the sector. At the end, as illustrated in
On the occasion of reading the AV Index, the SKIP0000.DAT is read out immediately before the reading, and in accordance with information of the SKIP0000.DAT, the AV Index file is interpreted.
The above-mentioned update process minimizes duplicate recording of data in the Movie atom, caused by update of the AV Index file.
Variations
In the present embodiment, sets of data including ineffective data are combined into one file. Alternatively, the sets of data may be managed by a plurality of files, i.e. one partial AV Index file 5321 and one partial AV Index file 5324. The partial AV Index file 5321 manages R11, the data 5311, the additional management information 5303, and the data 5313. The partial AV Index file 5324 manages R13 and the additional entry data 5302. Successive reading of the partial AV Index file 5321 and the partial AV Index file 5324 realizes reconstruction of the AV Index file on the RAM 102. As a method of managing the order of reading a plurality of files considered is the following method. For example, it can be considered that as for files making up the latest AV Index file, the files are assigned file names, like AVIF0001.MOS and AVIF0002.MOS, indicating the order in which the files are read. Here, the extension “MOS” indicates a divided file. Also, it can be considered that a file recording the order in which the files are read is generated and the generated file is always referred to when the AV Index is read.
Further, it can be considered that additional data including the additional management information 5303 is recorded, in another file, together with information which manages an addition position and the generated file is always referred to when the AV Index is read.
Further, in the present embodiment, in the case where the data size of the additional management information is less than an integer multiple of sector, padding is inserted. For the padding, an atom in the QuickTime file format may be used. This is described with reference to
From the foregoing sets of data, the data 5311, the additional management information 5303, the data 5321, padding 5323, and the data 5322 are recorded in this order. Here, the padding 5323 is inserted so that the foregoing sets of data becomes the amount of data that is an integer multiple of sector, and what is used for the padding 5323 is an ineffective atom ignored in reproduction, like the foregoing skip atom. At the end, the FE of the AV Index file is structured and additionally written so that R11, R23, R22, R16 are read in this order from the AV Index file. Thus, to add data that is not an integer multiple of sector, insertion of an atom for size adjustment into the boundary between atoms reduces additional writing of data, and in addition, enables interpretation of the AV Index file without reference to other files.
Still further, the present embodiment assumes that the update process causes increase or decrease in atom size of the Movie atom. Alternatively, it can be considered that for an atom which increases or decreases its size (e.g. edit atom and sample atom), a space of sufficient size is held at the initial recording of the AV Index file, and to an unassigned field, as illustrated in
Further, instead of insertion of ineffective atom into an unassigned field at the time of initial recording of the AV Index file, a sufficient number of empty samples may be registered, as illustrated in
Also, needless to say, the update process described in the present embodiment is applicable to not only the AV Index file but also the AV file.
Note that, in the foregoing embodiments, DVD-R is used as a recording medium. However, needless to say, the present invention is applicable to a recording medium except for DVD-R, provided that the recording medium is a write-once recording medium. In addition, apart from the write-once recording medium, the present invention is also applicable to a recording medium which is put limitations on the number of times it is rewritten, e.g. flash ROM. Therefore, in the present embodiments, a unit for data management is sector. However, in the case where the present invention is applied to different recording media, the sector is replaced by data management/recording units of the respective recording media.
Note that, in the foregoing embodiments, UDF is used for a file system. However, a file system of the present invention is not limited to the UDF.
Further, in the foregoing embodiments, AV data such as audio data and video data is used as data. However, data of the present invention is not limited to the AV data.
Note that, in the foregoing embodiments, QuickTime file format is used as a file format. However, a file format of the present invention is not limited to the QuickTime file format.
As described above, according to the present invention, at the time of recording of additionally written data, information which manages availability/invalidity of an existing data is recorded, whereby the reuse of the existing data is possible, thus reducing wasted recording space.
Further, according to the present invention, at the time of recording of additionally written data, the same data as the existing data is recorded depending on the attribute of the existing data, whereby it is possible to read data having a particular attribute at a high speed, thus improving responses to the user.
Note that, specific manners or embodiments implemented in the best mode for carrying out the invention only show technical features of the present invention and are not intended to limit the scope of the invention. Variations can be effected within the spirit of the present invention and the scope of the following claims.
The present invention relates to a data recording method, data recording device, data recording medium, data reproduction method, and data reproduction device, concerning recording video or audio data to a random-access storage medium such as a hard disk and an optical disk. In write-once media, there occurs wasted recording space at the time of update of an index file for AV file management. In view of this, a new index file is generated at the time of update, and thumbnail image data in an existing index file is referred to, whereby the wasted space is reduced, At the same time, attribute information is stored in the new index file, whereby access to minimum information required can be faster.
Number | Date | Country | Kind |
---|---|---|---|
2002-073524 | Mar 2002 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP03/03210 | 3/17/2003 | WO |