FS#69377 - [smplayer] Error parsing option gpu-context
Attached to Project:
Community Packages
Opened by slack3r (slack3r) - Wednesday, 20 January 2021, 07:03 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:02 GMT
Opened by slack3r (slack3r) - Wednesday, 20 January 2021, 07:03 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:02 GMT
|
Details
Package Version: smplayer-21.1.0-1
Steps to reproduce: In "Preferences" set video output to "gpu". Play a video and you'll get this error: ``Error parsing option gpu-context (option parameter could not be parsed) Setting commandline option --gpu-context=x11 failed. Exiting... (Fatal error)`` Player: mpv 0.33.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects built on UNKNOWN FFmpeg library versions: libavutil 56.51.100 libavcodec 58.91.100 libavformat 58.45.100 libswscale 5.7.100 libavfilter 7.85.100 libswresample 3.7.100 FFmpeg version: n4.3.1 You can reproduce this issue with mpv command-line: `mpv --vo=gpu --gpu-context=x11 [some_video]` So, mpv does not support '--gpu-context=x11'. `mpv --gpu-context=help` returns: GPU contexts (APIs): auto (autodetect) wayland (opengl) x11egl (opengl) drm (opengl) waylandvk (vulkan) x11vk (vulkan) Graphics Card: Intel HD Graphics 530 Solution: no solution. Rollback to smplayer-20.6.0-1 Full log attached. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:02 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/smplayer/issues/2
Saturday, 25 November 2023, 20:02 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/smplayer/issues/2
This "diff" fixes the issue:
```
--- src/core.cpp 2020-11-18 16:22:28.000000000 +0100
+++ src/core.cpp.new 2021-01-20 08:31:41.038448420 +0100
@@ -1759,7 +1759,7 @@
if (pref->vo.isEmpty()) proc->setOption("vo", "xv,x11,");
if (proc->isMPV()) {
if (pref->vo.startsWith("gpu")) {
- proc->setOption("gpu-context", "x11");
+ proc->setOption("gpu-context", "auto");
}
}
}
```
[1] https://app.assembla.com/spaces/smplayer/subversion/commits/9460
```
auto (autodetect)
x11probe (opengl)
x11egl (opengl)
x11 (opengl) <--**
drm (opengl)
vdpauglx (opengl)
waylandvk (vulkan)
x11vk (vulkan)
```
Edit:
In mpv 0.33.0, gpu-context x11 is supported but marked as 'deprecated/legacy' and disabled by default:
```[mpv-0.33.0]$ ./waf configure --help | grep x11
--enable-gl-x11 enable OpenGL X11/GLX (deprecated/legacy) [disable] ```