$ git clone https://github.com/FFmpeg/FFmpeg.git
$ cd FFmpeg
$ ./configure --help | egrep -i '(ssl|tls)'
if openssl, librtmp or gmp is not used [no]
if openssl or librtmp is not used [no]
--enable-gnutls enable gnutls, needed for https support
if openssl is not used [no]
--enable-openssl enable openssl, needed for https support
if gnutls is not used [no]
--disable-schannel disable SChannel SSP, needed for TLS support on
Windows if openssl and gnutls are not used [autodetect]
--disable-securetransport disable Secure Transport, needed for TLS support
on OSX if openssl and gnutls are not used [autodetect]
Parece que você ativa com --enable-openssl
, mas adiciona cabeçalhos e bibliotecas da maneira antiga:
$ export CFLAGS="-I/usr/local/ssl/include -L/usr/local/ssl/lib -Wl,-rpath=/usr/local/ssl/lib"
$ CFLAGS="$CFLAGS" CXXFLAGS="$CFLAGS" ./configure --enable-openssl
...
configure
deve ser concluído com openssl
listado como uma biblioteca externa:
install prefix /usr/local
source path .
C compiler gcc
C library
ARCH x86 (generic)
big-endian no
runtime cpu detection yes
nasm yes
...
SSE enabled yes
SSSE3 enabled yes
AESNI enabled yes
AVX enabled yes
XOP enabled yes
...
makeinfo enabled yes
makeinfo supports HTML no
Enabled programs:
ffmpeg ffprobe ffserver
External libraries:
bzlib libxcb_shape openssl
iconv libxcb_shm videotoolbox
libxcb libxcb_xfixes zlib
...
E se você inspecionar config.log
, verá similar a:
check_func_headers openssl/ssl.h SSL_library_init -I/opt/local/include -L/opt/local/lib -lssl -lcrypto
check_ld cc -I/opt/local/include -L/opt/local/lib -lssl -lcrypto
check_cc -I/opt/local/include -L/opt/local/lib
BEGIN /var/folders/mk/y7lk0xrx72lcn_2q3d12jcch0000gn/T//ffconf.FRvR3v3L.c
1 #include <openssl/ssl.h>
2 long check_SSL_library_init(void) { return (long) SSL_library_init; }
3 int main(void) { return 0; }
O SSL_library_init
me diz que o FFmpeg só pode ser usado com o OpenSSL 1.0.2 e abaixo. Outros testes devem ser usados para o OpenSSL 1.1.0 e superior. Veja também Compilação e Instalação | Autoconf no wiki do OpenSSL.