Patent ID: 8627139

Claim:
A method for repairing media file recording errors, comprising: generating description information about a recording error when a recording terminal identifies the recording error in live recording of a media file, wherein the live media file is transmitted in data fragments on a network, and the description information comprises one or more types of the recording error identified by the recording terminal, the one or more types of the recording error comprise: a loss of an intra-fragment frame, a loss of a fragment, damage of an intra-fragment frame, and damage of a fragment; sending a recording error repair request that carries the description information to a network device via the network; and repairing the media file recorded by the recording terminal according to repair information when receiving the repair information sent via the network by the network device according to the description information, wherein: if the type of the recording error is loss of an intra-fragment frame, the description information further comprises information about a data fragment where a lost video frame is located, and identification information and time information of a correct video frame adjacent to the lost video frame; if the type of the recording error is loss of a fragment, the description information further comprises information about a correct data fragment adjacent to a lost data fragment; if the type of the recording error is damage of an intra-fragment frame, the description information further comprises information about a data fragment where a damaged video frame is located, and identification information and time information of a correct video frame adjacent to the damaged video frame; and if the type of the recording error is damage of a fragment, the description information further comprises information about a damaged data fragment, and identification information and time information of a correct data fragment adjacent to the damaged data fragment.