This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2006-182336, filed Jun. 30, 2006, the entire contents of which are incorporated herein by reference.
1. Field
One embodiment of the present invention relates to data recording methods and data recording devices.
2. Description of the Related Art
For example, there is known a data recording device capable of recording a plurality of pieces of data simultaneously, such as a video recording device including two-program simultaneous recording function. For example, Jpn. Pat. Appln. Publication No. 2001-216730 discloses a digital recording and reproducing device that simultaneously records and reproduces a plurality of channels on and from a randomly accessible recording medium. Here, digital data transferred simultaneously through a data channel of two systems is written in or read out from a first region of the recording medium alternately in a time division manner.
A general architecture that implements the various features of the invention will now be described with reference to the drawings. The drawings and the associated description are provided to illustrate embodiments of the invention and not to limit the scope of the invention.
Various embodiments according to the invention will be described hereinafter with reference to the accompanying drawings. In general, according to one embodiment of the invention, there is provided a data recording method for recording a plurality of pieces of data simultaneously in a recordable region of a recording medium, comprising: recording a plurality of pieces of recording data by each of a plurality of recording devices; and allocating a recordable region so that each recording start position of the plurality of recording devices is different from one another when a plurality of pieces of recording data are recorded by the plurality of recording devices.
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.
The video recording device in
In addition, the video recording device in
When a digital video signal and a digital audio signal in a compressed state are directly input, the encoder unit 50 can also supply the compressed digital video signal and digital audio signal directly to the formatter 51. In addition, the encoder unit 50 can also directly supply a digital video signal and audio signal analog-digital converted to a video mixing unit 71 and an audio selector 76. In the video encoder included in the encoder unit 50, a digital video signal is converted to a digital video signal compressed with a variable bit rate based on an MPEG 2 (or MPEG 1 or MPEG 4-AVC) standard. A digital audio signal is converted to a digital audio signal compressed with a constant bit rate based on an MPEG or an AC-3 standard, or a digital audio signal of linear PCM.
When a sub-video signal is input from the A/V input unit 41 (for example, a signal from a DVD video player with an independent output terminal for a sub-video signal), or when a DVD video signal of a data configuration such as above is broadcast and is received by the TV tuner unit 42, a sub-video signal in the DVD video signal is encoded (run-length encoded) in the sub-video encoder and becomes a sub-video bitmap. The encoded digital video signal, digital audio signal, and sub-video signal are packed in the formatter 51, and become a video pack, an audio pack, and a sub-video pack. Further, these packs are assembled, and converted to a format specified by a DVD-video standard (DVD video format) or a format specified by a DVD-recording standard (DVD-VR format).
Here, the device in
In addition, the device can carry out edit processing, such as deleting a part of a video object of a plurality of programs recorded in the hard disk or the optical disk 1001, and coupling the video object with an object of a different program. This is because the DVD-VR format used in one embodiment of the present invention defines a data unit to be handled to facilitate editing.
The microcomputer block 30 includes a firmware ROM in which an MPU (micro processing unit) or a CPU (central processing unit), and a control program (firmware for carrying out control explained in each flowchart) are written, a work RAM for providing a work area necessary for executing a program. The MPU of the microcomputer block 30 uses the RAM as a work area in accordance with a control program stored in the ROM of the microcomputer block 30 to execute a defect location detection, unrecorded region detection, recording information and recording position setting, UDF recording, AV address setting, history information detecting processing, and so on.
That is, the microcomputer block 30 has an information processing unit necessary for integration control of an entire system, and includes the firmware ROM, the work RAM, and a directory detecting unit. In addition to these parts, the microcomputer block 30 also includes, although not shown, a VMG (entire video management information) information preparing unit, a copy-related information detecting unit, a copy and scrambling information processing unit (RDI processing unit), a packet header processing unit, a sequence header processing unit, an aspect contrast information processing unit, etc.
Here, in this device, an extent showing an access unit by using an address and information of the size of data in a data recording region of an information recording medium is defined. The device includes a plurality of the extents and uses a file entry that manages a file to record and reproduce data. For this reason, the microcomputer block 30 further includes a file entry management unit 301, which includes an extent management unit 302. Then, the extent management unit 302 has an deleting extent processing unit 310, a recorded extent management unit 311, and a recording extent management unit 312.
A content which should be reported to the user out of a result of the execution of the MPU described above is displayed on a display unit 43 of a video data recording and reproducing device, or displayed on a monitor display 75 in an OSD (on-screen display) manner. In addition, the microcomputer block 30 has a key input unit 44 that applies an operating signal for operating the device. The key input unit 44 corresponds to, for example, operating switches and the like provided on a main body of the video recording device, or a remote controlling device. In addition, the input unit 44 may be a personal computer connected to the video recording device according to an embodiment of the present invention by wire communication or wireless communication, or by using a means of optical communication and infrared-ray communication. In any form, when the user operates the key input unit 44, recording processing of an input video audio signal, reproducing processing of a recorded content, or edit processing of a recorded content can be applied.
The microcomputer block 30 can control the optical disk drive unit 1002, the hard disk drive unit 2001, the data processor unit 1003, the encoder unit 50 and/or the decoder unit 60 in a timing based on time data from an STC (system time clock) 38. Operation of recording and reproducing is normally executed in sync with a time clock from the STC 38. Processing other than recording and reproducing may be executed in a timing independent from the STC 38.
The decoder unit 60 has a separator that separates each pack from a signal of a DVD format having a pack structure and takes out the separated packs, a memory used at the time of pack separation and execution of other signal processing, a V decoder that decodes main video data (content of a video pack) separated by the separator, an SP decoder that decodes sub-video data (content of a sub-video pack) separated by the separator, and an A decoder that decodes audio data (content of an audio pack) separated by the separator. In addition, the decoder unit 60 includes a video processor that combines decoded main video with decoded sub video as appropriate, and outputs the main video after overlapping a menu, a highlighted button, a subtitle, and other items of sub video.
An output video signal of the decoder unit 60 is input to a video mixing unit 71. The video mixing unit 71 carries out combining of text data. In addition, the video mixing unit 71 is also connected with a line for directly receiving a signal from the TV tuner 42 and the A/V input unit 41. The video mixing unit 71 is connected with a frame memory 72 used as a buffer. When output of the video mixing unit 71 is analog output, the output is output externally via an I/F (interface) 73. When the output is digital output, the output is output externally via a digital analog converter 74.
An output audio signal of the decoder unit 60 is analog-converted in the digital analog converter 77 via an audio selector 76, and then output externally. The audio selector 76 is controlled by a select signal from the microcomputer block 30. In this manner, the audio selector 76 can also directly select a signal which passed through the encoder unit 50 when a digital signal form the TV tuner 42 and the A/V input unit 41 is directly monitored.
The formatter 51 in the encoder unit 50 creates each piece of segment information (information such as when a beginning of GOP (Group of Picture) interrupts) while recording, and regularly sends the segmented information to the MPU of the microcomputer 30. The segment information includes the number of packs of VOBUs (Video Object Units), an end address of I picture from the beginning of the VOBU, reproducing time of the VOBU, and so on. Simultaneously, the formatter 51 sends information from an aspect information processing unit to the MPU at start of recording, and the MPU creates VOB stream information (STI). Here, the STI stores resolution data, aspect data, and so on, and based on such information, initial setting is carried out in each decoder at reproducing.
In addition, in the device in
The data processor unit 1003 receives data in a VOBU unit from the formatter of the encoder unit 50, and supplies data in an extent unit to the optical disk drive unit 1002 or the hard disk drive unit 2001. In addition, the MPU of the microcomputer block 30 creates management information necessary for reproducing recorded data. When the MPU recognizes a command of terminating data recording, the MPU sends the created management data to the data processor unit 1003. In this manner, management information is recorded in a disk. Therefore, when encoding is carried out, the MPU of the microcomputer block 30 receives information in the data unit (segmented information) from the encoder unit 50. In addition, the MPU of the microcomputer block 30 recognizes management information (file system) read from the optical disk and the hard disk at the start of recording, recognizes an unrecorded area of each disk, and sets a data recording area on the disk via the data processor unit 1003.
Hereinafter, a data recording method in a case where recording data in the HDD is carried out by one encoder (recording device) at a time. When the recording of data is started, the extent used as a recording extent first is the recordable extent appearing first in the extent management table 50. The encoder carries out the recording of data to this extent. When the recording of data is carried out, recording capacity may be insufficient only with the extent allocated first. In this case, the recordable extent needs to be newly allocated. For this reason, the encoder refers to the extent management table 50 again, and allocates the recordable extent subsequent to the extent currently being recorded to carry out the recording continuously.
Next, a case in which two types or more of data is simultaneously recorded in the HDD.
When the plurality of pieces of recording data 100-1 to 100-n are simultaneously recorded in the HDD 102, the extent to which each piece of data is recorded first needs to be determined. At this stage, when the recordable extent at the beginning is allocated to the first piece of data and the subsequent recordable extent in the order of address is allocated to the second piece of data, and as the recording proceeds and allocation of the extents are carried out one after another, these pieces of data turn out to be alternately recorded in the HDD 102 at the end.
Hereinafter, an outline of a data recording method according to the present embodiment for achieving the above object will be described with reference to
Next, recording of data is carried out from the recording start position allocated to each of the encoders 1 to n (block S3). When recording of data is carried out in this manner, recording capacity may be insufficient only with the extent allocated first. Therefore, whether the new recording extent is necessary or not is judged (block S4). If NO, the recording of data continues after the processing returns to block S3. If YES, the extent management table 50 is referred to, the recordable extent subsequent to the extent currently being recorded in the encoder is allocated (block S5), and then the processing returns to block S3 to continue the recording of data.
Hereinafter, a first embodiment of a data recording method will be described with reference to
In a case where recording is carried out in each of the encoders and the additional recordable extent becomes necessary, the recordable extent subsequent to the extent currently being recorded is used. As for a first piece of recording data, recording is first carried out in the recordable extent at the beginning, and if recording capacity becomes insufficient, recording is carried out in the second recordable extent. If the recordable extents are further necessary, the subsequent recordable extents are designated in the order of the third recordable extent, the fourth recordable extent, and so forth.
As for second and subsequent pieces of recording data, if the extent in which recording is first carried out assumes to be the n-th recordable extent, recording is subsequently carried out to the (n+1)-th extent, (n+2)-th extent, and so forth. Here, as a result of the subsequent recording, recording capacity may become insufficient only with the recordable extent first allocated to each piece of data. If there is no recordable extent for any piece of data, a recording location needs to be allocated by carrying out operation such as changing a region allocated for recording of other pieces of data.
As a method of reallocation, a method of dividing total capacity of all the recordable extents with the total number of the encoders again or a recording method of carrying out recording in the recordable extent at the beginning can be considered. However, in any case, complication of a state of data recording is not avoidable. Therefore, the recordable extents are desirably set such that the recording capacity is not in an insufficient state as much as possible. The methods described above can prevent changing of a recording start position in each of the encoders, and each piece of data recorded alternately in each of the extents on the HDD at the time of recording a plurality of pieces of data. Thereby, creation of a fragment can be restricted.
In setting a recording start position, such setting needs to be carried out in consideration of a recording location of each piece of data not becoming insufficient as much as possible. As a method of more efficient region setting, several examples will be shown below.
For example, as shown in
Next, the total capacity C of the recordable extents in the HDD is obtained (block S22). Next, the total capacity C is divided based on the content ratio with respect to each of the encoders (block S23). Next, the recording start position of each of the encoders is obtained based on the divided capacity (block S24). Next, the data recording in the encoder 1 is carried out from the recordable extent at the beginning, and the data recording in the encoder 2 and the subsequent encoders is carried out from the recordable extent corresponding to the recording start position obtained in block S24 (block S25).
As a further modification example, if a plurality of HDDs are mounted, the configuration may be such that the HDD for recording can be allocated to each of the encoders separately, and the recording start position is changed. In this manner, a seek of a head occurring at the time the simultaneous recording is carried out to one HDD can be reduced.
In addition, as for the method of allocating the new recordable extent at the recording, the next recordable extent subsequent to the extent currently being recorded has been allocated in the order of larger addresses with the recording start position as a base point (the order of 1, 2, 3, and 4 in
According to the method described above, the recording position converges at the closest position, therefore extents in which data is recorded are arranged in a gathered manner, and there is an advantage that seek time at recording and reproducing is shortened.
The embodiments described above prevent changing of a recording start position for each piece of recording data at recording a plurality of pieces of data, and recording of each pieces of data in the HDD alternately. In this manner, a problem such as fragmentation occurring in the method in the prior art described above can be resolved.
In addition, as a method of effectively carrying out the present technique, an allocation ratio at the time of allocating the recordable extent to each of the encoders is changed, thereby more recording regions can be set to the encoders with a large amount of recording, and also shortage of the recording region allocated to the encoders at recording can be prevented.
In addition, by changing an allocation method of the recordable extent, seek time of the HDD occurring at recording and reproducing can be reduced.
While certain embodiments of the inventions have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Number | Date | Country | Kind |
---|---|---|---|
2006-182336 | Jun 2006 | JP | national |