encode_image_file_sequence#

video_encoding.encode_image_file_sequence(
filename_pattern,
start_number,
frame_rate,
output_file,
overwrite_existing,
) bool#

Encode a sequence of image files into a video.

Parameters:
  • filename_pattern (str) – File pattern to generate frame file names.

  • start_number (int) – Starting frame number for file sequence.

  • frame_rate (int) – Frame rate of the output video.

  • output_file (str) – Destination file for encoded video.

  • overwrite_existing (bool) – Flag indicating whether to overwrite the existing output file.

Returns:

True if encoding succeeded, False otherwise.

Return type:

bool

Raises:

Exception – Propagates any exceptions encountered during frame encoding.