Raxol.Recording.Video.Encoder (Raxol v2.6.0)

View Source

Encodes a directory of PNG frames into a video file via FFmpeg.

Frames must be named frame_%05d.png. The output extension selects the codec: .mp4 (H.264), .webm (VP9), or .gif (single-pass palette).

Summary

Functions

Whether ffmpeg is on the PATH.

Encode frames_dir/frame_%05d.png at fps into output.

Functions

available?()

@spec available?() :: boolean()

Whether ffmpeg is on the PATH.

encode(frames_dir, fps, output, opts \\ [])

@spec encode(Path.t(), pos_integer(), Path.t(), keyword()) ::
  {:ok, Path.t()} | {:error, term()}

Encode frames_dir/frame_%05d.png at fps into output.