pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia ffmpeg4/ffplay4: added version...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a0e5b7407dd3
branches:  trunk
changeset: 306771:a0e5b7407dd3
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Apr 26 07:56:57 2018 +0000
description:
ffmpeg4/ffplay4: added version 4.0

version 4.0:
- Bitstream filters for editing metadata in H.264, HEVC and MPEG-2 streams
- Dropped support for OpenJPEG versions 2.0 and below. Using OpenJPEG now
  requires 2.1 (or later) and pkg-config.
- VDA dropped (use VideoToolbox instead)
- MagicYUV encoder
- Raw AMR-NB and AMR-WB demuxers
- TiVo ty/ty+ demuxer
- Intel QSV-accelerated MJPEG encoding
- PCE support for extended channel layouts in the AAC encoder
- native aptX and aptX HD encoder and decoder
- Raw aptX and aptX HD muxer and demuxer
- NVIDIA NVDEC-accelerated H.264, HEVC, MJPEG, MPEG-1/2/4, VC1, VP8/9 hwaccel decoding
- Intel QSV-accelerated overlay filter
- mcompand audio filter
- acontrast audio filter
- OpenCL overlay filter
- video mix filter
- video normalize filter
- audio lv2 wrapper filter
- VAAPI MJPEG and VP8 decoding
- AMD AMF H.264 and HEVC encoders
- video fillborders filter
- video setrange filter
- nsp demuxer
- support LibreSSL (via libtls)
- AVX-512/ZMM support added
- Dropped support for building for Windows XP. The minimum supported Windows
  version is Windows Vista.
- deconvolve video filter
- entropy video filter
- hilbert audio filter source
- aiir audio filter
- aiff: add support for CD-ROM XA ADPCM
- Removed the ffserver program
- Removed the ffmenc and ffmdec muxer and demuxer
- VideoToolbox HEVC encoder and hwaccel
- VAAPI-accelerated ProcAmp (color balance), denoise and sharpness filters
- Add android_camera indev
- codec2 en/decoding via libcodec2
- muxer/demuxer for raw codec2 files and .c2 files
- Moved nvidia codec headers into an external repository.
  They can be found at http://git.videolan.org/?p=ffmpeg/nv-codec-headers.git
- native SBC encoder and decoder
- drmeter audio filter
- hapqa_extract bitstream filter
- filter_units bitstream filter
- AV1 Support through libaom
- E-AC-3 dependent frames support
- bitstream filter for extracting E-AC-3 core
- Haivision SRT protocol via libsrt
- segafilm muxer
- vfrdet filter

diffstat:

 multimedia/Makefile                                  |    4 +-
 multimedia/ffmpeg4/ALTERNATIVES                      |    2 +
 multimedia/ffmpeg4/DESCR                             |    5 +
 multimedia/ffmpeg4/Makefile                          |   55 ++++
 multimedia/ffmpeg4/Makefile.common                   |   90 ++++++
 multimedia/ffmpeg4/PLIST                             |  259 +++++++++++++++++++
 multimedia/ffmpeg4/buildlink3.mk                     |   59 ++++
 multimedia/ffmpeg4/distinfo                          |   13 +
 multimedia/ffmpeg4/options.mk                        |  221 ++++++++++++++++
 multimedia/ffmpeg4/patches/patch-Makefile            |   15 +
 multimedia/ffmpeg4/patches/patch-configure           |   52 +++
 multimedia/ffmpeg4/patches/patch-doc_Makefile        |   31 ++
 multimedia/ffmpeg4/patches/patch-libavformat_sctp.c  |   17 +
 multimedia/ffmpeg4/patches/patch-libavutil_common.h  |   29 ++
 multimedia/ffmpeg4/patches/patch-libavutil_x86_asm.h |   18 +
 multimedia/ffmpeg4/patches/patch-libavutil_x86_cpu.c |   22 +
 multimedia/ffplay4/DESCR                             |    3 +
 multimedia/ffplay4/Makefile                          |   35 ++
 multimedia/ffplay4/PLIST                             |    3 +
 19 files changed, 932 insertions(+), 1 deletions(-)

