1. An image processing apparatus comprising: a necessary/unnecessary determination data generating unit configured to generate necessary/unnecessary determination data corresponding respectively to each moving image frame of an input moving image, used to determine whether or not the moving image frame is an unnecessary moving image frame; an image encoding unit configured to encode the input moving image, and also to divide each moving image frame of the moving image after encoding respectively into a plurality of pieces of data, and assign identification information respectively to, and record, in a recording unit, those pieces of data; a necessary/unnecessary determining unit configured to determine whether or not the moving image frame corresponding to the necessary/unnecessary determination data is an unnecessary moving image frame, based on the necessary/unnecessary determination data; and a moving image file managing unit configured to rewrite, in a table in the recording unit in which identification information recorded in the recording unit and information indicating a state of data at a recording position in the recording unit corresponding to the identification information are associated, information indicating a state of data at a recording position in the recording unit corresponding to identification information of a moving image frame determined as an unnecessary moving image frame by the necessary/unnecessary determining unit into information that there is no data.