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)

Portfile.2 (1.0 KB) - added by kurtjaeke@… 11 years ago.
Updated Portfile.
Portfile.3 (4.9 KB) - added by ctreleaven (Craig Treleaven) 11 years ago.
Works!
Portfile (1.0 KB) - added by kurtjaeke@… 11 years ago.
Portfile for mpv-player, v0.2.4.
mpv-isystem.diff (771 bytes) - added by Ionic (Mihai Moldovan) 11 years ago.
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.
Portfile.4 (10.6 KB) - added by mf2k (Frank Schima) 10 years ago.
mpv.diff (15.3 KB) - added by Ionic (Mihai Moldovan) 10 years ago.
New mpv port including all the good bits AND VDA acceleration when supported by the platform only.

Download all attachments as: .zip

Change History (21)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Should the port name be mpv or mpv-player? If the former, the name mpv-player line should be removed. If the latter, the name mpv-player line should be moved after the github.setup line.

Why fetch from git instead of from the release tarball?

comment:2 in reply to:  1 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?

Changed 11 years ago by kurtjaeke@…

Attachment: Portfile.2 added

Updated Portfile.

comment:3 Changed 11 years ago by kurtjaeke@…

I did some reading. Please see the attached new Portfile, which uses the release tarball instead of git.

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.

Changed 11 years ago by ctreleaven (Craig Treleaven)

Attachment: Portfile.3 added

Works!

comment:5 Changed 11 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven@… added

Cc Me!

Changed 11 years ago by kurtjaeke@…

Attachment: Portfile added

Portfile for mpv-player, v0.2.4.

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:7 Changed 11 years ago by Ionic (Mihai Moldovan)

Cc: ionic@… added

Cc Me!

comment:8 Changed 11 years ago by dbevans (David B. Evans)

Owner: changed from macports-tickets@… to devans@…
Status: newassigned

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:9 Changed 11 years ago by myint (Steven Myint)

Cc: general@… added

Cc Me!

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.

comment:12 Changed 10 years ago by Ionic (Mihai Moldovan)

Updated to 0.4.2.

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)

Attachment: mpv.diff added

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 for 2.7, 3.2, 3.3 and 3.4, also getting rid of the former py32-docutils patch
  • nodvd changed to dvd and made default
  • added own config file in ${prefix}/share/examples/mpv/config-maintainer and notes 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: assignedclosed
Version: 2.2.0

r123689. Thanks for your patience.

Note: See TracTickets for help on using tickets.