div-opn / rtsp-to-mjpeg

Simple container to provide access to a RTSP stream via MJPEG.
8 stars 13 forks source link

Failed to connect to the D-Bus session daemon #2

Open ripowercat opened 7 months ago

ripowercat commented 7 months ago

docker run -it -e CAMERAUSER='someuser' -e CAMERAPASSWORD='somepass' -e CAMERAIP='192.168.1.60' -e CAMERAPORT='554' -e CAMERASTREAM='stream1' -e DISPLAY=':0.0' opndiverseco/rtsp-to-mjpeg:latest VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7) xcb_connection_has_error() returned true [00005644c8d35b60] vlcpulse audio output error: PulseAudio server connection failure: Connection refused [00005644c8d5a4b0] dbus interface error: Failed to connect to the D-Bus session daemon: D-Bus library appears to be incorrectly set up: see the manual page for dbus-uuidgen to correct this issue. (Failed to open "/var/lib/dbus/machine-id": No such file or directory; UUID file '/etc/machine-id' should contain a hex string of length 32, not length 0, with no other text) [00005644c8d5a4b0] main interface error: no suitable interface module [00005644c8cb0420] main libvlc error: interface "dbus,none" initialization failed [00005644c8d38d40] main interface error: no suitable interface module [00005644c8cb0420] main libvlc error: interface "globalhotkeys,none" initialization failed [00005644c8d38d40] dummy interface: using the dummy interface module... Created new TCP socket 3 for connection Created new TCP socket 3 for connection [00007f1d54004230] main mux error: cannot add this stream [00007f1d540301f0] main decoder error: cannot create packetizer output (alaw) [00007f1d540301f0] main decoder error: buffer deadlock prevented [00007f1d34150e10] chain filter error: Too high level of recursion (3) [00007f1d341506c0] main filter error: Failed to create video converter [00007f1d34150e10] chain filter error: Too high level of recursion (3) [00007f1d341506c0] main filter error: Failed to create video converter [00007f1d34150e10] chain filter error: Too high level of recursion (3) [00007f1d341506c0] main filter error: Failed to create video converter [00007f1d34150e10] chain filter error: Too high level of recursion (3) [00007f1d341506c0] main filter error: Failed to create video converter [00007f1d34150e10] chain filter error: Too high level of recursion (3) [00007f1d341506c0] main filter error: Failed to create video converter [00007f1d34150e10] chain filter error: Too high level of recursion (3) [00007f1d341506c0] main filter error: Failed to create video converter [00007f1d34150e10] chain filter error: Too high level of recursion (3)

I had to set the X-Windows DISPLAY variable or I would get "[0000561662d69d40] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11"

Once that was set I'd start getting the above.

bwnance commented 5 months ago

@ripowercat i fixed this by updating the base image used - fork with my changes is here: https://github.com/bwnance/rtsp-to-mjpeg