Skip to main content

Crate viser_ffmpeg

Crate viser_ffmpeg 

Source

Structs§

EncodeJob
Parameters for a single encode.
EncodeResult
Output of a completed encode.
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.
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§

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.