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

contrib: bump ffmpeg

Brings many bug fixes, optimizations, and better abstraction of the
hardware decoding API. Removes VDA, as it is no longer supported in
FFmpeg and is deprecated by Apple. Also removes AVF patches; they are
already implemented in FFmpeg.

Change-Id: I15629531ad91296e77c16ec218b2bb6de5a705ba
parent b9468add
No related branches found
No related tags found
No related merge requests found
FFMPEG_HASH := n3.3.3 FFMPEG_HASH := a149fa97d9501d3a1749232cc60b6f122d9d2de8
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 +20,7 @@ FFMPEGCONF += \ ...@@ -20,8 +20,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 += \
...@@ -135,14 +134,10 @@ endif ...@@ -135,14 +134,10 @@ endif
ifdef HAVE_MACOSX ifdef HAVE_MACOSX
FFMPEGCONF += \ FFMPEGCONF += \
--enable-indev=avfcapture \
--enable-indev=avfgrab \
--enable-videotoolbox \ --enable-videotoolbox \
--enable-hwaccel=h263_videotoolbox \ --enable-hwaccel=h263_videotoolbox \
--enable-hwaccel=h264_videotoolbox \ --enable-hwaccel=h264_videotoolbox \
--enable-hwaccel=mpeg4_videotoolbox \ --enable-hwaccel=mpeg4_videotoolbox
--enable-vda \
--enable-hwaccel=h264_vda
endif endif
ifdef HAVE_IOS ifdef HAVE_IOS
...@@ -150,8 +145,7 @@ FFMPEGCONF += \ ...@@ -150,8 +145,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
...@@ -208,10 +202,6 @@ ffmpeg: ffmpeg-$(FFMPEG_HASH).tar.gz .sum-ffmpeg ...@@ -208,10 +202,6 @@ ffmpeg: ffmpeg-$(FFMPEG_HASH).tar.gz .sum-ffmpeg
mkdir -p $@-$(FFMPEG_HASH) mkdir -p $@-$(FFMPEG_HASH)
(cd $@-$(FFMPEG_HASH) && tar x $(if ${BATCH_MODE},,-v) --strip-components=1 -f ../$<) (cd $@-$(FFMPEG_HASH) && tar x $(if ${BATCH_MODE},,-v) --strip-components=1 -f ../$<)
$(UPDATE_AUTOCONFIG) $(UPDATE_AUTOCONFIG)
ifdef HAVE_MACOSX
$(APPLY) $(SRC)/ffmpeg/0004-add-avfcapture-device.patch
$(APPLY) $(SRC)/ffmpeg/0005-add-avfgrab-device.patch
endif
ifdef HAVE_ANDROID ifdef HAVE_ANDROID
ifeq ($(ARCH),arm) ifeq ($(ARCH),arm)
$(APPLY) $(SRC)/ffmpeg/0001-use-internal-log2-log2f.patch $(APPLY) $(SRC)/ffmpeg/0001-use-internal-log2-log2f.patch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment