Skip to content

深圳电信单播通过rtp2httpd可看直播,但无法回放 #323

@logicrhythm

Description

@logicrhythm

如题,广东电信的单播地址是带尾巴的比较长,是形如以下形式
rtsp://125.88.55.199/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2

说明:xxxxx~xxxxxx是隐去的账户敏感信息,以下同。

不知道catchup-source的格式该怎么写,
目前参考说明写成
catchup-source="rtsp://125.88.55.199/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}"
这样的形式,在酷9中能识别到支持时移,但选择过去某个时间段回放失败,以下是log

20:03:07 INFO [Worker 0] New client 192.168.100.40:52508 requested URL: /%E5%A4%AE%E8%A7%86/CCTV2%E7%BB%8F%E6%B5%8E/catchup?GuardEncType=2?playseek=20260207172600-20260207175600 (method: GET)
20:03:07 INFO [Worker 0] Service matched: 央视/CCTV2经济/catchup
20:03:07 DEBUG [Worker 0] Creating RTSP service with merged URL: rtsp://125.88.55.199/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_-qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}&GuardEncType=2?playseek=20260207172600-20260207175600
20:03:07 DEBUG [Worker 0] Parsed RTSP URL: rtsp://125.88.55.199/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_-qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}&GuardEncType=2?playseek=20260207172600-20260207175600
20:03:07 DEBUG [Worker 0] Timezone: No TZ marker in User-Agent
20:03:07 DEBUG [Worker 0] RTSP: Parsed URL - host=125.88.55.199, port=554, path=/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_-qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}&GuardEncType=2?playseek=20260207172600-20260207175600
20:03:07 DEBUG [Worker 0] RTSP: Connection to 125.88.55.199:554 in progress (async)
20:03:07 DEBUG [Worker 0] RTSP: Socket registered with epoll for connection completion
20:03:07 DEBUG [Worker 0] RTSP: Async connection initiated, state=1
20:03:07 INFO [Worker 0] RTSP: Connected to 125.88.55.199:554
20:03:07 DEBUG [Worker 0] RTSP: Connection to 125.88.55.199:554 completed successfully
20:03:07 DEBUG [Worker 0] RTSP: Prepared request:
OPTIONS rtsp://125.88.55.199/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_-qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}&GuardEncType=2?playseek=20260207172600-20260207175600 RTSP/1.0
CSeq: 1
User-Agent: rtp2httpd/3.8.3

20:03:07 DEBUG [Worker 0] RTSP: Request sent completely (447 bytes)
20:03:07 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response
20:03:07 DEBUG [Worker 0] RTSP: Server supports GET_PARAMETER for keepalive
20:03:07 DEBUG [Worker 0] RTSP: Server advertised methods: DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER, OPTIONS
20:03:07 DEBUG [Worker 0] RTSP: Received complete header:
RTSP/1.0 200 OK
Public: DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER, OPTIONS
Date: Sat, 07 Feb 2026 12:03:07 GMT
CSeq: 1
Server: HWServer/1.0.0.1

20:03:07 DEBUG [Worker 0] RTSP: Prepared request:
DESCRIBE rtsp://125.88.55.199/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_-qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}&GuardEncType=2?playseek=20260207172600-20260207175600 RTSP/1.0
CSeq: 2
User-Agent: rtp2httpd/3.8.3
Accept: application/sdp

