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

invalid SDP: failed to decode #8

Closed
Johnny421 opened this issue May 13, 2020 · 5 comments
Closed

invalid SDP: failed to decode #8

Johnny421 opened this issue May 13, 2020 · 5 comments

Comments

@Johnny421
Copy link

Johnny421 commented May 13, 2020

I downloaded this IOS app : https://apps.apple.com/us/app/larix-broadcaster/id1042474385
so i can test rtsp-simple-server. But the server output this when i push from the app:

2020/05/13 17:25:55 [RTSP client 192.168.1.4:63659] connected
2020/05/13 17:25:55 [RTSP client 192.168.1.4:63659] OPTIONS
2020/05/13 17:25:56 [RTSP client 192.168.1.4:63659] ANNOUNCE
2020/05/13 17:25:56 [RTSP client 192.168.1.4:63659] ERR: invalid SDP: failed to decode message: DecodeError in section s: origin address not set
2020/05/13 17:25:56 [RTSP client 192.168.1.4:63659] disconnected

The same app is working fine with Wowza Streaming Engine using RTSP.

@aler9 aler9 closed this as completed in 2a6050d May 17, 2020
@aler9
Copy link
Member

aler9 commented May 17, 2020

Hi, thanks for the report, this should be fixed in v0.6.1. let me know if it worked.

aler9 added a commit that referenced this issue May 17, 2020
@Johnny421
Copy link
Author

Hi, thanks for the report, this should be fixed in v0.6.1. let me know if it worked.

Thank you it works now!

Can you stream/push through TCP instead of UDP?

I thought TCP was only part of RTSP to control RTP, but the stream packets is sent through UDP.

I'm asking this because i was able to playback the stream through TCP and UDP.

and the server output this: "publishing on path 'mystream', 2 tracks via tcp ". When pushing from the app.

Can you please confirm the above ?

@aler9
Copy link
Member

aler9 commented May 24, 2020

Hi, an RTSP session is composed by two different parts:

  • the negotiation, in which the streaming protocol is chosen. This happens exclusively via TCP
  • the streaming, this can happen in TCP or UDP, on the basis of the negotiation.

Streaming via TCP is better when there's a firewall in the middle, but is less efficient, and packets can be buffered, causing a delay.
Streaming via UDP is the ideal situation, since is more efficient and packets cannot get buffered, as they're discarded in case of connection errors, but it requires that the stream receiver has ALL its UDP ports opened.

You can chose the protocol by either tuning the client (i.e. in VLC there's the flag --rtsp-tcp) or the server (in rtsp-simple-proxy you can use --protocols=udp).

@BandwidthMedia
Copy link

BandwidthMedia commented May 29, 2020 via email

@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
None yet
Projects
None yet
Development

No branches or pull requests

3 participants