Skip to content
Snippets Groups Projects
Commit 5066a44f authored by Philippe Gorley's avatar Philippe Gorley Committed by Adrien Béraud
Browse files

contrib: bump ffmpeg

A non exhautive list of what this bump brings:
- Direct 3D 11 hardware decoding (UWP)
- Uniform API for vaapi, vdpau, videotoolbox, dxva2 and d3d11va
- 32 bit MediaCodec fix (Android hardware decoding)
- Non X screen capture on Linux (Wayland support)
- Better VP9 support
- Various bug fixes and optimizations

Due to problems with the VideoToolbox acceleration, the bump for MacOS
is postponed.

Change-Id: Id05a1d789c90ea1321f10e801a036c47b6f76d88
parent 205d5be1
Branches
No related tags found
No related merge requests found
...@@ -425,6 +425,7 @@ AS_IF([test "x$with_restcpp" = "xyes"], [ ...@@ -425,6 +425,7 @@ AS_IF([test "x$with_restcpp" = "xyes"], [
); );
dnl Check for libav dnl Check for libav
AS_IF([test "${SYS}" = "darwin"], [
PKG_CHECK_MODULES(LIBAVUTIL, libavutil >= 55.58.100,, AC_MSG_ERROR([Missing libavutil development files])) PKG_CHECK_MODULES(LIBAVUTIL, libavutil >= 55.58.100,, AC_MSG_ERROR([Missing libavutil development files]))
PKG_CHECK_MODULES(LIBAVCODEC, libavcodec >= 53.89.100,, AC_MSG_ERROR([Missing libavcodec development files])) PKG_CHECK_MODULES(LIBAVCODEC, libavcodec >= 53.89.100,, AC_MSG_ERROR([Missing libavcodec development files]))
...@@ -435,6 +436,18 @@ PKG_CHECK_MODULES(LIBAVFORMAT, libavformat >= 57.71.100,, AC_MSG_ERROR([Missing ...@@ -435,6 +436,18 @@ PKG_CHECK_MODULES(LIBAVFORMAT, libavformat >= 57.71.100,, AC_MSG_ERROR([Missing
PKG_CHECK_MODULES(LIBAVDEVICE, libavdevice >= 57.6.100,, AC_MSG_ERROR([Missing libavdevice development files])) PKG_CHECK_MODULES(LIBAVDEVICE, libavdevice >= 57.6.100,, AC_MSG_ERROR([Missing libavdevice development files]))
PKG_CHECK_MODULES(LIBSWSCALE, libswscale >= 4.6.100,, AC_MSG_ERROR([Missing libswscale development files])) PKG_CHECK_MODULES(LIBSWSCALE, libswscale >= 4.6.100,, AC_MSG_ERROR([Missing libswscale development files]))
],[
PKG_CHECK_MODULES(LIBAVUTIL, libavutil >= 55.75.100,, AC_MSG_ERROR([Missing libavutil development files]))
PKG_CHECK_MODULES(LIBAVCODEC, libavcodec >= 53.106.101,, AC_MSG_ERROR([Missing libavcodec development files]))
LIBAVCODEC_CFLAGS="${LIBAVCODEC_CFLAGS} -D__STDC_CONSTANT_MACROS"
PKG_CHECK_MODULES(LIBAVFORMAT, libavformat >= 57.81.100,, AC_MSG_ERROR([Missing libavformat development files]))
PKG_CHECK_MODULES(LIBAVDEVICE, libavdevice >= 57.8.101,, AC_MSG_ERROR([Missing libavdevice development files]))
PKG_CHECK_MODULES(LIBSWSCALE, libswscale >= 4.7.103,, AC_MSG_ERROR([Missing libswscale development files]))
]);
dnl Video is default-enabled dnl Video is default-enabled
AC_ARG_ENABLE([video], AS_HELP_STRING([--disable-video], [Disable video])) AC_ARG_ENABLE([video], AS_HELP_STRING([--disable-video], [Disable video]))
......
ifndef HAVE_MACOSX
FFMPEG_HASH := 18516d3e695980525bd9758dc7b8a8e36cd3f09e
else
FFMPEG_HASH := n3.3.3 FFMPEG_HASH := n3.3.3
endif
FFMPEG_URL := https://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/$(FFMPEG_HASH).tar.gz FFMPEG_URL := https://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/$(FFMPEG_HASH).tar.gz
PKGS+=ffmpeg PKGS+=ffmpeg
ifeq ($(call need_pkg,"libavutil >= 55.58.100 libavcodec >= 57.89.100 libavformat >= 57.71.100 libavdevice >= 57.6.100 libswscale >= 4.6.100"),) ifeq ($(call need_pkg,"libavutil >= 55.75.100 libavcodec >= 57.106.101 libavformat >= 57.82.100 libavdevice >= 57.8.101 libswscale >= 4.7.103"),)
PKGS_FOUND += ffmpeg PKGS_FOUND += ffmpeg
endif endif
...@@ -20,8 +24,7 @@ FFMPEGCONF += \ ...@@ -20,8 +24,7 @@ FFMPEGCONF += \
--enable-gpl \ --enable-gpl \
--enable-swscale \ --enable-swscale \
--enable-protocols \ --enable-protocols \
--disable-programs \ --disable-programs
--disable-sdl
#enable muxers/demuxers #enable muxers/demuxers
FFMPEGCONF += \ FFMPEGCONF += \
...@@ -137,6 +140,7 @@ endif ...@@ -137,6 +140,7 @@ endif
ifdef HAVE_MACOSX ifdef HAVE_MACOSX
FFMPEGCONF += \ FFMPEGCONF += \
--disable-sdl \
--enable-indev=avfoundation \ --enable-indev=avfoundation \
--enable-videotoolbox \ --enable-videotoolbox \
--enable-hwaccel=h263_videotoolbox \ --enable-hwaccel=h263_videotoolbox \
...@@ -149,8 +153,7 @@ FFMPEGCONF += \ ...@@ -149,8 +153,7 @@ FFMPEGCONF += \
--target-os=darwin \ --target-os=darwin \
--enable-cross-compile \ --enable-cross-compile \
--arch=$(ARCH) \ --arch=$(ARCH) \
--enable-pic \ --enable-pic
--enable-indev=avfoundation
endif endif
ifndef HAVE_IOS ifndef HAVE_IOS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment