video-rs 0.2.1

High-level video toolkit based on ffmpeg.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate ffmpeg_next as ffmpeg;

use std::error::Error;

use super::ffi::init_logging;

/// Initialize global ffmpeg settings. This also intializes the
/// logging capability and redirect it to `tracing`.
pub fn init() -> Result<(), Box<dyn Error>> {
  ffmpeg::init()?;

  // Redirect logging to the Rust `tracing` crate.
  init_logging();

  Ok(())
}