Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#53253 closed defect (invalid)

Mpv@Snow Leopard 10.6.8 - unrecognized selector sent to instance 0x105e30cb0

Reported by: mrkapqa Owned by: Ionic (Mihai Moldovan)
Priority: Normal Milestone:
Component: ports Version:
Keywords: snowleopard Cc:
Port: mpv

Description (last modified by mf2k (Frank Schima))

Hello ,

i am superhappy that Mpv got installed out of the box on clean install of Snow Leopard on my MacPro 1.1 however when i am running it , eg. in conjunction with youtube-viewer

getting the following error

Playing: Teachings of Babaji [360p].mp4
 (+) Video --vid=1 (*) (h264)
 (+) Audio --aid=1 --alang=und (*) (aac)
AO: [coreaudio] 44100Hz stereo 2ch floatp
VO: [opengl] 320x240 yuv420p
2017-01-08 22:15:04.641 mpv[25266:903] -[MpvVideoView setWantsBestResolutionOpenGLSurface:]: unrecognized selector sent to instance 0x105e30cb0
2017-01-08 22:15:04.643 mpv[25266:903] -[MpvVideoView setWantsBestResolutionOpenGLSurface:]: unrecognized selector sent to instance 0x105e30cb0

Hope there is a chance to get this awesome player working with Snow Leopard.

cheers + happy week

Attachments (1)

mpv.log (272.5 KB) - added by mrkapqa 6 years ago.

Download all attachments as: .zip

Change History (22)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Keywords: mpv removed
Owner: set to Ionic
Port: mpv added
Status: newassigned

In the future, please use WikiFormatting, fill in the Port field and Cc the port maintainers (port info --maintainers mpv), if any.

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 7 years ago by Ionic (Mihai Moldovan)

Resolution: invalid
Status: assignedclosed

The Cocoa output won't work on 10.6, as advertised in the notes.

Instead, make sure XQuartz is installed (either via the package installer or via MacPorts) and mpv has been built with at least the variant +x11, better also include +opengl, so from my perspective at least +x11+opengl. Then, spawn mpv like that: mpv --vo=opengl --profile=opengl-hq --opengl-backend=x11. If that works, great. Create or edit ~/.mpv/config and feel free to add

vo=opengl
profile=opengl-hq
opengl-backend=x11

so that this configuration is used by default.

If it doesn't work, try to leave out --profile.

comment:4 Changed 7 years ago by mrkapqa

hello,

how can i build mpv with opengl when using hombrew?

i installed xquartz and tried to play file with the following option

mpv --vo=opengl --profile=opengl-hq --opengl-backend=x11 Error parsing option opengl-backend (option could not be parsed) Setting command line option '--opengl-backend=x11' failed.

comment:5 Changed 7 years ago by Ionic (Mihai Moldovan)

I cannot help you with Homebrew. I do not use it. The mpv versions in MacPorts and Homebrew likely differ - for instance, one might be newer than the other or compiled in a different way/with different features. The mpv version in MacPorts should support --opengl-backend if built with the x11 and opengl variants.

comment:6 Changed 7 years ago by mrkapqa

i am sorry , wrote accidently homebrew,

my question was how to pass those options when installing mpv?

i just did "sudo port install mpv"

when i try to use opengl-backend

i get

mpv --opengl-backend DAY4_PART1.m4v Error parsing option opengl-backend (option could not be parsed) Setting command line option '--opengl-backend=DAY4_PART1.m4v' failed.

thanks

comment:7 Changed 7 years ago by Ionic (Mihai Moldovan)

That's because you didn't *specify* a backend.

Use mpv --opengl-backend=x11 DAY4_PART1.m4v.

What is the output of port installed mpv?

comment:8 Changed 7 years ago by mrkapqa

mpv @0.22.0_2+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband (active)

admins-mac-pro:Downloads admin$ mpv --opengl-backend=x11 DAY4_PART1.m4v Error parsing option opengl-backend (option could not be parsed) Setting command line option '--opengl-backend=x11' failed.

