Patent ID: 7447422

Claim:
A data recording device for recording video data and/or audio data on a recording medium, comprising: a compression-encoding unit for compressing and encoding an inputted data stream, hierarchizing a variable data block, and blocking a plurality of generated lower-level data blocks as an upper-level data block; a data block temporary storage unit for temporality storing at least one upper-level data block generated in the compression-encoding unit and including n number (n is a given natural number) of lower-level data blocks; and a control unit for managing a size of an upper-level data block generated in the compression-encoding unit and controlling the compression-encoding unit to perform blocking of data blocks in such a way that an upper-level data block includes a plurality of lower-level data blocks to an extent that a size of the upper-level data block does not exceed a capacity of the data block temporary storage unit, wherein, upon receiving a generation completion signal indicating completion of generating a lower-level data block from the compression-encoding unit, if a total size of a plurality of lower-level data blocks counted from a beginning of a currently generated upper-level data block in the compression-encoding unit is equal to or larger than a difference between the capacity of the data block temporary storage unit and a size of a maximum lower-level data block of the plurality of the lower-level data blocks, the control unit makes an end process request for performing an end process to determine the lower-level data block which has just been generated as a last lower-level data block to be included in the currently generated upper-level data block, to the compression-encoding unit.