webcam-stream icon indicating copy to clipboard operation
webcam-stream copied to clipboard

Fixing the delay

Open ishansheth opened this issue 3 years ago • 2 comments

Hi, in your tutorial, you said that there is a delay in the video stream and i can also see that there is a some seconds of delay. Do you know if there is a way to fix this issue or reduce delay as small as possible? Regards

ishansheth avatar May 02 '21 11:05 ishansheth

Same here. Would highly appreciate if this was fixable. I am running on a RPi 3 Model A with stock ffmpeg from the RaspberryPi OS APT and compiled nginx as described in the manual.

CPU is at around 20% and Memory at 197M/366M according to htop with 128M dedicated to the GPU.

DaCHack avatar May 22 '21 17:05 DaCHack

@ishansheth @DaCapitalist I actually retired the setup (the use-case I had in mind went away). But if I were to do it from scratch now, I'd probably go with webrtc over HLS. Peer Connection + (maybe public?) ICE server for cases with NAT in place. That should give under 1s delays in video and audio.

Would probably play around with something like https://github.com/pion for the webrtc version.

DeTeam avatar May 25 '21 17:05 DeTeam