20:03:07 DEBUG [Worker 0] RTSP: Request sent completely (473 bytes)
20:03:07 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response
20:03:07 DEBUG [Worker 0] RTSP: Received redirect response 302
20:03:07 DEBUG [Worker 0] RTSP: Handling redirect to: rtsp://125.88.89.194:554/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_-qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}&GuardEncType=2?playseek=20260207172600-20260207175600&icpid=88888888&from=190&hms_devid=73717&online=1770465787&vqe=1
20:03:07 DEBUG [Worker 0] RTSP: Parsed URL - host=125.88.89.194, port=554, path=/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_-qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}&GuardEncType=2?playseek=20260207172600-20260207175600&icpid=88888888&from=190&hms_devid=73717&online=1770465787&vqe=1
20:03:07 DEBUG [Worker 0] RTSP: Connection to 125.88.89.194:554 in progress (async)
20:03:07 DEBUG [Worker 0] RTSP: Socket registered with epoll for connection completion
20:03:07 INFO [Worker 0] RTSP: Redirect to 125.88.89.194:554 initiated (redirect #1)
20:03:07 DEBUG [Worker 0] RTSP: Received complete header:
RTSP/1.0 302 Moved Temporarily
Location: rtsp://125.88.89.194:554/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_-qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}&GuardEncType=2?playseek=20260207172600-20260207175600&icpid=88888888&from=190&hms_devid=73717&online=1770465787&vqe=1
Date: Sat, 07 Feb 2026 12:03:07 GMT
CSeq: 2
Server: HWServer/1.0.0.1

20:03:07 DEBUG [Worker 0] Client connection error: Connection reset by peer
20:03:07 INFO [Worker 0] RTSP: Cleanup requested in state 13, initiating TEARDOWN
20:03:07 DEBUG [Worker 0] RTSP: Prepared request:
TEARDOWN rtsp://125.88.89.194/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_-qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2&icpid=88888888&from=190&hms_devid=73717&online=1770465589&vqe=1 RTSP/1.0
CSeq: 7
User-Agent: rtp2httpd/3.8.3
Session: 3926952236

20:03:07 DEBUG [Worker 0] RTSP: TEARDOWN request prepared, will send asynchronously
20:03:07 DEBUG [Worker 0] RTSP: TEARDOWN initiated, waiting for async completion
20:03:07 DEBUG [Worker 0] Stream: RTSP async TEARDOWN initiated, deferring final cleanup
20:03:07 DEBUG [Worker 0] Worker: Async RTSP TEARDOWN initiated, deferring connection cleanup
20:03:07 DEBUG [Worker 0] Worker: Deferred cleanup - waiting for RTSP TEARDOWN completion
20:03:07 DEBUG [Worker 0] RTSP: Request sent completely (428 bytes)
20:03:07 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response
20:03:07 DEBUG [Worker 0] RTSP: Buffer full with no RTSP header, discarding
20:03:07 DEBUG [Worker 0] RTSP: Buffer full with no RTSP header, discarding
20:03:07 DEBUG [Worker 0] RTSP: Buffer full with no RTSP header, discarding
20:03:07 DEBUG [Worker 0] RTSP: Buffer full with no RTSP header, discarding
20:03:07 DEBUG [Worker 0] RTSP: Buffer full with no RTSP header, discarding
20:03:07 INFO [Worker 0] RTSP: Connected to 125.88.89.194:554
20:03:07 DEBUG [Worker 0] RTSP: Connection to 125.88.89.194:554 completed successfully
20:03:07 DEBUG [Worker 0] RTSP: Prepared request:
OPTIONS rtsp://125.88.89.194/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_-qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}&GuardEncType=2?playseek=20260207172600-20260207175600&icpid=88888888&from=190&hms_devid=73717&online=1770465787&vqe=1 RTSP/1.0
CSeq: 3
User-Agent: rtp2httpd/3.8.3

20:03:07 DEBUG [Worker 0] RTSP: Request sent completely (511 bytes)
20:03:07 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response
20:03:07 INFO [Worker 0] RTSP: Server closed connection
20:03:07 DEBUG [Worker 0] RTSP: Server closed connection during TEARDOWN (acceptable)
20:03:07 DEBUG [Worker 0] RTSP: Main socket closed
20:03:07 DEBUG [Worker 0] RTSP: Session cleanup complete
20:03:07 DEBUG [Worker 0] RTSP: Graceful TEARDOWN completed
20:03:08 DEBUG [Worker 0] RTSP: Server does not advertise GET_PARAMETER, will use OPTIONS for keepalive
20:03:08 DEBUG [Worker 0] RTSP: Server advertised methods: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE
20:03:08 DEBUG [Worker 0] RTSP: Received complete header:
RTSP/1.0 200 OK
Server: HMS_V1R2
CSeq: 3
Date: Sat, 07 Feb 2026 12:03:07 GMT
Session: 951837303
Timeshift-Status: 0
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE

20:03:08 DEBUG [Worker 0] RTSP: Prepared request:
DESCRIBE rtsp://125.88.89.194/PLTV/88888888/224/3221229763/10000100000000060000000008839684_0.smil?accountinfo=~~V2.0xxxxxxxxxxx-RlM8-gyUB9DbABD5dcGuxH76TUM6p3LH0WLTZOl7AwJa2DhRhBj3MtmbB5-3i4_-qkJ1Q5IPAOa_Cqj3A%3D%3D%3A20230101235235%2CEND&GuardEncType=2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}&GuardEncType=2?playseek=20260207172600-20260207175600&icpid=88888888&from=190&hms_devid=73717&online=1770465787&vqe=1 RTSP/1.0
CSeq: 4
User-Agent: rtp2httpd/3.8.3
Accept: application/sdp

20:03:08 DEBUG [Worker 0] RTSP: Request sent completely (537 bytes)
20:03:08 DEBUG [Worker 0] RTSP: Request sent completely, waiting for response
20:03:08 ERROR [Worker 0] RTSP: Server returned error code 457
20:03:08 DEBUG [Worker 0] RTSP: Received complete header:
RTSP/1.0 457 Invalid Range
Server: HMS_V1R2
CSeq: 4
Date: Sat, 07 Feb 2026 12:03:08 GMT
Session: 951837303
Timeshift-Status: 0

20:03:08 ERROR [Worker 0] RTSP: Failed to receive response
20:03:08 DEBUG [Worker 0] RTSP: Auto-cleanup triggered on ERROR state
20:03:08 DEBUG [Worker 0] RTSP: Main socket closed
20:03:08 DEBUG [Worker 0] RTSP: Session cleanup complete
20:03:08 ERROR [Worker 0] RTSP: Socket event handling failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions