-
Notifications
You must be signed in to change notification settings - Fork 96
/
Cargo.toml
137 lines (117 loc) · 4.6 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[workspace]
members = [ "sys" ]
[package]
name = "ffmpeg"
version = "0.6.0"
build = "build.rs"
edition = "2021"
authors = ["meh. <meh@schizofreni.co>"]
license = "WTFPL"
description = "Safe FFmpeg wrapper"
repository = "https://github.com/meh/rust-ffmpeg"
keywords = ["audio", "video"]
[features]
default = ["codec", "device", "filter", "format", "resampling", "software-scaling"]
serde = ["serde_", "serde_derive", "ffmpeg-sys/serde"]
static = ["ffmpeg-sys/static"]
# Currently the version built by ffmpeg-sys is 6.0
build = ["static", "ffmpeg-sys/build", "ffmpeg_6_0"]
# licensing
build-license-gpl = ["ffmpeg-sys/build-license-gpl"]
build-license-nonfree = ["ffmpeg-sys/build-license-nonfree"]
build-license-version3 = ["ffmpeg-sys/build-license-version3"]
# misc
build-pic = ["ffmpeg-sys/build-pic"]
build-zlib = ["ffmpeg-sys/build-zlib"]
# ssl
build-lib-gnutls = ["ffmpeg-sys/build-lib-gnutls"]
build-lib-openssl = ["ffmpeg-sys/build-lib-openssl"]
# filters
build-lib-fontconfig = ["ffmpeg-sys/build-lib-fontconfig"]
build-lib-frei0r = ["ffmpeg-sys/build-lib-frei0r"]
build-lib-ladspa = ["ffmpeg-sys/build-lib-ladspa"]
build-lib-ass = ["ffmpeg-sys/build-lib-ass"]
build-lib-freetype = ["ffmpeg-sys/build-lib-freetype"]
build-lib-freebidi = ["ffmpeg-sys/build-lib-freebidi"]
build-lib-opencv = ["ffmpeg-sys/build-lib-opencv"]
# encoders/decoders
build-lib-aacplus = ["ffmpeg-sys/build-lib-aacplus"]
build-lib-celt = ["ffmpeg-sys/build-lib-celt"]
build-lib-dcadec = ["ffmpeg-sys/build-lib-dcadec"]
build-lib-faac = ["ffmpeg-sys/build-lib-faac"]
build-lib-fdk-aac = ["ffmpeg-sys/build-lib-fdk-aac"]
build-lib-gsm = ["ffmpeg-sys/build-lib-gsm"]
build-lib-ilbc = ["ffmpeg-sys/build-lib-ilbc"]
build-lib-kvazaar = ["ffmpeg-sys/build-lib-kvazaar"]
build-lib-mp3lame = ["ffmpeg-sys/build-lib-mp3lame"]
build-lib-opencore-amrnb = ["ffmpeg-sys/build-lib-opencore-amrnb"]
build-lib-opencore-amrwb = ["ffmpeg-sys/build-lib-opencore-amrwb"]
build-lib-openh264 = ["ffmpeg-sys/build-lib-openh264"]
build-lib-openjpeg = ["ffmpeg-sys/build-lib-openjpeg"]
build-lib-opus = ["ffmpeg-sys/build-lib-opus"]
build-lib-schroedinger = ["ffmpeg-sys/build-lib-schroedinger"]
build-lib-shine = ["ffmpeg-sys/build-lib-shine"]
build-lib-snappy = ["ffmpeg-sys/build-lib-snappy"]
build-lib-speex = ["ffmpeg-sys/build-lib-speex"]
build-lib-stagefright-h264 = ["ffmpeg-sys/build-lib-stagefright-h264"]
build-lib-theora = ["ffmpeg-sys/build-lib-theora"]
build-lib-twolame = ["ffmpeg-sys/build-lib-twolame"]
build-lib-utvideo = ["ffmpeg-sys/build-lib-utvideo"]
build-lib-vo-aacenc = ["ffmpeg-sys/build-lib-vo-aacenc"]
build-lib-vo-amrwbenc = ["ffmpeg-sys/build-lib-vo-amrwbenc"]
build-lib-vorbis = ["ffmpeg-sys/build-lib-vorbis"]
build-lib-vpx = ["ffmpeg-sys/build-lib-vpx"]
build-lib-wavpack = ["ffmpeg-sys/build-lib-wavpack"]
build-lib-webp = ["ffmpeg-sys/build-lib-webp"]
build-lib-x264 = ["ffmpeg-sys/build-lib-x264"]
build-lib-x265 = ["ffmpeg-sys/build-lib-x265"]
build-lib-avs = ["ffmpeg-sys/build-lib-avs"]
build-lib-xvid = ["ffmpeg-sys/build-lib-xvid"]
# protocols
build-lib-smbclient = ["ffmpeg-sys/build-lib-smbclient"]
build-lib-ssh = ["ffmpeg-sys/build-lib-ssh"]
# components
codec = ["ffmpeg-sys/avcodec"]
device = ["ffmpeg-sys/avdevice", "format"]
filter = ["ffmpeg-sys/avfilter"]
format = ["ffmpeg-sys/avformat", "codec"]
resampling = ["ffmpeg-sys/swresample"]
postprocessing = ["ffmpeg-sys/postproc"]
software-scaling = ["ffmpeg-sys/swscale", "codec"]
# The minimum version supported is FFMpeg 3.0, which is enabled automatically
ffmpeg_3_1 = []
ffmpeg_3_2 = ["ffmpeg_3_1"]
ffmpeg_3_3 = ["ffmpeg_3_2"]
ffmpeg_3_4 = ["ffmpeg_3_3"]
ffmpeg_4_0 = ["ffmpeg_3_4"]
ffmpeg_4_1 = ["ffmpeg_4_0"]
ffmpeg_4_2 = ["ffmpeg_4_1"]
ffmpeg_4_3 = ["ffmpeg_4_2"]
ffmpeg_4_4 = ["ffmpeg_4_3"]
ffmpeg_5_0 = ["ffmpeg_4_4"]
ffmpeg_5_1 = ["ffmpeg_5_0"]
ffmpeg_6_0 = ["ffmpeg_5_1"]
[dependencies]
libc = "0.2"
bitflags = "1.0"
thiserror = "1"
vsprintf = "2"
[dependencies.serde_]
version = "1.0.0"
optional = true
package = "serde"
[dependencies.serde_derive]
version = "1"
optional = true
[dependencies.image]
version = "0.23"
optional = true
[dependencies.ffmpeg-sys]
path = "sys"
default-features = false
[dependencies.log]
version = "0.4"
optional = true
[dev-dependencies]
env_logger = "0.8"
serde_json = "1"