Opened 11 years ago
Closed 10 years ago
#40844 closed submission (fixed)
Please add port "mpv"
Reported by: | kurtjaeke@… | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ctreleaven (Craig Treleaven), Ionic (Mihai Moldovan), myint (Steven Myint) | |
Port: | mpv |
Description
Please add the port mpv. It's a media player derived from mplayer and mplayer2. It fixes some long-standing issues of its ancestors and is more compatible to OSX.
Minimal Portfile attached.
Attachments (6)
Change History (21)
comment:1 follow-up: 2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 11 years ago by kurtjaeke@…
Replying to ryandesign@…:
Should the port name be mpv or mpv-player?
mpv. See updated Portfile.
Why fetch from git instead of from the release tarball?
Why not? What are the options?
comment:3 Changed 11 years ago by kurtjaeke@…
comment:4 Changed 11 years ago by ctreleaven (Craig Treleaven)
Following is a minimally working Portfile, at least on OS X 10.9. mpg installs and will play 1080i mpeg files.
Using mplayer2 as a guide, I've added an extensive list of configure flags. Right now, a couple of obvious bits are disabled (libass and vda) because they seem to cause the build to fall over. It is a start, at least.
There also may be an issue in that SDL and SDL2 are installed at the same time. The player indicates that this could be a problem.
comment:6 Changed 11 years ago by Ionic (Mihai Moldovan)
And with this, ladies and gentlemen, I present to you the fully worked out mpv Portfile.
It features all customizations I could think of and is just a little bit more extensive than the previously suggested solutions.
Please give it a spin, enjoy VDA decoding acceleration and whatnot.
comment:8 Changed 11 years ago by dbevans (David B. Evans)
Owner: | changed from macports-tickets@… to devans@… |
---|---|
Status: | new → assigned |
Changed 11 years ago by Ionic (Mihai Moldovan)
Attachment: | mpv-isystem.diff added |
---|
No functional change. Replace the previous hack adding -I${worksrcpath} as the very first argument to CPPFLAGS by using -isystem for the MacPorts include directory instead. This is cleaner and supposed to be the default MP behavior in the future anyway.
comment:10 Changed 11 years ago by Ionic (Mihai Moldovan)
Just as a heads up, this is my most favourite ~/.mpv/config file:
# Write your default config options here! [default] vo=opengl-hq:backend=cocoa ao=coreaudio sub-scale=3 af=scaletempo softvol=yes softvol-max=500 framedrop=yes hwdec=vda alang=en,eng,de,ger cache=16384
Personally, I like building mpv with +bundle+caca+lirc+mp3+network+opengl+osd+portaudio+screenshot+smb+x11
And what I like best about it (besides the HW acceleration features) is running stuff like this:
mpv https://www.youtube.com/watch?v=4I5Q3UXkGd0
:)
comment:11 Changed 10 years ago by Ionic (Mihai Moldovan)
Updated to 0.4.1. The other patch is now obsolete.
Changed 10 years ago by mf2k (Frank Schima)
Attachment: | Portfile.4 added |
---|
comment:13 Changed 10 years ago by mf2k (Frank Schima)
I've added my tweaked Portfile (including a renamed patchfile to appease lint).
Changed 10 years ago by Ionic (Mihai Moldovan)
New mpv
port including all the good bits AND VDA acceleration when supported by the platform only.
comment:14 Changed 10 years ago by Ionic (Mihai Moldovan)
I've included your suggestions and added:
- automatic
python
variant generation, currently for2.7
,3.2
,3.3
and3.4
, also getting rid of the formerpy32-docutils
patch nodvd
changed todvd
and made default- added own config file in
${prefix}/share/examples/mpv/config-maintainer
andnotes
describing how to use it (interesting for users with hardware acceleration, pretty much everything past 10.6.3) - workaround a compile warning by patching the source to not use
#include <GL/gl3.h>
but only<GL/gl.h>
(mpv doesn't make use of OpenGL 3 and up anyway) with respective comments as to why
comment:15 Changed 10 years ago by mf2k (Frank Schima)
Port: | mpv added |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Version: | 2.2.0 |
r123689. Thanks for your patience.
Should the port name be mpv or mpv-player? If the former, the
name mpv-player
line should be removed. If the latter, thename mpv-player
line should be moved after thegithub.setup
line.Why fetch from git instead of from the release tarball?