Description
It seems to boil down to this:
either the libmpv dylib or the python wrapper
cannot establish a VO on macOS, although mpv-player can.
The fact that mpv-player can do it suggests that
a solution to libmpv's problem can't be far away.
Both with and without a Qt window, libmpv hangs at
"vo/gpu/opengl Initializing GPU context 'cocoa'",
but mpv-player seems to use osx/cocoacb and vo/libmpv.
Setting 'gpu' or 'libmpv' or 'cocoacb' as the vo does not help.
The uploaded zip contains full debug logs.
j77h_macos_no_vo.zip
Although my 'mac' is a VBox VM on Linux, I've ruled out
that being in a VM is the cause, by showing that
mpv-player works in the same VM, and
libmpv works in Windows in a VM.
Both the macOS VM and the Windows VM use the VBoxSVGA device.
Creating a GUI window first does not seem to help now.
My PySide6_libmpv_test.py on Linux clearly opens a window first
then inserts the player into it, but on macOS the window never appears.
(My PySide6 tests without libmpv work fine on macOS.)
Vydia's code does not work with current Python or libmpv.
Robozman's code is too complex for me -- don't need it and don't understand it. :)
Note: I don't use Mac and don't know it well; all I have is the VM, just for testing my code.
Also, I'm not a great coder, I know only a bit of Python...