单播日志里会间歇性出现报错
单播日志里会间歇性出现报错 观看偶尔会卡一下 10:49:58 ERROR RTSP: Invalid response format 10:49:58 ERROR RTSP: Failed to receive response 10:49:58 ERROR RTSP: Socket event handling failed
你需要把日志设置成 DEBUG 级别,在出现这个报错时带上更多日志信息,方便分析
11:00:00 DEBUG RTSP: Prepared request: TEARDOWN rtsp://115.233.43.110/PLTV/88888913/224/3221227988/10000100000000060000000000794038_0.smil?icpid=88888913&from=5&hms_devid=24414&online=1762829996 RTSP/1.0 CSeq: 7 User-Agent: rtp2httpd/3.2.0 Session: 344844056
11:00:00 DEBUG RTSP: TEARDOWN request prepared, will send asynchronously 11:00:00 DEBUG RTSP: TEARDOWN initiated, waiting for async completion 11:00:00 DEBUG Stream: RTSP async TEARDOWN initiated, deferring final cleanup 11:00:00 DEBUG Worker: Async RTSP TEARDOWN initiated, deferring connection cleanup 11:00:00 DEBUG Worker: Deferred cleanup - waiting for RTSP TEARDOWN completion 11:00:00 DEBUG RTSP: Request sent completely (226 bytes) 11:00:00 DEBUG RTSP: Request sent completely, waiting for response 11:00:00 DEBUG Client disconnected 11:00:00 INFO RTSP: Cleanup requested in state 13, initiating TEARDOWN 11:00:00 DEBUG RTSP: Prepared request: TEARDOWN rtsp://115.233.43.108/PLTV/88888913/224/3221229455/131699790.smil?icpid=88888913&from=5&hms_devid=24320&online=1762829996 RTSP/1.0 CSeq: 7 User-Agent: rtp2httpd/3.2.0 Session: 2455722730
11:00:00 DEBUG RTSP: TEARDOWN request prepared, will send asynchronously 11:00:00 DEBUG RTSP: TEARDOWN initiated, waiting for async completion 11:00:00 DEBUG Stream: RTSP async TEARDOWN initiated, deferring final cleanup 11:00:00 DEBUG Worker: Async RTSP TEARDOWN initiated, deferring connection cleanup 11:00:00 DEBUG Worker: Deferred cleanup - waiting for RTSP TEARDOWN completion 11:00:00 DEBUG RTSP: Request sent completely (202 bytes) 11:00:00 DEBUG RTSP: Request sent completely, waiting for response 11:00:00 DEBUG RTSP: Received complete response: $ 11:00:00 ERROR RTSP: Invalid response format 11:00:00 ERROR RTSP: Failed to receive response 11:00:00 DEBUG RTSP: Auto-cleanup triggered on ERROR state 11:00:00 DEBUG RTSP: Main socket closed 11:00:00 DEBUG RTSP: Session cleanup complete 11:00:00 ERROR RTSP: Socket event handling failed 11:00:00 DEBUG Buffer pool: Checking for shrink opportunity (free: 9373, high_watermark: 3072, total: 10240) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 3.1s, total: 10240 -> 9728) 11:00:00 DEBUG Buffer pool: Shrink completed - freed 1 segments (total: 9728 buffers, free: 8861) 11:00:00 DEBUG RTSP: Received complete response: RTSP/1.0 200 OK Server: HMS_V1R2 CSeq: 7 Date: Tue, 11 Nov 2025 02:59:59 GMT Session: 344844056 Timeshift-Status: 1
是不是回看时选取的是和当前比较接近的时间点,例如30秒前,然后每间隔30秒卡顿一次?
是不是回看时选取的是和当前比较接近的时间点,例如30秒前,然后每间隔30秒卡顿一次?
不是回放 直接播放的 4K频道出现较多 卡顿很偶尔 但是日志报错必有
11:00:00 DEBUG RTSP: Prepared request: TEARDOWN
在这条之前的日志,可能也需要发一下
10:59:57 ERROR RTSP: Invalid response format 10:59:57 ERROR RTSP: Failed to receive response 10:59:57 DEBUG RTSP: Auto-cleanup triggered on ERROR state 10:59:57 DEBUG RTSP: Main socket closed 10:59:57 DEBUG RTSP: Session cleanup complete 10:59:57 ERROR RTSP: Socket event handling failed 10:59:57 DEBUG Buffer pool: Checking for shrink opportunity (free: 3804, high_watermark: 3072, total: 5632) 10:59:59 DEBUG Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 10:59:59 DEBUG Buffer pool: Expanding by 512 buffers (current: 5632, free: 256, max: 16384) 10:59:59 DEBUG Buffer pool: Expansion successful (total: 6144 buffers, free: 768) 10:59:59 DEBUG Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 10:59:59 DEBUG Buffer pool: Expanding by 512 buffers (current: 6144, free: 256, max: 16384) 10:59:59 DEBUG Buffer pool: Expansion successful (total: 6656 buffers, free: 768) 10:59:59 DEBUG Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 10:59:59 DEBUG Buffer pool: Expanding by 512 buffers (current: 6656, free: 256, max: 16384) 10:59:59 DEBUG Buffer pool: Expansion successful (total: 7168 buffers, free: 768) 10:59:59 DEBUG Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 10:59:59 DEBUG Buffer pool: Expanding by 512 buffers (current: 7168, free: 256, max: 16384) 10:59:59 DEBUG Buffer pool: Expansion successful (total: 7680 buffers, free: 768) 10:59:59 DEBUG Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 10:59:59 DEBUG Buffer pool: Expanding by 512 buffers (current: 7680, free: 256, max: 16384) 10:59:59 DEBUG Buffer pool: Expansion successful (total: 8192 buffers, free: 768) 10:59:59 DEBUG Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 10:59:59 DEBUG Buffer pool: Expanding by 512 buffers (current: 8192, free: 256, max: 16384) 10:59:59 DEBUG Buffer pool: Expansion successful (total: 8704 buffers, free: 768) 10:59:59 DEBUG Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 10:59:59 DEBUG Buffer pool: Expanding by 512 buffers (current: 8704, free: 256, max: 16384) 10:59:59 DEBUG Buffer pool: Expansion successful (total: 9216 buffers, free: 768) 10:59:59 DEBUG Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 10:59:59 DEBUG Buffer pool: Expanding by 512 buffers (current: 9216, free: 256, max: 16384) 10:59:59 DEBUG Buffer pool: Expansion successful (total: 9728 buffers, free: 768) 11:00:00 DEBUG Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 11:00:00 DEBUG Buffer pool: Expanding by 512 buffers (current: 9728, free: 256, max: 16384) 11:00:00 DEBUG Buffer pool: Expansion successful (total: 10240 buffers, free: 768) 11:00:00 DEBUG Client disconnected 11:00:00 INFO RTSP: Cleanup requested in state 13, initiating TEARDOWN 11:00:00 DEBUG RTSP: TEARDOWN request prepared, will send asynchronously 11:00:00 DEBUG RTSP: TEARDOWN initiated, waiting for async completion 11:00:00 DEBUG Stream: RTSP async TEARDOWN initiated, deferring final cleanup 11:00:00 DEBUG Worker: Async RTSP TEARDOWN initiated, deferring connection cleanup 11:00:00 DEBUG Worker: Deferred cleanup - waiting for RTSP TEARDOWN completion 11:00:00 DEBUG Client disconnected 11:00:00 INFO RTSP: Cleanup requested in state 13, initiating TEARDOWN 11:00:00 DEBUG RTSP: Prepared request: TEARDOWN rtsp://115.233.43.110/PLTV/88888913/224/3221227988/10000100000000060000000000794038_0.smil?icpid=88888913&from=5&hms_devid=24414&online=1762829996 RTSP/1.0 CSeq: 7 User-Agent: rtp2httpd/3.2.0 Session: 344844056
11:00:00 DEBUG RTSP: TEARDOWN request prepared, will send asynchronously 11:00:00 DEBUG RTSP: TEARDOWN initiated, waiting for async completion 11:00:00 DEBUG Stream: RTSP async TEARDOWN initiated, deferring final cleanup 11:00:00 DEBUG Worker: Async RTSP TEARDOWN initiated, deferring connection cleanup 11:00:00 DEBUG Worker: Deferred cleanup - waiting for RTSP TEARDOWN completion 11:00:00 DEBUG RTSP: Request sent completely (226 bytes) 11:00:00 DEBUG RTSP: Request sent completely, waiting for response 11:00:00 DEBUG Client disconnected 11:00:00 INFO RTSP: Cleanup requested in state 13, initiating TEARDOWN 11:00:00 DEBUG RTSP: Prepared request: TEARDOWN rtsp://115.233.43.108/PLTV/88888913/224/3221229455/131699790.smil?icpid=88888913&from=5&hms_devid=24320&online=1762829996 RTSP/1.0 CSeq: 7 User-Agent: rtp2httpd/3.2.0 Session: 2455722730
11:00:00 DEBUG RTSP: TEARDOWN request prepared, will send asynchronously 11:00:00 DEBUG RTSP: TEARDOWN initiated, waiting for async completion 11:00:00 DEBUG Stream: RTSP async TEARDOWN initiated, deferring final cleanup 11:00:00 DEBUG Worker: Async RTSP TEARDOWN initiated, deferring connection cleanup 11:00:00 DEBUG Worker: Deferred cleanup - waiting for RTSP TEARDOWN completion 11:00:00 DEBUG RTSP: Request sent completely (202 bytes) 11:00:00 DEBUG RTSP: Request sent completely, waiting for response 11:00:00 DEBUG RTSP: Received complete response: $ 11:00:00 ERROR RTSP: Invalid response format 11:00:00 ERROR RTSP: Failed to receive response 11:00:00 DEBUG RTSP: Auto-cleanup triggered on ERROR state 11:00:00 DEBUG RTSP: Main socket closed 11:00:00 DEBUG RTSP: Session cleanup complete 11:00:00 ERROR RTSP: Socket event handling failed 11:00:00 DEBUG Buffer pool: Checking for shrink opportunity (free: 9373, high_watermark: 3072, total: 10240) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 3.1s, total: 10240 -> 9728) 11:00:00 DEBUG Buffer pool: Shrink completed - freed 1 segments (total: 9728 buffers, free: 8861) 11:00:00 DEBUG RTSP: Received complete response: RTSP/1.0 200 OK Server: HMS_V1R2 CSeq: 7 Date: Tue, 11 Nov 2025 02:59:59 GMT Session: 344844056 Timeshift-Status: 1
11:00:00 INFO RTSP: TEARDOWN response received 11:00:00 INFO RTSP: TEARDOWN complete, cleaning up 11:00:00 DEBUG RTSP: Main socket closed 11:00:00 DEBUG RTSP: Session cleanup complete 11:00:00 DEBUG RTSP: Graceful TEARDOWN completed 11:00:00 DEBUG Buffer pool: Checking for shrink opportunity (free: 9728, high_watermark: 3072, total: 9728) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 0.1s, total: 9728 -> 9216) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 0.2s, total: 9216 -> 8704) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 0.3s, total: 8704 -> 8192) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 0.4s, total: 8192 -> 7680) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 0.5s, total: 7680 -> 7168) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 0.6s, total: 7168 -> 6656) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 0.8s, total: 6656 -> 6144) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 0.9s, total: 6144 -> 5632) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 1.0s, total: 5632 -> 5120) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 3.0s, total: 5120 -> 4608) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 3.2s, total: 4608 -> 4096) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 3.3s, total: 4096 -> 3584) 11:00:00 DEBUG Buffer pool: Freeing idle segment with 512 buffers (age: 3.5s, total: 3584 -> 3072) 11:00:00 DEBUG Buffer pool: Shrink completed - freed 13 segments (total: 3072 buffers, free: 3072) 11:01:50 DEBUG Client disconnected 11:14:45 INFO New client requested URL: /status (method: GET) 11:14:45 INFO New client requested URL: /status/sse (method: GET) 11:14:45 DEBUG Client disconnected 11:14:46 INFO New client requested URL: /status/sse (method: GET)
v3.3.0 做了一些调整,试试看问题是否还存在
v3.3.0 做了一些调整,试试看问题是否还存在
我这边还是存在 另外更新3.3.0后FCC不正常了 我的端口是8027(说明不是华为专用) 实际需要指定fcc type为telecom才正常
之前有点考虑不周,v3.3.1 现在不会自动使用华为协议了
基于目前信息无法做出判断和复现,目前也还没有更多人反馈,我先关闭这个 issue 了
实际上我也是用这个单播rtsp转http,期间日志也会有出现同类型的问题,也会偶尔随机会卡顿一下,之前也看到这个就没有重复提交问题所以也一直关注这个问题有没有解决,这样我先更新到最新版,今天太晚明天测试一下最新版如果有我再反馈一下debug日志,也希望能够帮助找到原因处理掉
12:03:06 DEBUG [Worker 0] RTSP: Prepared request: PLAY rtsp://123.147.112.152:1554/iptv/import/Tvod/iptv/001/040000010400000200000001/01000000004000000000000000000307.rsc/24056_Uni.sdp?lvst=3&nodeid=iptvnode109&TSTVTimeLife=7200&userid=&userip=220.200.90.233&time=20251202040306.760+00&life=86400000&transferproviderid=040000010400000200000001&ctype=01&sid=211689788&purl=MTIzLjE0Ny4xMTIuMTUwLzA0MDAwMDAxLzAxMDAwMDAwMDA0MDAwMDAwMDAwMDAwMDAwMDAwMzA3Pw&domain=0&phycid=01000000004000000000000000000307&playtype=1&urtm=0&agnt=MTIzLjE0Ny4xMTIuMTUwOjU1NA&sadr=MTIzLjE0Ny4xMTIuMTUy&iptvsessionid=Agent1661120251202040306761666&cryptmode=0502&crypt=80AE4F3B334B4C1B0E85720C0B155E5A RTSP/1.0 CSeq: 6 User-Agent: rtp2httpd/3.5.1 Session: 3763334466383027798
12:03:06 DEBUG [Worker 0] RTSP: Request sent completely (705 bytes) 12:03:06 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response 12:03:06 DEBUG [Worker 0] RTSP: Received complete header: RTSP/1.0 200 OK Server: ZMSS_ChinaTelcom2.2 CSeq: 6 Session: 3763334466383027798 Range: clock=20251202T040306.79Z- Scale: 1.0 RTP-Info: url=rtsp://123.147.112.152:1554/iptv/import/Tvod/iptv/001/040000010400000200000001/01000000004000000000000000000307.rsc/24056_Uni.sdp
12:03:06 INFO [Worker 0] RTSP: Stream started successfully 12:03:09 DEBUG [Worker 0] Client connection error: Connection reset by peer 12:03:09 INFO [Worker 0] RTSP: Cleanup requested in state 13, initiating TEARDOWN 12:03:09 DEBUG [Worker 0] RTSP: Prepared request: TEARDOWN rtsp://123.147.112.152:1554/iptv/import/Tvod/iptv/001/040000010400000200000001/01000000004000000000000000000307.rsc/24056_Uni.sdp?lvst=3&nodeid=iptvnode109&TSTVTimeLife=7200&userid=&userip=220.200.90.233&time=20251202040306.760+00&life=86400000&transferproviderid=040000010400000200000001&ctype=01&sid=211689788&purl=MTIzLjE0Ny4xMTIuMTUwLzA0MDAwMDAxLzAxMDAwMDAwMDA0MDAwMDAwMDAwMDAwMDAwMDAwMzA3Pw&domain=0&phycid=01000000004000000000000000000307&playtype=1&urtm=0&agnt=MTIzLjE0Ny4xMTIuMTUwOjU1NA&sadr=MTIzLjE0Ny4xMTIuMTUy&iptvsessionid=Agent1661120251202040306761666&cryptmode=0502&crypt=80AE4F3B334B4C1B0E85720C0B155E5A RTSP/1.0 CSeq: 7 User-Agent: rtp2httpd/3.5.1 Session: 3763334466383027798
12:03:09 DEBUG [Worker 0] RTSP: TEARDOWN request prepared, will send asynchronously 12:03:09 DEBUG [Worker 0] RTSP: TEARDOWN initiated, waiting for async completion 12:03:09 DEBUG [Worker 0] Stream: RTSP async TEARDOWN initiated, deferring final cleanup 12:03:09 DEBUG [Worker 0] Worker: Async RTSP TEARDOWN initiated, deferring connection cleanup 12:03:09 DEBUG [Worker 0] Worker: Deferred cleanup - waiting for RTSP TEARDOWN completion 12:03:09 DEBUG [Worker 0] RTSP: Request sent completely (709 bytes) 12:03:09 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response 12:03:09 DEBUG [Worker 0] RTSP: Buffer full with no RTSP header, discarding 12:03:09 DEBUG [Worker 0] RTSP: Buffer full with no RTSP header, discarding 12:03:09 DEBUG [Worker 0] RTSP: Buffer full with no RTSP header, discarding 12:03:09 INFO [Worker 0] RTSP: Server closed connection 12:03:09 DEBUG [Worker 0] RTSP: Auto-cleanup triggered on ERROR state 12:03:09 DEBUG [Worker 0] RTSP: Main socket closed 12:03:09 DEBUG [Worker 0] RTSP: Session cleanup complete 12:03:09 ERROR [Worker 0] RTSP: Socket event handling failed 以上日志,希望对找问题有所帮助。