ffpb 0.1.2

A coloured progress bar for ffmpeg.
Documentation
  • Coverage
  • 33.33%
    1 out of 3 items documented1 out of 1 items with examples
  • Size
  • Source code size: 223.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.54 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 33s Average build duration of successful builds.
  • all releases: 33s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • clitic/ffpb-rs
    18 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • clitic

ffpb-rs

Not smart. Not comprehensive. Not guaranteed to work.

ffpb-rs is rust implementation of ffpb. ffpb is an ffmpeg progress formatter. It will attempt to display a nice progress bar in the output, based on the raw ffmpeg output, as well as an adaptative ETA timer.

showcase

Installations

Visit releases for prebuilt binaries. You just need to copy that binary to any path specified in your PATH environment variable.

Or you can even install it through cargo.

cargo install ffpb

Usage

ffpb is is not even self-aware. Any argument given to the ffpb command is transparently given to the ffmpeg binary on your system, without any form of validation. So if you know how to use the ffmpeg cli, you know how to use ffpb.

ffpb --help

Rust Library

Add this to your Cargo.toml file.

[dependencies]

ffpb = "0.1.2"

Then call ffmpeg like this.

fn main() {
    let args = ["-i", "test.mp4", "-c:v", "copy", "test.mkv"]
        .iter()
        .map(|x| x.to_string())
        .collect::<Vec<String>>();

    ffpb::ffmpeg(&args).unwrap();
}

License

© 2022-24 clitic

This repository is licensed under the MIT license. See LICENSE for details.