The present invention relates to an information processing technique for recording and reproducing moving image data or the like on and from a disk-shaped recording medium.
In recent years, camera integrated type recording/reproduction apparatuses (to be referred to as “video cameras” hereinafter) which adopt disk-shaped recording media (to be referred to as “disks” hereinafter) such as a DVD and the like as recording media for recording various data are commercially available. In such video camera, data input/output processes characterized by random access to recording media unlike in magnetic tapes are made.
For example, the video camera can record moving image data, still image data, or audio data associated with captured scenes as files at arbitrary locations of a disk. Also, the video camera can execute an easy, high-speed reproduction process of recorded data by directly accessing respective files in a reproduction mode (e.g., see Japanese Patent Laid-Open No. 2002-314916).
In general, when files of moving image data, audio data, and the like are to be recorded on a disk, these data are divided into a plurality of groups of continuously recorded data, and these groups of data are recorded on separated areas on the disk. An area on the disk where the group of data which forms a part of file and is recorded on a continuous area will be referred to as an “extent” hereinafter.
Upon reproducing moving image data and audio data which are divisionally recorded on a plurality of extents, a head used to reproduce data requires a certain period of time (seek time) when it moves between the extents. When the extent size is small, data to be reproduced cannot be supplied in time, and continuous reproduction is often disturbed. For this reason, in a DVD as one of disks adopted in the video camera, a minimum recording unit that satisfies a length required for a continuous reproduction process of moving image data and audio data is specified as a standard. In general, such minimum recording unit that guarantees continuous reproduction is called a CDA (Continuous Data Area).
However, when a continuous free area is discontinued upon recording moving image data on the disk, and an extent after seek has a size smaller than the minimum recording unit, continuous reproduction may be disturbed due to the presence of such extent upon making continuous reproduction with another moving image data.
The present invention has been proposed to solve the conventional problems, and has as its objects to provide an information processing method and information processing apparatus, which can set all extent sizes of data divisionally recorded on a disk to be equal to or larger than the minimum recording unit, and can guarantee continuous reproduction of the divisionally recorded data.
In order to achieve the above object, according to the present invention, there is provided an information processing method for recording data on a recording medium, comprising:
a re-recording step of re-recording predetermined data of the data, which is divisionally recorded on different recording areas, onto a new recording area which has a size not less than a minimum recording unit specified in the recording medium.
Furthermore, in order to achieve the above object, according to the present invention, there is provided the method, wherein the re-recording step includes a step of generating new data, which has a size not less than the minimum recording unit, by combining the predetermined data and data immediately before the predetermined data, which is recorded on another recording area, and re-recording the new data on the new recording area.
Furthermore, in order to achieve the above object, according to the present invention, there is provided an information processing apparatus for recording data on a recording medium, comprising:
re-recording means for re-recording predetermined data of the data, which is divisionally recorded on different recording areas, onto a new recording area which has a size not less than a minimum recording unit specified in the recording medium.
Furthermore, in order to achieve the above object, according to the present invention, there is provided the apparatus, wherein the re-recording means comprises means for generating new data, which has a size not less than the minimum recording unit, by combining the predetermined data and data immediately before the predetermined data, which is recorded on another recording area, and means for re-recording the new data on the new recording area.
Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
Preferred embodiments of the present invention will be described hereinafter with reference to the accompanying drawings.
[Arrangement of Information Processing Apparatus]
The disk controller 3 actually writes data on the disk 5, and reads out recorded data from the disk 5. A recording/reproduction head 4 reads/writes data from/on the disk 5. Note that the disk controller 3 comprises a buffer RAM 8 used to temporarily store data upon read/write access to the disk 5.
Reference numeral 6 denotes actual data (existing write data) which has already been written on the disk 5; and 7, actual data (new write data) which is newly written on the disk 5. In this embodiment, a single file is divided into partial data which are recorded on different areas on the disk 5, and a plurality of recording areas are present. However, in practice, a single file is continuously recorded on a single recording area in some cases.
[CDA in Moving Image Sole Reproduction Mode]
As shown in
The method of calculating the CDA in the moving image sole reproduction mode will be described below using
That is, when the transfer rate upon reading out data from the disk is St (bps), the time required to read data in the extent from the disk is given by (Sv×Tv+Dv)/St (sec). If a time required until the recording/reproduction head 4 reaches the next extent is Tj (sec), the data read process and head seek process must be completed within the reproduction time Tv (sec) of the moving image data included in one extent. That is, the following inequality need only be satisfied:
From the above inequality, we have:
Hence, the CDA is defined by:
where Tv is the minimum recording time (sec) of a moving image that guarantees continuous reproduction, and Lv is the minimum recording size (bits) of a moving image that guarantees continuous reproduction. In the above description, “sec” and “bits” are used as units of time and size, but other units may be used.
Tv≧2.0 sec
Lv≧3.0 MB (4)
If no defective block is present, data can be recorded to have a minimum extent size of 3.0 M (B). Upon calculation while changing the condition, if the moving image reproduction rate Sv is 6 M (bps), we have:
Tv≧1.33 sec
Lv≧1.0 MB (5)
As can be seen from these inequalities, when the moving image reproduction rate becomes ½, the minimum recording time becomes about ⅔, and the minimum recording size becomes about ⅓. Note that this change amount depends on the transfer rate St and moving image reproduction rate Sv. Furthermore, when the defective block size Dv is 30K (B), i.e., the defective block ratio is about 10% of the minimum recording size, we have:
Tv≧2.2 sec
Lv≧3.6 MB (6)
As can be seen from these inequalities, when the defective block ratio increases 10%, the minimum recording time increases about 10%, and the minimum recording size increases about 20%.
[Actual Data Recording Size]
In an actual apparatus, the maximum seek time Tj and transfer rate St are constant. Hence, upon actually recording data, the CDA size is determined based on the reproduction rates of moving image data and audio data, and the defective block size. Normally, the CDA size is determined in advance in consideration of the worst case irrespective of the reproduction rate and defective block size. Note that the audio reproduction rate is normally constant, and a change in audio reproduction rate is sufficiently smaller than that in moving image reproduction rate even if it takes place. Hence, the influence of the change in audio reproduction rate on a change in CDA can be ignored.
Data is written in an extent 11 on the disk 5 via the buffer RAM 8 (step S51). When data is continuously written in the extent 11 (a portion denoted by reference numeral 12) via the buffer RAM 8, since the file system driver 2 reaches an extent 16 including existing write data (YES in step S52), it seeks another extent 13 on the disk 5, and writes the remaining data on that extent (step S53). Assume that the remaining data written in the extent 13 comes to an end to be shorter than the minimum recording time. As described above, the presence of an extent smaller than the minimum recording unit disturbs continuous reproduction of the data.
If the application program 1 acquires information indicating that the write access is completed to be smaller than the minimum recording unit after seek from the file system driver 2 after data is recorded on the disk 5 (YES in step S54), it generates data for at least the minimum recording unit by combining data of the extent 13 after seek and the data 12 of the extent 11 before seek, and copies that data to another area on the disk 5 (step S55). Then, the copy source areas (extents 12 and 13) are released to be able to be used in the next write access (step S56).
In the description of this embodiment, the areas of the disk 5 before and after seek are read again and copied. However, in practice, data immediately after the write access normally remains stored in the buffer RAM 8 in the disk controller 3. In this case, when the corresponding contents of the buffer RAM 8 are written in the disk 5 again, data need not be sought and read out again. Each extent that records partial data other than the last part is normally recorded to have a size equal to or larger than the minimum recording unit. Even when extents other than the final part include an extent having a size smaller than the minimum recording unit, it can be processed by the same sequence as described above, so that all extends can have a size equal to or larger than the minimum recording unit.
Data is written in an extent 21 on the disk 5 via the buffer RAM 8 (step S71). When data is continuously written in the extent 21 (a portion denoted by reference numeral 22) via the buffer RAM 8, since the file system driver 2 reaches an extent 26 including existing write data (YES in step S72), it seeks another extent 13 on the disk 5, and writes the remaining data on that extent (step S73). Assume that the remaining data written in the extent 13 comes to an end to be shorter than the minimum recording time.
If the application program 1 acquires information indicating that the write access is completed to be smaller than the minimum recording unit after seek from the file system driver 2 after data is recorded on the disk 5 (YES in step S74), it generates data (data including data 24 and 25) by combining data of the extent 23 after seek and the data 22 (for at least the minimum recording unit) of the extent 21 before seek, and copies that data to another area on the disk 5 (step S75). Then, the copy source areas (extents 22 and 23) are released to be able to be used in the next write access (step S76).
As described above, according to this embodiment, when moving image data or the like to be recorded on the disk 5 is recorded in an extent smaller than the minimum recording unit, temporarily recorded data is copied, so that all extends have a size equal to or larger than the minimum recording unit, thus guaranteeing continuous reproduction of data recorded on the disk 5. By deleting source data after copy, another data can be recorded on the released area. Furthermore, as described in the application example, since an area to be released after copy has a size equal to or larger than the minimum recording unit, another data can be recorded in the released area to have a size equal to or larger than the minimum recording unit, thus further improving the disk use efficiency.
The first embodiment solves the following problem: when the continuous free area is disconnected upon recording moving image data on the disk, and the write process ends before the recorded size after seek reaches the minimum recording unit, continuous reproduction is disturbed upon making continuous reproduction with another moving image data. The second embodiment will explain an information processing method and information processing apparatus, which solves the following problem: when the write process ends before the size of a continuous free area immediately after completion of moving image recording on the disk reaches the minimum recording unit, that area cannot be used as an area for recording another moving image data.
Note that the arrangement of the information processing apparatus, CDA in the moving image sole reproduction mode, and actual data recording size used in the second embodiment are the same as those of the information processing apparatus according to the first embodiment, and a detailed description thereof will be omitted.
Data is written in an extent 31 on the disk 5 via the buffer RAM 8 (step S91). Data is continuously written in the extent 31 (a portion of data 32) via the buffer RAM 8, and it is checked if the write process is complete (step S92). The file system driver 2 checks if a portion Tr to an extent 34 as the next recording area of existing write area has a size smaller than the minimum recording unit (step S93). As a result, if Tr is smaller than the minimum recording unit (YES in step S93), the data 32 for at least the minimum recording time is copied from the end of data to another area (extent 33) (step S94). The data 32 as the copy source is released to be able to be used in the next write process (step S95). In this manner, the released free area can have a size equal to or larger than the minimum recording unit, and data recorded on this free area can be appropriately reproduced, thus preventing a wasteful area from being formed on the disk.
In the description of this embodiment, image data for the minimum recording time is read again and copied. However, in practice, the disk controller 3 comprises the buffer RAM 8, and data immediately after the write access normally remains stored in the buffer RAM 8. In this case, when the corresponding contents of the buffer RAM 8 are written again, data need not be sought and read out again.
As described above, according to this embodiment, when a continuous free area which follows an extent that records moving image data or the like to be recorded on the disk has a size smaller than the minimum recording unit, data is automatically copied, so that the continuous free area of interest has a size equal to or larger than the minimum recording unit. Hence, even when another data is recorded in that free area, continuous reproduction of moving image data can be guaranteed.
This embodiment will explain an information processing method and information processing apparatus, which can reduce the number of times of seek in an after-recording reproduction mode.
[CDA in General After-Recording Reproduction Mode]
The CDA in a general after-recording reproduction mode will be explained first. After recording is practiced by simultaneously reading files of moving image data and audio data which are recorded as independent files on a disk, and replacing audio data included in the moving image data by the after-recording audio data. The same applies to a case wherein an audio channel included in moving image data is mixed with that of another file upon output, in addition to after recording.
When continuous reproduction is made from different extents, the seek time of the head is generated between the extents (seek time 3). In case of after recording, a seek time is generated to read out audio data during the read process of the moving image data (seek times 1 and 2). For this reason, when the sum of the read times of data recorded in the extents of moving image data and audio data and the seek time to the next data is longer than the data reproduction time in the extents, continuous reproduction of after recording data is disturbed. Hence, the CDA (minimum recording area) must be specified even in the after-recording mode.
The method of calculating the CDA in the after-recording reproduction mode will be described below using
From the above inequalities, we have:
(minimum values of Tv and Ta are equal to each other), and the CDA is defined by:
where Tv and Ta are the minimum recording times (sec) of moving image data and audio data that guarantee continuous reproduction, respectively. Also, Lv and La are the minimum recording sizes (bits) of moving image data and audio data that guarantee continuous reproduction, respectively. As can be seen from the above inequalities, the minimum values of Tv and Ta are equal to each other. In this embodiment as well, “sec” and “bits” are used as units of time and size, but the present invention is not limited to such specific units.
However, with the CDA in the general after-recording reproduction mode, the minimum recording unit is defined under the assumption that the number of streams is one, and when the minimum recording unit is changed later to make reproduction while switching a plurality of image and audio streams by the after-recording process or the like, the number of times of seek increases, and the effective data size included in the initial minimum recording unit decreases, thus disturbing continuous reproduction. When the minimum recording unit is defined in advance under the assumption of reproduction which is made while switching a plurality of streams, a large recording unit more than necessary is required.
Furthermore, as described above, the moving image minimum recording time Tv, audio minimum recording time Ta, moving image minimum recording size Lv, and audio minimum recording size La upon making after-recording reproduction using moving image data and audio data are influenced by three seek times Tj. Hence, the third embodiment will explain an information processing apparatus which comprises a mechanism for reducing the number of times of seek.
[Arrangement of Information Processing Apparatus]
The disk controller 113 actually writes data on the disk 115, and reads out recorded data from the disk. Note that the disk controller 113 comprises a buffer RAM used to temporarily store data upon read/write access to the disk 115.
Reference numeral 116 denotes data recording areas of actual moving image data, audio data, and the like which have already been written on the disk 115. A recording/reproduction head 114 is used to read/write data from/on the disk 115. In this embodiment, one file may be recorded on a continuous area or may include a plurality of data divisionally recorded on different areas.
In
[CDA in After-recording Reproduction Mode]
Let Tj (sec) be the time (seek time) required for the head to move between extents. Then, in order to continuously make after-recording reproduction without any disruption, the data read process and head seek process must be completed twice within the reproduction times Tv and Ta (sec) of the moving image data and audio data included in one each extents. That is, the following inequalities need only be satisfied:
From the above inequalities, we have:
(minimum values of Tv and Ta are equal to each other), and the CDA is defined by:
where Tv and Ta are the minimum recording times (sec) of moving image data and audio data that guarantee continuous reproduction, respectively. Also, Lv and La are the minimum recording sizes (bits) of moving image data and audio data that guarantee continuous reproduction, respectively. As can be seen from the above inequalities, the minimum values of Tv and Ta are equal to each other. As is understood from comparison between inequalities (9) associated with the general CDA, and inequalities (12) associated with the CDA in this embodiment, since the number of times of seek is reduced from 3 to 2, the influence of the seek time is reduced by ⅔ times. In this embodiment as well, “sec” and “bits” are used as units of time and size, but the present invention is not limited to such specific units.
[Actual Data Recording Size]
In an actual apparatus, the maximum seek time Tj and transfer rate St are constant. Hence, upon actually recording data, the CDA size is determined based on the reproduction rates of moving image data and audio data, and the defective block size.
As described above, according to this embodiment, upon reading streams of moving image data and audio data recorded on the disk, when a stream discontinuous point that requires seek is present until data having a size smaller than that twice the minimum recording unit is present, the data size to be read onto the buffer RAM is increased to a size smaller than that twice the minimum recording unit in maximum. In a discontinuous portion, another stream is sought to read it out, and the original stream is then sought. Hence, an increase in minimum recording unit can be suppressed upon supporting the after-recording reproduction mode.
Note that the present invention can be applied to an apparatus comprising a single device or to system constituted by a plurality of devices.
Furthermore, the invention can be implemented by supplying a software program, which implements the functions of the foregoing embodiments, directly or indirectly to a system or apparatus, reading the supplied program code with a computer of the system or apparatus, and then executing the program code. In this case, so long as the system or apparatus has the functions of the program, the mode of implementation need not rely upon a program.
Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the claims of the present invention also cover a computer program for the purpose of implementing the functions of the present invention.
In this case, so long as the system or apparatus has the functions of the program, the program may be executed in any form, such as an object code, a program executed by an interpreter, or scrip data supplied to an operating system.
Example of storage media that can be used for supplying the program are a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a CD-RW, a magnetic tape, a non-volatile type memory card, a ROM, and a DVD (DVD-ROM and a DVD-R).
As for the method of supplying the program, a client computer can be connected to a website on the Internet using a browser of the client computer, and the computer program of the present invention or an automatically-installable compressed file of the program can be downloaded to a recording medium such as a hard disk. Further, the program of the present invention can be supplied by dividing the program code constituting the program into a plurality of files and downloading the files from different websites. In other words, a WWW (World Wide Web) server that downloads, to multiple users, the program files that implement the functions of the present invention by computer is also covered by the claims of the present invention.
It is also possible to encrypt and store the program of the present invention on a storage medium such as a CD-ROM, distribute the storage medium to users, allow users who meet certain requirements to download decryption key information from a website via the Internet, and allow these users to decrypt the encrypted program by using the key information, whereby the program is installed in the user computer.
Besides the cases where the aforementioned functions according to the embodiments are implemented by executing the read program by computer, an operating system or the like running on the computer may perform all or a part of the actual processing so that the functions of the foregoing embodiments can be implemented by this processing.
Furthermore, after the program read from the storage medium is written to a function expansion board inserted into the computer or to a memory provided in a function expansion unit connected to the computer, a CPU or the like mounted on the function expansion board or function expansion unit performs all or a part of the actual processing so that the functions of the foregoing embodiments can be implemented by this processing.
As described above, according to the present invention, all extent sizes of data to be divisionally recorded on the disk can be set to be equal to or larger than the minimum recording size, and continuous reproduction of divisionally recorded data can be guaranteed.
The present invention is not limited to the above embodiments and various changes and modification can be made within the spirit and scope of the present inventions. Therefore, to apprise the public of the scope of the present invention, the following claims are made.
Number | Date | Country | Kind |
---|---|---|---|
2003-165031 | Jun 2003 | JP | national |
This application is a divisional of U.S. patent application Ser. No. 10/856,790, filed Jun. 1, 2004, the contents of which are incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
4733385 | Henmi et al. | Mar 1988 | A |
5164841 | Takahashi | Nov 1992 | A |
5341361 | Hosaka | Aug 1994 | A |
5561778 | Fecteau et al. | Oct 1996 | A |
5659539 | Porter et al. | Aug 1997 | A |
6219311 | Mitsuno | Apr 2001 | B1 |
6515950 | Tanikawa et al. | Feb 2003 | B1 |
6539169 | Tsubaki et al. | Mar 2003 | B1 |
20020127001 | Gunji et al. | Sep 2002 | A1 |
20020149682 | Kudo | Oct 2002 | A1 |
20030026186 | Ando et al. | Feb 2003 | A1 |
20040264327 | Gotoh et al. | Dec 2004 | A1 |
Number | Date | Country |
---|---|---|
2001 043622 | Feb 2001 | JP |
2002 152666 | May 2002 | JP |
2002 314916 | Oct 2002 | JP |
2003 022653 | Jan 2003 | JP |
03 019555 | Mar 2003 | WO |
Entry |
---|
Japanese Office Action dated Oct. 29, 2007 (with Translation). |
Number | Date | Country | |
---|---|---|---|
20090324204 A1 | Dec 2009 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10856790 | Jun 2004 | US |
Child | 12553960 | US |