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 streams lost in v0.9.5 onwards #60

Closed
sshaikh opened this issue Aug 17, 2020 · 5 comments
Closed

RTSP streams lost in v0.9.5 onwards #60

sshaikh opened this issue Aug 17, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@sshaikh
Copy link

sshaikh commented Aug 17, 2020

Which version are you using?

v0.9.5 onwards

Describe the problem

When trying to access a single (proxied?) stream from multiple clients, the stream gets closed for all of them.

Sample output has the following during the disconnections, whereas previously logs were quiet:

2020/08/17 16:48:57 [0/0/0] rtsp-simple-server v0.9.10
2020/08/17 16:48:57 [0/0/0] [UDP/RTP listener] opened on :8002
2020/08/17 16:48:57 [0/0/0] [UDP/RTCP listener] opened on :8003
2020/08/17 16:48:57 [0/0/0] [TCP listener] opened on :8553
2020/08/17 16:48:57 [0/0/0] [source cam1] started
2020/08/17 16:48:57 [0/0/0] [source cam1] connecting
2020/08/17 16:48:57 [0/0/0] [source cam1] ready
2020/08/17 16:49:38 [1/0/0] [client x.x.7.1:58143] connected
2020/08/17 16:49:38 [1/0/0] [client x.x.7.1:58143] OPTIONS
2020/08/17 16:49:38 [1/0/0] [client x.x.7.1:58143] DESCRIBE
2020/08/17 16:49:38 [1/0/0] [client x.x.7.1:58143] SETUP
2020/08/17 16:49:38 [1/0/0] [client x.x.7.1:58143] PLAY
2020/08/17 16:49:38 [1/0/1] [client x.x.7.1:58143] is receiving on path 'cam1', 1 track via udp
2020/08/17 16:49:46 [2/0/1] [client x.x.7.1:58145] connected
2020/08/17 16:49:46 [2/0/1] [client x.x.7.1:58145] OPTIONS
2020/08/17 16:49:46 [2/0/1] [client x.x.7.1:58145] DESCRIBE
2020/08/17 16:49:46 [2/0/1] [client x.x.7.1:58145] SETUP
2020/08/17 16:49:46 [2/0/1] [client x.x.7.1:58145] PLAY
2020/08/17 16:49:46 [2/0/2] [client x.x.7.1:58145] is receiving on path 'cam1', 1 track via udp
2020/08/17 16:49:57 [2/0/2] [source cam1] ERR: read tcp x.x.0.6:37506->x.x.6.1:554: i/o timeout
2020/08/17 16:49:57 [2/0/2] [source cam1] not ready
2020/08/17 16:49:57 [2/0/2] [client x.x.7.1:58145] ERR: read tcp x.x.0.6:8553->x.x.7.1:58145: use of closed network connection
2020/08/17 16:49:57 [1/0/1] [client x.x.7.1:58145] disconnected
2020/08/17 16:49:57 [1/0/1] [client x.x.7.1:58143] ERR: read tcp x.x.0.6:8553->x.x.7.1:58143: use of closed network connection
2020/08/17 16:49:57 [0/0/0] [client x.x.7.1:58143] disconnected
2020/08/17 16:50:02 [0/0/0] [source cam1] connecting
2020/08/17 16:50:02 [0/0/0] [source cam1] ready

x.x.7.1 is the client running VLC
x.x.0.6 is the host running rtsp-simple-server
x.x.6.1 is the source ip camera

and my config looks like the following:

paths:
  cam1:
    source: rtsp://addr
    sourceProtocol: udp

I've determined that v0.9.4 is the latest version that does not demonstrate this behaviour.

@aler9 aler9 added the bug Something isn't working label Aug 17, 2020
@gustavobsch
Copy link

I second this, everysince v0.9.4 my streams experience frequent disconnects. I have 8 RTSP cameras using a combination of UDP/TCP. Issue is present with TCP.

@aler9
Copy link
Member

aler9 commented Aug 17, 2020

Hello, thank you very much for reporting the issue; this should be fixed in v0.9.11, please try and let me know.

@gustavobsch
Copy link

Thanks it's stable now

@sshaikh
Copy link
Author

sshaikh commented Aug 17, 2020

Fixed in three hours. Amazing!

@aler9 aler9 closed this as completed Aug 18, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2023

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants