@@ -49,7 +49,33 @@ def configure(self):
49
49
if self .options .shared :
50
50
del self .options .fPIC
51
51
52
- # self.options["ffmpeg"].disable_everything=True
52
+ self .options ["ffmpeg" ].disable_all_encoders = True
53
+ self .options ["ffmpeg" ].enable_encoders = 'libx264'
54
+
55
+ self .options ["ffmpeg" ].disable_all_decoders = True
56
+ self .options ["ffmpeg" ].enable_decoders = 'h264,hevc,mpegvideo,mpeg1video,mpeg2video,mpeg4,mjpeg'
57
+
58
+ self .options ["ffmpeg" ].disable_all_muxers = True
59
+ self .options ["ffmpeg" ].enable_muxers = 'rtp,rtsp,mov,h264,hevc,matroska,mp4'
60
+
61
+ self .options ["ffmpeg" ].disable_all_demuxers = True
62
+ self .options ["ffmpeg" ].enable_demuxers = 'rtp,rtsp,h264,hevc,mov,matroska,mjpeg,mpeg,mpegvideo'
63
+
64
+ self .options ["ffmpeg" ].disable_all_protocols = True
65
+ self .options ["ffmpeg" ].enable_protocols = 'rtp,srtp,udp,tcp,file,async'
66
+
67
+ self .options ["ffmpeg" ].disable_all_parsers = True
68
+ self .options ["ffmpeg" ].disable_all_hardware_accelerators = True
69
+ self .options ["ffmpeg" ].disable_all_bitstream_filters = True
70
+ self .options ["ffmpeg" ].disable_all_devices = True
71
+ self .options ["ffmpeg" ].disable_all_filters = True
72
+
73
+ self .options ["ffmpeg" ].avformat = True
74
+ self .options ["ffmpeg" ].avcodec = True
75
+ self .options ["ffmpeg" ].swscale = True
76
+ self .options ["ffmpeg" ].avdevice = False
77
+ self .options ["ffmpeg" ].avfilter = False
78
+ self .options ["ffmpeg" ].swresample = False
53
79
54
80
self .options ["ffmpeg" ].with_asm = True
55
81
self .options ["ffmpeg" ].with_zlib = True
@@ -69,14 +95,19 @@ def configure(self):
69
95
self .options ["ffmpeg" ].with_libmp3lame = False
70
96
self .options ["ffmpeg" ].with_libfdk_aac = False
71
97
self .options ["ffmpeg" ].with_libwebp = False
72
- self .options ["ffmpeg" ].with_ssl = "openssl"
73
- self .options ["ffmpeg" ].with_libalsa = False
74
- self .options ["ffmpeg" ].with_pulse = False
75
- self .options ["ffmpeg" ].with_vaapi = False
76
- self .options ["ffmpeg" ].with_vdpau = False
77
- self .options ["ffmpeg" ].with_vulkan = False
78
- self .options ["ffmpeg" ].with_xcb = False
79
- self .options ["ffmpeg" ].with_programs = False
98
+ self .options ["ffmpeg" ].with_ssl = 'openssl'
99
+ self .options ["ffmpeg" ].with_programs = True
100
+ self .options ["ffmpeg" ].with_libsvtav1 = False
101
+ self .options ["ffmpeg" ].with_libaom = False
102
+ self .options ["ffmpeg" ].with_libdav1d = False
103
+
104
+ if self .settings .os == "Linux" :
105
+ self .options ["ffmpeg" ].with_libalsa = False
106
+ self .options ["ffmpeg" ].with_pulse = False
107
+ self .options ["ffmpeg" ].with_vaapi = False
108
+ self .options ["ffmpeg" ].with_vdpau = False
109
+ self .options ["ffmpeg" ].with_vulkan = False
110
+ self .options ["ffmpeg" ].with_xcb = False
80
111
81
112
def generate (self ):
82
113
tc = CMakeToolchain (self )
0 commit comments