diffs (truncated from 1024 to 300 lines):

diff -r 2b6e62e74da1 -r a0e5b7407dd3 multimedia/Makefile
--- a/multimedia/Makefile       Thu Apr 26 07:55:21 2018 +0000
+++ b/multimedia/Makefile       Thu Apr 26 07:56:57 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.261 2018/04/25 21:38:52 kamil Exp $
+# $NetBSD: Makefile,v 1.262 2018/04/26 07:56:57 adam Exp $
 #
 
 COMMENT=       Multimedia utilities
@@ -32,11 +32,13 @@
 SUBDIR+=       ffmpeg2
 SUBDIR+=       ffmpeg2theora
 SUBDIR+=       ffmpeg3
+SUBDIR+=       ffmpeg4
 SUBDIR+=       ffmpegthumbnailer
 SUBDIR+=       ffmpegthumbs
 SUBDIR+=       ffplay1
 SUBDIR+=       ffplay2
 SUBDIR+=       ffplay3
+SUBDIR+=       ffplay4
 SUBDIR+=       flashplayer
 SUBDIR+=       flvstreamer
 SUBDIR+=       fuppes
diff -r 2b6e62e74da1 -r a0e5b7407dd3 multimedia/ffmpeg4/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ffmpeg4/ALTERNATIVES   Thu Apr 26 07:56:57 2018 +0000
@@ -0,0 +1,2 @@
+bin/ffmpeg @PREFIX@/bin/ffmpeg4
+bin/ffprobe @PREFIX@/bin/ffprobe4
diff -r 2b6e62e74da1 -r a0e5b7407dd3 multimedia/ffmpeg4/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ffmpeg4/DESCR  Thu Apr 26 07:56:57 2018 +0000
@@ -0,0 +1,5 @@
+FFmpeg is a complete, cross-platform solution to record, convert
+and stream audio and video.  It includes libavcodec - the leading
+audio/video codec library.
+
+This package contains major version 3.
diff -r 2b6e62e74da1 -r a0e5b7407dd3 multimedia/ffmpeg4/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ffmpeg4/Makefile       Thu Apr 26 07:56:57 2018 +0000
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1 2018/04/26 07:56:57 adam Exp $
+
+PKGNAME=       ${DISTNAME:S/ffmpeg/ffmpeg4/}
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://ffmpeg.mplayerhq.hu/
+COMMENT=       Decoding, encoding and streaming software (v3.x)
+
+CONFIGURE_ARGS+=       --enable-avfilter
+CONFIGURE_ARGS+=       --enable-avresample
+CONFIGURE_ARGS+=       --enable-postproc
+CONFIGURE_ARGS+=       --enable-rpath
+CONFIGURE_ARGS+=       --disable-ffplay
+
+INSTALLATION_DIRS=     lib/ffmpeg4 share/doc/ffmpeg4 share/examples/ffmpeg4
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+CONFIGURE_ARGS+=       --enable-cross-compile
+CONFIGURE_ARGS+=       --host-cc=${NATIVE_CC:Q}
+CONFIGURE_ARGS+=       --host-ld=${NATIVE_CC:Q}
+CONFIGURE_ARGS+=       --target-os=${LOWER_OPSYS}
+.endif
+
+PRINT_PLIST_AWK+=      /html/ { $$0 = "$${PLIST.doc}" $$0 }
+PRINT_PLIST_AWK+=      /opencl/ { $$0 = "$${PLIST.opencl}" $$0 }
+
+TEST_TARGET=   check
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/doc/*.txt \
+               ${DESTDIR}${PREFIX}/share/doc/ffmpeg4
+
+.include "options.mk"
+
+.include "../../mk/compiler.mk"
+
+# disable asm on i386 for non-gcc and gcc < 4.2
+.if ${MACHINE_ARCH} == "i386"
+.  if !empty(MACHINE_PLATFORM:MDarwin-*-i386) \
+   || !empty(MACHINE_PLATFORM:MSunOS-*-i386) \
+   || !empty(CC_VERSION:Mgcc-[123]*) \
+   || !empty(CC_VERSION:Mgcc-4.[01].*) \
+   || empty(CC_VERSION:Mgcc*)
+CONFIGURE_ARGS+=       --disable-asm
+.  elif !empty(CC_VERSION:Mgcc-[456].*)
+CFLAGS+=               -mstackrealign -mpreferred-stack-boundary=4
+.  endif
+.endif
+
+# configure script uses uname -m to detect arch, as opposed to uname -p in
+# GNU/configure. Unable to detect NetBSD/macppc hosts correctly.
+CONFIGURE_ARGS+=       --arch=${MACHINE_ARCH}
+
+.include "../../multimedia/ffmpeg4/Makefile.common"
diff -r 2b6e62e74da1 -r a0e5b7407dd3 multimedia/ffmpeg4/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ffmpeg4/Makefile.common        Thu Apr 26 07:56:57 2018 +0000
@@ -0,0 +1,90 @@
+# $NetBSD: Makefile.common,v 1.1 2018/04/26 07:56:57 adam Exp $
+# used by multimedia/ffmpeg4/Makefile
+# used by multimedia/ffplay4/Makefile
+
+DISTNAME=      ffmpeg-4.0
+CATEGORIES=    multimedia
+MASTER_SITES=  http://www.ffmpeg.org/releases/
+EXTRACT_SUFX=  .tar.xz
+
+LICENSE=       gnu-lgpl-v2.1 AND gnu-gpl-v2
+
+PATCHDIR=      ${.CURDIR}/../../multimedia/ffmpeg4/patches
+
+USE_LANGUAGES=         c99
+USE_LIBTOOL=           yes
+USE_TOOLS+=            gmake pod2man perl
+HAS_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --cc=${CC:Q}
+CONFIGURE_ARGS+=       --disable-debug
+CONFIGURE_ARGS+=       --disable-optimizations
+CONFIGURE_ARGS+=       --disable-stripping
+CONFIGURE_ARGS+=       --enable-gpl
+CONFIGURE_ARGS+=       --enable-libxml2
+CONFIGURE_ARGS+=       --enable-pthreads
+CONFIGURE_ARGS+=       --enable-shared
+CONFIGURE_ARGS+=       --mandir=${PREFIX}/${PKGMANDIR}
+CONFIGURE_ARGS+=       --prefix=${PREFIX}
+
+CONFIGURE_ARGS+=       --progs-suffix=4
+CONFIGURE_ARGS+=       --datadir=${PREFIX}/share/ffmpeg4
+CONFIGURE_ARGS+=       --docdir=${PREFIX}/share/doc/ffmpeg4
+CONFIGURE_ARGS+=       --incdir=${PREFIX}/include/ffmpeg4
+CONFIGURE_ARGS+=       --libdir=${PREFIX}/lib/ffmpeg4
+CONFIGURE_ARGS+=       --shlibdir=${PREFIX}/lib/ffmpeg4
+LDFLAGS+=              ${COMPILER_RPATH_FLAG}${PREFIX}/lib/ffmpeg4
+
+PLIST_VARS+=           opencl
+
+.if !empty(MACHINE_PLATFORM:MDarwin-1[2-9].*-*)
+CONFIGURE_ARGS+=       --enable-opencl
+PLIST.opencl=          yes
+.endif
+
+.if ${OPSYS} == "SunOS"
+USE_TOOLS+=    bash:build
+CONFIG_SHELL=  ${TOOLS_PATH.bash}
+.endif
+
+CONFIGURE_ARGS+=       --enable-runtime-cpudetect
+
+# No posix_memalign() in NetBSD 4.0 and earlier
+.if !empty(MACHINE_PLATFORM:MNetBSD-[1-4].*-*)
+CONFIGURE_ARGS+=       --enable-memalign-hack
+.endif
+
+# Let's not put garbage into /tmp
+CONFIGURE_ENV+=                TMPDIR=${WRKSRC}/tmp
+
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Msunpro)
+SUBST_CLASSES+=                sunwspro
+SUBST_MESSAGE.sunwspro=        Fixing compiler options for SunStudio C compiler.
+SUBST_STAGE.sunwspro=  post-configure
+SUBST_FILES.sunwspro=  config.mak
+SUBST_SED.sunwspro=    -e "s/-O /-KPIC -DPIC /"
+SUBST_SED.sunwspro+=   -e "s/-O3/-xO2/g"
+SUBST_SED.sunwspro+=   -e "s/-std=c99/-xc99=all/"
+SUBST_SED.sunwspro+=   -e "s/-Wl,-rpath-link,/-L /g"
+.endif
+
+BUILD_DEPENDS+=        nasm>=2.13:../../devel/nasm
+
+REPLACE_PERL+= doc/texi2pod.pl
+REPLACE_SH+=   configure ffbuild/version.sh
+
+PLIST_SRC+=    ${PKGDIR}/PLIST
+
+MAKE_ENV+=     EXTRA_LIBS=${LIBGETOPT:Q}
+
+pre-configure:
+       mkdir ${WRKSRC}/tmp
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../archivers/xz/buildlink3.mk"
+.include "../../devel/libgetopt/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 2b6e62e74da1 -r a0e5b7407dd3 multimedia/ffmpeg4/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ffmpeg4/PLIST  Thu Apr 26 07:56:57 2018 +0000
@@ -0,0 +1,259 @@
+@comment $NetBSD: PLIST,v 1.1 2018/04/26 07:56:57 adam Exp $
+bin/ffmpeg4
+bin/ffprobe4
+include/ffmpeg4/libavcodec/ac3_parser.h
+include/ffmpeg4/libavcodec/adts_parser.h
+include/ffmpeg4/libavcodec/avcodec.h
+include/ffmpeg4/libavcodec/avdct.h
+include/ffmpeg4/libavcodec/avfft.h
+include/ffmpeg4/libavcodec/d3d11va.h
+include/ffmpeg4/libavcodec/dirac.h
+include/ffmpeg4/libavcodec/dv_profile.h
+include/ffmpeg4/libavcodec/dxva2.h
+include/ffmpeg4/libavcodec/jni.h
+include/ffmpeg4/libavcodec/mediacodec.h
+include/ffmpeg4/libavcodec/qsv.h
+include/ffmpeg4/libavcodec/vaapi.h
+include/ffmpeg4/libavcodec/vdpau.h
+include/ffmpeg4/libavcodec/version.h
+include/ffmpeg4/libavcodec/videotoolbox.h
+include/ffmpeg4/libavcodec/vorbis_parser.h
+include/ffmpeg4/libavcodec/xvmc.h
+include/ffmpeg4/libavdevice/avdevice.h
+include/ffmpeg4/libavdevice/version.h
+include/ffmpeg4/libavfilter/avfilter.h
+include/ffmpeg4/libavfilter/buffersink.h
+include/ffmpeg4/libavfilter/buffersrc.h
+include/ffmpeg4/libavfilter/version.h
+include/ffmpeg4/libavformat/avformat.h
+include/ffmpeg4/libavformat/avio.h
+include/ffmpeg4/libavformat/version.h
+include/ffmpeg4/libavresample/avresample.h
+include/ffmpeg4/libavresample/version.h
+include/ffmpeg4/libavutil/adler32.h
+include/ffmpeg4/libavutil/aes.h
+include/ffmpeg4/libavutil/aes_ctr.h
+include/ffmpeg4/libavutil/attributes.h
+include/ffmpeg4/libavutil/audio_fifo.h
+include/ffmpeg4/libavutil/avassert.h
+include/ffmpeg4/libavutil/avconfig.h
+include/ffmpeg4/libavutil/avstring.h
+include/ffmpeg4/libavutil/avutil.h
+include/ffmpeg4/libavutil/base64.h
+include/ffmpeg4/libavutil/blowfish.h
+include/ffmpeg4/libavutil/bprint.h
+include/ffmpeg4/libavutil/bswap.h
+include/ffmpeg4/libavutil/buffer.h
+include/ffmpeg4/libavutil/camellia.h
+include/ffmpeg4/libavutil/cast5.h
+include/ffmpeg4/libavutil/channel_layout.h
+include/ffmpeg4/libavutil/common.h
+include/ffmpeg4/libavutil/cpu.h
+include/ffmpeg4/libavutil/crc.h
+include/ffmpeg4/libavutil/des.h
+include/ffmpeg4/libavutil/dict.h
+include/ffmpeg4/libavutil/display.h
+include/ffmpeg4/libavutil/downmix_info.h
+include/ffmpeg4/libavutil/encryption_info.h
+include/ffmpeg4/libavutil/error.h
+include/ffmpeg4/libavutil/eval.h
+include/ffmpeg4/libavutil/ffversion.h
+include/ffmpeg4/libavutil/fifo.h
+include/ffmpeg4/libavutil/file.h
+include/ffmpeg4/libavutil/frame.h
+include/ffmpeg4/libavutil/hash.h
+include/ffmpeg4/libavutil/hmac.h
+include/ffmpeg4/libavutil/hwcontext.h
+include/ffmpeg4/libavutil/hwcontext_cuda.h
+include/ffmpeg4/libavutil/hwcontext_d3d11va.h
+include/ffmpeg4/libavutil/hwcontext_drm.h
+include/ffmpeg4/libavutil/hwcontext_dxva2.h
+include/ffmpeg4/libavutil/hwcontext_mediacodec.h
+include/ffmpeg4/libavutil/hwcontext_qsv.h
+include/ffmpeg4/libavutil/hwcontext_vaapi.h
+include/ffmpeg4/libavutil/hwcontext_vdpau.h
+include/ffmpeg4/libavutil/hwcontext_videotoolbox.h
+include/ffmpeg4/libavutil/imgutils.h
+include/ffmpeg4/libavutil/intfloat.h
+include/ffmpeg4/libavutil/intreadwrite.h
+include/ffmpeg4/libavutil/lfg.h
+include/ffmpeg4/libavutil/log.h
+include/ffmpeg4/libavutil/lzo.h
+include/ffmpeg4/libavutil/macros.h
+include/ffmpeg4/libavutil/mastering_display_metadata.h
+include/ffmpeg4/libavutil/mathematics.h
+include/ffmpeg4/libavutil/md5.h
+include/ffmpeg4/libavutil/mem.h
+include/ffmpeg4/libavutil/motion_vector.h
+include/ffmpeg4/libavutil/murmur3.h
+include/ffmpeg4/libavutil/opt.h
+include/ffmpeg4/libavutil/parseutils.h
+include/ffmpeg4/libavutil/pixdesc.h
+include/ffmpeg4/libavutil/pixelutils.h
+include/ffmpeg4/libavutil/pixfmt.h
+include/ffmpeg4/libavutil/random_seed.h
+include/ffmpeg4/libavutil/rational.h
+include/ffmpeg4/libavutil/rc4.h
+include/ffmpeg4/libavutil/replaygain.h
+include/ffmpeg4/libavutil/ripemd.h
+include/ffmpeg4/libavutil/samplefmt.h
+include/ffmpeg4/libavutil/sha.h
+include/ffmpeg4/libavutil/sha512.h
+include/ffmpeg4/libavutil/spherical.h
+include/ffmpeg4/libavutil/stereo3d.h
+include/ffmpeg4/libavutil/tea.h
+include/ffmpeg4/libavutil/threadmessage.h



Home | Main Index | Thread Index | Old Index