ltx23_read_tail_frames

Read the trailing frames of a video file

Description

Extracts the last n frames of an MP4 (via av) for use as continuation conditioning.

Usage

ltx23_read_tail_frames(path, n = 9L)

Arguments

  • path: Video file.
  • n: Integer. Trailing frame count.

Value

Array [n, H, W, 3] in [0, 1].