Mplayer from http://repo.or.cz/w/mplayer-build.git has many nice features: 1) ffmpeg-mt - plays 1080p fine at nvidio ion without vpdau help. 2) pause video, change volume or any other settings and it will stay paused. 3) matroska ordered chapters, external chapters (Many anime torrents use it.) I know only one problem with git ebuild - it does not keep libswscale, libdvdread4 and libdvdnav. Reproducible: Always
Created attachment 225879 [details] ebuild, works fine for me
Created attachment 225881 [details, diff] diff against current mplayer-9999.ebuild
Comment on attachment 225881 [details, diff] diff against current mplayer-9999.ebuild patch flag set on .diff file
Nikoli, maybe this is better suited for an overlay? In case you want an overlay "user/${you_name_it}" hosted on <http://git.overlays.gentoo.org/gitweb/> please mail - the details and - an SSH pubkey to overlays@g.o.
Created attachment 233861 [details] reworked ebuild, solved problem with keeping sources
Created attachment 233863 [details] description for all use flags
Created attachment 233865 [details] ebuild works fine with snapshots too
>I know only one problem with git ebuild - it does not keep libswscale, libdvdread4 and libdvdnav. This problem does not exist any more. I tested ebuild with all USE flags enabled (except masked (-altivec) (-real) (-svga) (-vidix) (-win32codecs)), disabled, with different ffmpeg-mt and external-ffmpeg combinations. No automagic (except libva), repoman (except some deps) or other issues were found for current ebuild, it works well for me. (USE radio is fixed in git now and in snapshot.) Please re-examine possibility of including this package in portage. Snapshot is available there http://pub.nikoli.msk.ru/portage-overlay/distfiles/mplayer-git-1.0_rc4_p20100602.tar.lzma Should I attach it to this bug?
Added in official overlay: http://gitorious.org/gentoo-multimedia/gentoo-multimedia/commit/16f3070054ce9e255efb910c6d60b453c33eedc3
I just tried to emerge it with USE="3dnowext X a52 aalib alsa amr ass bidi bl cddb cdio cdparanoia dga dirac dts dv dvb dvd dvdnav enca encode faac faad fbcon ffmpeg-mt ftp ggi gif hardcoded-tables iconv ipv6 jack jpeg jpeg2k libcaca live lzo mad md5sum mmx mmxext mng mp3 network opengl osdmenu png pnm quicktime rar rtc schroedinger sdl shm speex sse sse2 ssse3 theora threads toolame tremor truetype twolame unicode v4l v4l2 vdpau vorbis vpx x264 xanim xinerama xscreensaver xv xvid -3dnow (-altivec) -bindist -bs2b -cpudetection -custom-cflags -custom-cpuopts -debug -directfb -doc -dxr3 -esd -external-ffmpeg -gsm -joystick -ladspa -lirc -nas -nut -oss -pulseaudio -pvr -radio (-real) -samba -symlink -tga (-vidix) (-win32codecs) -xvmc -zoran" VIDEO_CARDS="-mga -s3virge -tdfx -vesa" and it fails with : CC libswscale/swscale.o In file included from /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale.c:1240: /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c: In function ‘yuv2yuv1_MMX2’: /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c:954: warning: initialization from incompatible pointer type /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c:954: warning: initialization from incompatible pointer type /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c:954: warning: initialization from incompatible pointer type /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c:954: warning: initialization from incompatible pointer type /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c: In function ‘hyscale_fast_MMX2’: /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c:2261: warning: initialization from incompatible pointer type /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c: In function ‘hcscale_fast_MMX2’: /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c:2411: warning: initialization from incompatible pointer type /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c: In function ‘swScale_MMX2’: /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c:2766: warning: cast from pointer to integer of different size /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c:2772: warning: cast from pointer to integer of different size /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale_template.c:2779: warning: cast from pointer to integer of different size /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale.c: In function ‘sws_scale’: /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale.c:1907: warning: passing argument 1 of ‘check_image_pointers’ from incompatible pointer type /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale.c:1877: note: expected ‘uint8_t **’ but argument is of type ‘const uint8_t * const*’ /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale.c:1911: warning: passing argument 1 of ‘check_image_pointers’ discards qualifiers from pointer target type /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/swscale.c:1877: note: expected ‘uint8_t **’ but argument is of type ‘uint8_t * const*’ CC libswscale/utils.o /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/utils.c:46:27: error: libavutil/opt.h: No such file or directory /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/utils.c: In function ‘sws_alloc_context’: /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/utils.c:750: error: implicit declaration of function ‘av_opt_set_defaults’ /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/utils.c: In function ‘sws_init_context’: /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/utils.c:925: warning: passing argument 5 of ‘initMMX2HScaler’ from incompatible pointer type /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/utils.c:512: note: expected ‘int32_t *’ but argument is of type ‘int16_t *’ /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/utils.c:926: warning: passing argument 5 of ‘initMMX2HScaler’ from incompatible pointer type /var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg-mt/libswscale/utils.c:512: note: expected ‘int32_t *’ but argument is of type ‘int16_t *’ make[1]: *** [libswscale/utils.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg_build' make: *** [ffmpeg] Error 2 emake failed
The problem is in libswscale update http://git.ffmpeg.org/?p=libswscale;a=commitdiff;h=ae823e2715cdba9498ac7f7e72c21208f290c9e8 Upstream git repos were updated 2010-08-22, use snapshot http://gitorious.org/gentoo-multimedia/gentoo-multimedia/blobs/master/media-video/mplayer-uau/mplayer-uau-1.0_rc4_p20100822.ebuild or patch ebuild: @@ -261,6 +261,7 @@ src_unpack() { EGIT_REPO_URI="git://git.mplayerhq.hu/libswscale" EGIT_PROJECT="libswscale" + EGIT_COMMIT="360181422e5b7c11fcab5294a0aa398a5d934a85" S+="/${EGIT_PROJECT}" git_fetch
Great, with patched ebuild all is perfect, thank you very much :-)
Fixed upstream :)
There seems to be another problem : INSTALL libavcodec/libavcodec.a make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/ffmpeg_build' script/mplayer-config Unknown parameter: --enable-network Traceback (most recent call last): File "script/mplayer-config", line 28, in <module> main() File "script/mplayer-config", line 26, in main check_call(['./configure'] + args + extra_args, env=env) File "/usr/lib64/python2.6/subprocess.py", line 488, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['./configure', '--extra-cflags=-I/var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/build_libs/include', '--extra-ldflags=-L/var/tmp/portage/media-video/mplayer-uau-9999/work/mplayer-uau-9999/build_libs/lib', '--cc=x86_64-pc-linux-gnu-gcc', '--host-cc=x86_64-pc-linux-gnu-gcc', '--disable-svga', '--enable-svgalib_helper', '--disable-arts', '--disable-kai', '--enable-network', '--disable-joystick', '--disable-nemesi', '--disable-libnut', '--disable-smb', '--disable-lirc', '--disable-lircc', '--disable-apple-ir', '--disable-cdparanoia', '--disable-dvdread-internal', '--disable-libdvdcss-internal', '--charset=UTF-8', '--disable-tv-bsdbt848', '--disable-ivtv', '--disable-pvr', '--disable-radio-v4l2', '--disable-radio-bsdbt848', '--disable-musepack', '--disable-faad-internal', '--disable-libbs2b', '--disable-tga', '--disable-real', '--disable-win32dll', '--disable-directfb', '--disable-zr', '--disable-3dfx', '--disable-tdfxvid', '--disable-tdfxfb', '--disable-esd', '--disable-ladspa', '--disable-nas', '--disable-pulse', '--disable-ossaudio', '--disable-dxr3', '--enable-menu', '--disable-vesa', '--disable-vidix', '--disable-vidix-pcidb', '--disable-xvmc', '--prefix=/usr', '--confdir=/etc/mplayer', '--datadir=/usr/share/mplayer-uau', '--libdir=/usr/lib64']' returned non-zero exit status 1 make: *** [mplayer] Error 1
http://www.mplayer2.org/ is official website now, 2.0-rc2 was released, renamed package to mplayer2. http://www.mplayer2.org/comparison.html
*** Bug 359703 has been marked as a duplicate of this bug. ***
>There is a ebuild at the multimedia overlay but it does not provide mplayer2 replacement for mplayer-depending packages. For smplayer it does since first day in overlay: http://gitorious.org/gentoo-multimedia/gentoo-multimedia/commit/b12d8c432bcc431a029e4ec74a212efa65a202e2 Moving other packages to overlay is nonsense, also it is not possible to replace mplayer[encode] - mencoder was removed. P.S. Upstream bugtracker is not place for smplayer ebuilds discussion, use #gentoo-media or #gentoo-ru.
Created attachment 267535 [details] new version (2.0)
Created attachment 267537 [details] live ebuild
Created attachment 267539 [details] metadata.xml
This is now in portage. Is it possible to make this compile against libav instead of ffmpeg when using system-ffmpeg? If so, could the ebuild be fixed to enable such an option?
Can you fix the packages depending from the old mplayer? I'd make vitual mplayer package to do this.
This thing is in cvs