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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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.
   smp.log (2.3 KiB)
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
Comment by slack3r (slack3r) - Wednesday, 20 January 2021, 07:14 GMT
*** I guess is upstream bug or related to mpv Arch package version.

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");
}
}
}
```
Comment by loqs (loqs) - Sunday, 24 January 2021, 00:43 GMT
Looks to have been introduced by [1]. If the value has never been valid for any version of mpv it would appear to be an upstream bug.

[1] https://app.assembla.com/spaces/smplayer/subversion/commits/9460
Comment by slack3r (slack3r) - Sunday, 24 January 2021, 09:50 GMT
In mpv 0.29.1, gpu-context values are:

```
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] ```
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...