Patent ID: 8340505

Claim:
A method for processing audio-video data, adapted to an audio-video device and a storage device for processing an index-based audio-video file, comprising: a write procedure, comprising: capturing audio-video data by the audio-video device, the audio-video data comprising a plurality of continuous samples; writing a header into the audio-video file according to the audio-video data, the audio-video file being stored in the storage device; capturing a predetermined number of the samples as a data chunk, and writing a prefix index and the data chunk in sequence at the end of a position where the audio-video file is written previously according to the data chunk; writing the prefix index and the data chunk in sequence repeatedly, until the audio-video data is completely written into the audio-video file; and writing a file index at the end of a position where the audio-video file is written previously according to the audio-video data or all the prefix indexes, wherein the prefix index comprises a prefix start position, a prefix sample size, a prefix sample number, and a prefix sample timestamp corresponding to the data chunk; the prefix start position, the prefix sample size, the prefix sample number, and the prefix sample timestamp are respectively corresponding to a data chunk start position, a sample size, a sample number, and a sample timestamp of the file index.