Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312295 - [new package] media-video/mplayer2
Summary: [new package] media-video/mplayer2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Media-video project
URL: http://www.mplayer2.org/
Whiteboard:
Keywords: InOverlay
: 359703 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-30 21:20 UTC by Nikoli
Modified: 2011-04-03 10:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild, works fine for me (mplayer-git-9999.ebuild,19.75 KB, text/plain)
2010-03-30 21:21 UTC, Nikoli
Details
diff against current mplayer-9999.ebuild (mplayer-9999.ebuild_suf.diff,12.04 KB, patch)
2010-03-30 21:22 UTC, Nikoli
Details | Diff
reworked ebuild, solved problem with keeping sources (mplayer-git-9999.ebuild,22.17 KB, text/plain)
2010-06-02 16:17 UTC, Nikoli
Details
description for all use flags (metadata.xml,3.45 KB, text/plain)
2010-06-02 16:19 UTC, Nikoli
Details
ebuild works fine with snapshots too (mplayer-git-1.0_rc4_p20100602.ebuild,22.17 KB, text/plain)
2010-06-02 16:20 UTC, Nikoli
Details
new version (2.0) (mplayer2-2.0.ebuild,21.96 KB, text/plain)
2011-03-28 13:53 UTC, Nikoli
Details
live ebuild (mplayer2-9999.ebuild,21.98 KB, text/plain)
2011-03-28 13:53 UTC, Nikoli
Details
metadata.xml (metadata.xml,4.18 KB, text/plain)
2011-03-28 13:56 UTC, Nikoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2010-03-30 21:20:25 UTC
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
Comment 1 Nikoli 2010-03-30 21:21:43 UTC
Created attachment 225879 [details]
ebuild, works fine for me
Comment 2 Nikoli 2010-03-30 21:22:31 UTC
Created attachment 225881 [details, diff]
diff against current mplayer-9999.ebuild
Comment 3 Sebastian Pipping gentoo-dev 2010-03-30 21:38:06 UTC
Comment on attachment 225881 [details, diff]
diff against current mplayer-9999.ebuild

patch flag set on .diff file
Comment 4 Sebastian Pipping gentoo-dev 2010-03-30 21:44:43 UTC
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.
Comment 5 Nikoli 2010-06-02 16:17:49 UTC
Created attachment 233861 [details]
reworked ebuild, solved problem with keeping sources
Comment 6 Nikoli 2010-06-02 16:19:00 UTC
Created attachment 233863 [details]
description for all use flags
Comment 7 Nikoli 2010-06-02 16:20:16 UTC
Created attachment 233865 [details]
ebuild works fine with snapshots too
Comment 8 Nikoli 2010-06-02 16:30:19 UTC
>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?
Comment 10 Grégoire Favre 2010-10-05 12:06:29 UTC
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
Comment 11 Nikoli 2010-10-05 14:21:09 UTC
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

Comment 12 Grégoire Favre 2010-10-06 08:46:40 UTC
Great, with patched ebuild all is perfect, thank you very much :-)
Comment 13 Nikoli 2010-10-17 12:55:36 UTC
Fixed upstream :)
Comment 14 Grégoire Favre 2010-11-22 22:12:28 UTC
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
Comment 15 Nikoli 2011-03-21 13:41:56 UTC
http://www.mplayer2.org/ is official website now, 2.0-rc2 was released, renamed package to mplayer2.
http://www.mplayer2.org/comparison.html
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-22 02:52:49 UTC
*** Bug 359703 has been marked as a duplicate of this bug. ***
Comment 17 Nikoli 2011-03-22 12:12:41 UTC
>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.
Comment 18 Nikoli 2011-03-28 13:53:23 UTC
Created attachment 267535 [details]
new version (2.0)
Comment 19 Nikoli 2011-03-28 13:53:52 UTC
Created attachment 267537 [details]
live ebuild
Comment 20 Nikoli 2011-03-28 13:56:07 UTC
Created attachment 267539 [details]
metadata.xml
Comment 21 Zeev Tarantov 2011-03-29 07:40:59 UTC
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?
Comment 22 neko259 2011-03-29 12:16:01 UTC
Can you fix the packages depending from the old mplayer? I'd make vitual mplayer package to do this.
Comment 23 Tomáš Chvátal (RETIRED) gentoo-dev 2011-04-03 10:47:44 UTC
This thing is in cvs