Skip to main content

Crate deepshrink_ffmpeg

Crate deepshrink_ffmpeg 

Source
Expand description

Discovery of the external ffmpeg/ffprobe binaries.

Search order (see docs/PRD/03-tech-stack.md):

  1. Explicit path from an env var (DEEPSHRINK_FFMPEG / DEEPSHRINK_FFPROBE).
  2. A binary in PATH.
  3. (later) a bundled binary next to the app — for the desktop layer.

If not found, FfmpegError::NotFound; the CLI maps this to exit code 3 with an install hint. ffprobe/progress parsing arrives in sessions 002/003.

Re-exports§

pub use probe::probe;
pub use probe::Ffprobe;
pub use run::run_pass;
pub use vmaf::has_libvmaf;
pub use vmaf::measure_vmaf;

Modules§

probe
Run ffprobe and parse its JSON output.
progress
Parse ffmpeg’s -progress pipe:1 key=value stream.
run
Run a single ffmpeg pass, streaming progress and surfacing failures.
vmaf
VMAF quality measurement via ffmpeg’s libvmaf filter.

Structs§

Tools
The located binaries.

Enums§

FfmpegError
Errors from the ffmpeg layer.

Functions§

locate
Locate ffmpeg and ffprobe. Returns the first missing tool as an error.
locate_one
Locate a single tool: first via its env var, then in PATH.