摘要:
An encoding apparatus holds predetermined encoding conditions (sets of a sampling frequency and a bit rate) associated with predetermined ranges having consecutive possible amounts of free space in the storage 20. A set of a sampling frequency and a bit rate associated with a range corresponding to a current free capacity is selected, and sound data included in a music file generated from an original digital signal data is encoded under the encoding condition by using a predetermined encoding software. By comparing sound data restored from the encoded data and sound data included in a music file, evaluation value is calculated with an evaluation method such as PEAQ, and it is determined whether the evaluation value exceeds a threshold value. The encoded data is stored in the storage when the evaluation value exceeds the threshold value.