]> granicus.if.org Git - handbrake/commitdiff
FFMPEG #974: Use latest FFMPEG 3.4.1 (1/2)
authorSven Gothel <sgothel@jausoft.com>
Mon, 25 Dec 2017 22:51:31 +0000 (23:51 +0100)
committerBradley Sepos <bradley@bradleysepos.com>
Tue, 29 May 2018 03:56:14 +0000 (23:56 -0400)
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.

contrib/ffmpeg/module.defs
gtk/configure.ac
libhb/module.defs
libhb/muxavformat.c
test/module.defs

index 2957761fbee127b9a9f49387fa30ba0094d37727..70c8577de54ecdc7845faf365caab006ab7e0803 100644 (file)
@@ -13,9 +13,9 @@ __deps__ += X264
 $(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.3.tar.gz
-FFMPEG.FETCH.url   += https://libav.org/releases/libav-12.3.tar.gz
-FFMPEG.FETCH.sha256 = 115b659022dd387f662e26fbc5bc0cc14ec18daa100003ffd34f4da0479b272e
+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  =
@@ -28,9 +28,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 \
@@ -38,6 +40,7 @@ FFMPEG.CONFIGURE.extra = \
     --disable-vaapi \
     --disable-vdpau \
     --disable-encoders \
+    --enable-avresample \
     --enable-libmp3lame \
     --enable-encoder=aac \
     --enable-encoder=ac3 \
@@ -53,6 +56,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 \
index 90a37c04a739f4451a908588e679ae34194bfd29..550cbaff4e260ce1055aef990f4ea77f86dd18f6 100644 (file)
@@ -177,7 +177,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*)
index d39f7d7b69011640576e9e5b3290d2ae2ac9a069..ba924b8419dd7edfddc2cdbec9f2e637e6b61e0a 100644 (file)
@@ -130,7 +130,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 )
index c599dda0ab2fa677277d1849aa5f1fddf0f314f6..c9115cf58fc3e970de4d69429b53c93b85db46c7 100644 (file)
@@ -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)
     {
index 2015bc21240a890561577c10b5c2e56396aa0be3..1260d7eac8d823f222d18edefd131252404e8ec0 100644 (file)
@@ -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