1. A non-transitory recording medium storing an extraction program that causes a computer to execute a process, the process comprising: based on captured images obtained by capturing a sports game having a match style of attack toward a goal provided in a territory of an opposing team, identifying captured images corresponding to a period in which a parallel translation amount exceeds a predetermined threshold, wherein the parallel translation amount is calculated as an average of horizontal translation amounts derived for each of a plurality of imaging subjects included in the captured images moving toward the goal, based on inter-frame pixel differences; acquiring predetermined information that indicates the directions of the goals in which respective teams attack based on a game time of the captured sports game; extracting a scene in which a team is attacking based on the direction of the goal and a direction of movement of imaging subjects derived from the identified captured images, wherein the extracting is performed by comparing the calculated parallel translation amount to a positive or a negative threshold which respectively indicate a direction of movement of the imaging subject towards the goal or another goal; identifying the attacking team based on the direction of the goal, the direction of movement of the imaging subjects, and the acquired predetermined information; generating a video file based on the extracted scene; indicating the generated video file is of the identified attacking team; and transmitting the generated video file to a distribution device, wherein the extracted scene includes a group of the identified captured images.