-
Notifications
You must be signed in to change notification settings - Fork 208
Open
Description
有可能是我菜, 大佬们见谅.
进入正题, op上安装rtp2httpd, 抓包拿到组播和单播地址, op接口eth1直连光猫ITV口, DHCP鉴权获取IP, eth1设置为路由表50, rtp2httpd上游端口配置eth1, 此时组播和FCC都正常.
Rtsp单播无法播放, 最下面我会附上debug日志, 此时移除rtp2httpd上游端口置空, op上增加IPV4规则, 设置rtsp单播地址指向路由表50, 就可以正常播放了, 很奇怪, 加上规则走50路由表也是指向了eth1, rtp2httpd设置上游端口也是指向eth1, 一个可以播放一个不可以播放, 望大佬们帮我解惑.
无法的播放日志
00:00:51 INFO [Worker 0] New client 10.0.0.230:8661 requested URL: /rtsp/182.139.234.40/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil (method: GET)
00:00:51 DEBUG [Worker 0] Parsed RTSP URL: rtsp://182.139.234.40/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil
00:00:51 DEBUG [Worker 0] Timezone: No TZ marker in User-Agent
00:00:51 DEBUG [Worker 0] RTSP: Parsed URL - host=182.139.234.40, port=554, path=/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil
00:00:51 DEBUG [Worker 0] RTSP: Connection to 182.139.234.40:554 in progress (async)
00:00:51 DEBUG [Worker 0] RTSP: Socket registered with epoll for connection completion
00:00:51 DEBUG [Worker 0] RTSP: Async connection initiated, state=1
00:03:03 ERROR [Worker 0] RTSP: Socket error: Operation timed out
00:03:03 DEBUG [Worker 0] RTSP: Auto-cleanup triggered on ERROR state
00:03:03 DEBUG [Worker 0] RTSP: Main socket closed
00:03:03 DEBUG [Worker 0] RTSP: Session cleanup complete
00:03:03 ERROR [Worker 0] RTSP: Socket event handling failed
00:03:03 INFO [Worker 1] New client 10.0.0.230:1819 requested URL: /rtsp/182.139.234.40/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil (method: GET)
00:03:03 DEBUG [Worker 1] Parsed RTSP URL: rtsp://182.139.234.40/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil
00:03:03 DEBUG [Worker 1] Timezone: No TZ marker in User-Agent
00:03:03 DEBUG [Worker 1] RTSP: Parsed URL - host=182.139.234.40, port=554, path=/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil
00:03:03 DEBUG [Worker 1] RTSP: Connection to 182.139.234.40:554 in progress (async)
00:03:03 DEBUG [Worker 1] RTSP: Socket registered with epoll for connection completion
00:03:03 DEBUG [Worker 1] RTSP: Async connection initiated, state=1
00:05:16 ERROR [Worker 1] RTSP: Socket error: Operation timed out
00:05:16 DEBUG [Worker 1] RTSP: Auto-cleanup triggered on ERROR state
00:05:16 DEBUG [Worker 1] RTSP: Main socket closed
00:05:16 DEBUG [Worker 1] RTSP: Session cleanup complete
00:05:16 ERROR [Worker 1] RTSP: Socket event handling failed
改IPV4规则后可以播放的日志:
00:12:55 INFO [Worker 0] New client 10.0.0.230:3436 requested URL: /rtsp/182.139.234.40/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil (method: GET)
00:12:55 DEBUG [Worker 0] Parsed RTSP URL: rtsp://182.139.234.40/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil
00:12:55 DEBUG [Worker 0] RTSP: Parsed URL - host=182.139.234.40, port=554, path=/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil
00:12:55 DEBUG [Worker 0] RTSP: Connection to 182.139.234.40:554 in progress (async)
00:12:55 DEBUG [Worker 0] RTSP: Socket registered with epoll for connection completion
00:12:55 DEBUG [Worker 0] RTSP: Async connection initiated, state=1
00:12:55 INFO [Worker 0] RTSP: Connected to 182.139.234.40:554
00:12:55 DEBUG [Worker 0] RTSP: Connection to 182.139.234.40:554 completed successfully
00:12:55 DEBUG [Worker 0] RTSP: Prepared request:
OPTIONS rtsp://182.139.234.40/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil RTSP/1.0
CSeq: 1
User-Agent: rtp2httpd/3.8.3
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely (149 bytes)
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response
00:12:55 DEBUG [Worker 0] RTSP: Server supports GET_PARAMETER for keepalive
00:12:55 DEBUG [Worker 0] RTSP: Server advertised methods: DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER, OPTIONS
00:12:55 DEBUG [Worker 0] RTSP: Received complete header:
RTSP/1.0 200 OK
Public: DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER, OPTIONS
Date: Thu, 05 Feb 2026 16:12:55 GMT
CSeq: 1
Server: HWServer/1.0.0.1
00:12:55 DEBUG [Worker 0] RTSP: Prepared request:
DESCRIBE rtsp://182.139.234.40/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil RTSP/1.0
CSeq: 2
User-Agent: rtp2httpd/3.8.3
Accept: application/sdp
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely (175 bytes)
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response
00:12:55 DEBUG [Worker 0] RTSP: Received redirect response 302
00:12:55 DEBUG [Worker 0] RTSP: Handling redirect to: rtsp://182.139.234.55:554/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil?icpid=88888896&from=96&hms_devid=9264&online=1770307975
00:12:55 DEBUG [Worker 0] RTSP: Parsed URL - host=182.139.234.55, port=554, path=/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil?icpid=88888896&from=96&hms_devid=9264&online=1770307975
00:12:55 DEBUG [Worker 0] RTSP: Connection to 182.139.234.55:554 in progress (async)
00:12:55 DEBUG [Worker 0] RTSP: Socket registered with epoll for connection completion
00:12:55 INFO [Worker 0] RTSP: Redirect to 182.139.234.55:554 initiated (redirect #1)
00:12:55 DEBUG [Worker 0] RTSP: Received complete header:
RTSP/1.0 302 Moved Temporarily
Location: rtsp://182.139.234.55:554/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil?icpid=88888896&from=96&hms_devid=9264&online=1770307975
Date: Thu, 05 Feb 2026 16:12:55 GMT
CSeq: 2
Server: HWServer/1.0.0.1
00:12:55 INFO [Worker 0] RTSP: Connected to 182.139.234.55:554
00:12:55 DEBUG [Worker 0] RTSP: Connection to 182.139.234.55:554 completed successfully
00:12:55 DEBUG [Worker 0] RTSP: Prepared request:
OPTIONS rtsp://182.139.234.55/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil?icpid=88888896&from=96&hms_devid=9264&online=1770307975 RTSP/1.0
CSeq: 3
User-Agent: rtp2httpd/3.8.3
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely (205 bytes)
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response
00:12:55 DEBUG [Worker 0] RTSP: Server does not advertise GET_PARAMETER, will use OPTIONS for keepalive
00:12:55 DEBUG [Worker 0] RTSP: Server advertised methods: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE
00:12:55 DEBUG [Worker 0] RTSP: Received complete header:
RTSP/1.0 200 OK
Server: HMS_V1R2
CSeq: 3
Date: Thu, 05 Feb 2026 16:12:55 GMT
Session: 4294498330
Timeshift-Status: 0
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE
00:12:55 DEBUG [Worker 0] RTSP: Prepared request:
DESCRIBE rtsp://182.139.234.55/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil?icpid=88888896&from=96&hms_devid=9264&online=1770307975 RTSP/1.0
CSeq: 4
User-Agent: rtp2httpd/3.8.3
Accept: application/sdp
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely (231 bytes)
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response
00:12:55 DEBUG [Worker 0] RTSP: Received complete header:
RTSP/1.0 200 OK
Server: HMS_V1R2
CSeq: 4
Date: Thu, 05 Feb 2026 16:12:55 GMT
Session: 4294498330
Timeshift-Status: 1
Content-Length: 134
Content-Type: application/sdp
Content-Base: rtsp://182.139.234.55/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil?icpid=88888896&from=96&hms_devid=9264&online=1770307975/
00:12:55 DEBUG [Worker 0] RTSP: Response body data (state=6): 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:8594
00:12:55 DEBUG [Worker 0] RTSP: Setting up UDP sockets
00:12:55 DEBUG [Worker 0] RTSP: RTP socket registered with epoll
00:12:55 DEBUG [Worker 0] RTSP: RTCP socket registered with epoll
00:12:55 DEBUG [Worker 0] RTSP: UDP sockets bound to ports 18254 (RTP) and 18255 (RTCP)
00:12:55 DEBUG [Worker 0] RTSP: Prepared request:
SETUP rtsp://182.139.234.55/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil?icpid=88888896&from=96&hms_devid=9264&online=1770307975 RTSP/1.0
CSeq: 5
User-Agent: rtp2httpd/3.8.3
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=18254-18255,MP2T/UDP;unicast;client_port=18254-18255,RTP/AVP;unicast;client_port=18254-18255
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely (447 bytes)
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response
00:12:55 DEBUG [Worker 0] RTSP: Parsing server transport response: MP2T/RTP/TCP;unicast;interleaved=0-1;source=182.139.234.55
00:12:55 INFO [Worker 0] RTSP: Server selected MP2T/RTP transport
00:12:55 INFO [Worker 0] RTSP: Using TCP interleaved transport
00:12:55 DEBUG [Worker 0] RTSP: Server confirmed TCP interleaved channels: 0/1
00:12:55 DEBUG [Worker 0] RTSP: Closed UDP RTP socket (use TCP interleaved mode)
00:12:55 DEBUG [Worker 0] RTSP: Closed UDP RTCP socket (use TCP interleaved mode)
00:12:55 DEBUG [Worker 0] RTSP: Received complete header:
RTSP/1.0 200 OK
Server: HMS_V1R2
CSeq: 5
Date: Thu, 05 Feb 2026 16:12:55 GMT
Session: 4294498330
Timeshift-Status: 1
Transport: MP2T/RTP/TCP;unicast;interleaved=0-1;source=182.139.234.55
00:12:55 DEBUG [Worker 0] RTSP: Prepared request:
PLAY rtsp://182.139.234.55/PLTV/88888896/224/3221228807/10000100000000060000000003732597_0.smil?icpid=88888896&from=96&hms_devid=9264&online=1770307975 RTSP/1.0
CSeq: 6
User-Agent: rtp2httpd/3.8.3
Session: 4294498330
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely (223 bytes)
00:12:55 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response
00:12:55 DEBUG [Worker 0] RTSP: Received complete header:
RTSP/1.0 200 OK
Server: HMS_V1R2
CSeq: 6
Date: Thu, 05 Feb 2026 16:12:55 GMT
Session: 4294498330
Timeshift-Status: 1
Scale: 1.0
00:12:55 INFO [Worker 0] RTSP: Stream started successfully
00:12:55 DEBUG [Worker 0] RTP reorder: Init complete, base_seq=0 (8 packets collected)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels