Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2019 07:46:40 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r493156 - in head/multimedia: . ffmpeg svt-vp9
Message-ID:  <201902170746.x1H7keIo061338@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sun Feb 17 07:46:40 2019
New Revision: 493156
URL: https://svnweb.freebsd.org/changeset/ports/493156

Log:
  multimedia/ffmpeg: add another VP9 encoder

Added:
  head/multimedia/svt-vp9/
  head/multimedia/svt-vp9/Makefile   (contents, props changed)
  head/multimedia/svt-vp9/distinfo   (contents, props changed)
  head/multimedia/svt-vp9/pkg-descr   (contents, props changed)
  head/multimedia/svt-vp9/pkg-plist   (contents, props changed)
Modified:
  head/multimedia/Makefile   (contents, props changed)
  head/multimedia/ffmpeg/Makefile   (contents, props changed)
  head/multimedia/ffmpeg/distinfo   (contents, props changed)

Modified: head/multimedia/Makefile
==============================================================================
--- head/multimedia/Makefile	Sun Feb 17 07:46:34 2019	(r493155)
+++ head/multimedia/Makefile	Sun Feb 17 07:46:40 2019	(r493156)
@@ -401,6 +401,7 @@
     SUBDIR += subtitleripper
     SUBDIR += subtools
     SUBDIR += svt-av1
+    SUBDIR += svt-vp9
     SUBDIR += swfdec-gnome
     SUBDIR += syncplay
     SUBDIR += szap-s2

Modified: head/multimedia/ffmpeg/Makefile
==============================================================================
--- head/multimedia/ffmpeg/Makefile	Sun Feb 17 07:46:34 2019	(r493155)
+++ head/multimedia/ffmpeg/Makefile	Sun Feb 17 07:46:40 2019	(r493156)
@@ -73,7 +73,7 @@ OPTIONS_RADIO_SSL=	GNUTLS MBEDTLS OPENSSL
 OPTIONS_GROUP=	LICENSE
 OPTIONS_GROUP_LICENSE=	GPL3 NONFREE
 
-OPTIONS_DEFINE_amd64=	BEIGNET MMX SSE SVTAV1
+OPTIONS_DEFINE_amd64=	BEIGNET MMX SSE SVTAV1 SVTVP9
 OPTIONS_DEFINE_armv6=	VFP NEON
 OPTIONS_DEFINE_i386=	BEIGNET MMX SSE
 OPTIONS_DEFAULT_amd64=	MMX SSE
@@ -108,6 +108,7 @@ RTCPU_DESC=	Detect CPU capabilities at runtime
 RTMP_DESC=	RTMP(T)E protocol support
 SRT_DESC=	Haivision SRT protocol via libsrt
 SVTAV1_DESC=	AV1 encoding via SVT-AV1
+SVTVP9_DESC=	VP9 encoding via SVT-VP9
 LIBRTMP_DESC=	${RTMP_DESC} via librtmp
 TENSORFLOW_DESC=TensorFlow as a DNN module backend for DNN based filters like sr
 TESSERACT_DESC=	Optical Character Recognition via Tesseract
@@ -413,8 +414,21 @@ SVTAV1_LIB_DEPENDS=	libSvtAv1Enc.so:multimedia/svt-av1
 SVTAV1_CONFIGURE_ON=	--enable-libsvtav1
 SVTAV1_PATCH_SITES=	https://github.com/OpenVisualCloud/SVT-AV1/raw/37a5b96/ffmpeg_plugin/:svtav1
 SVTAV1_PATCHFILES=	0001-Add-ability-for-ffmpeg-to-run-svt-av1.patch:-p1:svtav1
+SVTAV1_PREVENTS=	SVTVP9
+SVTAV1_PREVENTS_MSG=	Both vendor patches cannot be applied at the same time
 .if make(makesum)
 .MAKEFLAGS:		WITH+=SVTAV1
+.endif
+
+# svt-vp9
+SVTVP9_LIB_DEPENDS=	libSvtVp9Enc.so:multimedia/svt-vp9
+SVTVP9_CONFIGURE_ON=	--enable-libsvtvp9
+SVTVP9_PATCH_SITES=	https://github.com/OpenVisualCloud/SVT-VP9/raw/2437369/ffmpeg_plugin/:svtvp9
+SVTVP9_PATCHFILES=	0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch:-p1:svtvp9
+SVTVP9_PREVENTS=	SVTAV1
+SVTVP9_PREVENTS_MSG=	${SVTAV1_PREVENTS_MSG}
+.if make(makesum)
+.MAKEFLAGS:		WITH+=SVTVP9
 .endif
 
 # tensorflow

Modified: head/multimedia/ffmpeg/distinfo
==============================================================================
--- head/multimedia/ffmpeg/distinfo	Sun Feb 17 07:46:34 2019	(r493155)
+++ head/multimedia/ffmpeg/distinfo	Sun Feb 17 07:46:40 2019	(r493156)
@@ -3,3 +3,5 @@ SHA256 (ffmpeg-4.1.1.tar.xz) = 373749824dfd334d84e55df
 SIZE (ffmpeg-4.1.1.tar.xz) = 8893404
 SHA256 (0001-Add-ability-for-ffmpeg-to-run-svt-av1.patch) = ffe17691750a952591090e6f7396a6063a0c48907bc4023db15e088a7673528a
 SIZE (0001-Add-ability-for-ffmpeg-to-run-svt-av1.patch) = 20364
+SHA256 (0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch) = c8e8652924887eadbe3455af89f213a89b119d8e172fdad5a12d53fea64d1391
+SIZE (0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch) = 18613

Added: head/multimedia/svt-vp9/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/svt-vp9/Makefile	Sun Feb 17 07:46:40 2019	(r493156)
@@ -0,0 +1,52 @@
+# $FreeBSD$
+
+PORTNAME=	svt-vp9
+PORTVERSION=	s20180215
+CATEGORIES=	multimedia
+
+MAINTAINER=	jbeich@FreeBSD.org
+COMMENT=	Scalable VP9 encoder
+
+LICENSE=	BSD2CLAUSE+PATENT
+LICENSE_GROUPS=	FSF OSI COPYFREE
+LICENSE_NAME=	BSD-2-Clause Plus Patent License
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+ONLY_FOR_ARCHS=	amd64
+ONLY_FOR_ARCHS_REASON=	uses x86-64 assembly
+
+BUILD_DEPENDS=	nasm:devel/nasm
+
+USES=		cmake
+USE_GITHUB=	yes
+USE_LDCONFIG=	yes
+GH_ACCOUNT=	OpenVisualCloud
+GH_PROJECT=	SVT-VP9
+GH_TAGNAME=	2437369
+
+post-patch:
+# Default CFLAGS are already set by USES=cmake
+	@${REINPLACE_CMD} -i .flags -E -e 's/ -mavx//' \
+		-e 's/-O2 -flto //' \
+		-e '/C_FLAGS_(RELEASE|DEBUG)/d' \
+		${WRKSRC}/CMakeLists.txt
+# Avoid devel/yasm dependency
+	@${REINPLACE_CMD} -i .typo 's/MAKE_ASM_NASM_COMPILER/s&/' \
+		${WRKSRC}/CMakeLists.txt
+# Avoid lang/gcc* dependency
+	@${REINPLACE_CMD} -i .gcc -e 's/gcc-//' \
+		-e '/CMAKE_C/{ s/STREQUAL/MATCHES/; s/"GNU/&|Clang/; }' \
+		${WRKSRC}/CMakeLists.txt \
+		${WRKSRC}/Source/Lib/*/CMakeLists.txt
+# Avoid conflict with standard types
+	@${GREP} -Flr '_T_DEFINED' ${WRKSRC} | ${XARGS} \
+		${REINPLACE_CMD} -i .types 's/_T_DEFINED/_DEFINED/'
+# Avoid platform whitelists for generic non-Windows code
+	@${REINPLACE_CMD} -i .opsys 's/Linux/${OPSYS}/' \
+		${WRKSRC}/CMakeLists.txt \
+		${WRKSRC}/Source/Lib/*/CMakeLists.txt
+	@${GREP} -Flr '__linux' ${WRKSRC} | ${XARGS} \
+		${REINPLACE_CMD} -i .opsys 's/__linux/__${OPSYS}/'
+
+.include <bsd.port.mk>

Added: head/multimedia/svt-vp9/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/svt-vp9/distinfo	Sun Feb 17 07:46:40 2019	(r493156)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1550281931
+SHA256 (OpenVisualCloud-SVT-VP9-s20180215-2437369_GH0.tar.gz) = 892ec4b0430dcfdf5baa550639d6ebe6924bf4a82f81e9ba5f76e078535dd746
+SIZE (OpenVisualCloud-SVT-VP9-s20180215-2437369_GH0.tar.gz) = 968013

Added: head/multimedia/svt-vp9/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/svt-vp9/pkg-descr	Sun Feb 17 07:46:40 2019	(r493156)
@@ -0,0 +1,6 @@
+The Scalable Video Technology for VP9 Encoder (SVT-VP9 Encoder) is a
+VP9-compliant encoder library core. The SVT-VP9 Encoder development is
+a work-in-progress targeting performance levels applicable to both VOD
+and Live encoding/transcoding video applications.
+
+WWW: https://github.com/OpenVisualCloud/SVT-VP9

Added: head/multimedia/svt-vp9/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/svt-vp9/pkg-plist	Sun Feb 17 07:46:40 2019	(r493156)
@@ -0,0 +1,7 @@
+bin/SvtVp9EncApp
+include/svt-vp9/EbApi.h
+include/svt-vp9/EbErrorCodes.h
+include/svt-vp9/EbTime.h
+lib/libSvtVp9Enc.so
+lib/libSvtVp9Enc.so.1
+libdata/pkgconfig/SvtVp9Enc.pc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902170746.x1H7keIo061338>