summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2017-12-25 23:51:31 +0100
committerSven Gothel <[email protected]>2017-12-25 23:51:31 +0100
commit51b4cac2faed53f4e2eab75910b15eae45cd4387 (patch)
tree848648e9b5abd022a4112dfc57b2dc9adfc60db0
parentcb4dc4ec0a70a166f20112671b83d7426c5c82cc (diff)
FFMPEG #974: Use latest FFMPEG 3.4.1 (1/2)
Patch 1/2 for https://github.com/HandBrake/HandBrake/issues/974 moving to FFMPEG 3.4.1 from LIBAV 12.2. The re-ordering of to be linked modules was required to solve statically linked dependencies. See libhb/module.defs etc.
-rw-r--r--contrib/ffmpeg/module.defs22
-rw-r--r--gtk/configure.ac2
-rw-r--r--libhb/module.defs2
-rw-r--r--libhb/muxavformat.c2
-rw-r--r--test/module.defs2
5 files changed, 21 insertions, 9 deletions
diff --git a/contrib/ffmpeg/module.defs b/contrib/ffmpeg/module.defs
index e89440d58..5c80c8720 100644
--- a/contrib/ffmpeg/module.defs
+++ b/contrib/ffmpeg/module.defs
@@ -9,9 +9,9 @@ endif
$(eval $(call import.MODULE.defs,FFMPEG,ffmpeg,$(__deps__)))
$(eval $(call import.CONTRIB.defs,FFMPEG))
-FFMPEG.FETCH.url = https://download.handbrake.fr/handbrake/contrib/libav-12.2.tar.gz
-FFMPEG.FETCH.url += https://libav.org/releases/libav-12.2.tar.gz
-FFMPEG.FETCH.sha256 = 49c3ccda32458192c00ab25b30f4d1a6a4772b83458cbbf3a25b210d0688f55c
+FFMPEG.FETCH.url = http://www.ffmpeg.org/releases/ffmpeg-3.4.1.tar.gz
+FFMPEG.FETCH.url += https://download.handbrake.fr/handbrake/contrib/ffmpeg-3.4.1.tar.gz
+FFMPEG.FETCH.sha256 = 3b6824f2c3ddd6bde37b82f76c679867f5c18d0c040cea222afd93aac9bf7ad2
FFMPEG.CONFIGURE.deps =
FFMPEG.CONFIGURE.host =
@@ -24,9 +24,11 @@ FFMPEG.CONFIGURE.extra = \
--disable-doc \
--disable-bsfs \
--enable-bsf=aac_adtstoasc \
- --disable-avconv \
- --disable-avplay \
- --disable-avprobe \
+ --disable-programs \
+ --disable-ffmpeg \
+ --disable-ffplay \
+ --disable-ffprobe \
+ --disable-ffserver \
--disable-avdevice \
--disable-muxers \
--disable-network \
@@ -34,6 +36,7 @@ FFMPEG.CONFIGURE.extra = \
--disable-vaapi \
--disable-vdpau \
--disable-encoders \
+ --enable-avresample \
--enable-libmp3lame \
--enable-encoder=aac \
--enable-encoder=ac3 \
@@ -49,6 +52,13 @@ FFMPEG.CONFIGURE.extra = \
--disable-decoder=libvpx_vp8 \
--enable-encoder=libvpx_vp9 \
--disable-decoder=libvpx_vp9 \
+ --disable-decoder=crystalhd \
+ --disable-decoder=h264_crystalhd \
+ --disable-decoder=mpeg2_crystalhd \
+ --disable-decoder=mpeg4_crystalhd \
+ --disable-decoder=msmpeg4_crystalhd \
+ --disable-decoder=vc1_crystalhd \
+ --disable-decoder=wmv3_crystalhd \
--enable-zlib \
--enable-bzlib \
--enable-pthreads \
diff --git a/gtk/configure.ac b/gtk/configure.ac
index ebe42e142..dcaa34faf 100644
--- a/gtk/configure.ac
+++ b/gtk/configure.ac
@@ -170,7 +170,7 @@ PKG_CHECK_MODULES(GHB, [$GHB_PACKAGES])
GHB_CFLAGS="$HBINC $GHB_CFLAGS"
-HB_LIBS="-lhandbrake -lavresample -lavformat -lavcodec -lavfilter -lavutil -ldvdnav -ldvdread -lmp3lame -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lswscale -ltheoraenc -ltheoradec -lvpx -lz -lbz2 -lbluray -lass -lfontconfig -lfreetype -lxml2 -ljansson -lopus"
+HB_LIBS="-lhandbrake -lavresample -lavformat -lavfilter -lavcodec -lavutil -lswresample -lpostproc -ldvdnav -ldvdread -lmp3lame -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lswscale -ltheoraenc -ltheoradec -lvpx -lz -lbz2 -lbluray -lass -lfontconfig -lfreetype -lxml2 -ljansson -lopus"
case $host in
*-*-mingw*)
diff --git a/libhb/module.defs b/libhb/module.defs
index e36ec5fcb..74d39af51 100644
--- a/libhb/module.defs
+++ b/libhb/module.defs
@@ -128,7 +128,7 @@ LIBHB.dll = $(LIBHB.build/)hb.dll
LIBHB.lib = $(LIBHB.build/)hb.lib
LIBHB.dll.libs = $(foreach n, \
- ass avcodec avformat avfilter avutil avresample dvdnav dvdread \
+ ass avformat avfilter avcodec avutil avresample swresample postproc dvdnav dvdread \
freetype mp3lame samplerate swscale vpx theora vorbis vorbisenc ogg \
x264 xml2 bluray jansson harfbuzz opus, \
$(CONTRIB.build/)lib/lib$(n).a )
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c
index 62a270d5b..40095ca48 100644
--- a/libhb/muxavformat.c
+++ b/libhb/muxavformat.c
@@ -1197,10 +1197,12 @@ static int avformatMux(hb_mux_object_t *m, hb_mux_data_t *track, hb_buffer_t *bu
{
pkt.flags |= AV_PKT_FLAG_KEY;
}
+#ifdef AV_PKT_FLAG_DISPOSABLE
if (!(buf->s.flags & HB_FLAG_FRAMETYPE_REF))
{
pkt.flags |= AV_PKT_FLAG_DISPOSABLE;
}
+#endif
}
else if (buf->s.frametype & HB_FRAME_MASK_KEY)
{
diff --git a/test/module.defs b/test/module.defs
index 884d558d5..ce14771cf 100644
--- a/test/module.defs
+++ b/test/module.defs
@@ -14,7 +14,7 @@ TEST.GCC.L = $(CONTRIB.build/)lib
TEST.libs = $(LIBHB.a)
TEST.GCC.l = \
- ass avresample avformat avcodec avfilter avutil mp3lame dvdnav \
+ ass avresample avformat avfilter avcodec avutil swresample postproc mp3lame dvdnav \
dvdread fribidi \
samplerate swscale vpx theoraenc theoradec vorbis vorbisenc ogg x264 \
bluray freetype xml2 bz2 z jansson harfbuzz opus