A method of generating a media file for display on a display device. The
method includes the steps of (a) initializing the media file and an
associated index file, the associated index file referencing the media
file, and (b) inserting a plurality of video frames from a camera into
the media file. The inserting step includes the steps of (i) determining
if the media file is configured to accept the plurality of video frames,
and (ii) configuring the media file, based on the determination step,
such that the plurality of video frames is accepted by the media file.
The method further includes the steps of (c) appending a text string
having at least a time stamp of the inserting step to the plurality of
video frames, to thereby generate the media file, the text string being
adapted for reconstructing the associated index file upon corruption of
the associated index file, wherein the reconstructed index file replaces
the associated index file, wherein upon the media file and the associated
index file being damaged.