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
11.9k stars 1.5k forks source link

RTP Packet Lost #3225

Closed wolverin-a closed 5 months ago

wolverin-a commented 5 months ago

Which version are you using?

v1.6.0

Which operating system are you using?

Debian 10 amd64 E3-1230v5, 32 GB RAM

Describe the issue

Hello.

I'm using your app as a video proxy. All paths are added via the API. But additionally, I specified the following parameters in the configuration file

writeQueueSize: 65536
readBufferCount: 32768
udpMaxPayloadSize: 1472
protocols: [tcp]

But it still causes the loss of RTP packets and sometimes I see it in the logs

апр 11 14:46:12 dev rtsp-simple-server[17143]: 2024/04/11 14:46:12 INF [RTSP] [conn 46.229.101.16:37748] closed: EOF
апр 11 14:46:12 dev rtsp-simple-server[17143]: 2024/04/11 14:46:12 WAR [path 02c00081491be26a] [RTSP source] 16 RTP packets lost
апр 11 14:46:12 dev rtsp-simple-server[17143]: 2024/04/11 14:46:12 WAR [RTSP] [session a15ea9c4] write queue is full

Did you attach the server logs?

апр 11 14:48:15 dev rtsp-simple-server[17143]: 2024/04/11 14:48:15 DEB [path 02c00081491be26a] [RTSP source] [s->c] RTSP/1.0 200 OK
апр 11 14:48:15 dev rtsp-simple-server[17143]: 2024/04/11 14:48:15 INF [RTSP] [session 583dc942] is reading from path '02c00081491be26a', with TCP, 1 track (H264)
апр 11 14:48:15 dev rtsp-simple-server[17143]: RTP-Info: url=rtsp://ip:port/02c00081491be26a/trackID=0;seq=4917;rtptime=2113445524
апр 11 14:48:17 dev rtsp-simple-server[17143]: 2024/04/11 14:48:17 WAR [path 02c00081491be26a] [RTSP source] 20 RTP packets lost
апр 11 14:48:18 dev rtsp-simple-server[17143]: 2024/04/11 14:48:18 WAR [path 02c00081491be26a] [RTSP source] 20 RTP packets lost
апр 11 14:48:20 dev rtsp-simple-server[17143]: 2024/04/11 14:48:20 WAR [path 02c00081491be26a] [RTSP source] 20 RTP packets lost
апр 11 14:48:22 dev rtsp-simple-server[17143]: 2024/04/11 14:48:22 WAR [path 02c00081491be26a] [RTSP source] 20 RTP packets lost
апр 11 14:48:24 dev rtsp-simple-server[17143]: 2024/04/11 14:48:24 WAR [path 02c00081491be26a] [RTSP source] 20 RTP packets lost
апр 11 14:48:26 dev rtsp-simple-server[17143]: 2024/04/11 14:48:26 WAR [path 02c00081491be26a] [RTSP source] 20 RTP packets lost
апр 11 14:48:27 dev rtsp-simple-server[17143]: 2024/04/11 14:48:27 WAR [path 02c00081491be26a] [RTSP source] 20 RTP packets lost
апр 11 14:48:29 dev rtsp-simple-server[17143]: 2024/04/11 14:48:29 WAR [path 02c00081491be26a] [RTSP source] 20 RTP packets lost
github-actions[bot] commented 5 months ago

This issue is being automatically closed because it does not follow the issue template. Please reopen the issue and make sure to include all sections of the template.