gpu-api='opengl' failed
Hi there,
fyi, mpv shows this error at start on macOS (using the default mpv_osx.conf in this repo):
mpv.log
❯ /Applications/mpv.app/Contents/MacOS/mpv "/tmp/Starwars1.mkv"
Error parsing option gpu-api (option parameter could not be parsed)
/Users/david/.config/mpv/mpv.conf:15: setting optionc.
libmpv_render: Disabling HDR peak computation (one or more of the following is not supported: compute shaders=0, SSBO=0).
cplayer: (+) Video --vid=1 (*) 'English' (h264 1920x1080 23.976fps)
cplayer: (+) Audio --aid=1 --alang=eng (*) 'English' (dts 6ch 48000Hz)
cplayer: Subs --sid=1 --slang=eng 'English (SDH)' (hdmv_pgs_subtitle)
cplayer: Subs --sid=2 --slang=spa 'Spanish' (hdmv_pgs_subtitle)
cplayer: Subs --sid=3 --slang=fre 'French' (hdmv_pgs_subtitle)
cplayer: (+) Subs --sid=4 'Starwars1-nl.srt' (subrip) (external)
vo/gpu-next: Failed initializing any suitable GPU context!
cplayer: Error opening/initializing the selected video_out (--vo) device.
cplayer: Video: no video
cplayer: Exiting... (Errors when loading file)
playlistmanager:
playlistmanager: stack traceback:
playlistmanager: /Users/david/.config/mpv/scripts/playlistmanager.lua:243: in function 'handler'
playlistmanager: mp.defaults:512: in function 'call_event_handlers'
playlistmanager: mp.defaults:554: in function 'dispatch_events'
playlistmanager: mp.defaults:505: in function <mp.defaults:504>
playlistmanager: [C]: ?
playlistmanager: [C]: ?
playlistmanager: Lua error: /Users/david/.config/mpv/scripts/playlistmanager.lua:243: attempt to index upvalue 'path' (a nil value)
modernx:
modernx: stack traceback:
modernx: /Users/david/.config/mpv/scripts/modernx.lua:1066: in function 'checktitle'
modernx: /Users/david/.config/mpv/scripts/modernx.lua:1040: in function 'handler'
modernx: mp.defaults:512: in function 'call_event_handlers'
modernx: mp.defaults:554: in function 'dispatch_events'
modernx: mp.defaults:505: in function <mp.defaults:504>
modernx: [C]: ?
modernx: [C]: ?
modernx: Lua error: /Users/david/.config/mpv/scripts/modernx.lua:1066: attempt to concatenate local 'title' (a nil value)
- Macbook Pro M1
- macOS 14.4.1
Hi! interesting error. can you tell me which mpv version it is? i can see if i can replicate that issue then on a macOS vm.
Sure, I installed via HomeBrew, the version is 0.37.0 :
mpv
❯ /Applications/mpv.app/Contents/MacOS/mpv --version
Error parsing option gpu-api (option parameter could not be parsed)
/Users/david/.config/mpv/mpv.conf:15: setting option gpu-api='opengl' failed.
mpv 0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
built on Nov 30 2023 14:35:43
libplacebo version: v6.338.1
FFmpeg version: 5.1.4
FFmpeg library versions:
libavutil 57.28.100
libavcodec 59.37.100
libavformat 59.27.100
libswscale 6.7.100
libavfilter 8.44.100
libswresample 4.7.100
HomeBrew
❯ brew info --cask stolendata-mpv
==> stolendata-mpv: 0.37.0
https://mpv.io/
Installed
/opt/homebrew/Caskroom/stolendata-mpv/0.37.0 (6 files, 1.8MB)
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/s/stolendata-mpv.rb
==> Name
mpv
==> Description
Media player based on MPlayer and mplayer2
==> Artifacts
mpv.app (App)
/Applications/mpv.app/Contents/MacOS/mpv (Binary)
documentation/man/mpv.1 (Manpage)
==> Analytics
install: 631 (30 days), 929 (90 days), 929 (365 days)
i soon have a macbook to test it on baremetal. can you try running the same config except commenting line 108 109 110? if that also doesnt work, does 0.38.0 work? https://github.com/Homebrew/homebrew-core/blob/master/Formula/m/mpv.rb found a formula for brew which seems to have it.
finally got the macbook to test things on. i can reproduce the issue on 0.37.0, but 0.38.0 seems to have fixed the issue on my end. EDIT: i do have to note that there is no apparent error in logs, so im pretty sure everything worked out. it performed as well as i thought it should based on the hardware.