Exiting... (Fatal error)

comment:9 Changed 7 years ago by Ionic (Mihai Moldovan)

You disabled the x11 variant... that's why mpv is failing to set the backend...

Please rebuild mpv with sudo port install mpv +audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11. Should work after that.

comment:10 Changed 7 years ago by mrkapqa

wow,

thank you so much, now it worked when passing

mpv --opengl-backend=x11

you really made my day. Would it be possible to run this also on Leopard on a G5?

comment:11 Changed 7 years ago by Ionic (Mihai Moldovan)

Possibly, but I really couldn't tell. I don't use such systems and consequently don't test such a combination, so it'll be a try-and-error operation. Feel free to try at the very least.

comment:12 Changed 7 years ago by mrkapqa

thanks, i am getting

neu-neus-power-mac-g5:~ neuneu$ sudo port install mpv +audiocd+bundle+dvd+libarchive+network+opengl+osd+pythonxcode-select --install27+rubberband+x11 ---> Computing dependencies for mpv Error: Cannot install mpv for the arch 'ppc' because Error: its dependency rubberband only supports the archs 'i386 x86_64'. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port mpv failed neu-neus-power-mac-g5:~ neuneu$

comment:13 Changed 7 years ago by Ionic (Mihai Moldovan)

Well... given that rubberband will not build on ppc boxes, you could disable the rubberband variant, akin to how we enabled the x11 variant before.

There's still no guarantee that either all dependencies or mpv as a whole will build on PPC...

comment:14 Changed 7 years ago by mrkapqa

i am sorry, but aunable to complete right now the task

tried

sudo port install mpv +audiocd+bundle+dvd+libarchive+network+opengl+osd+pythonxcode-select --install27+x11 --no-build rubberband

port deps mpv --no-build rubberband port rdeps mpv --no-build rubberband

could you indicate a hint on how to accomplish?

comment:15 Changed 7 years ago by kencu (Ken)

you'd do this

sudo port install mpv +audiocd+bundle+dvd+libarchive+network+opengl+osd+python27-rubberband+x11

btw, I have noticed that some ports that specify they only build on i386 and x86_64 will actually build on ppc -- the portfile author may have not tested it on ppc, so just disabled it.

If you're going to work on 10.5 PPC, you'll need to be comfortable editing portfiles and changing a few things. in this case, I'd edit the rubberband portfile

sudo vi `port file rubberband`

and find the supported_archs line, and comment it out. Then try to build rubberband and see what happens. You might be surprised.

comment:16 Changed 7 years ago by mrkapqa

sorry ,

i did not accomplish on leopard or tiger ;

but today i tried on snow leopard and got this message -

mpv --opengl-backend=x11 DAY4_PART1.m4v

ffmpeg library versions:

libavutil 55.34.100 (runtime 55.34.101) libavcodec 57.64.101 libavformat 57.56.100 (runtime 57.56.101) libswscale 4.2.100 libavfilter 6.65.100 libswresample 2.3.100

ffmpeg version: 3.2.4

mpv was compiled against a different version of FFmpeg/Libav than the shared library it is linked against. This is most likely a broken build and could result in misbehavior and crashes.

mpv does not support this configuration and will not run - rebuild mpv instead.

Exiting... (Fatal error)

this is my port

port installed mpv ==

The following ports are currently installed:

mpv @0.22.0_2+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11 (active)

Last edited 7 years ago by mrkapqa (previous) (diff)

comment:17 Changed 7 years ago by Ionic (Mihai Moldovan)

Hm, for some reason ffmpeg was rebuilt after mpv. I don't know what you did, but I bumped the port a day after the ffmpeg port was updated, which should have been enough to ensure the correct order.

Anyway, you'll have to rebuild mpv. Just execute:

sudo port -n upgrade --force mpv

and it should work again afterwards.

comment:18 Changed 7 years ago by mrkapqa

wow, thank you ,

