Skip to main content

Crate oxframe_export

Crate oxframe_export 

Source
Expand description

Video export: raw RGBA frames are piped into ffmpeg (no intermediate files) from a writer thread, so encoding overlaps with rendering.

Status: oxframe is under very active development. The API is not stable yet and may change from version to version. Pin the exact version in your Cargo.toml and check the changelog before upgrading.

ffmpeg is looked up in PATH (or an explicit path); if it is missing, ExportError::FfmpegNotFound carries installation instructions.

Structs§

Audio
Soundtrack to mux into the video.
ExportOptions
What to export and where.
Exporter
Receives frames in order and writes them out.
Image
8-bit sRGB RGBA, straight alpha, row-major, no padding.

Enums§

ExportError
Why an export failed.
Format
Output format.

Constants§

FFMPEG_HELP
Installation hint shown when ffmpeg is missing.

Functions§

ffmpeg_args
Command line for ffmpeg (without the program name).
find_ffmpeg
Finds ffmpeg: the explicit path if given, else the first match in PATH (with .exe on Windows).
media_duration
Duration of a media file in seconds (via ffmpeg’s decoder).
waveform
Peak envelope of an audio file for the editor’s waveform: buckets values in 0..=1, decoded with ffmpeg at 8 kHz mono.