RTSPtoWebRTC
RTSPtoWebRTC copied to clipboard
RTSP Stream stuttering
Hi there,
Needed some help, RTSPtoWebrtc is installed on my local Ubuntu 20.04 machine and it works well if I give it a CCTV camera rtsp source on the local network. However when I try to play an RTSP stream from the same machine which has RTSP server for OBS installed (https://github.com/iamscottxu/obs-rtspserver/releases), it has a major stuttering issues with frames going back and forth continuously..
The same RTSP stream from OBS RTSP server works fine when played back on VLC. The codec details that VLC shows in the inspector is
H264-MPEG-4AVC (part10) (h264) Decoder - Planar 4:2:0 YUV
There is no audio stream
Tried changing the "on_demand": false parameter to true with no luck. There is only one client connected to playback the stream on the browser at one time.
Need to get this working as it is a critical element to a project. Any help would be appreciated. Thank you.
@jajpadmakaran did u find any solution of this problem ? I have similar issue when I pulish RTSP stream to janus videoroom, but if I downgrade the camera encode bitrate to 2Mbps, the problem seems to disappear.
The same issue happens with me when I use happy time rtsp server to publish rtsp stream.
If you're using libx264 then use the ultrafast preset, and the baseline profile and bframes 0.
ffmpeg settings are -preset ultrafast -profile:v baseline -bf 0
You might also need -tune zerolatency