Enable network support for FFmpeg

This patch configures FFmpeg with network support. This enables QtMM
to handle network source such as HTTP, HTTPS, or RTSP.
Details:
- on macOS and windows ffmpeg uses native security backend so we don't
  include openssl to the build. Additional patch for linking
  with the security backend is in QtMM commit under the same task.
- on linux we add openssl; for all CI linux platforms libssl-dev is
  installed.

Task-number: QTBUG-110708
Change-Id: I80a7dfda702c4d554df3a7380aac642890a28b94
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
(cherry picked from commit 9b88e24d71)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Artem Dyomin
2023-03-07 16:06:33 +01:00
committed by Qt Cherry-pick Bot
parent 5e4de74c32
commit ce9f86f287
2 changed files with 2 additions and 1 deletions

View File

@@ -1 +1 @@
--disable-programs --disable-doc --disable-debug --disable-network --disable-lzma --enable-pic
--disable-programs --disable-doc --disable-debug --enable-network --disable-lzma --enable-pic

View File

@@ -143,6 +143,7 @@ build_ffmpeg_android() {
}
if [ "$os" == "linux" ]; then
ffmpeg_config_options="$ffmpeg_config_options --enable-openssl"
build_ffmpeg
sudo mv "$ffmpeg_source_dir/build/installed/usr/local/$ffmpeg_name" "/usr/local"
SetEnvVar "FFMPEG_DIR" "/usr/local/$ffmpeg_name"