Cargo Features

[dependencies]
ffmpeg-rs = { version = "5.2.1", default-features = false, features = ["ffmpeg43", "ffmpeg4", "static", "build", "build-license-gpl", "build-license-nonfree", "build-license-version3", "build-pic", "build-zlib", "build-lib-gnutls", "build-lib-openssl", "build-lib-fontconfig", "build-lib-frei0r", "build-lib-ladspa", "build-lib-ass", "build-lib-freetype", "build-lib-freebidi", "build-lib-opencv", "build-lib-vmaf", "build-lib-aacplus", "build-lib-celt", "build-lib-dav1d", "build-lib-dcadec", "build-lib-faac", "build-lib-fdk-aac", "build-lib-gsm", "build-lib-ilbc", "build-lib-kvazaar", "build-lib-mp3lame", "build-lib-opencore-amrnb", "build-lib-opencore-amrwb", "build-lib-openh264", "build-lib-openjpeg", "build-lib-opus", "build-lib-schroedinger", "build-lib-shine", "build-lib-snappy", "build-lib-speex", "build-lib-stagefright-h264", "build-lib-theora", "build-lib-twolame", "build-lib-utvideo", "build-lib-vo-aacenc", "build-lib-vo-amrwbenc", "build-lib-vorbis", "build-lib-vpx", "build-lib-wavpack", "build-lib-webp", "build-lib-x264", "build-lib-x265", "build-lib-avs", "build-lib-xvid", "build-lib-smbclient", "build-lib-ssh", "codec", "device", "filter", "format", "resampling", "postprocessing", "software-resampling", "software-scaling", "rpi", "image"] }
default = codec, device, filter, format, software-resampling, software-scaling

These default features are set whenever ffmpeg-rs is added without default-features = false somewhere in the dependency tree.

ffmpeg43

ffmpeg<xy> are obsolete features kept for backward compatibility purposes and don't do anything anymore (equivalents are automatically specified through compile-time detection in ffmpeg-sys-next). Deprecation plan: all these features will be removed come 5.0.

ffmpeg42 ffmpeg41 ffmpeg4
static build?

Enables static of ffmpeg-sys-next ^5.1.1

build = static

Enables build of ffmpeg-sys-next ^5.1.1

build-license-gpl

licensing

Enables build-license-gpl of ffmpeg-sys-next ^5.1.1

build-license-nonfree

Enables build-license-nonfree of ffmpeg-sys-next ^5.1.1

build-license-version3

Enables build-license-version3 of ffmpeg-sys-next ^5.1.1

build-pic

misc

Enables build-pic of ffmpeg-sys-next ^5.1.1

build-zlib

Enables build-zlib of ffmpeg-sys-next ^5.1.1

build-lib-gnutls

ssl

Enables build-lib-gnutls of ffmpeg-sys-next ^5.1.1

build-lib-openssl

Enables build-lib-openssl of ffmpeg-sys-next ^5.1.1

build-lib-fontconfig

filters

Enables build-lib-fontconfig of ffmpeg-sys-next ^5.1.1

build-lib-frei0r

Enables build-lib-frei0r of ffmpeg-sys-next ^5.1.1

build-lib-ladspa

Enables build-lib-ladspa of ffmpeg-sys-next ^5.1.1

build-lib-ass

Enables build-lib-ass of ffmpeg-sys-next ^5.1.1

build-lib-freetype

Enables build-lib-freetype of ffmpeg-sys-next ^5.1.1

build-lib-freebidi

Enables build-lib-freebidi of ffmpeg-sys-next ^5.1.1

build-lib-opencv

Enables build-lib-opencv of ffmpeg-sys-next ^5.1.1

build-lib-vmaf

Enables build-lib-vmaf of ffmpeg-sys-next ^5.1.1

build-lib-aacplus

encoders/decoders

Enables build-lib-aacplus of ffmpeg-sys-next ^5.1.1

build-lib-celt

Enables build-lib-celt of ffmpeg-sys-next ^5.1.1

build-lib-dav1d

Enables build-lib-dav1d of ffmpeg-sys-next ^5.1.1

build-lib-dcadec

Enables build-lib-dcadec of ffmpeg-sys-next ^5.1.1

build-lib-faac

Enables build-lib-faac of ffmpeg-sys-next ^5.1.1

build-lib-fdk-aac

Enables build-lib-fdk-aac of ffmpeg-sys-next ^5.1.1

build-lib-gsm

Enables build-lib-gsm of ffmpeg-sys-next ^5.1.1

build-lib-ilbc

Enables build-lib-ilbc of ffmpeg-sys-next ^5.1.1

build-lib-kvazaar

Enables build-lib-kvazaar of ffmpeg-sys-next ^5.1.1

build-lib-mp3lame

Enables build-lib-mp3lame of ffmpeg-sys-next ^5.1.1

build-lib-opencore-amrnb

Enables build-lib-opencore-amrnb of ffmpeg-sys-next ^5.1.1

build-lib-opencore-amrwb

Enables build-lib-opencore-amrwb of ffmpeg-sys-next ^5.1.1

build-lib-openh264

Enables build-lib-openh264 of ffmpeg-sys-next ^5.1.1

build-lib-openjpeg

Enables build-lib-openjpeg of ffmpeg-sys-next ^5.1.1

build-lib-opus

Enables build-lib-opus of ffmpeg-sys-next ^5.1.1

build-lib-schroedinger

Enables build-lib-schroedinger of ffmpeg-sys-next ^5.1.1

build-lib-shine

Enables build-lib-shine of ffmpeg-sys-next ^5.1.1

build-lib-snappy

Enables build-lib-snappy of ffmpeg-sys-next ^5.1.1

build-lib-speex

Enables build-lib-speex of ffmpeg-sys-next ^5.1.1

build-lib-stagefright-h264

Enables build-lib-stagefright-h264 of ffmpeg-sys-next ^5.1.1

build-lib-theora

Enables build-lib-theora of ffmpeg-sys-next ^5.1.1

build-lib-twolame

Enables build-lib-twolame of ffmpeg-sys-next ^5.1.1

build-lib-utvideo

Enables build-lib-utvideo of ffmpeg-sys-next ^5.1.1

build-lib-vo-aacenc

Enables build-lib-vo-aacenc of ffmpeg-sys-next ^5.1.1

build-lib-vo-amrwbenc

Enables build-lib-vo-amrwbenc of ffmpeg-sys-next ^5.1.1

build-lib-vorbis

Enables build-lib-vorbis of ffmpeg-sys-next ^5.1.1

build-lib-vpx

Enables build-lib-vpx of ffmpeg-sys-next ^5.1.1

build-lib-wavpack

Enables build-lib-wavpack of ffmpeg-sys-next ^5.1.1

build-lib-webp

Enables build-lib-webp of ffmpeg-sys-next ^5.1.1

build-lib-x264

Enables build-lib-x264 of ffmpeg-sys-next ^5.1.1

build-lib-x265

Enables build-lib-x265 of ffmpeg-sys-next ^5.1.1

build-lib-avs

Enables build-lib-avs of ffmpeg-sys-next ^5.1.1

build-lib-xvid

Enables build-lib-xvid of ffmpeg-sys-next ^5.1.1

build-lib-smbclient

protocols

Enables build-lib-smbclient of ffmpeg-sys-next ^5.1.1

build-lib-ssh

Enables build-lib-ssh of ffmpeg-sys-next ^5.1.1

codec default format software-scaling

components

Enables avcodec of ffmpeg-sys-next ^5.1.1

Affects ffmpeg-rs::codec

device default = format

Enables avdevice of ffmpeg-sys-next ^5.1.1

Affects ffmpeg-rs::device

filter default

Enables avfilter of ffmpeg-sys-next ^5.1.1

Affects ffmpeg-rs::filter

format default device = codec

Enables avformat of ffmpeg-sys-next ^5.1.1

Affects ffmpeg-rs::format

resampling

Enables avresample of ffmpeg-sys-next ^5.1.1

postprocessing

Enables postproc of ffmpeg-sys-next ^5.1.1

software-resampling default

Enables swresample of ffmpeg-sys-next ^5.1.1

Affects software::resampling, software::resampler

software-scaling default = codec

Enables swscale of ffmpeg-sys-next ^5.1.1

Affects software::scaling, software::scaler, software::converter

rpi

platforms

Features from optional dependencies

image implicit feature

Enables image ^0.23

image:

Imaging library. Provides basic image processing and encoders/decoders for common image formats.