Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTSP Stream stuttering #118

Open
jajpadmakaran opened this issue Jul 30, 2021 · 3 comments
Open

RTSP Stream stuttering #118

jajpadmakaran opened this issue Jul 30, 2021 · 3 comments

Comments

@jajpadmakaran
Copy link

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.

@Meonardo
Copy link

@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.

@alexluu-dmb
Copy link

The same issue happens with me when I use happy time rtsp server to publish rtsp stream.

@raypanggh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants