GoSecure / pyrdp

RDP monster-in-the-middle (mitm) and library for Python with the ability to watch connections live or after the fact
https://www.gosecure.net/blog/2020/10/20/announcing-pyrdp-1/
GNU General Public License v3.0
1.5k stars 242 forks source link

pyrdp-convert.py -f mp4 (qt.qpa.xcb: could not connect to display) #435

Closed pghook closed 1 year ago

pghook commented 1 year ago

(venv) root@48c47bafecef:/home/pyrdp/pyrdp_output/replays# pyrdp-convert.py -f mp4 rdp_replay_20230615_09-59-32_508_Thomas523952.pyrdp -o aaa.mp4 qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped) (venv) root@48c47bafecef:/home/pyrdp/pyrdp_output/replays#

obilodeau commented 1 year ago

In order to use pyrdp-convert.py you need a GUI environment. It looks like you are running from inside a container. There are ways to make that work.

Consult the instructions here: https://github.com/GoSecure/pyrdp#using-the-gui-player-in-docker

If you are still having errors, maybe a new dependency is required. Check https://github.com/GoSecure/pyrdp/issues/351 for troubleshooting steps.