AutoMovie API
    Preparing search index...

    Function planAutoMovieVideoFrames

    • Plan the FFmpeg arguments that extract exactly the given frames of a video file, the file's own pixels, as numbered PNG stills.

      One select expression names every index: a run of consecutive indices as between(n,first,last) and a lone index as eq(n,index), joined by +. -fps_mode passthrough keeps each selected frame once with its own timestamp instead of duplicating or dropping frames to a constant rate. The k-th selected frame, counting from zero in ascending index order, is written as <directory>/s<k>.png with k padded to five digits, in 8-bit RGB.

      It throws for an empty list and for an index that is not a whole number of zero or more.

      planAutoMovieVideoFrames({ file: "delivery.mp4", frames: [57, 58, 59, 90], directory: "out" });
      // [..., "-vf", "select='between(n,57,59)+eq(n,90)'", "-fps_mode", "passthrough", ...]

      Returns string[]