save_video_ltx23

Save an LTX video (optionally with audio) to MP4

Description

Uses the av package (Suggests) to encode frames and mux the audio track.

Usage

save_video_ltx23(video, filename, fps = 24, audio = NULL, sample_rate = 48000L,
                 verbose = TRUE)

Arguments

  • video: Array [frames, height, width, 3] in [0, 1].
  • filename: Output path (.mp4).
  • fps: Numeric.
  • audio: Optional numeric matrix [channels, samples] in [-1, 1].
  • sample_rate: Integer.
  • verbose: Logical.

Value

Invisibly, the filename.