6 stable releases

4.3.3 Oct 20, 2020
4.3.2 Oct 12, 2020
4.3.1+2 Aug 24, 2020

#14 in Video

Download history 15/week @ 2020-07-28 12/week @ 2020-08-04 12/week @ 2020-08-11 14/week @ 2020-08-18 39/week @ 2020-08-25 11/week @ 2020-09-01 21/week @ 2020-09-08 19/week @ 2020-09-15 18/week @ 2020-09-22 8/week @ 2020-09-29 30/week @ 2020-10-06 20/week @ 2020-10-13 39/week @ 2020-10-20

74 downloads per month
Used in 2 crates (via ffav)

WTFPL license

205KB
3.5K SLoC

ffav-sys

ffav-sys on crates.io Build Status

This is a fork of the abandoned ffmpeg-sys-next crate. You can find this crate as ffav-sys on crates.io.

This crate contains low level bindings to FFmpeg. You're probably interested in the high level bindings instead: ffav-rs.

A word on versioning: major and minor versions track major and minor versions of FFmpeg, e.g. 4.2.x of this crate has been updated to support the 4.2.x series of FFmpeg. Patch level is reserved for bug fixes of this crate and does not track FFmpeg patch versions.

FAQ

Cross Compilation

To build with cross toolchain, you shoud be set BINDGEN_EXTRA_CLANG_ARGS to tell the clang where to find the headers, if not do this, the bindgen maybe raise an error like:

/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found, err: true
thread 'main' panicked at 'Unable to generate baldrapi.h bindings: ()', src/libcore/result.rs:1009:5

For example, to build with --target=aarch64-unknown-linux-gnu:

export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=/usr/aarch64-linux-gnu"
cargo build --target=-aarch64-unknown-linux-gnu

Dependencies

~0–1.5MB
~32K SLoC