Date: Thu, 31 Mar 2011 10:03:25 GMT From: Thomas Zander <thomas.e.zander@googlemail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/156086: [maintainer-update] multimedia/mplayer and mencoder to recent snapshots Message-ID: <201103311003.p2VA3P5W031195@red.freebsd.org> Resent-Message-ID: <201103311010.p2VAABai008053@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 156086 >Category: misc >Synopsis: [maintainer-update] multimedia/mplayer and mencoder to recent snapshots >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Mar 31 10:10:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Thomas Zander >Release: >Organization: >Environment: >Description: This update is for both the multimedia/mplayer and /mencoder ports and updates the port to the upstream svn snapshot of 20110329. This introduces some new features, especially multithreaded ffmpeg decoding. >How-To-Repeat: >Fix: The attached patch contains the port update for both mplayer and mencoder Patch attached with submission follows: diff -ruN /usr/ports/multimedia/mplayer/Makefile mplayer/Makefile --- /usr/ports/multimedia/mplayer/Makefile 2011-03-03 10:29:37.000000000 +0100 +++ mplayer/Makefile 2011-03-18 17:29:39.851891217 +0100 @@ -7,7 +7,7 @@ PORTNAME= mplayer PORTVERSION= ${MPLAYER_PORT_VERSION} -PORTREVISION= 1 +PORTREVISION= 0 COMMENT= High performance media player supporting many formats .include "${.CURDIR}/Makefile.shared" @@ -43,7 +43,9 @@ OPTIONS+= SVGALIB "Enable svgalib support" off OPTIONS+= LIBDV "Enable libdv support" off OPTIONS+= MAD "Enable mad MPEG audio engine support" off -OPTIONS+= AMR "Enable opencore AMR audio codec support" off +OPTIONS+= AMR_NB "AMR Narrow Band encoder (opencore)" off +OPTIONS+= AMR_WB "AMR Wide Band encoder (opencore)" off +OPTIONS+= GSM "GSM audio codec" off OPTIONS+= LADSPA "Enable LADSPA plugin support" off OPTIONS+= SPEEX "Enable speex audio codec support" on OPTIONS+= THEORA "Enable ogg theora video support" off diff -ruN /usr/ports/multimedia/mplayer/Makefile.options mplayer/Makefile.options --- /usr/ports/multimedia/mplayer/Makefile.options 2011-03-02 22:48:01.000000000 +0100 +++ mplayer/Makefile.options 2011-03-25 13:04:28.592815172 +0100 @@ -207,11 +207,27 @@ CONFIGURE_ARGS+= --disable-real .endif -.if defined(WITH_AMR) -LIB_DEPENDS+= opencore-amrwb.0:${PORTSDIR}/audio/opencore-amr +.if defined(WITH_AMR_NB) || defined (WITH_AMR_WB) +LIB_DEPENDS+= opencore-amrnb.0:${PORTSDIR}/audio/opencore-amr +.endif + +.ifdef(WITH_AMR_NB) +CONFIGURE_ARGS+= --enable-libopencore_amrnb --enable-version3 +.else +CONFIGURE_ARGS+= --disable-libopencore_amrnb +.endif + +.ifdef(WITH_AMR_WB) +CONFIGURE_ARGS+= --enable-libopencore_amrwb --enable-version3 +.else +CONFIGURE_ARGS+= --disable-libopencore_amrwb +.endif + +.ifdef(WITH_GSM) +LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm +CONFIGURE_ARGS+= --enable-libgsm .else -CONFIGURE_ARGS+= --disable-libopencore_amrnb \ - --disable-libopencore_amrwb +CONFIGURE_ARGS+= --disable-libgsm .endif .if defined(WITH_V4L) diff -ruN /usr/ports/multimedia/mplayer/Makefile.shared mplayer/Makefile.shared --- /usr/ports/multimedia/mplayer/Makefile.shared 2010-12-02 10:18:00.000000000 +0100 +++ mplayer/Makefile.shared 2011-03-29 16:55:06.620062471 +0200 @@ -2,7 +2,7 @@ # mplayer and mencoder....the variables that we need to set # before we include bsd.port.pre.mk -MPLAYER_SNAPSHOT_DATE= 2010-11-06 +MPLAYER_SNAPSHOT_DATE= 2011-03-29 MPLAYER_PORT_VERSION= 1.0.r${MPLAYER_SNAPSHOT_DATE:S/-//g} CATEGORIES?= multimedia audio MASTER_SITES= http://freebsd.unixfreunde.de/sources/ \ @@ -26,7 +26,9 @@ CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ PTHREAD_LIBS="${PTHREAD_LIBS}" \ TMPDIR="${WRKSRC}" -CONFIGURE_ARGS= --disable-bitmap-font \ +CONFIGURE_ARGS= --cc=${CC} \ + --host-cc=${CC} \ + --disable-bitmap-font \ --disable-liba52 WANT_GNOME= yes diff -ruN /usr/ports/multimedia/mplayer/distinfo mplayer/distinfo --- /usr/ports/multimedia/mplayer/distinfo 2010-12-02 10:18:00.000000000 +0100 +++ mplayer/distinfo 2011-03-29 16:55:10.773966589 +0200 @@ -1,2 +1,2 @@ -SHA256 (mplayer-1.0rc20101106.tar.bz2) = 00ea68f869435b1a5e363d87cf35fd6711f703aaa05a93f9e4d03a52f3ec8751 -SIZE (mplayer-1.0rc20101106.tar.bz2) = 10014975 +SHA256 (mplayer-1.0rc20110329.tar.bz2) = 802a87f3d4ac77c2ea1e2b20c6a73951034d7553ac57acc496fea1b4b5565e17 +SIZE (mplayer-1.0rc20110329.tar.bz2) = 9864317 diff -ruN /usr/ports/multimedia/mplayer/files/patch-configure mplayer/files/patch-configure --- /usr/ports/multimedia/mplayer/files/patch-configure 2011-01-19 02:58:24.000000000 +0100 +++ mplayer/files/patch-configure 2011-03-18 17:05:40.376010213 +0100 @@ -1,6 +1,6 @@ ---- configure.orig 2010-11-03 17:12:22.000000000 +0900 -+++ configure 2011-01-05 23:58:07.000000000 +0900 -@@ -565,7 +565,7 @@ +--- configure.orig 2011-03-13 01:32:55.000000000 +0100 ++++ configure 2011-03-18 17:05:13.932557908 +0100 +@@ -614,7 +614,7 @@ _iwmmxt=auto _mtrr=auto _altivec=auto @@ -9,7 +9,7 @@ _ranlib=ranlib _windres=windres _cc=cc -@@ -1371,7 +1371,6 @@ +@@ -1416,7 +1416,6 @@ *) echo "Unknown parameter: $ac_option" @@ -17,7 +17,7 @@ ;; esac -@@ -1480,8 +1479,8 @@ +@@ -1525,8 +1524,8 @@ _timer=timer-linux.c _getch=getch2.c if freebsd ; then @@ -28,7 +28,7 @@ fi if netbsd || dragonfly ; then -@@ -3535,22 +3534,10 @@ +@@ -3577,22 +3576,10 @@ if linux ; then THREAD_CFLAGS=-D_REENTRANT elif freebsd || netbsd || openbsd || bsdos ; then @@ -54,16 +54,16 @@ if test "$_pthreads" = yes ; then test $_ld_pthread && res_comment="using $_ld_pthread" def_pthreads='#define HAVE_PTHREADS 1' -@@ -3828,7 +3815,7 @@ - #define _ISOC99_SOURCE - #include <stdarg.h> - #include <stdio.h> --int main(void) { va_list ap = NULL; vsscanf("foo", "bar", ap); return 0; } -+int main(void) { va_list ap; vsscanf("foo", "bar", ap); return 0; } - EOF - _vsscanf=no - cc_check && _vsscanf=yes -@@ -6912,6 +6899,16 @@ +@@ -6354,7 +6341,7 @@ + echocheck "libgsm" + if test "$_libgsm" = auto ; then + _libgsm=no +- statement_check gsm/gsm.h 'gsm_create()' -lgsm && _libgsm=yes ++ statement_check gsm.h 'gsm_create()' -lgsm && _libgsm=yes + fi + if test "$_libgsm" = yes ; then + def_libgsm='#define CONFIG_LIBGSM 1' +@@ -6852,6 +6839,16 @@ nolibrtmp=no def_librtmp='#define CONFIG_LIBRTMP 1' inputmodules="librtmp $inputmodules" @@ -80,7 +80,7 @@ else nolibrtmp=yes _librtmp=no -@@ -7283,7 +7280,7 @@ +@@ -7214,7 +7211,7 @@ def_muxers='#define CONFIG_MUXERS 1' else # mpeg1video for vf_lavc, snow for vf_uspp / vf_mcdeint, @@ -89,7 +89,7 @@ libavmuxers="" def_muxers='#define CONFIG_MUXERS 0' fi -@@ -7645,8 +7642,11 @@ +@@ -7559,8 +7556,11 @@ if test "$_gui" = yes ; then # Required libraries @@ -102,8 +102,8 @@ + if ! echo $libavdecoders | grep -q PNG_DECODER ; then die "The GUI requires libavcodec with PNG support (needs zlib)." fi - test "$_freetype" = no && test "$_bitmap_font" = no && \ -@@ -8034,7 +8034,7 @@ + test "$_freetype" = no && test "$_bitmap_font" = no && +@@ -7947,7 +7947,7 @@ EXESUF = $_exesuf EXESUFS_ALL = .exe diff -ruN /usr/ports/multimedia/mplayer/files/patch-libavcodec-libgsm.c mplayer/files/patch-libavcodec-libgsm.c --- /usr/ports/multimedia/mplayer/files/patch-libavcodec-libgsm.c 1970-01-01 01:00:00.000000000 +0100 +++ mplayer/files/patch-libavcodec-libgsm.c 2011-03-18 17:19:08.010152511 +0100 @@ -0,0 +1,11 @@ +--- ffmpeg/libavcodec/libgsm.c.orig 2011-03-12 15:13:38.000000000 +0100 ++++ ffmpeg/libavcodec/libgsm.c 2011-03-18 17:17:26.901267039 +0100 +@@ -28,7 +28,7 @@ + // The idiosyncrasies of GSM-in-WAV are explained at http://kbs.cs.tu-berlin.de/~jutta/toast.html + + #include "avcodec.h" +-#include <gsm/gsm.h> ++#include <gsm.h> + + // gsm.h misses some essential constants + #define GSM_BLOCK_SIZE 33 diff -ruN /usr/ports/multimedia/mplayer/files/patch-libavcodec-x86-snowdsp_mmx.c mplayer/files/patch-libavcodec-x86-snowdsp_mmx.c --- /usr/ports/multimedia/mplayer/files/patch-libavcodec-x86-snowdsp_mmx.c 1970-01-01 01:00:00.000000000 +0100 +++ mplayer/files/patch-libavcodec-x86-snowdsp_mmx.c 2011-03-25 13:13:56.540742494 +0100 @@ -0,0 +1,19 @@ +--- ffmpeg/libavcodec/x86/snowdsp_mmx.c.orig 2011-03-12 15:13:39.000000000 +0100 ++++ ffmpeg/libavcodec/x86/snowdsp_mmx.c 2011-03-25 13:12:53.087099520 +0100 +@@ -675,14 +675,14 @@ + + #define snow_inner_add_yblock_sse2_end_8\ + "sal $1, %%"REG_c" \n\t"\ +- "add $"PTR_SIZE"*2, %1 \n\t"\ ++ "addb $"PTR_SIZE"*2, %1 \n\t"\ + snow_inner_add_yblock_sse2_end_common1\ + "sar $1, %%"REG_c" \n\t"\ + "sub $2, %2 \n\t"\ + snow_inner_add_yblock_sse2_end_common2 + + #define snow_inner_add_yblock_sse2_end_16\ +- "add $"PTR_SIZE"*1, %1 \n\t"\ ++ "addw $"PTR_SIZE"*1, %1 \n\t"\ + snow_inner_add_yblock_sse2_end_common1\ + "dec %2 \n\t"\ + snow_inner_add_yblock_sse2_end_common2 diff -ruN /usr/ports/multimedia/mplayer/files/patch-libavformat-udp.c mplayer/files/patch-libavformat-udp.c --- /usr/ports/multimedia/mplayer/files/patch-libavformat-udp.c 1970-01-01 01:00:00.000000000 +0100 +++ mplayer/files/patch-libavformat-udp.c 2011-03-18 17:19:40.626465459 +0100 @@ -0,0 +1,11 @@ +--- ffmpeg/libavformat/udp.c.orig 2011-03-16 13:49:21.000000000 +0100 ++++ ffmpeg/libavformat/udp.c 2011-03-18 17:18:12.884305376 +0100 +@@ -42,6 +42,8 @@ + #define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP + #endif + ++#define IPPROTO_IPV6 41 ++ + typedef struct { + int udp_fd; + int ttl; diff -ruN /usr/ports/multimedia/mplayer/files/patch-libmpcodecs-vd_ffmpeg.c mplayer/files/patch-libmpcodecs-vd_ffmpeg.c --- /usr/ports/multimedia/mplayer/files/patch-libmpcodecs-vd_ffmpeg.c 1970-01-01 01:00:00.000000000 +0100 +++ mplayer/files/patch-libmpcodecs-vd_ffmpeg.c 2011-03-24 19:14:20.725409268 +0100 @@ -0,0 +1,11 @@ +--- libmpcodecs/vd_ffmpeg.c.orig 2011-02-05 15:02:49.000000000 +0100 ++++ libmpcodecs/vd_ffmpeg.c 2011-03-24 19:10:08.064575435 +0100 +@@ -423,7 +423,7 @@ + } + /* Pass palette to codec */ + if (sh->bih && (sh->bih->biBitCount <= 8)) { +- avctx->palctrl = calloc(1, sizeof(AVPaletteControl)); ++ avctx->palctrl = av_malloc(sizeof(AVPaletteControl)); + avctx->palctrl->palette_changed = 1; + if (sh->bih->biSize-sizeof(*sh->bih)) + /* Palette size in biSize */ diff -ruN /usr/ports/multimedia/mplayer/files/pkg-message.in mplayer/files/pkg-message.in --- /usr/ports/multimedia/mplayer/files/pkg-message.in 2010-12-02 10:18:01.000000000 +0100 +++ mplayer/files/pkg-message.in 2011-03-18 18:21:27.184889040 +0100 @@ -5,7 +5,7 @@ It is auto-generated daily and can be found on the project homepage in the documentation section: -http://www.mplayerhq.hu/design7/info.html#docs +http://www.mplayerhq.hu/design7/documentation.html =================================================================== MPlayer's system-wide configuration dir is @@ -23,4 +23,8 @@ - Use mplayer's -softvol command line option - Set the sysctl hw.snd.vpc_autoreset to 0 =================================================================== +ffmpeg's ogg demuxer is currently broken for ogg streams. +A possible workaround is the command line option'-demuxer ogg' when +playing these streams. +=================================================================== diff -ruN /usr/ports/multimedia/mencoder/Makefile mencoder/Makefile --- /usr/ports/multimedia/mencoder/Makefile 2011-03-03 10:29:37.000000000 +0100 +++ mencoder/Makefile 2011-03-18 17:29:39.888890109 +0100 @@ -6,7 +6,7 @@ PORTNAME= mencoder PORTVERSION= ${MPLAYER_PORT_VERSION} -PORTREVISION= 1 +PORTREVISION= 0 COMMENT= Convenient video file and movie encoder RESTRICTED= Port has restricted dependencies @@ -27,7 +27,9 @@ OPTIONS+= MNG "Enable MNG input support" off OPTIONS+= LIBDV "Enable libdv support" off OPTIONS+= MAD "Enable mad MPEG audio engine support" off -OPTIONS+= AMR "Enable opencore AMR audio codec support" off +OPTIONS+= AMR_NB "AMR Narrow Band encoder (opencore)" off +OPTIONS+= AMR_WB "AMR Wide Band encoder (opencore)" off +OPTIONS+= GSM "GSM audio codec" off OPTIONS+= TWOLAME "Enable twolame MPEG audio codec support" off OPTIONS+= FAAC "Enable FAAC audio codec support" off OPTIONS+= LADSPA "Enable LADSPA plugin support" off diff -ruN /usr/ports/multimedia/mencoder/distinfo mencoder/distinfo --- /usr/ports/multimedia/mencoder/distinfo 2010-12-02 10:18:00.000000000 +0100 +++ mencoder/distinfo 2011-03-29 17:06:50.914153515 +0200 @@ -1,2 +1,2 @@ -SHA256 (mplayer-1.0rc20101106.tar.bz2) = 00ea68f869435b1a5e363d87cf35fd6711f703aaa05a93f9e4d03a52f3ec8751 -SIZE (mplayer-1.0rc20101106.tar.bz2) = 10014975 +SHA256 (mplayer-1.0rc20110329.tar.bz2) = 802a87f3d4ac77c2ea1e2b20c6a73951034d7553ac57acc496fea1b4b5565e17 +SIZE (mplayer-1.0rc20110329.tar.bz2) = 9864317 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103311003.p2VA3P5W031195>