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.
- Export
Options - 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§
- Export
Error - 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 inPATH(with.exeon 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:
bucketsvalues in0..=1, decoded with ffmpeg at 8 kHz mono.