The invention discloses an MP4 video file
breakpoint continuation method, which comprises the following steps of: constructing a standard MP4 packaging structure, and fixing a
metadata container MOOV at a reserved position at the
tail of a file; after the first recording is finished, a current complete MOOV is generated and overwritten to a
fixed position at the
tail of the file, and resuming information is recorded and comprises a file serial number and a suspension frame serial number; analyzing the secondary recorded file, reading the content of the target file and the MOOV according to the resuming information, analyzing a sample table box STBL based on the MOOV to obtain the information of all frames of the current MP4 file, generating a frame information
linked list of the current file, and judging the state of the file; overwriting the data based on a file state application
continuation strategy, obtaining a file offset corresponding to a suspension frame through a suspension frame serial number and a frame information
list, starting overwriting, and updating the frame information
list; and generating the MOOV content according to the frame information
list, judging whether the initial position and the size of the suspension frame have coverage or an intermediate interval with the original frame, and updating the resume information after
processing.