bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
12.43k stars 1.54k forks source link

write: connection reset by peer #3911

Open sciensys opened 1 month ago

sciensys commented 1 month ago

Which version are you using?

MediaMTX v1.9.1

Which operating system are you using?

Linux amd64 standard

Describe how to replicate the issue

  1. start the server
  2. publish with: entrance: source rtsp://[your_login]@[ip_address_camera]:554/Streaming/channels/101
  3. read with IPTV box MAG250: ffrt2 rtmp://[ip_address_mediamtx]/entrance (ffr2 - solution to receive TCP stream)
  4. wait 5 or more hours
  5. try to change channel, and you'll get: closed: write tcp [ip_mediamtx]:1935->[ip_iptv_box]:52153: write: connection reset by peer. No one IPTV box can't change channel.
  6. systemctl restart mediamtx - after that, all IPTV boxes now can change channels during next 5-8 hours p.s VLC can get rtmp stream when ITPV boxes can't

Server logs

mediamtx.log

Network dump

tcpdump_2boxes.zip