Hello, I just try to install Janus WebRTC server and run streaming test successfully. I used ffmpeg and my webcam for input streaming.
ffmpeg -f v4l2 -framerate 25 -video_size 1920x1080 -i /dev/video0 -vcodec libx264 -pix_fmt yuv420p -an -g 5 -preset ultrafast -tune zerolatency -sdp_file video.sdp -f rtp rtp://<IP>:6004?pkt_size=1200
The latency from source to browser where I can see is about 100ms.
I also play the rtp streaming on ffplay, the latency is 800ms:
ffplay -probesize 32 -sync ext -protocol_whitelist file,udp,rtp -nobuffer 0 video.sdp
ffmpeg->Janus WebRTC server->HTTP server->browser latency is only 100ms, but
ffmpeg->ffplay latency is 800ms. Anyone can tell me why the WebRTC has more steps but less latency than playing on ffplay?