Patent ID: 8886896

Claim:
A method performed by data processing apparatus, the method comprising: obtaining a media stream in a memory device of the data processing apparatus; processing the obtained media stream, wherein the processing is performed in the memory device while obtaining the media stream and includes: dividing the obtained media stream into a plurality of segments; sequentially writing the plurality of segments into corresponding content files, wherein all of the content files are in a readable state during processing of the obtained media stream, except for the content file that is being written to at a given time; writing a corresponding segment descriptor for each of the plurality of segments in an index file to map time offsets of the plurality of segments to address space allocated to the plurality of segments; and writing context messages corresponding to the obtained media stream in a context file; and storing the processed media stream including the content files, the index file and the context file in a file directory of a storage device coupled with the data processing apparatus, wherein the storing is performed while processing the media stream, wherein the file directory corresponds to the processed media stream, and wherein the stored content files, the index file and the context file each share a common hierarchy level within the file directory of the storage device.