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.94k stars 598 forks source link

After a period of time, frames are dropped and reconnection is impossible #690

Closed zhou1591 closed 3 months ago

zhou1591 commented 5 months ago

Hello everyone, please ask a few questions, I hope you can help me

I am now using the win10 above the official website example, my camera push rtsp video stream, the code is H264, the size of the video is 1280*720, the wifi bandwidth is about 20M, after I use the example to start sometimes there will be frame loss

iwEcAqNwbmcDAQTRB4AF0QNGBrDXq1NMFAHoWQYDb3NaowIAB9Itg102CAAJomltCgAL0gAF3Us png_720x720q90

Can he disconnect the rtsp video stream himself and reconnect it when he appears the same message as in the above figure, so it seems that he will keep dropping as long as there is a dropped frame error

Then there is another problem, after I close the exe inside the official sample program, I open it again, sometimes the backend service api will report an error directly in the js

WebRtcStreamer.prototype.onError
mpromonet commented 5 months ago

Hi,

It is usually a good practice to ask only one question in a thread. Otherwise it becomes quickly messy. Reading quickly I don't know what is rtsp_demo.c, it doesnot seems to come from this project. However when there is some frame drops, it may be possible to take some decisions. Nowdays connection is closed (and then restarted) when no data is received for an amount of time.

Best Regards Michel

zhou1591 commented 4 months ago

Is there any way I can catch a dropped frame error in the exe and re-establish the link without closing the exe?

zhou1591 commented 4 months ago

image

Sometimes the program itself shows this up