Crates.io | ffpb |
lib.rs | ffpb |
version | 0.1.2 |
source | src |
created_at | 2022-05-31 05:58:37.160964 |
updated_at | 2024-05-01 17:08:28.214275 |
description | A coloured progress bar for ffmpeg. |
homepage | |
repository | https://github.com/clitic/ffpb-rs |
max_upload_size | |
id | 597265 |
size | 223,672 |
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.
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
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
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();
}
© 2022-24 clitic
This repository is licensed under the MIT license. See LICENSE for details.