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

first frame arrived about 2.5s with -o param? #543

Open tshug opened 1 year ago

tshug commented 1 year ago

I run webrtc-streamer -o to connect rtsp, first frame arrived about 2.5s; I run webrtc-streamer without param to connecgt rtsp, first frame arrived about 0.6s; why?

I found -o maybe reduce cpu

mpromonet commented 1 year ago

Hi,

Using -o, webrtc-streamer forward encoded packet, then decoder need initial information like SPS/PPS/IDR frames. Depending on your backend stream structure it may take more or less time. Reducing your GOP will reduce the delay.

Best Regards, Michel.