Author: rathann
Update of /cvs/free/rpms/mplayer/F-11
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18723
Modified Files:
.cvsignore mplayer-nodvdcss.patch mplayer.spec sources
Added Files:
mplayer-libgif.patch mplayer-x264.patch
Removed Files:
mplayer-ppc-compile.patch mplayer-qcelp.patch
Log Message:
* Sat Mar 27 2010 Dominik Mierzejewski <rpm at greysector.net> -
1.0-0.112.20100327svn
- 20100327 snapshot
- drop unused patch
- fix licence tag when compiled with OpenCore AMR
- fix build --with faac (bug #997)
- enable radio support (bug #634)
- openal-devel is now openal-soft-devel (bug #935)
- move some files to -common subpackage, adjust dependencies (bug #1037)
- introduce -tools subpackage, move scripts there (bugs #544, #1037)
- support old x264 in F-11
mplayer-libgif.patch:
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE mplayer-libgif.patch ---
diff -up mplayer-export-2010-03-27/configure.libgif mplayer-export-2010-03-27/configure
--- mplayer-export-2010-03-27/configure.libgif 2010-03-27 22:56:17.000000000 +0100
+++ mplayer-export-2010-03-27/configure 2010-03-28 00:37:40.000000000 +0100
@@ -5246,7 +5246,7 @@ cat > $TMPC << EOF
#include <gif_lib.h>
int main(void) { return 0; }
EOF
- for _ld_gif in "-lungif" "-lgif" ; do
+ for _ld_gif in "-lgif" "-lungif" ; do
cc_check $_ld_gif && _gif=yes && break
done
fi
mplayer-x264.patch:
configure | 4 +--
libmpcodecs/ve_x264.c | 54 ++++++++++++++++++++++++++++++++++++++------------
2 files changed, 44 insertions(+), 14 deletions(-)
--- NEW FILE mplayer-x264.patch ---
diff -up mplayer-export-2010-03-27/configure.x264 mplayer-export-2010-03-27/configure
--- mplayer-export-2010-03-27/configure.x264 2010-03-28 01:43:37.000000000 +0100
+++ mplayer-export-2010-03-27/configure 2010-03-28 01:47:25.000000000 +0100
@@ -7479,8 +7479,8 @@ if test "$_x264" = auto ; then
cat > $TMPC << EOF
#include <inttypes.h>
#include <x264.h>
-#if X264_BUILD < 83
-#error We do not support old versions of x264. Get the latest from git.
+#if X264_BUILD < 65
+#error We do not support old versions of x264. Get the latest from SVN.
#endif
int main(void) { x264_encoder_open((void*)0); return 0; }
EOF
diff -up mplayer-export-2010-03-27/libmpcodecs/ve_x264.c.x264
mplayer-export-2010-03-27/libmpcodecs/ve_x264.c
--- mplayer-export-2010-03-27/libmpcodecs/ve_x264.c.x264 2010-02-28 08:52:34.000000000
+0100
+++ mplayer-export-2010-03-27/libmpcodecs/ve_x264.c 2010-03-28 01:50:53.000000000 +0100
@@ -59,6 +59,20 @@ static int turbo = 0;
static x264_param_t param;
static int parse_error = 0;
+static int encode_nals(uint8_t *buf, int size, x264_nal_t *nals, int nnal){
+ uint8_t *p = buf;
+ int i;
+
+ for(i = 0; i < nnal; i++){
+ int s = x264_nal_encode(p, &size, 1, nals + i);
+ if(s < 0)
+ return -1;
+ p += s;
+ }
+
+ return p - buf;
+}
+
static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts);
static int encode_frame(struct vf_instance *vf, x264_picture_t *pic_in);
@@ -175,17 +189,25 @@ static int config(struct vf_instance *vf
}
if(!param.b_repeat_headers){
+ uint8_t *extradata;
x264_nal_t *nal;
- int extradata_size, nnal;
+ int extradata_size, nnal, i, s = 0;
- extradata_size = x264_encoder_headers(mod->x264, &nal, &nnal);
+ x264_encoder_headers(mod->x264, &nal, &nnal);
+
+ /* 5 bytes NAL header + worst case escaping */
+ for(i = 0; i < nnal; i++)
+ s += 5 + nal[i].i_payload * 4 / 3;
+
+ extradata = malloc(s);
+ extradata_size = encode_nals(extradata, s, nal, nnal);
mod->mux->bih= realloc(mod->mux->bih, sizeof(BITMAPINFOHEADER) +
extradata_size);
- memcpy(mod->mux->bih + 1, nal->p_payload, extradata_size);
+ memcpy(mod->mux->bih + 1, extradata, extradata_size);
mod->mux->bih->biSize= sizeof(BITMAPINFOHEADER) + extradata_size;
}
- if (param.i_bframe > 1 && param.i_bframe_pyramid)
+ if (param.i_bframe > 1 && param.b_bframe_pyramid)
mod->mux->decoder_delay = 2;
else
mod->mux->decoder_delay = param.i_bframe ? 1 : 0;
@@ -196,10 +218,12 @@ static int config(struct vf_instance *vf
static int control(struct vf_instance *vf, int request, void *data)
{
h264_module_t *mod=(h264_module_t*)vf->priv;
+ int count = 256; // giant HACK, x264_encoder_encode may incorrectly return 0
+ // when threads > 1 and delayed frames pending
switch(request){
case VFCTRL_FLUSH_FRAMES:
- while (x264_encoder_delayed_frames(mod->x264) > 0)
- encode_frame(vf, NULL);
+ while(encode_frame(vf, NULL) == 0 && --count);
+ while(encode_frame(vf, NULL) > 0);
return CONTROL_TRUE;
default:
return CONTROL_UNKNOWN;
@@ -249,17 +273,23 @@ static int encode_frame(struct vf_instan
x264_picture_t pic_out;
x264_nal_t *nal;
int i_nal;
- int i_size;
-
- i_size = x264_encoder_encode(mod->x264, &nal, &i_nal, pic_in,
&pic_out);
+ int i_size = 0;
+ int i;
- if(i_size<0) {
+ if(x264_encoder_encode(mod->x264, &nal, &i_nal, pic_in, &pic_out) <
0) {
mp_msg(MSGT_MENCODER, MSGL_ERR, "x264_encoder_encode failed\n");
return -1;
}
+
+ for(i=0; i < i_nal; i++) {
+ int i_data = mod->mux->buffer_size - i_size;
+ i_size += x264_nal_encode(mod->mux->buffer + i_size, &i_data, 1,
&nal[i]);
+ }
if(i_size>0) {
- int keyframe = pic_out.b_keyframe;
- memcpy(mod->mux->buffer, nal->p_payload, i_size);
+ int keyframe = (pic_out.i_type == X264_TYPE_IDR) ||
+ (pic_out.i_type == X264_TYPE_I
+ && param.i_frame_reference == 1
+ && !param.i_bframe);
muxer_write_chunk(mod->mux, i_size, keyframe?AVIIF_KEYFRAME:0, MP_NOPTS_VALUE,
MP_NOPTS_VALUE);
}
else
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/mplayer/F-11/.cvsignore,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- .cvsignore 15 Nov 2009 01:03:05 -0000 1.13
+++ .cvsignore 28 Mar 2010 01:48:38 -0000 1.14
@@ -1,2 +1,2 @@
Blue-1.7.tar.bz2
-mplayer-export-2009-09-23.tar.bz2
+mplayer-export-2010-03-27.tar.bz2
mplayer-nodvdcss.patch:
Makefile | 7 -------
configure | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
Index: mplayer-nodvdcss.patch
===================================================================
RCS file: /cvs/free/rpms/mplayer/F-11/mplayer-nodvdcss.patch,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- mplayer-nodvdcss.patch 15 Nov 2009 21:17:13 -0000 1.6
+++ mplayer-nodvdcss.patch 28 Mar 2010 01:48:38 -0000 1.7
@@ -1,7 +1,7 @@
-diff -up mplayer-export-2009-10-29/configure.nodvdcss
mplayer-export-2009-10-29/configure
---- mplayer-export-2009-10-29/configure.nodvdcss 2009-10-28 14:55:18.000000000 +0100
-+++ mplayer-export-2009-10-29/configure 2009-10-30 00:36:25.000000000 +0100
-@@ -639,7 +639,7 @@ _dvdnavconfig=dvdnav-config
+diff -up mplayer-export-2010-03-27/configure.nodvdcss
mplayer-export-2010-03-27/configure
+--- mplayer-export-2010-03-27/configure.nodvdcss 2010-03-25 20:53:05.000000000 +0100
++++ mplayer-export-2010-03-27/configure 2010-03-27 22:54:31.000000000 +0100
+@@ -648,7 +648,7 @@ _dvdnavconfig=dvdnav-config
_dvdreadconfig=dvdread-config
_dvdread=auto
_dvdread_internal=auto
@@ -10,10 +10,10 @@
_xanim=auto
_real=auto
_live=auto
-diff -up mplayer-export-2009-10-29/Makefile.nodvdcss mplayer-export-2009-10-29/Makefile
---- mplayer-export-2009-10-29/Makefile.nodvdcss 2009-10-19 11:56:18.000000000 +0200
-+++ mplayer-export-2009-10-29/Makefile 2009-10-30 00:37:10.000000000 +0100
-@@ -150,11 +150,6 @@ SRCS_COMMON-$(LIBDCA) +=
+diff -up mplayer-export-2010-03-27/Makefile.nodvdcss mplayer-export-2010-03-27/Makefile
+--- mplayer-export-2010-03-27/Makefile.nodvdcss 2010-03-27 22:54:31.000000000 +0100
++++ mplayer-export-2010-03-27/Makefile 2010-03-27 22:55:40.000000000 +0100
+@@ -158,11 +158,6 @@ SRCS_COMMON-$(LIBDCA) +=
SRCS_COMMON-$(LIBDV) += libmpcodecs/ad_libdv.c \
libmpcodecs/vd_libdv.c \
libmpdemux/demux_rawdv.c
@@ -25,17 +25,17 @@
SRCS_COMMON-$(LIBMAD) += libmpcodecs/ad_libmad.c
-@@ -752,7 +747,6 @@ DIRS = . \
- libavutil/ppc \
+@@ -778,7 +773,6 @@ DIRS = . \
libavutil/sh4 \
+ libavutil/tomi \
libavutil/x86 \
- libdvdcss \
libdvdnav \
libdvdnav/vm \
libdvdread4 \
-@@ -871,7 +865,6 @@ codec-cfg.d codec-cfg.o: codecs.conf.h
+@@ -907,7 +901,6 @@ codec-cfg.d codec-cfg.o: codecs.conf.h
$(DEPS) $(MENCODER_DEPS) $(MPLAYER_DEPS): help_mp.h
- $(call ADDSUFFIXES,.d .o,mpcommon vobsub stream/stream_cddb stream/network
libmpdemux/muxer_avi gui/win32/gui): version.h
+ $(call ADDSUFFIXES,.d .o,mpcommon vobsub stream/stream_cddb stream/network
libmpdemux/muxer_avi gui/win32/gui osdep/mplayer.rc): version.h
-libdvdcss/%: CFLAGS := -Ilibdvdcss -D__USE_UNIX98 -D_GNU_SOURCE
-DVERSION=\"1.2.10\" $(CFLAGS_LIBDVDCSS) $(CFLAGS)
libdvdnav/%: CFLAGS := -Ilibdvdnav -D__USE_UNIX98 -D_GNU_SOURCE -DHAVE_CONFIG_H
-DVERSION=\"MPlayer-custom\" $(CFLAGS)
Index: mplayer.spec
===================================================================
RCS file: /cvs/free/rpms/mplayer/F-11/mplayer.spec,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- mplayer.spec 15 Nov 2009 01:03:05 -0000 1.24
+++ mplayer.spec 28 Mar 2010 01:48:38 -0000 1.25
@@ -1,16 +1,20 @@
%define codecdir %{_libdir}/codecs
-%define pre 20090923svn
+%define pre 20100327svn
%define svn 1
-%define svnbuild 2009-09-23
+%define svnbuild 2010-03-27
%define faad2min 1:2.6.1
Name: mplayer
Version: 1.0
-Release: 0.111.%{pre}%{?dist}
+Release: 0.112.%{pre}%{?dist}
Summary: Movie player playing most video formats and DVDs
Group: Applications/Multimedia
+%if 0%{!?_without_amr:1}
+License: GPLv3+
+%else
License: GPLv2+
+%endif
URL:
http://www.mplayerhq.hu/
%if %{svn}
# run ./mplayer-snapshot.sh to get this
@@ -22,8 +26,9 @@
Source10: mplayer-snapshot.sh
Patch2: %{name}-config.patch
Patch8: %{name}-manlinks.patch
-Patch10: %{name}-qcelp.patch
Patch14: %{name}-nodvdcss.patch
+Patch15: %{name}-libgif.patch
+Patch16: %{name}-x264.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL-devel
@@ -34,7 +39,6 @@
BuildRequires: desktop-file-utils
BuildRequires: em8300-devel
BuildRequires: enca-devel
-%{?_with_faac:BuildRequires: faac-devel}
BuildRequires: faad2-devel >= %{faad2min}
BuildRequires: fontconfig-devel
BuildRequires: freetype-devel >= 2.0.9
@@ -73,10 +77,11 @@
%{!?_without_amr:BuildRequires: opencore-amr-devel}
%{?_with_directfb:BuildRequires: directfb-devel}
%{?_with_esound:BuildRequires: esound-devel}
+%{?_with_faac:BuildRequires: faac-devel}
%{?_with_jack:BuildRequires: jack-audio-connection-kit-devel}
%{?_with_libmad:BuildRequires: libmad-devel}
%{?_with_nemesi:BuildRequires: libnemesi-devel >= 0.6.3}
-%{?_with_openal:BuildRequires: openal-devel}
+%{?_with_openal:BuildRequires: openal-soft-devel}
%{?_with_samba:BuildRequires: libsmbclient-devel}
%{?_with_svgalib:BuildRequires: svgalib-devel}
%{?_with_xmms:BuildRequires: xmms-devel}
@@ -89,6 +94,7 @@
%endif
Obsoletes: mplayer-fonts
Requires: faad2-libs >= %{faad2min}
+Requires: mplayer-common = %{version}-%{release}
%description
MPlayer is a movie player that plays most MPEG, VOB, AVI, OGG/OGM,
@@ -101,7 +107,8 @@
Non-default rpmbuild options:
--with samba: Enable Samba (smb://) support
--with xmms: Enable XMMS input plugin support
---with amr: Enable AMR support
+--without amr: Disable AMR support
+--with faac: Enable FAAC support
--with libmad: Enable libmad support
--with openal: Enable OpenAL support
--with jack: Enable JACK support
@@ -111,10 +118,17 @@
--with svgalib: Enable SVGAlib support
--with nemesi: Enable libnemesi RTSP support
+%package common
+Summary: MPlayer common files
+Group: Applications/Multimedia
+
+%description common
+This package contains common files for MPlayer packages.
+
%package gui
Summary: GUI for MPlayer
Group: Applications/Multimedia
-Requires: mplayer = %{version}-%{release}
+Requires: mplayer-common = %{version}-%{release}
Requires: hicolor-icon-theme
%description gui
@@ -123,7 +137,7 @@
%package -n mencoder
Summary: MPlayer movie encoder
Group: Applications/Multimedia
-Requires: mplayer = %{version}-%{release}
+Requires: mplayer-common = %{version}-%{release}
%description -n mencoder
This package contains the MPlayer movie encoder.
@@ -135,6 +149,15 @@
%description doc
MPlayer documentation in various languages.
+%package tools
+Summary: Useful scripts for MPlayer
+Group: Applications/Multimedia
+Requires: mencoder = %{version}-%{release}
+Requires: mplayer = %{version}-%{release}
+
+%description tools
+This package contains various scripts from MPlayer TOOLS directory.
+
%define mp_configure \
./configure \\\
--prefix=%{_prefix} \\\
@@ -152,6 +175,8 @@
--enable-largefiles \\\
--enable-lirc \\\
--enable-menu \\\
+ --enable-radio \\\
+ --enable-radio-capture \\\
--enable-runtime-cpudetection \\\
--enable-unrarexec \\\
\\\
@@ -166,6 +191,7 @@
\\\
--disable-liba52-internal \\\
%{?_without_amr:--disable-libopencore_amrnb --disable-libopencore_amrwb} \\\
+ %{!?_with_faac:--disable-faac} \\\
--disable-faad-internal \\\
%{!?_with_libmad:--disable-mad} \\\
--disable-tremor-internal \\\
@@ -194,8 +220,9 @@
%endif
%patch2 -p1 -b .config
%patch8 -p1 -b .manlinks
-%patch10 -p1 -b .qclp
%patch14 -p1 -b .nodvdcss
+%patch15 -p1 -b .libgif
+%patch16 -p1 -b .x264
doconv() {
iconv -f $1 -t $2 -o DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1 && \
@@ -230,10 +257,21 @@
rm -rf $RPM_BUILD_ROOT doc
make install DESTDIR=$RPM_BUILD_ROOT STRIPBINARIES=no
-for file in aconvert.sh midentify.sh ; do
+for file in aconvert.sh divx2svcd.sh mencvcd.sh midentify.sh mpconsole.sh qepdvcd.sh
subsearch.sh ; do
install -pm 755 TOOLS/$file $RPM_BUILD_ROOT%{_bindir}/`basename $file .sh`
done
+for file in calcbpp.pl countquant.pl dvd2divxscript.pl ; do
+install -pm 755 TOOLS/$file $RPM_BUILD_ROOT%{_bindir}/`basename $file .pl`
+done
+
+for file in vobshift.py ; do
+install -pm 755 TOOLS/$file $RPM_BUILD_ROOT%{_bindir}/`basename $file .py`
+done
+
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/mplayer
+install -pm 644 TOOLS/*.fp $RPM_BUILD_ROOT%{_datadir}/mplayer/
+
# Clean up documentation
mkdir doc
cp -pR DOCS/* doc/
@@ -286,13 +324,15 @@
%files
%defattr(-, root, root, -)
+%{_bindir}/mplayer
+
+%files common
+%defattr(-, root, root, -)
%doc AUTHORS Changelog Copyright LICENSE README
%dir %{_sysconfdir}/mplayer
%config(noreplace) %{_sysconfdir}/mplayer/mplayer.conf
%config(noreplace) %{_sysconfdir}/mplayer/input.conf
%config(noreplace) %{_sysconfdir}/mplayer/menu.conf
-%{_bindir}/midentify
-%{_bindir}/mplayer
%dir %{codecdir}/
%dir %{_datadir}/mplayer/
%{_mandir}/man1/mplayer.1*
@@ -315,7 +355,6 @@
%files -n mencoder
%defattr(-, root, root, -)
-%{_bindir}/aconvert
%{_bindir}/mencoder
%{_mandir}/man1/mencoder.1*
%lang(cs) %{_mandir}/cs/man1/mencoder.1*
@@ -340,8 +379,33 @@
%lang(ru) %doc doc/ru/
%lang(zh_CN) %doc doc/zh_CN/
+%files tools
+%defattr(-, root, root, -)
+%{_bindir}/aconvert
+%{_bindir}/calcbpp
+%{_bindir}/countquant
+%{_bindir}/divx2svcd
+%{_bindir}/dvd2divxscript
+%{_bindir}/mencvcd
+%{_bindir}/midentify
+%{_bindir}/mpconsole
+%{_bindir}/qepdvcd
+%{_bindir}/subsearch
+%{_bindir}/vobshift
+%{_datadir}/mplayer/*.fp
%changelog
+* Sat Mar 27 2010 Dominik Mierzejewski <rpm at greysector.net> -
1.0-0.112.20100327svn
+- 20100327 snapshot
+- drop unused patch
+- fix licence tag when compiled with OpenCore AMR
+- fix build --with faac (bug #997)
+- enable radio support (bug #634)
+- openal-devel is now openal-soft-devel (bug #935)
+- move some files to -common subpackage, adjust dependencies (bug #1037)
+- introduce -tools subpackage, move scripts there (bugs #544, #1037)
+- support old x264 in F-11
+
* Thu Oct 29 2009 Dominik Mierzejewski <rpm at greysector.net> -
1.0-0.111.20090923svn
- 20090923 snapshot
- try to fix debuginfo generation (bug #101)
Index: sources
===================================================================
RCS file: /cvs/free/rpms/mplayer/F-11/sources,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- sources 15 Nov 2009 01:03:05 -0000 1.14
+++ sources 28 Mar 2010 01:48:38 -0000 1.15
@@ -1,2 +1,2 @@
e4e2020d11b681aac898103b3ba723c4 Blue-1.7.tar.bz2
-33265a8819675f908b4768a4dd75e0af mplayer-export-2009-09-23.tar.bz2
+2046c98215915a4cc5cf47335a3e23e9 mplayer-export-2010-03-27.tar.bz2
--- mplayer-ppc-compile.patch DELETED ---
--- mplayer-qcelp.patch DELETED ---