]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
transcoding: updated ffmpeg and libx264
authorToni Korhonen <tokorhon@gmail.com>
Mon, 15 May 2017 10:24:01 +0000 (13:24 +0300)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 May 2017 09:27:20 +0000 (11:27 +0200)
Makefile.ffmpeg
support/patches/libx264.configure.diff [deleted file]

index 78063c0c0a3fbaaae60a5503b73b5774da704804..d94ec47f8d00060c196de2c4300df07ffdeac644 100644 (file)
@@ -46,11 +46,10 @@ YASM_TB        = $(YASM).tar.gz
 YASM_URL       = http://www.tortall.net/projects/yasm/releases/$(YASM_TB)
 YASM_SHA1      = b7574e9f0826bedef975d64d3825f75fbaeef55e
 
-LIBX264        = x264-snapshot-20160502-2245
+LIBX264        = x264-snapshot-20170515-2245
 LIBX264_TB     = $(LIBX264).tar.bz2
 LIBX264_URL    = http://ftp.videolan.org/x264/snapshots/$(LIBX264_TB)
-LIBX264_SHA1   = 90c48dab878520a819905880bc4912834fe694fb
-LIBX264_DIFFS  = libx264.configure.diff
+LIBX264_SHA1   = 8079e472b3af5d54a20a8907d364b615a67fa6f2
 
 LIBX265        = x265_2.1
 LIBX265_TB     = $(LIBX265).tar.gz
@@ -94,10 +93,10 @@ LIBMFX_URL     = https://github.com/lu-zero/mfx_dispatch/archive/$(LIBMFX_TB)
 LIBMFX_SHA1    = 84dbdf4a6b409067e863eb9564bb2efdec6d39ce
 LIBMFX_DIFFS   = libmfx.linux.path.diff
 
-FFMPEG         = ffmpeg-3.2.4
+FFMPEG         = ffmpeg-3.3
 FFMPEG_TB      = $(FFMPEG).tar.bz2
 FFMPEG_URL     = http://ffmpeg.org/releases/$(FFMPEG_TB)
-FFMPEG_SHA1    = bfdd9bc3bb9808f1c31e5eede37c932ea9785812
+FFMPEG_SHA1    = 2590af8c754ce8d55745b1e5647e498bf271dc77
 
 
 # ##############################################################################
@@ -200,7 +199,6 @@ endif
 $(LIB_ROOT)/$(LIBX264)/.tvh_download:
        $(call DOWNLOAD,$(LIBX264_URL),$(LIB_ROOT)/$(LIBX264_TB),$(LIBX264_SHA1))
        $(call UNTAR,$(LIBX264_TB),j)
-       $(call PATCH,$(LIBX264),$(LIBX264_DIFFS))
        @touch $@
 
 $(LIB_ROOT)/$(LIBX264)/.tvh_build: \
