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
3.01k stars 604 forks source link

can't run on servers #729

Open aws0me opened 1 week ago

aws0me commented 1 week ago

i run it in docker on my mac,it works. i run it in docker on a server without internet,it doesn't work. also,how to improve the log level,

here is the log:

[root@i-O2onpOhgE ~]# docker logs -f 53455dcafccb8b6e8bb9bd23fc0ba5120876cf2ee851f03b1f5a6e43aa676483 Version:v0.8.7-15-gdadf698/Linux-x86_64 civetweb@v1.16 webrtc@9912723-dirty live555helper@63e2d96 { "urls" : { "tianyan" : { "video" : "rtsp://10.230.1.215:8554/live/JJ-JH-06" } } }Logger level:4 HTTP Listen at 0.0.0.0:8000 Requested URL : rtsp://10.230.1.215:8554/live/JJ-JH-06 Start playing sink for "video/H264" subsession Requested URL : rtsp://10.230.1.215:8554/live/JJ-JH-06 Close session: video/H264 Requested URL : rtsp://10.230.1.215:8554/live/JJ-JH-06 Start playing sink for "video/H264" subsession Requested URL : rtsp://10.230.1.215:8554/live/JJ-JH-06 Close session: video/H264 Requested URL : rtsp://10.230.1.215:8554/live/JJ-JH-06 Start playing sink for "video/H264" subsession Requested URL : rtsp://10.230.1.215:8554/live/JJ-JH-06 Close session: video/H264 Requested URL : rtsp://10.230.1.215:8554/live/JJ-JH-06 Start playing sink for "video/H264" subsession Requested URL : rtsp://10.230.1.215:8554/live/JJ-JH-06 Close session: video/H264

image version:mpromonet/webrtc-streamer:master-amd64

mpromonet commented 1 week ago

Hi @corrosive4354,

Which kinds of bugs, probably the backend is just not getting data from RTSP. Without internet, you may need some STUN/TURN server if you are not on same LAN. Using docker, --net=host may also help.

Best regards, Michel.