mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.8k stars 581 forks source link

error while loading shared libraries: libXcomposite.so.1: #655

Closed v5star closed 5 months ago

v5star commented 6 months ago

我在centos7上运行 ./webrtc-streamer -o 时,报错下面错误,请问大家有遇到吗?怎么解决这个问题。 ./webrtc-streamer: error while loading shared libraries: libXcomposite.so.1: cannot open shared object file: No such file or directory

mpromonet commented 6 months ago

Hi @v5star

You probably need to install missing libraries. Notice that build is done on ubuntu, using centos may not work. On centos you may use snap or docker.

Best Regards, Michel.

v5star commented 6 months ago

Thank you ~!

v5star commented 6 months ago

Thank you for your help. I have installed a new Docker container in my CentOS 7.9.2009 x86_64 environment, and it can run properly. I can see the logs when making requests, but there is no video displayed on the webpage. When I refresh the page (the page is from https://github.com/mpromonet/webrtc-streamer-htmlwebrtcstreamer.html), it initially shows a spinning loading icon, and after a few seconds, the screen turns black with no video image. I have attached some screenshots during runtime. Could you please help me identify any misconfigurations and provide a solution? thanks (I have tested the same code on my local Windows platform, and it displays correctly, so I suspect the issue is related to the webrtc-streamer service). Attachment: ps log run1 run2 run3

mpromonet commented 6 months ago

Hi,

You should try starting docker with docker run --net=host.

Best Regards, Michel.

mpromonet commented 6 months ago

Hi, Setting --net=host, the docker IP should be the same than host. Increasing log level may help you to understand the problem. Release 0.6.5 is quite old, better to use last one. Another could be Google stun server but this don't mind on LAN. Best Regards Michel