mpv icon indicating copy to clipboard operation
mpv copied to clipboard

MoltenVK not bundled with macOS static builds with dependencies

Open Akczht opened this issue 1 year ago • 7 comments

Important Information

Provide following Information:

  • mpv 0.37.0
  • macOS 14.2.1
  • Compiled by myself
  • 0.37.0
  • no screenshots, it just doesn't work

Reproduction steps

Step 1. install the bundle on a machine where brew is not installed as well as moltenvk is not installed

Step 2. select gpu-next as video output

Step 3. Open a video file

Expected behavior

nothing crashes, and the video plays on a machine where there are no dependencies installed.

Actual behavior

it crashes immediately, and nothing happens on a machine where there are no dependencies installed.

Log file

[vo/gpu-next] Failed initializing any suitable GPU context! Error opening/initializing the selected video_out (--vo) device.

outpu.txt

Sample files

my build instructions

Akczht avatar Jan 05 '24 17:01 Akczht

My mpv config

Player

player-operation-mode=pseudo-gui log-file=~/Library/Logs/mpv.log no-border no-osc window-scale=0.6

Screenshots

screenshot-template="%F-T%wH.%wM.%wS.%wT-F%{estimated-frame-number}" screenshot-format=png screenshot-png-compression=9

Audio

ao=coreaudio coreaudio-change-physical-format=yes

Video

vo=gpu-next gpu-context=macvk hwdec=videotoolbox

Akczht avatar Jan 05 '24 17:01 Akczht

again like the other issue, this is a useless log file because you are not logging with the problem you have. you need to reproduce the issue when logging.

this is not a crash, this is just a normal exit because it can't initialise the context.

this is a known limitation of the bundling script and is on my todo.

Akemi avatar Jan 05 '24 17:01 Akemi

MoltenVK.dylib is not bundled with the mpv.app build, I don't know what do I have to give as all I am able to reproduce is uninstall homebrew and removing it completely and being unable to run mpv, as there is no moltenvk library neither on the host machine neither in the package, that's why I listed my build directions.

Akczht avatar Jan 05 '24 17:01 Akczht

whenever I uninstall homebrew completely, the mpv.app build with dependencies stops working, I then have to install homebrew again and just installing the molten-vk fixes the issue and gpu-next works.

Akczht avatar Jan 05 '24 18:01 Akczht

this is a know limitation of the bundling script and is on my todo.

to quote myself. dunno why i have to repeat myself and why i am just being ignored.

Akemi avatar Jan 05 '24 22:01 Akemi

@Akczht Maybe my build give you some helps. https://github.com/eko5624/mpv-macos-intel

eko5624 avatar Jan 05 '24 23:01 eko5624

this is a know limitation of the bundling script and is on my todo.

to quote myself. dunno why i have to repeat myself and why i am just being ignored.

My error

Akczht avatar Jan 06 '24 07:01 Akczht