Menu

#938 Video is starting in an external window

stable
open
nobody
None
5
2020-06-06
2019-11-13
Ivanov Ivan
No

Using smplayer on Fedora 31 with Wayland. Everything was ok on fedora 30 with the earlier version of smplayer.
Smplayer version: 19.10.0 (revision 9238). mpv version is 0.30. Settings are default: option "Run in its own window is unset";

Output in in smplayer log:
[16:23:18:544] WARNING: Non-toplevel surfaces can't request window states
[16:23:18:544] WARNING: Wayland does not support QWindow::requestActivate()

Discussion

  • Ricardo Villalba

    It seems a problem when using Wayland.
    Try selecting x11 as video output in preferences -> general -> video.

     
  • Ivanov Ivan

    Ivanov Ivan - 2019-11-14

    With QT_QPA_PLATFORM=xcb it runs as intended (inside the window).

    With QT_QPA_PLATFORM=wayland-egl it doesn't even play, with such output:

    [vo/x11/x11] X11 error: BadDrawable (invalid Pixmap or Window parameter)
    [vo/x11/x11] Type: 0, display: 0x7f7cb0001a10, resourceid: 7, serial: 11
    [vo/x11/x11] Error code: 9, request code: e, minor code: 0
    [vo/x11/x11] X11 error: BadWindow (invalid Window parameter)
    [vo/x11/x11] Type: 0, display: 0x7f7cb0001a10, resourceid: 7, serial: 12
    [vo/x11/x11] Error code: 3, request code: 28, minor code: 0
    [vo/x11/x11] Current display FPS: 59.946021
    [vo/x11] selected visual: 52
    [vo/x11/x11] X11 error: BadWindow (invalid Window parameter)
    [vo/x11/x11] Type: 0, display: 0x7f7cb0001a10, resourceid: 7, serial: 15
    [vo/x11/x11] Error code: 3, request code: 2, minor code: 0
    [vo/x11/x11] X11 error: BadWindow (invalid Window parameter)
    [vo/x11/x11] Type: 0, display: 0x7f7cb0001a10, resourceid: 7, serial: 17
    [vo/x11/x11] Error code: 3, request code: 1, minor code: 0
    [vo/x11/x11] X11 error: BadWindow (invalid Window parameter)
    [vo/x11/x11] Type: 0, display: 0x7f7cb0001a10, resourceid: 800002, serial: 1a
    [vo/x11/x11] Error code: 3, request code: 12, minor code: 0
    [vo/x11/x11] X11 error: BadWindow (invalid Window parameter)
    [vo/x11/x11] Type: 0, display: 0x7f7cb0001a10, resourceid: 800002, serial: 1c
    [vo/x11/x11] Error code: 3, request code: 12, minor code: 0
    [vo/x11/x11] X11 error: BadWindow (invalid Window parameter)
    [vo/x11/x11] Type: 0, display: 0x7f7cb0001a10, resourceid: 800002, serial: 1d
    [vo/x11/x11] Error code: 3, request code: 12, minor code: 0
    
    [vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO.
    [vo/x11/x11] X11 error: BadWindow (invalid Window parameter)
    [vo/x11/x11] Type: 0, display: 0x7f7cb0001a10, resourceid: 800002, serial: 1f
    [vo/x11/x11] Error code: 3, request code: 12, minor code: 0
    [vo/x11/x11] X11 error: BadDrawable (invalid Pixmap or Window parameter)
    [vo/x11/x11] Type: 0, display: 0x7f7cb0001a10, resourceid: 800002, serial: 20
    [vo/x11/x11] Error code: 9, request code: 37, minor code: 0
    

    etc

     
  • SimonP

    SimonP - 2020-06-06

    The best workaround for this is probably to run SMPlayer on XWayland use the --gpu-context=x11 mpv option. Without it, mpv will start on Wayland and therefore it will be impossible for it to interface with SMPlayer running on XWayland.

    To actually fix this, Wayland support needs to be implemented in SMPlayer.

     

    Last edit: SimonP 2020-06-06
  • SimonP

    SimonP - 2020-06-06

    @rvm: It would probably be good to include this option by default.

     

Log in to post a comment.

MongoDB Logo MongoDB