it worked, really fast solution!

i think it got broke after i installed ppc media center which i use also on powermac, another great program!

comment:19 Changed 7 years ago by mrkapqa

hello , i tried today again after my installation became broken ,

installed xquartz 2.7.x on snow leopard 10.6.8,

sudo port install mpv +audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11

would install just fine on macpro 5.1 with nvidia gt120,

but no playback with

mpv --opengl-backend=x11 Mila*.mp4

Playing: Mila*.mp4

(+) Video --vid=1 (*) (h264) (+) Audio --aid=1 --alang=und (*) (aac)

with no audio or video shown.

if i just use

mpv

mpv Strecker\ Memorandum\ -\ AIDS.avi Playing: Strecker Memorandum - AIDS.avi

(+) Video --vid=1 (mpeg4) (+) Audio --aid=1 (mp3)

AO: [coreaudio] 44100Hz stereo 2ch s16p VO: [opengl] 320x240 yuv420p 2017-04-20 09:28:48.369 mpv[7106:903] -[MpvVideoView setWantsBestResolutionOpenGLSurface:]: unrecognized selector sent to instance 0x10fb70b70 2017-04-20 09:28:48.370 mpv[7106:903] -[MpvVideoView setWantsBestResolutionOpenGLSurface:]: unrecognized selector sent to instance 0x10fb70b70

mpv icon would come up but again no playback or audio.

i know this worked before on my previous installation of snow leopard; maybe somewhere i made an error; thanks,

comment:20 Changed 7 years ago by mrkapqa

ok, it got sorted, after installing quicksilver for osx, X11 was launched, and it dawned on me;

now mpv is again functional here@snowleopard :)

Changed 6 years ago by mrkapqa

Attachment: mpv.log added

comment:21 Changed 6 years ago by mrkapqa

today i tried to re-install mpv@snow leopard 10.6.8 but it seems it would not install on macpro due to version mpv change from 0.26 to 0.28?

Please see error message

---> Attempting to fetch youtube-dl-2018.08.04.tar.gz from http://lil.fr.distfiles.macports.org/youtube-dl ---> Verifying checksums for youtube-dl ---> Extracting youtube-dl ---> Applying patches to youtube-dl ---> Configuring youtube-dl ---> Building youtube-dl ---> Staging youtube-dl into destroot ---> Installing youtube-dl @2018.08.04_0+ffmpeg+python27 ---> Activating youtube-dl @2018.08.04_0+ffmpeg+python27 ---> Cleaning youtube-dl ---> Fetching archive for mpv ---> Attempting to fetch mpv-0.28.2_0+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11.darwin_10.x86_64.tbz2 from http://fco.it.packages.macports.org/mirrors/macports-packages/mpv ---> Attempting to fetch mpv-0.28.2_0+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/mpv ---> Attempting to fetch mpv-0.28.2_0+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/mpv ---> Fetching distfiles for mpv ---> Attempting to fetch mpv-0.28.2.tar.gz from http://lil.fr.distfiles.macports.org/mpv ---> Attempting to fetch waf-1.9.8 from http://lil.fr.distfiles.macports.org/mpv ---> Verifying checksums for mpv ---> Extracting mpv ---> Applying patches to mpv Error: Failed to patch mpv: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port mpv failed ---> Some of the ports you installed have notes:

ffmpeg has the following notes:

* * This build of ffmpeg includes GPLed code and * is therefore licensed under GPL v2 or later. * * The following modules are GPLed: * * postproc * libx264 * libx265 * libxvid * * To include all nonfree, GPLed and LGPL code use variant +nonfree. * To remove nonfree and GPLed code leaving only LGPL code remove the * +gpl2 variant. *

python27 has the following notes:

To make this the default Python or Python 2 (i.e., the version run by the 'python' or 'python2' commands), run one or both of:

sudo port select --set python python27 sudo port select --set python2 python27

i tried to install with

sudo port install mpv +audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11

Note: See TracTickets for help on using tickets.