20 stable releases (3 major)

Uses old Rust 2015

7.1.0 Sep 28, 2024
7.0.2 Jul 27, 2024
6.1.0 Dec 3, 2023
6.0.1 Mar 13, 2023
4.3.1 Jul 30, 2020

#11 in Video

Download history 6006/week @ 2024-07-20 6054/week @ 2024-07-27 6314/week @ 2024-08-03 5473/week @ 2024-08-10 5110/week @ 2024-08-17 5926/week @ 2024-08-24 6105/week @ 2024-08-31 4701/week @ 2024-09-07 4362/week @ 2024-09-14 4945/week @ 2024-09-21 5626/week @ 2024-09-28 4634/week @ 2024-10-05 5028/week @ 2024-10-12 4813/week @ 2024-10-19 4782/week @ 2024-10-26 4454/week @ 2024-11-02

19,718 downloads per month
Used in 65 crates (11 directly)

WTFPL license

73KB
1.5K SLoC

ffmpeg-sys-next on crates.io build

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

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

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.

Feature flags

In addition to feature flags declared in Cargo.toml, this crate performs various compile-time version and feature detections and exposes the results in additional flags. These flags are briefly documented below; run cargo build -vv to view more details.

  • ffmpeg_<x>_<y> flags (new in v4.3.2), e.g. ffmpeg_4_4, indicating the FFmpeg installation being compiled against is at least version <x>.<y>. Currently available:

    • ffmpeg_3_0
    • ffmpeg_3_1
    • ffmpeg_3_2
    • ffmpeg_3_3
    • ffmpeg_3_1
    • ffmpeg_4_0
    • ffmpeg_4_1
    • ffmpeg_4_2
    • ffmpeg_4_3
    • ffmpeg_4_4
  • avcodec_version_greater_than_<x>_<y> (new in v4.3.2), e.g., avcodec_version_greater_than_58_90. The name should be self-explanatory.

  • ff_api_<feature>, e.g. ff_api_vaapi, corresponding to whether their respective uppercase deprecation guards evaluate to true.

  • ff_api_<feature>_is_defined, e.g. ff_api_vappi_is_defined, similar to above except these are enabled as long as the corresponding deprecation guards are defined.

Dependencies

~0–2.6MB
~44K SLoC