Skip to content

Simple and safe Rust interface for FFmpeg libraries.

License

Notifications You must be signed in to change notification settings

alugha/rust-ac-ffmpeg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust wrapper for FFmpeg libraries

Crates.io MIT licensed Build Status

This library provides a Rust interface for FFmpeg libraries. Rather than supporting all FFmpeg features, we focus on safety and simplicity of the interface.

Supported features

  • Demuxing any self-contained media container
  • Muxing any self-contained media container
  • Setting metadata
  • Seeking
  • Decoding audio and video
  • Encoding audio and video
  • Video frame scaling and pixel format transformations
  • Audio resampling
  • Bitstream filters

Requirements

  • FFmpeg v4.x or v5.x libraries. The following libraries are required:
    • libavutil
    • libavcodec
    • libavformat
    • libswresample
    • libswscale

Compilation

The following env. variables can be used to set correct paths to FFmpeg header files and libraries:

  • FFMPEG_INCLUDE_DIR - path to the FFmpeg header files
  • FFMPEG_LIB_DIR - path to the FFmpeg libs

If you prefer static linking, you can force it using:

  • FFMPEG_STATIC=1

License

Even though this library is distributed under the MIT license, the FFmpeg project has its own license policies that need to be respected. See https://ffmpeg.org/legal.html for more details.

About

Simple and safe Rust interface for FFmpeg libraries.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 78.1%
  • C 21.9%