diff --git a/support/patches/libx264.configure.diff b/support/patches/libx264.configure.diff
deleted file mode 100644 (file)
index b484b17..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-diff -urN ../x264-snapshot-20160217-2245.orig/configure ./configure
---- ../x264-snapshot-20160217-2245.orig/configure      2016-02-17 22:45:04.000000000 +0100
-+++ ./configure        2016-03-16 10:25:41.000913817 +0100
-@@ -364,6 +364,7 @@
- CHECK_CFLAGS=""
- HAVE_GETOPT_LONG=1
- cross_prefix=""
-+PKG_CONFIG="$PKG_CONFIG"
- EXE=""
- AS_EXT=".S"
-@@ -508,6 +509,10 @@
- STRIP="${STRIP-${cross_prefix}strip}"
- INSTALL="${INSTALL-install}"
-+if [ "x$PKG_CONFIG" = x ]; then
-+    PKG_CONFIG=${cross_prefix}pkg-config
-+fi
-+
- if [ "x$host" = x ]; then
-     host=`${SRCPATH}/config.guess`
- fi
-@@ -902,9 +907,9 @@
- if [ "$cli_libx264" = "system" -a "$shared" != "yes" ] ; then
-     [ "$static" = "yes" ] && die "Option --system-libx264 can not be used together with --enable-static"
--    if ${cross_prefix}pkg-config --exists x264 2>/dev/null; then
--        X264_LIBS="$(${cross_prefix}pkg-config --libs x264)"
--        X264_INCLUDE_DIR="${X264_INCLUDE_DIR-$(${cross_prefix}pkg-config --variable=includedir x264)}"
-+    if ${PKG_CONFIG} --exists x264 2>/dev/null; then
-+        X264_LIBS="$(${PKG_CONFIG} --libs x264)"
-+        X264_INCLUDE_DIR="${X264_INCLUDE_DIR-$(${PKG_CONFIG} --variable=includedir x264)}"
-         configure_system_override "$X264_INCLUDE_DIR" || die "Detection of system libx264 configuration failed"
-     else
-         die "Can not find system libx264"
-@@ -978,9 +983,9 @@
- if [ "$swscale" = "auto" ] ; then
-     swscale="no"
--    if ${cross_prefix}pkg-config --exists libswscale 2>/dev/null; then
--        SWSCALE_LIBS="$SWSCALE_LIBS $(${cross_prefix}pkg-config --libs libswscale libavutil)"
--        SWSCALE_CFLAGS="$SWSCALE_CFLAGS $(${cross_prefix}pkg-config --cflags libswscale libavutil)"
-+    if ${PKG_CONFIG} --exists libswscale 2>/dev/null; then
-+        SWSCALE_LIBS="$SWSCALE_LIBS $(${PKG_CONFIG} --libs libswscale libavutil)"
-+        SWSCALE_CFLAGS="$SWSCALE_CFLAGS $(${PKG_CONFIG} --cflags libswscale libavutil)"
-     fi
-     [ -z "$SWSCALE_LIBS" ] && SWSCALE_LIBS="-lswscale -lavutil"
-@@ -995,9 +1000,9 @@
- if [ "$lavf" = "auto" ] ; then
-     lavf="no"
--    if ${cross_prefix}pkg-config --exists libavformat libavcodec libswscale 2>/dev/null; then
--        LAVF_LIBS="$LAVF_LIBS $(${cross_prefix}pkg-config --libs libavformat libavcodec libavutil libswscale)"
--        LAVF_CFLAGS="$LAVF_CFLAGS $(${cross_prefix}pkg-config --cflags libavformat libavcodec libavutil libswscale)"
-+    if ${PKG_CONFIG} --exists libavformat libavcodec libswscale 2>/dev/null; then
-+        LAVF_LIBS="$LAVF_LIBS $(${PKG_CONFIG} --libs libavformat libavcodec libavutil libswscale)"
-+        LAVF_CFLAGS="$LAVF_CFLAGS $(${PKG_CONFIG} --cflags libavformat libavcodec libavutil libswscale)"
-     fi
-     if [ -z "$LAVF_LIBS" -a -z "$LAVF_CFLAGS" ]; then
-         LAVF_LIBS="-lavformat"
-@@ -1019,9 +1024,9 @@
-     ffms_major="2"; ffms_minor="16"; ffms_micro="2"; ffms_bump="0"
-     ffms="no"
--    if ${cross_prefix}pkg-config --exists ffms2 2>/dev/null; then
--        FFMS2_LIBS="$FFMS2_LIBS $(${cross_prefix}pkg-config --libs ffms2)"
--        FFMS2_CFLAGS="$FFMS2_CFLAGS $(${cross_prefix}pkg-config --cflags ffms2)"
-+    if ${PKG_CONFIG} --exists ffms2 2>/dev/null; then
-+        FFMS2_LIBS="$FFMS2_LIBS $(${PKG_CONFIG} --libs ffms2)"
-+        FFMS2_CFLAGS="$FFMS2_CFLAGS $(${PKG_CONFIG} --cflags ffms2)"
-     fi
-     [ -z "$FFMS2_LIBS" ] && FFMS2_LIBS="-lffms2"
-@@ -1061,9 +1066,9 @@
- if [ "$lsmash" = "auto" ] ; then
-     lsmash="no"
--    if ${cross_prefix}pkg-config --exists liblsmash 2>/dev/null; then
--        LSMASH_LIBS="$LSMASH_LIBS $(${cross_prefix}pkg-config --libs liblsmash)"
--        LSMASH_CFLAGS="$LSMASH_CFLAGS $(${cross_prefix}pkg-config --cflags liblsmash)"
-+    if ${PKG_CONFIG} --exists liblsmash 2>/dev/null; then
-+        LSMASH_LIBS="$LSMASH_LIBS $(${PKG_CONFIG} --libs liblsmash)"
-+        LSMASH_CFLAGS="$LSMASH_CFLAGS $(${PKG_CONFIG} --cflags liblsmash)"
-     fi
-     [ -z "$LSMASH_LIBS" ] && LSMASH_LIBS="-llsmash"
-@@ -1324,6 +1329,7 @@
- RANLIB=$RANLIB
- STRIP=$STRIP
- INSTALL=$INSTALL
-+PKG_CONFIG=$PKG_CONFIG
- AS=$AS
- ASFLAGS=$ASFLAGS
- RC=$RC
-@@ -1445,4 +1451,3 @@
- echo
- echo "You can run 'make' or 'make fprofiled' now."
--