Get Frames from Videos

Extract PNG frames from a video with FFmpeg.

Extract Video Frames with FFmpeglink

  1. Install FFmpeg and make sure the ffmpeg command is available.

  2. Open a terminal in the directory containing your video.

  3. Create the output directory:

    mkdir output_frames
    
  4. Run the command that matches the frames you need. Replace input.mp4 with your video's filename.

Extract Every Framelink

ffmpeg -i input.mp4 output_frames/frame_%04d.png

Extract at a Fixed Frame Ratelink

This example creates 10 frames per second. Change 10 as needed.

ffmpeg -i input.mp4 -vf "fps=10" output_frames/frame_%04d.png

Resize Extracted Frameslink

This example scales every frame to 1280×720.

ffmpeg -i input.mp4 -vf "scale=1280:720" output_frames/frame_%04d.png

The numbered PNG files in output_frames can be used to create an AFMA or classic FMA animation. Fewer frames and smaller dimensions reduce file size and memory use.