回看时间错误
18:08:52[INFO]New client requested URL: /rtsp/10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil?playseek=20251008190000-20251008200000 18:08:52[DEBUG]Found valid playseek parameter: 20251008190000-20251008200000 18:08:52[DEBUG]Parsed RTSP URL: rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil 18:08:52[DEBUG]Parsed playseek parameter: 20251008190000-20251008200000 18:08:52[DEBUG]Timezone: No TZ marker in User-Agent, defaulting to UTC 18:08:52[DEBUG]RTSP: Parsed playseek - begin='20251008190000', end='20251008200000' 18:08:52[DEBUG]Timezone: Converted Unix timestamp 1759950000 to UTC: 20251008T190000Z 18:08:52[DEBUG]Timezone: Converted Unix timestamp 1759953600 to UTC: 20251008T200000Z 18:08:52[DEBUG]RTSP: Range with end time: 'clock=20251008T190000Z-20251008T200000Z' 18:08:52[DEBUG]RTSP: Final playseek_range: 'clock=20251008T190000Z-20251008T200000Z' 18:08:52[DEBUG]RTSP: Parsed URL - host=10.10.8.2, port=554, path=/PLTV/88888888/224/2221226101/100001000000.smil 18:08:52[DEBUG]RTSP: Connection to 10.10.8.2:554 in progress (async) 18:08:52[DEBUG]RTSP: Socket registered with epoll for connection completion 18:08:52[DEBUG]RTSP: Async connection initiated, state=1 18:08:52[INFO]RTSP: Connected to 10.10.8.2:554 18:08:52[DEBUG]RTSP: Connection to 10.10.8.2:554 completed successfully 18:08:52[DEBUG]RTSP: Prepared request: DESCRIBE rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil RTSP/1.0 CSeq: 1 User-Agent: rtp2httpd/2.3.2 Accept: application/sdp
18:08:52[DEBUG]RTSP: Request sent completely (174 bytes) 18:08:52[DEBUG]RTSP: Request sent completely, waiting for response 18:08:52[DEBUG]RTSP: Received complete response: RTSP/1.0 200 OK Server: HMS_V1R2 CSeq: 1 Date: Thu, 09 Oct 2025 10:08:52 GMT Session: 347099368 Timeshift-Status: 1 Content-Length: 134 Content-Type: application/sdp Content-Base: rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil/
v=0 o=- 1702415089 4281335390 IN IP4 127.0.0.1 s=live t=0 0 c=IN IP4 0.0.0.0 a=range:clock=0- m=video 0 MP2T/AVP 33 b=AS:8791 18:08:52[DEBUG]RTSP: Found 134 bytes of data after response headers 18:08:52[DEBUG]RTSP: Setting up UDP sockets 18:08:52[DEBUG]RTSP: RTP socket registered with epoll 18:08:52[DEBUG]RTCP: RTCP socket registered with epoll 18:08:52[DEBUG]RTSP: UDP sockets bound to ports 13223 (RTP) and 13224 (RTCP) 18:08:52[DEBUG]RTSP: Prepared request: SETUP rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil RTSP/1.0 CSeq: 2 User-Agent: rtp2httpd/2.3.2 Transport: MP2T/RTP/TCP;unicast;interleaved=0-1,MP2T/TCP;unicast;interleaved=0-1,RTP/AVP/TCP;unicast;interleaved=0-1,MP2T/RTP/UDP;unicast;client_port=13223-13224,MP2T/UDP;unicast;client_port=13223-13224,RTP/AVP;unicast;client_port=13223-13224
18:08:52[DEBUG]RTSP: Request sent completely (390 bytes) 18:08:52[DEBUG]RTSP: Request sent completely, waiting for response 18:08:52[DEBUG]RTSP: Received complete response: RTSP/1.0 200 OK Server: HMS_V1R2 CSeq: 2 Date: Thu, 09 Oct 2025 10:08:52 GMT Session: 347099368 Timeshift-Status: 1 Transport: MP2T/RTP/TCP;unicast;interleaved=0-1;source=10.10.8.2
18:08:52[DEBUG]RTSP: Parsing server transport response: MP2T/RTP/TCP;unicast;interleaved=0-1;source=10.10.8.2 18:08:52[INFO]RTSP: Server selected MP2T/RTP transport 18:08:52[INFO]RTSP: Using TCP interleaved transport 18:08:52[DEBUG]RTSP: Server confirmed TCP interleaved channels: 0/1 18:08:52[DEBUG]RTSP: Closed UDP RTP socket use TCP interleaved mode 18:08:52[DEBUG]RTSP: Closed UDP RTCP socket use TCP interleaved mode 18:08:52[DEBUG]RTSP: Prepared request: PLAY rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil RTSP/1.0 CSeq: 3 User-Agent: rtp2httpd/2.3.2 Session: 347099368 Range: clock=20251008T190000Z-20251008T200000Z
18:08:52[DEBUG]RTSP: Request sent completely (213 bytes) 18:08:52[DEBUG]RTSP: Request sent completely, waiting for response 18:08:52[DEBUG]RTSP: Received complete response: RTSP/1.0 200 OK Server: HMS_V1R2 CSeq: 3 Date: Thu, 09 Oct 2025 10:08:52 GMT Session: 347099368 Timeshift-Status: 1 Scale: 1.0 Range: clock=20251009T150843.67Z-20251008T200000.00Z <<== 这行错误
18:08:52[INFO]RTSP: Stream started successfully 18:09:00[DEBUG]Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 18:09:00[DEBUG]Buffer pool: Expanding by 512 buffers (current: 1024, free: 256, max: 8192) 18:09:00[DEBUG]Buffer pool: Expansion successful (total: 1536 buffers, free: 768) 18:09:01[DEBUG]Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 18:09:01[DEBUG]Buffer pool: Expanding by 512 buffers (current: 1536, free: 256, max: 8192) 18:09:01[DEBUG]Buffer pool: Expansion successful (total: 2048 buffers, free: 768) 18:09:04[DEBUG]Zero-copy: sendmsg failed: Connection reset by peer 18:09:04[INFO]RTSP: Cleanup requested in state 11, initiating TEARDOWN 18:09:04[DEBUG]RTSP: Prepared request: TEARDOWN rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil RTSP/1.0 CSeq: 4 User-Agent: rtp2httpd/2.3.2 Session: 347099368
18:09:04[DEBUG]RTSP: TEARDOWN request prepared, will send asynchronously 18:09:04[DEBUG]RTSP: TEARDOWN initiated, waiting for async completion 18:09:04[DEBUG]Stream: RTSP async TEARDOWN initiated, deferring final cleanup 18:09:04[DEBUG]Worker: Async RTSP TEARDOWN initiated, deferring connection cleanup 18:09:04[DEBUG]Worker: Deferred cleanup - waiting for RTSP TEARDOWN completion 18:09:04[DEBUG]RTSP: Request sent completely (169 bytes) 18:09:04[DEBUG]RTSP: Request sent completely, waiting for response 18:09:04[DEBUG]RTSP: Received complete response: $ 18:09:04[ERROR]RTSP: Invalid response format 18:09:04[ERROR]RTSP: Failed to receive response 18:09:04[DEBUG]RTSP: Auto-cleanup triggered on ERROR state 18:09:04[DEBUG]RTSP: Main socket closed 18:09:04[DEBUG]RTSP: Session cleanup complete 18:09:04[ERROR]RTSP: Socket event handling failed
感觉是这个回放源只支持3小时内回放,你试试用更近的时间
Cheers, Stackia
On Thu, Oct 9, 2025 at 6:21 PM highming @.***> wrote:
highming created an issue (stackia/rtp2httpd#20) https://github.com/stackia/rtp2httpd/issues/20
18:08:52[INFO]New client requested URL: /rtsp/ 10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil?playseek=20251008190000-20251008200000 18:08:52[DEBUG]Found valid playseek parameter: 20251008190000-20251008200000 18:08:52[DEBUG]Parsed RTSP URL: rtsp:// 10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil 18:08:52[DEBUG]Parsed playseek parameter: 20251008190000-20251008200000 18:08:52[DEBUG]Timezone: No TZ marker in User-Agent, defaulting to UTC 18:08:52[DEBUG]RTSP: Parsed playseek - begin='20251008190000', end='20251008200000' 18:08:52[DEBUG]Timezone: Converted Unix timestamp 1759950000 to UTC: 20251008T190000Z 18:08:52[DEBUG]Timezone: Converted Unix timestamp 1759953600 to UTC: 20251008T200000Z 18:08:52[DEBUG]RTSP: Range with end time: 'clock=20251008T190000Z-20251008T200000Z' 18:08:52[DEBUG]RTSP: Final playseek_range: 'clock=20251008T190000Z-20251008T200000Z' 18:08:52[DEBUG]RTSP: Parsed URL - host=10.10.8.2, port=554, path=/PLTV/88888888/224/2221226101/100001000000.smil 18:08:52[DEBUG]RTSP: Connection to 10.10.8.2:554 in progress (async) 18:08:52[DEBUG]RTSP: Socket registered with epoll for connection completion 18:08:52[DEBUG]RTSP: Async connection initiated, state=1 18:08:52[INFO]RTSP: Connected to 10.10.8.2:554 18:08:52[DEBUG]RTSP: Connection to 10.10.8.2:554 completed successfully 18:08:52[DEBUG]RTSP: Prepared request: DESCRIBE rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil RTSP/1.0 CSeq: 1 User-Agent: rtp2httpd/2.3.2 Accept: application/sdp
18:08:52[DEBUG]RTSP: Request sent completely (174 bytes) 18:08:52[DEBUG]RTSP: Request sent completely, waiting for response 18:08:52[DEBUG]RTSP: Received complete response: RTSP/1.0 200 OK Server: HMS_V1R2 CSeq: 1 Date: Thu, 09 Oct 2025 10:08:52 GMT Session: 347099368 Timeshift-Status: 1 Content-Length: 134 Content-Type: application/sdp Content-Base: rtsp:// 10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil/
v=0 o=- 1702415089 4281335390 IN IP4 127.0.0.1 s=live t=0 0 c=IN IP4 0.0.0.0 a=range:clock=0- m=video 0 MP2T/AVP 33 b=AS:8791 18:08:52[DEBUG]RTSP: Found 134 bytes of data after response headers 18:08:52[DEBUG]RTSP: Setting up UDP sockets 18:08:52[DEBUG]RTSP: RTP socket registered with epoll 18:08:52[DEBUG]RTCP: RTCP socket registered with epoll 18:08:52[DEBUG]RTSP: UDP sockets bound to ports 13223 (RTP) and 13224 (RTCP) 18:08:52[DEBUG]RTSP: Prepared request: SETUP rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil RTSP/1.0 CSeq: 2 User-Agent: rtp2httpd/2.3.2 Transport: MP2T/RTP/TCP;unicast;interleaved=0-1,MP2T/TCP;unicast;interleaved=0-1,RTP/AVP/TCP;unicast;interleaved=0-1,MP2T/RTP/UDP;unicast;client_port=13223-13224,MP2T/UDP;unicast;client_port=13223-13224,RTP/AVP;unicast;client_port=13223-13224
18:08:52[DEBUG]RTSP: Request sent completely (390 bytes) 18:08:52[DEBUG]RTSP: Request sent completely, waiting for response 18:08:52[DEBUG]RTSP: Received complete response: RTSP/1.0 200 OK Server: HMS_V1R2 CSeq: 2 Date: Thu, 09 Oct 2025 10:08:52 GMT Session: 347099368 Timeshift-Status: 1 Transport: MP2T/RTP/TCP;unicast;interleaved=0-1;source=10.10.8.2
18:08:52[DEBUG]RTSP: Parsing server transport response: MP2T/RTP/TCP;unicast;interleaved=0-1;source=10.10.8.2 18:08:52[INFO]RTSP: Server selected MP2T/RTP transport 18:08:52[INFO]RTSP: Using TCP interleaved transport 18:08:52[DEBUG]RTSP: Server confirmed TCP interleaved channels: 0/1 18:08:52[DEBUG]RTSP: Closed UDP RTP socket use TCP interleaved mode 18:08:52[DEBUG]RTSP: Closed UDP RTCP socket use TCP interleaved mode 18:08:52[DEBUG]RTSP: Prepared request: PLAY rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil RTSP/1.0 CSeq: 3 User-Agent: rtp2httpd/2.3.2 Session: 347099368 Range: clock=20251008T190000Z-20251008T200000Z
18:08:52[DEBUG]RTSP: Request sent completely (213 bytes) 18:08:52[DEBUG]RTSP: Request sent completely, waiting for response 18:08:52[DEBUG]RTSP: Received complete response: RTSP/1.0 200 OK Server: HMS_V1R2 CSeq: 3 Date: Thu, 09 Oct 2025 10:08:52 GMT Session: 347099368 Timeshift-Status: 1 Scale: 1.0 Range: clock=20251009T150843.67Z-20251008T200000.00Z <<== 这行错误
18:08:52[INFO]RTSP: Stream started successfully 18:09:00[DEBUG]Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 18:09:00[DEBUG]Buffer pool: Expanding by 512 buffers (current: 1024, free: 256, max: 8192) 18:09:00[DEBUG]Buffer pool: Expansion successful (total: 1536 buffers, free: 768) 18:09:01[DEBUG]Buffer pool: Low watermark reached (free: 256, watermark: 256), expanding proactively 18:09:01[DEBUG]Buffer pool: Expanding by 512 buffers (current: 1536, free: 256, max: 8192) 18:09:01[DEBUG]Buffer pool: Expansion successful (total: 2048 buffers, free: 768) 18:09:04[DEBUG]Zero-copy: sendmsg failed: Connection reset by peer 18:09:04[INFO]RTSP: Cleanup requested in state 11, initiating TEARDOWN 18:09:04[DEBUG]RTSP: Prepared request: TEARDOWN rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil RTSP/1.0 CSeq: 4 User-Agent: rtp2httpd/2.3.2 Session: 347099368
18:09:04[DEBUG]RTSP: TEARDOWN request prepared, will send asynchronously 18:09:04[DEBUG]RTSP: TEARDOWN initiated, waiting for async completion 18:09:04[DEBUG]Stream: RTSP async TEARDOWN initiated, deferring final cleanup 18:09:04[DEBUG]Worker: Async RTSP TEARDOWN initiated, deferring connection cleanup 18:09:04[DEBUG]Worker: Deferred cleanup - waiting for RTSP TEARDOWN completion 18:09:04[DEBUG]RTSP: Request sent completely (169 bytes) 18:09:04[DEBUG]RTSP: Request sent completely, waiting for response 18:09:04[DEBUG]RTSP: Received complete response: $ 18:09:04[ERROR]RTSP: Invalid response format 18:09:04[ERROR]RTSP: Failed to receive response 18:09:04[DEBUG]RTSP: Auto-cleanup triggered on ERROR state 18:09:04[DEBUG]RTSP: Main socket closed 18:09:04[DEBUG]RTSP: Session cleanup complete 18:09:04[ERROR]RTSP: Socket event handling failed
— Reply to this email directly, view it on GitHub https://github.com/stackia/rtp2httpd/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG64KIVR75C5JQ6XKS6EFT3WYZKLAVCNFSM6AAAAACIW6UY5GVHI2DSMVQWIX3LMV43ASLTON2WKOZTGQ4TQNJUGI2TCNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
感觉是这个回放源只支持3小时内回放,你试试用更近的时间
Cheers, Stackia …
rtsp://播放正常,确认支持3天回放
目前的问题出在
我们发出的 PLAY 请求是这样的:
PLAY rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil RTSP/1.0
CSeq: 3
User-Agent: rtp2httpd/2.3.2
Session: 347099368
Range: clock=20251008T190000Z-20251008T200000Z <<== 这里时间是对的,10月8日19点-20点,没有做时区转换
RTSP 服务器的响应:
RTSP/1.0 200 OK
Server: HMS_V1R2
CSeq: 3
Date: Thu, 09 Oct 2025 10:08:52 GMT <<== 服务器响应时间是10月9日18:08 (注意时区 +8)
Session: 347099368
Timeshift-Status: 1
Scale: 1.0
Range: clock=20251009T150843.67Z-20251008T200000.00Z <<== 服务器响应的起始时间是10月9日15:08
因此我猜测服务器只能响应3小时内的回看请求。
像我这边海南电信的回看,也是只能看3小时内。
如果你确认能支持更早回看的话,尝试一下这个参数 --clock-format "yyyyMMddTHHmmss.00Z",这样和服务器时间格式统一,都带小数位
用diyp 直接rtsp几天的回看都正常,用这个就只能3小时内的正常
目前的问题出在
我们发出的 PLAY 请求是这样的:
PLAY rtsp://10.10.8.2/PLTV/88888888/224/2221226101/100001000000.smil RTSP/1.0 CSeq: 3 User-Agent: rtp2httpd/2.3.2 Session: 347099368 Range: clock=20251008T190000Z-20251008T200000Z <<== 这里时间是对的,10月8日19点-20点,没有做时区转换RTSP 服务器的响应:
RTSP/1.0 200 OK Server: HMS_V1R2 CSeq: 3 Date: Thu, 09 Oct 2025 10:08:52 GMT <<== 服务器响应时间是10月9日18:08 (注意时区 +8) Session: 347099368 Timeshift-Status: 1 Scale: 1.0 Range: clock=20251009T150843.67Z-20251008T200000.00Z <<== 服务器响应的起始时间是10月9日15:08因此我猜测服务器只能响应3小时内的回看请求。
像我这边海南电信的回看,也是只能看3小时内。
如果你确认能支持更早回看的话,尝试一下这个参数
--clock-format "yyyyMMddTHHmmss.00Z",这样和服务器时间格式统一,都带小数位
更改--clock-format无效。 源支持多天回放是肯定的,直接用原生rtsp或tvgate转http回看均正常。rtp2httpd只有3小时内正常。 另外建议,多个客户端访问同一个地址时,只请求源地址一次。
有条件的话可以抓包看看用原生 rtsp 进行多天回放时的 DESCRIBE / SETUP / PLAY 请求,我可以分析一下看有没有可能支持
DESCRIBE
No. Time Source Destination Protocol Length Info 1 0.000000 10.20.12.8 100.13.8.9 TCP 66 51176 → 554 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 WS=256 SACK_PERM
Frame 1: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) Ethernet II, Src: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2), Dst: zte_ee:22:01 (2c:18:fa:ee:22:01) Internet Protocol Version 4, Src: 10.20.12.8, Dst: 100.13.8.9 Transmission Control Protocol, Src Port: 51176, Dst Port: 554, Seq: 0, Len: 0
No. Time Source Destination Protocol Length Info 2 0.010994 100.13.8.9 10.20.12.8 TCP 66 554 → 51176 [SYN, ACK] Seq=0 Ack=1 Win=65535 Len=0 MSS=1460 SACK_PERM WS=2048
Frame 2: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) Ethernet II, Src: zte_ee:22:01 (2c:18:fa:ee:22:01), Dst: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2) Internet Protocol Version 4, Src: 100.13.8.9, Dst: 10.20.12.8 Transmission Control Protocol, Src Port: 554, Dst Port: 51176, Seq: 0, Ack: 1, Len: 0
No. Time Source Destination Protocol Length Info 3 0.011201 10.20.12.8 100.13.8.9 TCP 54 51176 → 554 [ACK] Seq=1 Ack=1 Win=262656 Len=0
Frame 3: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) Ethernet II, Src: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2), Dst: zte_ee:22:01 (2c:18:fa:ee:22:01) Internet Protocol Version 4, Src: 10.20.12.8, Dst: 100.13.8.9 Transmission Control Protocol, Src Port: 51176, Dst Port: 554, Seq: 1, Ack: 1, Len: 0
No. Time Source Destination Protocol Length Info 4 0.025697 10.20.12.8 100.13.8.9 RTSP 243 OPTIONS rtsp://100.13.8.9:554/PLTV/88888888/224/221226/10000000000220001.smil?playseek=20251010190000-20251010200000 RTSP/1.0
Frame 4: 243 bytes on wire (1944 bits), 243 bytes captured (1944 bits) Ethernet II, Src: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2), Dst: zte_ee:22:01 (2c:18:fa:ee:22:01) Internet Protocol Version 4, Src: 10.20.12.8, Dst: 100.13.8.9 Transmission Control Protocol, Src Port: 51176, Dst Port: 554, Seq: 1, Ack: 1, Len: 189 Real Time Streaming Protocol
No. Time Source Destination Protocol Length Info 5 0.036983 100.13.8.9 10.20.12.8 TCP 60 554 → 51176 [ACK] Seq=1 Ack=190 Win=1048576 Len=0
Frame 5: 60 bytes on wire (480 bits), 60 bytes captured (480 bits) Ethernet II, Src: zte_ee:22:01 (2c:18:fa:ee:22:01), Dst: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2) Internet Protocol Version 4, Src: 100.13.8.9, Dst: 10.20.12.8 Transmission Control Protocol, Src Port: 554, Dst Port: 51176, Seq: 1, Ack: 190, Len: 0
No. Time Source Destination Protocol Length Info 6 0.037065 100.13.8.9 10.20.12.8 RTSP 227 Reply: RTSP/1.0 200 OK
Frame 6: 227 bytes on wire (1816 bits), 227 bytes captured (1816 bits) Ethernet II, Src: zte_ee:22:01 (2c:18:fa:ee:22:01), Dst: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2) Internet Protocol Version 4, Src: 100.13.8.9, Dst: 10.20.12.8 Transmission Control Protocol, Src Port: 554, Dst Port: 51176, Seq: 1, Ack: 190, Len: 173 Real Time Streaming Protocol
No. Time Source Destination Protocol Length Info 7 0.037587 10.20.12.8 100.13.8.9 RTSP 290 DESCRIBE rtsp://100.13.8.9:554/PLTV/88888888/224/221226/10000000000220001.smil?playseek=20251010190000-20251010200000 RTSP/1.0
Frame 7: 290 bytes on wire (2320 bits), 290 bytes captured (2320 bits) Ethernet II, Src: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2), Dst: zte_ee:22:01 (2c:18:fa:ee:22:01) Internet Protocol Version 4, Src: 10.20.12.8, Dst: 100.13.8.9 Transmission Control Protocol, Src Port: 51176, Dst Port: 554, Seq: 190, Ack: 174, Len: 236 Real Time Streaming Protocol
No. Time Source Destination Protocol Length Info 8 0.049575 100.13.8.9 10.20.12.8 RTSP/SDP 515 Reply: RTSP/1.0 200 OK
Frame 8: 515 bytes on wire (4120 bits), 515 bytes captured (4120 bits) Ethernet II, Src: zte_ee:22:01 (2c:18:fa:ee:22:01), Dst: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2) Internet Protocol Version 4, Src: 100.13.8.9, Dst: 10.20.12.8 Transmission Control Protocol, Src Port: 554, Dst Port: 51176, Seq: 174, Ack: 426, Len: 461 Real Time Streaming Protocol
No. Time Source Destination Protocol Length Info 9 0.051330 10.20.12.8 100.13.8.9 RTSP 311 SETUP rtsp://100.13.8.9:554/PLTV/88888888/224/221226/10000000000220001.smil?playseek=20251010190000-20251010200000/ RTSP/1.0
Frame 9: 311 bytes on wire (2488 bits), 311 bytes captured (2488 bits) Ethernet II, Src: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2), Dst: zte_ee:22:01 (2c:18:fa:ee:22:01) Internet Protocol Version 4, Src: 10.20.12.8, Dst: 100.13.8.9 Transmission Control Protocol, Src Port: 51176, Dst Port: 554, Seq: 426, Ack: 635, Len: 257 Real Time Streaming Protocol
No. Time Source Destination Protocol Length Info 10 0.064482 100.13.8.9 10.20.12.8 RTSP 248 Reply: RTSP/1.0 200 OK
Frame 10: 248 bytes on wire (1984 bits), 248 bytes captured (1984 bits) Ethernet II, Src: zte_ee:22:01 (2c:18:fa:ee:22:01), Dst: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2) Internet Protocol Version 4, Src: 100.13.8.9, Dst: 10.20.12.8 Transmission Control Protocol, Src Port: 554, Dst Port: 51176, Seq: 635, Ack: 683, Len: 194 Real Time Streaming Protocol
No. Time Source Destination Protocol Length Info 11 0.069670 10.20.12.8 100.13.8.9 RTSP 281 PLAY rtsp://100.13.8.9:554/PLTV/88888888/224/221226/10000000000220001.smil?playseek=20251010190000-20251010200000/ RTSP/1.0
Frame 11: 281 bytes on wire (2248 bits), 281 bytes captured (2248 bits) Ethernet II, Src: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2), Dst: zte_ee:22:01 (2c:18:fa:ee:22:01) Internet Protocol Version 4, Src: 10.20.12.8, Dst: 100.13.8.9 Transmission Control Protocol, Src Port: 51176, Dst Port: 554, Seq: 683, Ack: 829, Len: 227 Real Time Streaming Protocol
No. Time Source Destination Protocol Length Info 12 0.083022 100.13.8.9 10.20.12.8 RTSP 213 Reply: RTSP/1.0 200 OK
Frame 12: 213 bytes on wire (1704 bits), 213 bytes captured (1704 bits) Ethernet II, Src: zte_ee:22:01 (2c:18:fa:ee:22:01), Dst: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2) Internet Protocol Version 4, Src: 100.13.8.9, Dst: 10.20.12.8 Transmission Control Protocol, Src Port: 554, Dst Port: 51176, Seq: 829, Ack: 910, Len: 159 Real Time Streaming Protocol
No. Time Source Destination Protocol Length Info 13 0.107635 100.13.8.9 10.20.12.8 MPEG TS 1514 PT=MPEG-II transport streams, SSRC=0xA238A, Seq=0, Time=75102 NULL packet,
Frame 13: 1514 bytes on wire (12112 bits), 1514 bytes captured (12112 bits) Ethernet II, Src: zte_ee:22:01 (2c:18:fa:ee:22:01), Dst: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2) Internet Protocol Version 4, Src: 100.13.8.9, Dst: 10.20.12.8 Transmission Control Protocol, Src Port: 554, Dst Port: 51176, Seq: 988, Ack: 910, Len: 1460 RTSP Interleaved Frame, Channel: 0x00, 1328 bytes Real-Time Transport Protocol ISO/IEC 13818-1 PID=0x1011 CC=0 ISO/IEC 13818-1 PID=0x1011 CC=1 ISO/IEC 13818-1 PID=0x1011 CC=2 ISO/IEC 13818-1 PID=0x1011 CC=3 ISO/IEC 13818-1 PID=0x1011 CC=4 ISO/IEC 13818-1 PID=0x1fff CC=0 ISO/IEC 13818-1 PID=0x1fff CC=0
No. Time Source Destination Protocol Length Info 14 0.107677 100.13.8.9 10.20.12.8 MPEG TS 3922 [MP2T fragment of a reassembled packet][MP2T fragment of a reassembled packet], [MP2T fragment of a reassembled packet]
Frame 14: 3922 bytes on wire (31376 bits), 3922 bytes captured (31376 bits) Ethernet II, Src: zte_ee:22:01 (2c:18:fa:ee:22:01), Dst: 22:a1:02:22:11:a2 (22:a1:02:22:11:a2) Internet Protocol Version 4, Src: 100.13.8.9, Dst: 10.20.12.8 Transmission Control Protocol, Src Port: 554, Dst Port: 51176, Seq: 2448, Ack: 910, Len: 3868 [2 Reassembled TCP Segments (1332 bytes): #13(128), #14(1204)] RTSP Interleaved Frame, Channel: 0x00, 1328 bytes Real-Time Transport Protocol ISO/IEC 13818-1 PID=0x1011 CC=5 ISO/IEC 13818-1 PID=0x1011 CC=6 ISO/IEC 13818-1 PID=0x1011 CC=7 ISO/IEC 13818-1 PID=0x1011 CC=8 ISO/IEC 13818-1 PID=0x1011 CC=9 ISO/IEC 13818-1 PID=0x1011 CC=10 ISO/IEC 13818-1 PID=0x1011 CC=11 RTSP Interleaved Frame, Channel: 0x00, 1328 bytes Real-Time Transport Protocol ISO/IEC 13818-1 PID=0x1011 CC=12 ISO/IEC 13818-1 PID=0x1011 CC=13 ISO/IEC 13818-1 PID=0x1011 CC=14 ISO/IEC 13818-1 PID=0x1011 CC=15 ISO/IEC 13818-1 PID=0x1011 CC=0 ISO/IEC 13818-1 PID=0x1011 CC=1 ISO/IEC 13818-1 PID=0x1011 CC=2 RTSP Interleaved Frame, Channel: 0x00, 1328 bytes Real-Time Transport Protocol ISO/IEC 13818-1 PID=0x1011 CC=3 ISO/IEC 13818-1 PID=0x1011 CC=4 ISO/IEC 13818-1 PID=0x1011 CC=5 ISO/IEC 13818-1 PID=0x1011 CC=6 ISO/IEC 13818-1 PID=0x1011 CC=7 ISO/IEC 13818-1 PID=0x1011 CC=8 ISO/IEC 13818-1 PID=0x1011 CC=9
成都这边测试 如果回看超过2个小时以上的,就是从2个小时哪里开始,连个小时以内的 正常。 源是支持5天的
广西电信这边测试也是类似问题,如果用插件代理rstp单播源,只能往前回看几个小时;但是直接用播放器播放单播源,可以往前回看7天。 我在APTV里面查了一下这两种方式的回看地址,playseek的参数都是一样的,插件日志里面的请求地址playseek参数也是准确的。
广西电信这边有两个回看方式:一个是“时移”这个应该只有4小时(TimeShiftLength="14400");有一个是“回看”这个一般是7天。 可能插件触发的是“时移”功能,单独点播单播地址触发的是“回看”功能,所以才有这个问题。但是至于怎么触发的,我也搞不太清楚。 下面提供广西电信CCTV1的抓包数据:
<script>
var iRet;
iRet = Authentication.CTCSetConfig('Channel','ChannelID="20000036",ChannelName="CCTV-1综合高清",UserChannelID="1021",ChannelURL="igmp://239.81.0.102:4056|rtsp://113.15.79.82/PLTV/88888888/224/3221225536/10000100000000060000000000081865_0.smil?rrsip=113.12.86.196&zoneoffset=480&icpid=GXDXXCSP&limitflux=-1&limitdur=-1&tenantId=8601&accountinfo=xxxxxxxxxx",TimeShift="1",TimeShiftLength="14400",ChannelSDP="igmp://239.81.0.102:4056|rtsp://113.15.79.82/PLTV/88888888/224/3221225536/10000100000000060000000000081865_0.smil?rrsip=113.12.86.196&zoneoffset=480&icpid=GXDXXCSP&limitflux=-1&limitdur=-1&tenantId=8601&accountinfo=xxxxxxxxx",TimeShiftURL="rtsp://113.15.79.82/PLTV/88888888/224/3221225536/10000100000000060000000000081865_0.smil?rrsip=113.12.86.196&zoneoffset=480&icpid=GXDXXCSP&limitflux=-1&limitdur=-1&tenantId=8601&GuardEncType=2&accountinfo=xxxxxxxxxx",ChannelType="1",IsHDChannel="2",PreviewEnable="0",ChannelPurchased="1",ChannelLocked="0",ChannelLogURL="",PositionX="",PositionY="",BeginTime="0",Interval="",Lasting="",ActionType="1",FCCEnable="2",ChannelFCCIP="113.15.79.82",ChannelFCCPort="8027",ChannelFECPort="4055"');
</script>
tvgate的rtsp转http回看正常,https://github.com/qist/tvgate,能否参考?
我目前也怀疑现在rtp2httpd只触发了3小时时移,还没搞明白怎么触发更早的回看,目前看来回看源应该是支持的
尝试一下 v2.6.0,应该解决这个问题了,在我这边可以正常回看7天了
回看已正常
回看恢复正常。