Skip to main content

Crate viser_ffmpeg

Crate viser_ffmpeg 

Source

Structs§

EncodeJob
Parameters for a single encode.
EncodeResult
Output of a completed encode.
FfmpegVersion
Parsed FFmpeg version.
FormatInfo
ProbeCache
Thread-safe probe result cache to avoid redundant ffprobe calls.
ProbeResult
Progress
Real-time encoding progress info parsed from FFmpeg.
Resolution
Video resolution.
StreamInfo

Enums§

Codec
Supported video codec.
ProbeEngine
RateControlMode
Rate control mode for encoding.

Constants§

RES_240P
RES_360P
RES_480P
RES_720P
RES_1080P
RES_1440P
RES_2160P
Common resolutions (16:9 aspect ratio).

Functions§

check_ffmpeg
Run ffmpeg -version and parse the version line. Returns an error if the binary is not found or the version is too old.
check_ffprobe
Run ffprobe -version and parse the version line. Returns an error if ffprobe is not found.
concat
Concatenates multiple encoded chunks into a single output without re-encoding.
encode
Runs an FFmpeg encode job. Progress updates are sent on the channel if provided.
extract
Copies a segment of a video file without re-encoding.
ffmpeg_path
Returns the path to the ffmpeg binary.
ffprobe_path
Returns the path to the ffprobe binary.
probe
Runs ffprobe on the given file and returns parsed results.
validate_vmaf_model
Validate that the given VMAF model name is recognized by libvmaf.