Skip to main content

Module ffmpeg

Module ffmpeg 

Source
Expand description

FFmpeg log level configuration.

FFmpeg has its own internal logging system, separate from the Rust log crate. By default, FFmpeg prints warnings and errors to stderr, which can be noisy in library usage. This module provides a thin wrapper around FFmpeg’s log-level API so users of unbundle can silence or tune FFmpeg output without importing ffmpeg-next directly.

§Example

use unbundle::{FfmpegLogLevel, MediaFile};

// Silence all FFmpeg output except fatal errors.
unbundle::set_ffmpeg_log_level(FfmpegLogLevel::Fatal);

// Or silence completely.
unbundle::set_ffmpeg_log_level(FfmpegLogLevel::Quiet);

let mut unbundler = MediaFile::open("input.mp4").unwrap();

§Note

This controls FFmpeg’s own console output, not the Rust-side diagnostic messages emitted via the log crate. To configure those, use a standard log subscriber such as env_logger or tracing.

Enums§

FfmpegLogLevel
FFmpeg internal log verbosity level.

Functions§

get_ffmpeg_log_level
Get the current FFmpeg internal log verbosity level.
set_ffmpeg_log_level
Set the FFmpeg internal log verbosity level.