Patent ID: 8478109

Claim:
A recording apparatus for recording a file stream composed of a header, a body, and a footer onto a storage medium, the apparatus comprising: a processor; and a memory coupled to the processor, the memory storing instructions executable by the processor, the instructions comprising: by holding in a main memory provisional header information for first audio data, second audio data, and video data and not recording any headers in the first header area; recording the body and the footer in the recording area of the storage medium; securing a second header area in the recording area after the body and the footer have been recorded in the recording area by changing the provisional header information for the first audio data, second audio data, and video data into non-provisional header information for the first audio data, second audio data, and video data, the second header area following areas in which the body and the footer have been recorded; recording the header for the file stream in the secured second header area; and recording information about the second header area in the storage medium, wherein a recording process for the file stream, when terminated normally and when terminated abnormally, is reflected in a file system of the storage medium, wherein when the recording process for the file stream is terminated abnormally an allocation descriptor for the provisional header is recorded onto the storage medium.