#ffmpeg #audio-video

rffmpeg

Safe FFmpeg wrapper (FFmpeg 4 compatible fork of the ffmpeg crate)

2 stable releases

Uses old Rust 2015

8.0.0 Nov 12, 2025
7.1.0 Jun 12, 2025

#150 in Video

WTFPL license

480KB
14K SLoC

rffmpeg

crates.io docs.rs build

currently supports ffmpeg 6.1 - 8.0

Documentation:

Installation

As a general note take a look on the build.yml for a better reference on how to build the library.

Windows

  1. download the version you want from ffmpeg-builds (only shared builds are supported)
  2. extract and set FFMPEG_DIR FFMPEG_INCLUDE_DIR and FFMPEG_LIB_DIR environment variables to the extracted directory

Linux

  1. download the version you want from ffmpeg-builds (only shared builds are supported)
  2. add these paths (change to fit your needs) to env
export FFMPEG_DIR=/home/dev/Downloads/ffmpeg
export FFMPEG_PATH=/home/dev/Downloads/ffmpeg/bin
export FFMPEG_INCLUDE_DIR=/home/dev/Downloads/ffmpeg/include
export FFMPEG_LIB_DIR=/home/dev/Downloads/ffmpeg/lib
export LD_LIBRARY_PATH=${FFMPEG_LIB_DIR}:${LD_LIBRARY_PATH}

MacOS

  1. run brew install ffmpeg pkg-config
  2. good to go

Dependencies

~0.2–3.5MB
~74K SLoC