ffmpeg can use libssl.so libcrypto.so dynamic library, or libssl.a libcrypto.a static library, the next is to say that obviously the inventory is there, but the compiler still can not find openssl.
Search the ffmpeg source code, and you can find that the prompt is printed in the configure file. The source code is as follows:
enabled openssl && { use_pkg_config openssl openssl/ssl.h OPENSSL_init_ssl ||
check_lib openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto ||
use_pkg_config openssl openssl/ssl.h SSL_library_init ||
check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto ||
check_lib openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
die "ERROR: openssl not found"; }
You can find that ffmpeg is trying OpenSSL one by one. My config The log shows that the last one has been checked, but OpenSSL is still not found.
The reason is that I am using a newer openssl library, the old openssl library uses ‘SSL_library_init’ to initialize, the newer openssl version uses ‘OPENSSL_init_ssl’ to initialize. The new version of openssl uses ‘OPENSSL_init_ssl’ to initialize, and because it does not pass the check, this error is reported here.
Solution:
Add a line to check ‘check_lib openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto ‘ and it will pass, above is what I have added.
Read More:
- [Solved] MacOS Compile ffmpeg Error: ERROR: openssl not found
- [Solved] ffmpeg error reporting: subprocess. Calledprocesserror: Command ‘ffmpeg, unknown encoder: “libx264″“
- ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
- [Solved] OpenCV VideoWriter Error: FFMPEG: tag ‘MP4V‘ is not supported with codec id 12 and format mp4
- [Solved] OpenSSL ssL_read: Connection was aborted,errno 10053
- Solution of adding H264 error in ffmpeg compilation
- QT calls the API of ffmpeg error [How to Solve]
- ffmpeg:error while loading shared libraries: libopenh264.so.5
- [Solved] An error occurred while processing your request…enable the Development environment by setting …
- OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failur
- Windows Install Docker Error: Cannot enable Hyper-V service
- [Solved] FFMPEG live encoding 2. session more error: [nvenc @ 0xa00480] OpenEncodeSessionEx failed: 0xa – invalid license key?
- [Solved] Git OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
- Docker Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid
- Git push error: RPC failed; curl 7 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
- QT error: – LGL not found [How to Solve]
- [Solved] github Access Error: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
- [Solved] Elasticsearch.service failed after enable elasticsearch security features
- [Solved] Error: Main class not found or could not be loaded com.jawasoft.
- [Solved] Github Push Codes Error: “error:RPC failed;curl 56 OpenSSL SSL_read:SSL_ERROR_SYSCALL,errno 10054”