Video Broadcasting fail

I am an individual developer with an app designed for streaming. I obtained the streaming server address and my personal stream key from OBS, combined them, and attempted to push the stream using an RTMP protocol encoder. However, the TCP connection failed. I would like to clarify whether I must register an application for this to work or if having the address and key alone is sufficient for streaming.

The current error messages I received are:

  • CConn::onRecvError tcp peer orderly shutdown the connect.
  • CConn::onRecvError Failed to read from socket.

Could you advise on whether this issue is related to missing app registration or if there might be another underlying problem?

App registation is not required

I’ve used my streamKey with ffmpeg to send video data to twitch.

This sounds like a problem with the tool you are using. or you have a problem on the route between you and the ingest you are using.

See this guide: Video Broadcast | Twitch Developers instead of extracting data from OBS. Since I don’t know what you’ve pullled from OBS here in terms of a streaming server address. You should call the ingests API and select one of from that.