Patent ID: 8824545

Claim:
An image encoding device comprising: an acquisition unit configured to acquire frames of a moving image in a first cycle or a second cycle that is longer than the first cycle; an encoding unit configured to encode the frames of the moving image, which are acquired by the acquisition unit, into groups of pictures (GOP) having a predetermined structure, in accordance with a predetermined encoding order and a predetermined encoding method; a reception unit configured to receive an instruction to start encoding of frames of the moving image acquired in the second cycle or an instruction to stop the encoding of frames of the moving image acquired in the second cycle; and an encoding control unit configured to control operation of the acquisition unit and of the encoding unit in response to the instruction to start or stop encoding of frames of the moving image acquired in the second cycle, wherein after receipt of the instruction to stop the encoding of frames of the moving image acquired in the second cycle, the acquisition unit is controlled to acquire the next frame of the moving image acquired in the first cycle as a last frame to be encoded, and the encoding unit is controlled to encode the acquired frames into a group of pictures having the predetermined structure, in accordance with the predetermined encoding order and the predetermined encoding method by repeatedly using the last frame, until the structure of the group of pictures including the last acquired frame is completed.