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
10.71k stars 1.4k forks source link

TPLink Tapo C110 buffer length exceeds 64 #3351

Open phit opened 1 month ago

phit commented 1 month ago

Which version are you using?

v1.8.1

Which operating system are you using?

Describe the issue

Trying to proxy the output of a Tapo C110, I was previously using rtsp-simple-server v0.21.4 which was working fine for this usecase.

Describe how to replicate the issue

Trying to proxy Tapo C110 using the following config, the rest is stock

paths:
  stream1:
    source: rtsp://user:pass@192.168.100.140:554/stream1
    sourceOnDemand: yes
    rtspTransport: tcp

Did you attach the server logs?

yes

INF MediaMTX v1.8.1
2024/05/13 19:14:19 INF configuration loaded from /home/phit/rtsp/mediamtx.yml
2024/05/13 19:14:19 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
2024/05/13 19:14:19 INF [RTSP] [conn 192.168.100.158:55810] opened
2024/05/13 19:14:19 INF [RTSP] [session 85ef4737] created by 192.168.100.158:55810
2024/05/13 19:14:19 INF [RTSP] [conn 192.168.100.158:55810] closed: path of a SETUP request must end with a slash. This typically happens when VLC fails a request, and then switches to an unsupported RTSP dialect
2024/05/13 19:14:19 INF [RTSP] [session 85ef4737] destroyed: not in use
2024/05/13 19:14:19 INF [RTSP] [conn 192.168.100.158:55811] opened
2024/05/13 19:14:19 INF [RTSP] [conn 192.168.100.158:55811] closed: EOF
2024/05/13 19:14:19 INF [RTSP] [conn 192.168.100.158:55812] opened
2024/05/13 19:14:19 INF [path stream1] [RTSP source] started on demand
2024/05/13 19:14:19 INF [path stream1] [RTSP source] ready: 2 tracks (H264, G711)
2024/05/13 19:14:19 INF [RTSP] [session ffea79de] created by 192.168.100.158:55812
2024/05/13 19:14:19 INF [RTSP] [session ffea79de] is reading from path 'stream1', with UDP-multicast, 2 tracks (H264, G711)
2024/05/13 19:14:20 INF [RTSP] [conn 192.168.100.158:55812] closed: terminated
2024/05/13 19:14:20 INF [path stream1] [RTSP source] stopped: an error occurred
2024/05/13 19:14:20 ERR [path stream1] [RTSP source] buffer length exceeds 64
2024/05/13 19:14:20 INF [RTSP] [session ffea79de] destroyed: terminated
^C2024/05/13 19:14:55 INF shutting down gracefully
2024/05/13 19:14:55 INF [RTSP] listener is closing
2024/05/13 19:14:55 INF waiting for running hooks

Did you attach a network dump?

yes, I just emailed you the password @aler9, sorry its very noisy, hope it still helps tapoc110.zip

aler9 commented 2 days ago

Hello, thanks for reporting the issue and for attaching the network dump, however, the only thing that can be assessed from the dump is that after some time the camera starts sending random data, that is then rejected by the server, causing the error you reported:

Screenshot_20240630_230450

since you mentioned that the camera worked with an old version, can you attach a network dump of communication between the camera and the last working version?