A method for recording digital data in accordance with the recording
format, in which the type of a loaded recording medium is identified and
on the basis of the result of the identification a data format is
selected for embedding sub data into data to be recorded onto the loaded
recording medium so that the data are readable as optical changes.
Whether the recording area in which recording is to be performed is a
recording area in which the sub data should be embedded or not is
discriminated, and if the result of the discrimination indicates that the
area in which recording is to be carried out is a recording area in which
the sub data should be recorded, the sub data are embedded and recorded
into the data to be recorded in a predetermined recording area on the
recording medium on the basis of the selected data format.