Crates.io | ac-ffmpeg |
lib.rs | ac-ffmpeg |
version | 0.18.1 |
source | src |
created_at | 2020-08-11 16:09:30.341092 |
updated_at | 2023-01-06 12:06:42.936183 |
description | Simple and safe Rust interface for FFmpeg libraries. |
homepage | |
repository | https://github.com/angelcam/rust-ac-ffmpeg |
max_upload_size | |
id | 275396 |
size | 270,293 |
This library provides a Rust interface for FFmpeg libraries. Rather than supporting all FFmpeg features, we focus on safety and simplicity of the interface.
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 filesFFMPEG_LIB_DIR
- path to the FFmpeg libsIf you require building for multiple platforms, you can append
_PLATFORM_TARGET_TRIPLET
to both of the above to create platform specific
env. variables, for example:
FFMPEG_INCLUDE_DIR_AARCH64_LINUX_ANDROID = ${jniInclude}/arm64-v8a/
FFMPEG_LIB_DIR_AARCH64_LINUX_ANDROID = ${jniLibs}/arm64-v8a/
FFMPEG_INCLUDE_DIR_X86_64_LINUX_ANDROID = ${jniInclude}/x86_64/
FFMPEG_LIB_DIR_X86_64_LINUX_ANDROID = ${jniLibs}/x86_64/
If you prefer static linking, you can force it using:
FFMPEG_STATIC=1
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.