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

OBS streaming to SRS, republishing failed #454

Closed
winlinvip opened this issue Aug 18, 2015 · 5 comments
Closed

OBS streaming to SRS, republishing failed #454

winlinvip opened this issue Aug 18, 2015 · 5 comments
Assignees
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Milestone

Comments

@winlinvip
Copy link
Member

winlinvip commented Aug 18, 2015

As mentioned in the title.

TRANS_BY_GPT3

@winlinvip winlinvip added the Bug It might be a bug. label Aug 18, 2015
@winlinvip winlinvip added this to the srs 2.0 release milestone Aug 18, 2015
@winlinvip
Copy link
Member Author

winlinvip commented Aug 18, 2015

You can use tcpdump to capture packets: sudo tcpdump -w nginx.pcap tcp port 19350
Then use Wireshark to analyze and decode it as RTMPT.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented Aug 18, 2015

nginx-rtmp has no problem stopping and starting again after starting. However, with SRS, after starting and stopping, it gets stuck at "connecting" and eventually times out. It is unable to establish a connection for continuous publishing.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented Aug 18, 2015

The package sent by OBS is:
FCUnpublish(7, winlin)
DeleteStream(8, 1)

And NginxRTMP only returns one:
OnStatus(NetStream.Unpublish.Success)

And SRS returns three (in the same way as FMS returns):
OnFCUnpublish(NetStream.Unpublish.Success)
_result(7)
OnStatus(NetStream.Unpublish.Success)
_result(8)

Actually, this connection has already been disconnected during stop, so it is a problem when dealing with new connections.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented Aug 18, 2015

It was found that in the second connection packet sent by OBS to SRS, there is an app in the tcURL. However, OBS only has an app in the first packet sent to nginx, and there is no app in the following packets. It seems that nginx did not disconnect the connection.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented Aug 18, 2015

The result is that it is a problem with the chunk_size. OBS should set the chunk_size before exceeding 128 bytes, otherwise it will cause parsing failure.

TRANS_BY_GPT3

@winlinvip winlinvip self-assigned this Sep 25, 2021
@winlinvip winlinvip changed the title OBS推流到SRS,重新发布失败 OBS streaming to SRS, republishing failed Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

1 participant