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.83k stars 582 forks source link

the video stuck #595

Open Cmy-art opened 1 year ago

Cmy-art commented 1 year ago

Hi,Firstly I have to thank you for your open source,It's an awesome tool. But recently,when I use the webrtc-streamer to play a certain manufacturer's camera,it works servral seconds,and soon stuck The following is the log, could you help analyze the reason? It would be great if you could tell me the solution, Thank you very much and have a nice day! log.txt

Cmy-art commented 1 year ago

I noticed the fragment "Same/old NTP timestamp (1682463356176 <= 1685498991970) for incoming frame. Dropping." Is it due to the camera needing a calibration timestamp? @mpromonet

mpromonet commented 1 year ago

Hi, It may be camera sending b frame. You may try using option -o that doesnot uncompress or disable b frame in camera configuration. Or modifify the webrtc video decoding. Best Regards Michel

Cmy-art commented 1 year ago

I used the option -o from the beginning,but it doesn't work. On the contrary, I didn't use the -o parameter and the console only printed some error messages, but it still played normally. In addition, I calibrated the camera clock with the option -o and the situation improved. These phenomena make me a little confused, so I need your help @mpromonet