1[package]
2name = "ffmpeg-next"
3version = "6.1.1"
4build = "build.rs"
5
6authors = ["meh. <meh@schizofreni.co>", "Zhiming Wang <i@zhimingwang.org>"]
7license = "WTFPL"
8
9description = "Safe FFmpeg wrapper (FFmpeg 4 compatible fork of the ffmpeg crate)"
10documentation = "https://docs.rs/ffmpeg-next"
11homepage = "https://github.com/zmwangx/rust-ffmpeg#readme"
12repository = "https://github.com/zmwangx/rust-ffmpeg"
13readme = "README.md"
14keywords = ["ffmpeg", "multimedia", "video", "audio"]
15categories = ["multimedia"]
16
17[features]
18default = ["codec", "device", "filter", "format", "software-resampling", "software-scaling"]
19
20# ffmpeg<xy> are obsolete features kept for backward compatibility purposes and
21# don't do anything anymore (equivalents are automatically specified through
22# compile-time detection in ffmpeg-sys-next). Deprecation plan: all these
23# features will be removed come 5.0.
24ffmpeg43 = []
25ffmpeg42 = []
26ffmpeg41 = []
27ffmpeg4 = []
28
29static = ["ffmpeg-sys-next/static"]
30build = ["static", "ffmpeg-sys-next/build"]
31
32# licensing
33build-license-gpl = ["ffmpeg-sys-next/build-license-gpl"]
34build-license-nonfree = ["ffmpeg-sys-next/build-license-nonfree"]
35build-license-version3 = ["ffmpeg-sys-next/build-license-version3"]
36
37# misc
38build-pic = ["ffmpeg-sys-next/build-pic"]
39build-zlib = ["ffmpeg-sys-next/build-zlib"]
40
41# ssl
42build-lib-gnutls = ["ffmpeg-sys-next/build-lib-gnutls"]
43build-lib-openssl = ["ffmpeg-sys-next/build-lib-openssl"]
44
45# filters
46build-lib-fontconfig = ["ffmpeg-sys-next/build-lib-fontconfig"]
47build-lib-frei0r = ["ffmpeg-sys-next/build-lib-frei0r"]
48build-lib-ladspa = ["ffmpeg-sys-next/build-lib-ladspa"]
49build-lib-ass = ["ffmpeg-sys-next/build-lib-ass"]
50build-lib-freetype = ["ffmpeg-sys-next/build-lib-freetype"]
51build-lib-freebidi = ["ffmpeg-sys-next/build-lib-freebidi"]
52build-lib-opencv = ["ffmpeg-sys-next/build-lib-opencv"]
53build-lib-vmaf = ["ffmpeg-sys-next/build-lib-vmaf"]
54
55# encoders/decoders
56build-lib-aacplus = ["ffmpeg-sys-next/build-lib-aacplus"]
57build-lib-celt = ["ffmpeg-sys-next/build-lib-celt"]
58build-lib-dav1d = ["ffmpeg-sys-next/build-lib-dav1d"]
59build-lib-dcadec = ["ffmpeg-sys-next/build-lib-dcadec"]
60build-lib-faac = ["ffmpeg-sys-next/build-lib-faac"]
61build-lib-fdk-aac = ["ffmpeg-sys-next/build-lib-fdk-aac"]
62build-lib-gsm = ["ffmpeg-sys-next/build-lib-gsm"]
63build-lib-ilbc = ["ffmpeg-sys-next/build-lib-ilbc"]
64build-lib-kvazaar = ["ffmpeg-sys-next/build-lib-kvazaar"]
65build-lib-mp3lame = ["ffmpeg-sys-next/build-lib-mp3lame"]
66build-lib-opencore-amrnb = ["ffmpeg-sys-next/build-lib-opencore-amrnb"]
67build-lib-opencore-amrwb = ["ffmpeg-sys-next/build-lib-opencore-amrwb"]
68build-lib-openh264 = ["ffmpeg-sys-next/build-lib-openh264"]
69build-lib-openjpeg = ["ffmpeg-sys-next/build-lib-openjpeg"]
70build-lib-opus = ["ffmpeg-sys-next/build-lib-opus"]
71build-lib-schroedinger = ["ffmpeg-sys-next/build-lib-schroedinger"]
72build-lib-shine = ["ffmpeg-sys-next/build-lib-shine"]
73build-lib-snappy = ["ffmpeg-sys-next/build-lib-snappy"]
74build-lib-speex = ["ffmpeg-sys-next/build-lib-speex"]
75build-lib-stagefright-h264 = ["ffmpeg-sys-next/build-lib-stagefright-h264"]
76build-lib-theora = ["ffmpeg-sys-next/build-lib-theora"]
77build-lib-twolame = ["ffmpeg-sys-next/build-lib-twolame"]
78build-lib-utvideo = ["ffmpeg-sys-next/build-lib-utvideo"]
79build-lib-vo-aacenc = ["ffmpeg-sys-next/build-lib-vo-aacenc"]
80build-lib-vo-amrwbenc = ["ffmpeg-sys-next/build-lib-vo-amrwbenc"]
81build-lib-vorbis = ["ffmpeg-sys-next/build-lib-vorbis"]
82build-lib-vpx = ["ffmpeg-sys-next/build-lib-vpx"]
83build-lib-wavpack = ["ffmpeg-sys-next/build-lib-wavpack"]
84build-lib-webp = ["ffmpeg-sys-next/build-lib-webp"]
85build-lib-x264 = ["ffmpeg-sys-next/build-lib-x264"]
86build-lib-x265 = ["ffmpeg-sys-next/build-lib-x265"]
87build-lib-avs = ["ffmpeg-sys-next/build-lib-avs"]
88build-lib-xvid = ["ffmpeg-sys-next/build-lib-xvid"]
89
90# protocols
91build-lib-smbclient = ["ffmpeg-sys-next/build-lib-smbclient"]
92build-lib-ssh = ["ffmpeg-sys-next/build-lib-ssh"]
93
94# components
95codec = ["ffmpeg-sys-next/avcodec"]
96device = ["ffmpeg-sys-next/avdevice", "format"]
97filter = ["ffmpeg-sys-next/avfilter"]
98format = ["ffmpeg-sys-next/avformat", "codec"]
99resampling = ["ffmpeg-sys-next/avresample"]
100postprocessing = ["ffmpeg-sys-next/postproc"]
101software-resampling = ["ffmpeg-sys-next/swresample"]
102software-scaling = ["ffmpeg-sys-next/swscale", "codec"]
103
104# platforms
105rpi = []
106
107[dependencies]
108libc = "0.2"
109bitflags = "1.2"
110
111[dependencies.image]
112version = "0.23"
113optional = true
114
115[dependencies.ffmpeg-sys-next]
116version = "6.1.0"
117default-features = false
118