-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 source stop stream after 2 minutes #1739
Comments
v0.23.1 also affected 2023/05/19 09:59:22 INF [path 10.154.184.4] [rtsp source] ready: 2 tracks (H264, G711) Even without clients (setup always remux) |
Hello @Forest-fox, i'm trying to debug the logs you provided but i think you're reporting two separate issues:
|
Yes, issue is second variant with [rtsp source] ERR: EOF / muxer destroyed (terminated) |
Have checked version 0.23.2 - also affected |
From the logs it seems that the camera closes the TCP connection after exactly 2 minutes and 15 seconds. This may be linked to the ability to keep a RTSP session running even when its TCP connection gets closed, which is currently missing (bluenviron/gortsplib#162). If this hypothesis is right, you might be able to temporarily fix the issue by setting |
Tried to set |
Can you post a network dump of 3 minutes of communication between SMPlayer and the camera? this is needed in order to compare a working setup with the server behavior. |
Hello, from the logs you posted it seems that the difference between MediaMTX and SMPlayer is that MediamTX doesn't send RTCP receiver reports to the camera, because the camera doesn't send RTCP sender reports, while SMPlayer, which is GStreamer-based, sends them anyway without waiting for sender reports. I've created a fix (bluenviron/gortsplib#318) but before merging it i need you to test the following nightly release in order to check whether the issue has been solved. [link removed] |
Thanks! I'll test at Monday and give feedback. |
I can confirm, that problem resolved with fixed version. |
added in v0.23.7 |
This issue is being locked automatically because it has been closed for more than 6 months. |
Which version are you using?
v0.22.2
Which operating system are you using?
Describe the issue
I have setup rtsp proxy with one source - h264 video + g711U audio
I can take source directly with rtsp://ip/av0_0
This link setup as source for mediamtx path
If i play stream directly with SMPlayer - all fine, stream plays for a moment, when i stopped it.
But if i play by proxy - got this:
2023/04/26 16:59:30 INF [path 10.154.249.2] [rtsp source] stopped
2023/04/26 16:59:30 INF [RTSP] [conn 127.0.0.1:52970] closed (terminated)
2023/04/26 16:59:30 INF [RTSP] [session 381853316] destroyed (terminated)
Describe how to replicate the issue
Did you attach the server logs?
yes
Did you attach a network dump?
yes (direct.pcap && proxy.pcap)
Logs and dump in file logs.tar.gz
The text was updated successfully, but these errors were encountered: