1[package]
2name = "ffmpeg-sys-next"
3version = "6.1.0"
4build = "build.rs"
5links = "ffmpeg"
6
7authors = ["meh. <meh@schizofreni.co>", "Zhiming Wang <i@zhimingwang.org>"]
8license = "WTFPL"
9
10description = "FFI bindings to FFmpeg"
11repository = "https://github.com/zmwangx/rust-ffmpeg-sys"
12keywords = ["audio", "video"]
13
14[lib]
15# Disable doctests as a workaround for https://github.com/rust-lang/rust-bindgen/issues/1313
16doctest = false
17
18[dependencies]
19libc = "0.2"
20
21[build-dependencies]
22num_cpus = "1.15"
23cc = "1.0"
24pkg-config = "0.3"
25bindgen = { version = "0.64", default-features = false, features = ["runtime"] }
26
27[target.'cfg(target_env = "msvc")'.build-dependencies]
28vcpkg = "0.2"
29
30[features]
31default = ["avcodec", "avdevice", "avfilter", "avformat", "swresample", "swscale"]
32
33static = []
34build = ["static"]
35
36# mark enums in generated bindings as #[non_exhaustive]
37non-exhaustive-enums = []
38
39# licensing
40build-license-gpl = ["build"]
41build-license-nonfree = ["build"]
42build-license-version3 = ["build"]
43
44# misc
45build-drm = ["build"]
46build-nvenc = ["build"]
47build-pic = ["build"]
48build-zlib = ["build"]
49
50# ssl
51build-lib-gnutls = ["build"]
52build-lib-openssl = ["build"]
53
54# filters
55build-lib-fontconfig = ["build"]
56build-lib-frei0r = ["build"]
57build-lib-ladspa = ["build"]
58build-lib-ass = ["build"]
59build-lib-freetype = ["build"]
60build-lib-freebidi = ["build"]
61build-lib-opencv = ["build"]
62build-lib-vmaf = ["build"]
63
64# encoders/decoders
65build-lib-aacplus = ["build"]
66build-lib-celt = ["build"]
67build-lib-dav1d = ["build"]
68build-lib-dcadec = ["build"]
69build-lib-faac = ["build"]
70build-lib-fdk-aac = ["build"]
71build-lib-gsm = ["build"]
72build-lib-ilbc = ["build"]
73build-lib-kvazaar = ["build"]
74build-lib-mp3lame = ["build"]
75build-lib-opencore-amrnb = ["build"]
76build-lib-opencore-amrwb = ["build"]
77build-lib-openh264 = ["build"]
78build-lib-openjpeg = ["build"]
79build-lib-opus = ["build"]
80build-lib-schroedinger = ["build"]
81build-lib-shine = ["build"]
82build-lib-snappy = ["build"]
83build-lib-speex = ["build"]
84build-lib-stagefright-h264 = ["build"]
85build-lib-theora = ["build"]
86build-lib-twolame = ["build"]
87build-lib-utvideo = ["build"]
88build-lib-vo-aacenc = ["build"]
89build-lib-vo-amrwbenc = ["build"]
90build-lib-vorbis = ["build"]
91build-lib-vpx = ["build"]
92build-lib-wavpack = ["build"]
93build-lib-webp = ["build"]
94build-lib-x264 = ["build"]
95build-lib-x265 = ["build"]
96build-lib-avs = ["build"]
97build-lib-xvid = ["build"]
98
99# protocols
100build-lib-smbclient = ["build"]
101build-lib-ssh = ["build"]
102
103# components
104avcodec = []
105avdevice = ["avformat"]
106avfilter = []
107avformat = ["avcodec"]
108avresample = []
109postproc = []
110swresample = []
111swscale = []
112