-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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/WebRTC Stream periodically freezing #1697
Comments
I have this problem too when sourcing an RTSP from my ip camera. PS: It occurs WAY more frequently over WEBRTC. And it freezes all webrtc clients at the same time. |
I have this problem too.
Here is the mp4 link. |
I'm also facing this problem with mp4 h264 files streamed to WebRtc clients in a When I use mediamtx to "provide" the rtsp stream to another go-based webrtc server (that does no reencoding either), the freezing does not occur, so there's something specific about the way mediamtx handles the video/webrtc that amplifies this issue. |
A complete explanation on why this bug happens is here: Glimesh/janus-ftl-plugin#101 |
Which version are you using?
v0.22.0
Which operating system are you using?
Describe the issue
We're trying to stream a screen capture from a windows VM in Azure. We use ffmpeg and gdigrab to capture the desktop content and send it over rtsp to an rtsp-simple-server running on docker in another VM (also on azure). When we then try to view the stream using the built-in WebRTC player, the stream mostly works, but it periodically freezes. It usually freezes for 5-10s at least every 2 minutes. Is there perhaps a way to reduce this? Or do you know how we could analyze this further? Any help you can provide would be greatly appreciated :)
Describe how to replicate the issue
ffmpeg -r 10 -f gdigrab -i desktop -pix_fmt yuv420p -vcodec libx264 -b:v 1024k -maxrate 2058k -bufsize 2058k -profile:v main -preset ultrafast -tune zerolatency -bf 0 -f rtsp rtsps://<SOMEUSER>:<SOMEPASSWORD>@<UBUNTU_VM_IP>:8322/<STREAM_NAME>
https://<UBUNTU_VM_IP>:8889/<STREAM_NAME>/
Did you attach the server logs?
yes
shortlogs.txt
Did you attach a network dump?
no, we did analyze the network traffic with wireshark, but found no changes in the traffic as the freezes were occurring. If its still necessary we can still find the tcpdump and provide it here.
The text was updated successfully, but these errors were encountered: