diff options
author | Andrew Strong <andrew.david.strong@gmail.com> | 2023-03-11 22:15:09 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-03-11 22:15:09 +0700 |
commit | d5af654e8d21e5cf46514c552e00e7aa883b9322 (patch) | |
tree | 05a617ed7db5926de3a5a8c433cb92677901fcaa /multimedia/vvenc | |
parent | bfc0613d5ff228301737e5e7021eccb549356f70 (diff) |
multimedia/vvenc: Added (Fraunhofer Versatile Video Encoder).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/vvenc')
-rw-r--r-- | multimedia/vvenc/README | 19 | ||||
-rw-r--r-- | multimedia/vvenc/slack-desc | 19 | ||||
-rw-r--r-- | multimedia/vvenc/vvenc.SlackBuild | 110 | ||||
-rw-r--r-- | multimedia/vvenc/vvenc.info | 10 |
4 files changed, 158 insertions, 0 deletions
diff --git a/multimedia/vvenc/README b/multimedia/vvenc/README new file mode 100644 index 0000000000000..e730b8c6dfdf6 --- /dev/null +++ b/multimedia/vvenc/README @@ -0,0 +1,19 @@ +The Fraunhofer Versatile Video Encoder (VVenC) is an +H.266/VVC encoder. Command line options can be seen +by running the following: + + vvencapp --help + vvencFFapp --help + +Two issues with the 32bit build currently exist: + + 1. VVenC does not currently build on 32bit Linux + although a fix for this is in progress upstream; + see Issue 242 on the VVenC github site. + 2. When failure to build is addressed it is unlikely + that the memory limits of 32bit processors will allow + effective encoding. + +Note that playback of H.266/VVC files is also currently a +little challenging under Linux, although 3rd party patches +for FFmpeg exist. diff --git a/multimedia/vvenc/slack-desc b/multimedia/vvenc/slack-desc new file mode 100644 index 0000000000000..4d5331ef30bd7 --- /dev/null +++ b/multimedia/vvenc/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +vvenc: vvenc (Fraunhofer Versatile Video Encoder) +vvenc: +vvenc: A fast and efficient H.266/VVC encoder implementation. +vvenc: +vvenc: +vvenc: +vvenc: +vvenc: https://github.com/fraunhoferhhi/vvenc +vvenc: +vvenc: +vvenc: diff --git a/multimedia/vvenc/vvenc.SlackBuild b/multimedia/vvenc/vvenc.SlackBuild new file mode 100644 index 0000000000000..c2fbedcf44b18 --- /dev/null +++ b/multimedia/vvenc/vvenc.SlackBuild @@ -0,0 +1,110 @@ +#!/bin/bash +# ---------------------------------------------------------------------- +# Slackware build script for vvenc +# +# Copyright (c) 2023 Andrew Strong, Blue Mountains, Australia. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# ---------------------------------------------------------------------- + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=vvenc +VERSION=${VERSION:-1.7.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR:PATH=lib${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_INCLUDEDIR:PATH=include \ + -DBUILD_SHARED_LIBS=1 \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG +cd .. + +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/configs +cp -a *.md changelog.txt LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION +# Some sample config files for optional use with vvencFFapp: +cp -a cfg/* $PKG/usr/doc/$PRGNAM-$VERSION/configs + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/multimedia/vvenc/vvenc.info b/multimedia/vvenc/vvenc.info new file mode 100644 index 0000000000000..af0bda914c481 --- /dev/null +++ b/multimedia/vvenc/vvenc.info @@ -0,0 +1,10 @@ +PRGNAM="vvenc" +VERSION="1.7.0" +HOMEPAGE="https://github.com/fraunhoferhhi/vvenc" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://github.com/fraunhoferhhi/vvenc/archive/v1.7.0/vvenc-1.7.0.tar.gz" +MD5SUM_x86_64="bd14534787f4180cd5bebb248b27285f" +REQUIRES="" +MAINTAINER="Andrew Strong" +EMAIL="andrew.david.strong@gmail.com" |