Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法转发带token验证的rtsp链接的疑问 #110

Closed
skanger opened this issue Nov 16, 2021 · 8 comments
Closed

无法转发带token验证的rtsp链接的疑问 #110

skanger opened this issue Nov 16, 2021 · 8 comments

Comments

@skanger
Copy link

skanger commented Nov 16, 2021

首先感谢作者的开源和帮助

  1. 我用ffmpeg 进行了普通rtsp推流,lal能够正常转发和转流。
  2. 对于一台nvr�的 rtsp://xxxxxxx?token=12345, lal不能正常转发

我想问一下,请问代码里面对于 第二种 使用场景目前有支持吗,如果有支持的话,我再检查下

如果没有支持的话,可以告诉我一下在哪里改吗,我可以自己改了再PR给本项目

谢谢

@skanger
Copy link
Author

skanger commented Nov 16, 2021

image
这是图片

@q191201771
Copy link
Owner

把完整的日志贴出来我看下,感谢。

@skanger
Copy link
Author

skanger commented Nov 18, 2021

`boywus@boywusdeMacBook-Pro pullrtsp % ./pullrtsp -i 'rtsp://192.168.1.170:443/rtsp/streaming?channel=5&subtype=0&token=ad690365960cf8c68d9d1013884851c576bc46d7a0ba3c148d0410cb86fc1603' -o out.flv -t 0
2021/11/18 10:13:53.389288 INFO [RTSPPULL1] lifecycle new rtsp ClientCommandSession. session=0xc0000d6840 - client_command_session.go:101
2021/11/18 10:13:53.390396 INFO [RTSPPULL1] lifecycle new rtsp BaseInSession. session=0xc0000ac6c0 - base_in_session.go:101
2021/11/18 10:13:53.390409 INFO [RTSPPULL1] lifecycle new rtsp PullSession. session=0xc0000da280 - client_pull_session.go:67
2021/11/18 10:13:53.390427 DEBUG [RTSPPULL1] pull. url=rtsp://192.168.1.170:443/rtsp/streaming?channel=5&subtype=0&token=ad690365960cf8c68d9d1013884851c576bc46d7a0ba3c148d0410cb86fc1603 - client_pull_session.go:74
2021/11/18 10:13:53.390550 DEBUG [RTSPPULL1] > tcp connect. - client_command_session.go:334
2021/11/18 10:13:53.400214 DEBUG [NAZACONN1] lifecycle new connection. net.Conn=0xc0000bc038, naza.Connection=0xc0000de2c0 - connection.go:192
2021/11/18 10:13:53.400756 DEBUG [RTSPPULL1] < tcp connect. laddr=192.168.1.157:58357, raddr=192.168.1.170:443 - client_command_session.go:344
2021/11/18 10:13:53.400792 DEBUG [RTSPPULL1] > write OPTIONS. content OPTIONS rtsp://192.168.1.170:443/rtsp/streaming?channel=5&subtype=0&token=ad690365960cf8c68d9d1013884851c576bc46d7a0ba3c148d0410cb86fc1603 RTSP/1.0
CSeq: 1
User-Agent: lal/0.26.0

  • client_command_session.go:539
    2021/11/18 10:13:53.404089 DEBUG [RTSPPULL1] < read response. version=RTSP/1.0, code=200, reason=OK, headers=map[Cseq:[1] Date:[Thu, 18 Nov 2021 10:13:52 GMT] Public:[OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER]], body= - client_command_session.go:557
    2021/11/18 10:13:53.404139 DEBUG [RTSPPULL1] > write DESCRIBE. content DESCRIBE rtsp://192.168.1.170:443/rtsp/streaming?channel=5&subtype=0&token=ad690365960cf8c68d9d1013884851c576bc46d7a0ba3c148d0410cb86fc1603 RTSP/1.0
    Accept: application/sdp
    CSeq: 2
    User-Agent: lal/0.26.0

  • client_command_session.go:539
    2021/11/18 10:13:53.408122 DEBUG [RTSPPULL1] < read response. version=RTSP/1.0, code=200, reason=OK, headers=map[Content-Length:[667] Content-Type:[application/sdp] Cseq:[2] Date:[Thu, 18 Nov 2021 10:13:52 GMT]], body=v=0
    o=- 36832660163 36832660163 IN IP4 192.168.1.170
    s=RTSP Session
    c=IN IP4 0.0.0.0
    t=0 0
    m=video 0 RTP/AVP 96
    a=control:rtsp://192.168.1.170:443/rtsp/streaming?channel=5&subtype=0&token=ad690365960cf8c68d9d1013884851c576bc46d7a0ba3c148d0410cb86fc1603&trackID=1
    a=rtpmap:96 H264/90000
    a=framerate:25
    a=x-dimensions:1920,1080
    a=fmtp:96 profile-level-id=6402a; packetization-mode=1; sprop-parameter-sets=Z2QAKqwsaoHgCJ+WbgICAgQ=,aO4xshs=
    a=recvonly
    m=audio 0 RTP/AVP 0
    a=control:rtsp://192.168.1.170:443/rtsp/streaming?channel=5&subtype=0&token=ad690365960cf8c68d9d1013884851c576bc46d7a0ba3c148d0410cb86fc1603&trackID=2
    a=rtpmap:0 PCMU/8000
    a=recvonly

  • client_command_session.go:557
    2021/11/18 10:13:53.408401 WARN [RTSPPULL1] audio unpacker not support for this type yet. logicCtx={RawSdp:[118 61 48 13 10 111 61 45 32 51 54 56 51 50 54 54 48 49 54 51 32 51 54 56 51 50 54 54 48 49 54 51 32 73 78 32 73 80 52 32 49 57 50 46 49 54 56 46 49 46 49 55 48 13 10 115 61 82 84 83 80 32 83 101 115 115 105 111 110 13 10 99 61 73 78 32 73 80 52 32 48 46 48 46 48 46 48 13 10 116 61 48 32 48 13 10 109 61 118 105 100 101 111 32 48 32 82 84 80 47 65 86 80 32 57 54 13 10 97 61 99 111 110 116 114 111 108 58 114 116 115 112 58 47 47 49 57 50 46 49 54 56 46 49 46 49 55 48 58 52 52 51 47 114 116 115 112 47 115 116 114 101 97 109 105 110 103 63 99 104 97 110 110 101 108 61 53 38 115 117 98 116 121 112 101 61 48 38 116 111 107 101 110 61 97 100 54 57 48 51 54 53 57 54 48 99 102 56 99 54 56 100 57 100 49 48 49 51 56 56 52 56 53 49 99 53 55 54 98 99 52 54 100 55 97 48 98 97 51 99 49 52 56 100 48 52 49 48 99 98 56 54 102 99 49 54 48 51 38 116 114 97 99 107 73 68 61 49 13 10 97 61 114 116 112 109 97 112 58 57 54 32 72 50 54 52 47 57 48 48 48 48 13 10 97 61 102 114 97 109 101 114 97 116 101 58 50 53 13 10 97 61 120 45 100 105 109 101 110 115 105 111 110 115 58 49 57 50 48 44 49 48 56 48 13 10 97 61 102 109 116 112 58 57 54 32 112 114 111 102 105 108 101 45 108 101 118 101 108 45 105 100 61 54 52 48 50 97 59 32 112 97 99 107 101 116 105 122 97 116 105 111 110 45 109 111 100 101 61 49 59 32 115 112 114 111 112 45 112 97 114 97 109 101 116 101 114 45 115 101 116 115 61 90 50 81 65 75 113 119 115 97 111 72 103 67 74 43 87 98 103 73 67 65 103 81 61 44 97 79 52 120 115 104 115 61 13 10 97 61 114 101 99 118 111 110 108 121 13 10 109 61 97 117 100 105 111 32 48 32 82 84 80 47 65 86 80 32 48 13 10 97 61 99 111 110 116 114 111 108 58 114 116 115 112 58 47 47 49 57 50 46 49 54 56 46 49 46 49 55 48 58 52 52 51 47 114 116 115 112 47 115 116 114 101 97 109 105 110 103 63 99 104 97 110 110 101 108 61 53 38 115 117 98 116 121 112 101 61 48 38 116 111 107 101 110 61 97 100 54 57 48 51 54 53 57 54 48 99 102 56 99 54 56 100 57 100 49 48 49 51 56 56 52 56 53 49 99 53 55 54 98 99 52 54 100 55 97 48 98 97 51 99 49 52 56 100 48 52 49 48 99 98 56 54 102 99 49 54 48 51 38 116 114 97 99 107 73 68 61 50 13 10 97 61 114 116 112 109 97 112 58 48 32 80 67 77 85 47 56 48 48 48 13 10 97 61 114 101 99 118 111 110 108 121 13 10] AudioClockRate:8000 VideoClockRate:90000 Asc:[] Vps:[] Sps:[103 100 0 42 172 44 106 129 224 8 159 150 110 2 2 2 4] Pps:[104 238 49 178 27] audioPayloadTypeBase:-1 videoPayloadTypeBase:96 audioPayloadTypeOrigin:0 videoPayloadTypeOrigin:96 audioAControl:rtsp://192.168.1.170:443/rtsp/streaming?channel=5&subtype=0&token=ad690365960cf8c68d9d1013884851c576bc46d7a0ba3c148d0410cb86fc1603&trackID=2 videoAControl:rtsp://192.168.1.170:443/rtsp/streaming?channel=5&subtype=0&token=ad690365960cf8c68d9d1013884851c576bc46d7a0ba3c148d0410cb86fc1603&trackID=1 hasAudio:true hasVideo:true} - base_in_session.go:119
    2021/11/18 10:13:53.411132 DEBUG sps={ProfileIdc:100 ConstraintSet0Flag:0 ConstraintSet1Flag:0 ConstraintSet2Flag:0 LevelIdc:42 SpsId:0 ChromaFormatIdc:1 ResidualColorTransformFlag:0 BitDepthLuma:8 BitDepthChroma:8 TransFormBypass:0 Log2MaxFrameNumMinus4:4 PicOrderCntType:0 Log2MaxPicOrderCntLsb:16 NumRefFrames:1 GapsInFrameNumValueAllowedFlag:1 PicWidthInMbsMinusOne:119 PicHeightInMapUnitsMinusOne:67 FrameMbsOnlyFlag:1 MbAdaptiveFrameFieldFlag:0 Direct8X8InferenceFlag:1 FrameCroppingFlag:1 FrameCropLeftOffset:0 FrameCropRightOffset:0 FrameCropTopOffset:0 FrameCropBottomOffset:4 SarNum:1 SarDen:1} - beta.go:41
    2021/11/18 10:13:53.415888 DEBUG [RTSPPULL1] > write SETUP. content SETUP rtsp://192.168.1.170:443/rtsp/streaming?channel=5&subtype=0&token=ad690365960cf8c68d9d1013884851c576bc46d7a0ba3c148d0410cb86fc1603&trackID=1 RTSP/1.0
    Transport: RTP/AVP/UDP;unicast;client_port=30000-30001
    CSeq: 3
    User-Agent: lal/0.26.0

  • client_command_session.go:539
    2021/11/18 10:13:53.419688 DEBUG [RTSPPULL1] < read response. version=RTSP/1.0, code=200, reason=OK, headers=map[Cseq:[3] Date:[Thu, 18 Nov 2021 10:13:52 GMT] Session:[213559031;timeout=60] Transport:[RTP/AVP/UDP;unicast;client_port=30000-30001;server_port=10004-10005;ssrc=86d0a3e2;mode="play"]], body= - client_command_session.go:557
    2021/11/18 10:13:53.425282 DEBUG [RTSPPULL1] init conn. lRtpPort=30000, lRtcpPort=30001, rRtpPort=10004, rRtcpPort=10005 - client_command_session.go:449
    2021/11/18 10:13:53.425493 DEBUG [RTSPPULL1] > write SETUP. content SETUP rtsp://192.168.1.170:443/rtsp/streaming?channel=5&subtype=0&token=ad690365960cf8c68d9d1013884851c576bc46d7a0ba3c148d0410cb86fc1603&trackID=2 RTSP/1.0
    User-Agent: lal/0.26.0
    Session: 213559031
    Transport: RTP/AVP/UDP;unicast;client_port=30002-30003
    CSeq: 4

  • client_command_session.go:539
    2021/11/18 10:13:53.428645 DEBUG [RTSPPULL1] < read response. version=RTSP/1.0, code=200, reason=OK, headers=map[Cseq:[4] Date:[Thu, 18 Nov 2021 10:13:52 GMT] Session:[213559031;timeout=60] Transport:[RTP/AVP/UDP;unicast;client_port=30002-30003;server_port=10006-10007;ssrc=f8b1c97f;mode="play"]], body= - client_command_session.go:557
    2021/11/18 10:13:53.428689 DEBUG [RTSPPULL1] init conn. lRtpPort=30002, lRtcpPort=30003, rRtpPort=10006, rRtcpPort=10007 - client_command_session.go:449
    2021/11/18 10:13:53.428832 DEBUG [RTSPPULL1] > write PLAY. content PLAY rtsp://192.168.1.170:443/rtsp/streaming?channel=5&subtype=0&token=ad690365960cf8c68d9d1013884851c576bc46d7a0ba3c148d0410cb86fc1603 RTSP/1.0
    Range: npt=0.000-
    CSeq: 5
    User-Agent: lal/0.26.0
    Session: 213559031

  • client_command_session.go:539
    2021/11/18 10:13:53.433691 INFO [RTSPPULL1] lifecycle dispose rtsp ClientCommandSession. session=0xc0000d6840 - client_command_session.go:574
    2021/11/18 10:13:53.433727 DEBUG [NAZACONN1] Close. - connection.go:376
    2021/11/18 10:13:53.433736 DEBUG [NAZACONN1] close once. err= - connection.go:504
    2021/11/18 10:13:53.433708 DEBUG [RTSPPULL1] LOGPACKET. read audio rtp={Version:2 Padding:0 Extension:0 CsrcCount:0 Mark:1 PacketType:0 Seq:30734 Timestamp:53665 Ssrc:4172401023 payloadOffset:12}, len=172 - base_in_session.go:409
    2021/11/18 10:13:53.433785 DEBUG [RTSPPULL1] LOGPACKET. read video rtp={Version:2 Padding:0 Extension:0 CsrcCount:0 Mark:0 PacketType:96 Seq:56243 Timestamp:39269 Ssrc:2261820386 payloadOffset:12}, len=29 - base_in_session.go:424
    2021/11/18 10:13:53.433814 FATAL assert failed. excepted=, but actual=nazahttp: fxxk - pullrtsp.go:49
    `

目前使用vlc 和 ffmpeg转发都可以正常连接,使用lal无法成功

@skanger
Copy link
Author

skanger commented Nov 18, 2021

目标机器是 华为NVR800,鉴权token 文档说明 30s 内有效, 只可以使用一次

@q191201771
Copy link
Owner

看日志已经收到rtp的音频包和视频包了,
貌似是rtsp信令在向对端发送完play信令后,本端解析对端回复的信令结果失败导致会话结束了,
跟进项:

  1. 你那边方便的话,抓一个lal pullrtsp的网络包给我,如果有ffmpeg做对比就更好了
  2. 或者我周末增加一些日志,你再测一次把日志给我

感谢。

@q191201771
Copy link
Owner

lal我加了一些日志,有空可以拉取最新代码试试,感谢。

@skanger
Copy link
Author

skanger commented Nov 22, 2021

boywus@boywusdeMacBook-Pro pullrtsp % ./pullrtsp -i 'rtsp://192.168.1.170:443/rtsp/streaming?channel=4&subtype=0&token=2c86b4d317cf1c5e46beaf8b5dcc9ff20d2c7539c6ef6a041604cc5e6583235d' -o out.flv -t 0
2021/11/22 12:02:10.425067 INFO [RTSPPULL1] lifecycle new rtsp ClientCommandSession. session=0xc00012a840 - client_command_session.go:101
2021/11/22 12:02:10.425241 INFO [RTSPPULL1] lifecycle new rtsp BaseInSession. session=0xc000124480 - base_in_session.go:101
2021/11/22 12:02:10.425254 INFO [RTSPPULL1] lifecycle new rtsp PullSession. session=0xc000026300 - client_pull_session.go:67
2021/11/22 12:02:10.425270 DEBUG [RTSPPULL1] pull. url=rtsp://192.168.1.170:443/rtsp/streaming?channel=4&subtype=0&token=2c86b4d317cf1c5e46beaf8b5dcc9ff20d2c7539c6ef6a041604cc5e6583235d - client_pull_session.go:74
2021/11/22 12:02:10.425361 DEBUG [RTSPPULL1] > tcp connect. - client_command_session.go:334
2021/11/22 12:02:10.430157 DEBUG [NAZACONN1] lifecycle new connection. net.Conn=0xc000010048, naza.Connection=0xc0001302c0 - connection.go:192
2021/11/22 12:02:10.430190 DEBUG [RTSPPULL1] < tcp connect. laddr=192.168.1.157:65250, raddr=192.168.1.170:443 - client_command_session.go:344
2021/11/22 12:02:10.430214 DEBUG [RTSPPULL1] > write OPTIONS. - client_command_session.go:539
2021/11/22 12:02:10.433767 DEBUG [RTSPPULL1] < read response. version=RTSP/1.0, code=200, reason=OK, headers=map[Cseq:[1] Date:[Mon, 22 Nov 2021 12:02:11 GMT] Public:[OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER]], body= - client_command_session.go:557
2021/11/22 12:02:10.433829 DEBUG [RTSPPULL1] > write DESCRIBE. - client_command_session.go:539
2021/11/22 12:02:10.437103 DEBUG [RTSPPULL1] < read response. version=RTSP/1.0, code=200, reason=OK, headers=map[Content-Length:[667] Content-Type:[application/sdp] Cseq:[2] Date:[Mon, 22 Nov 2021 12:02:11 GMT]], body=v=0
o=- 43331279523 43331279523 IN IP4 192.168.1.170
s=RTSP Session
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=control:rtsp://192.168.1.170:443/rtsp/streaming?channel=4&subtype=0&token=2c86b4d317cf1c5e46beaf8b5dcc9ff20d2c7539c6ef6a041604cc5e6583235d&trackID=1
a=rtpmap:96 H264/90000
a=framerate:25
a=x-dimensions:1920,1080
a=fmtp:96 profile-level-id=64029; packetization-mode=1; sprop-parameter-sets=Z2QAKawsaoHgCJ+WbgICAgQ=,aO4xshs=
a=recvonly
m=audio 0 RTP/AVP 0
a=control:rtsp://192.168.1.170:443/rtsp/streaming?channel=4&subtype=0&token=2c86b4d317cf1c5e46beaf8b5dcc9ff20d2c7539c6ef6a041604cc5e6583235d&trackID=2
a=rtpmap:0 PCMU/8000
a=recvonly

  • client_command_session.go:557
    2021/11/22 12:02:10.718780 WARN [RTSPPULL1] audio unpacker not support for this type yet. logicCtx={RawSdp:[118 61 48 13 10 111 61 45 32 52 51 51 51 49 50 55 57 53 50 51 32 52 51 51 51 49 50 55 57 53 50 51 32 73 78 32 73 80 52 32 49 57 50 46 49 54 56 46 49 46 49 55 48 13 10 115 61 82 84 83 80 32 83 101 115 115 105 111 110 13 10 99 61 73 78 32 73 80 52 32 48 46 48 46 48 46 48 13 10 116 61 48 32 48 13 10 109 61 118 105 100 101 111 32 48 32 82 84 80 47 65 86 80 32 57 54 13 10 97 61 99 111 110 116 114 111 108 58 114 116 115 112 58 47 47 49 57 50 46 49 54 56 46 49 46 49 55 48 58 52 52 51 47 114 116 115 112 47 115 116 114 101 97 109 105 110 103 63 99 104 97 110 110 101 108 61 52 38 115 117 98 116 121 112 101 61 48 38 116 111 107 101 110 61 50 99 56 54 98 52 100 51 49 55 99 102 49 99 53 101 52 54 98 101 97 102 56 98 53 100 99 99 57 102 102 50 48 100 50 99 55 53 51 57 99 54 101 102 54 97 48 52 49 54 48 52 99 99 53 101 54 53 56 51 50 51 53 100 38 116 114 97 99 107 73 68 61 49 13 10 97 61 114 116 112 109 97 112 58 57 54 32 72 50 54 52 47 57 48 48 48 48 13 10 97 61 102 114 97 109 101 114 97 116 101 58 50 53 13 10 97 61 120 45 100 105 109 101 110 115 105 111 110 115 58 49 57 50 48 44 49 48 56 48 13 10 97 61 102 109 116 112 58 57 54 32 112 114 111 102 105 108 101 45 108 101 118 101 108 45 105 100 61 54 52 48 50 57 59 32 112 97 99 107 101 116 105 122 97 116 105 111 110 45 109 111 100 101 61 49 59 32 115 112 114 111 112 45 112 97 114 97 109 101 116 101 114 45 115 101 116 115 61 90 50 81 65 75 97 119 115 97 111 72 103 67 74 43 87 98 103 73 67 65 103 81 61 44 97 79 52 120 115 104 115 61 13 10 97 61 114 101 99 118 111 110 108 121 13 10 109 61 97 117 100 105 111 32 48 32 82 84 80 47 65 86 80 32 48 13 10 97 61 99 111 110 116 114 111 108 58 114 116 115 112 58 47 47 49 57 50 46 49 54 56 46 49 46 49 55 48 58 52 52 51 47 114 116 115 112 47 115 116 114 101 97 109 105 110 103 63 99 104 97 110 110 101 108 61 52 38 115 117 98 116 121 112 101 61 48 38 116 111 107 101 110 61 50 99 56 54 98 52 100 51 49 55 99 102 49 99 53 101 52 54 98 101 97 102 56 98 53 100 99 99 57 102 102 50 48 100 50 99 55 53 51 57 99 54 101 102 54 97 48 52 49 54 48 52 99 99 53 101 54 53 56 51 50 51 53 100 38 116 114 97 99 107 73 68 61 50 13 10 97 61 114 116 112 109 97 112 58 48 32 80 67 77 85 47 56 48 48 48 13 10 97 61 114 101 99 118 111 110 108 121 13 10] AudioClockRate:8000 VideoClockRate:90000 Asc:[] Vps:[] Sps:[103 100 0 41 172 44 106 129 224 8 159 150 110 2 2 2 4] Pps:[104 238 49 178 27] audioPayloadTypeBase:-1 videoPayloadTypeBase:96 audioPayloadTypeOrigin:0 videoPayloadTypeOrigin:96 audioAControl:rtsp://192.168.1.170:443/rtsp/streaming?channel=4&subtype=0&token=2c86b4d317cf1c5e46beaf8b5dcc9ff20d2c7539c6ef6a041604cc5e6583235d&trackID=2 videoAControl:rtsp://192.168.1.170:443/rtsp/streaming?channel=4&subtype=0&token=2c86b4d317cf1c5e46beaf8b5dcc9ff20d2c7539c6ef6a041604cc5e6583235d&trackID=1 hasAudio:true hasVideo:true} - base_in_session.go:119
    2021/11/22 12:02:10.728539 DEBUG sps={ProfileIdc:100 ConstraintSet0Flag:0 ConstraintSet1Flag:0 ConstraintSet2Flag:0 LevelIdc:41 SpsId:0 ChromaFormatIdc:1 ResidualColorTransformFlag:0 BitDepthLuma:8 BitDepthChroma:8 TransFormBypass:0 Log2MaxFrameNumMinus4:4 PicOrderCntType:0 Log2MaxPicOrderCntLsb:16 NumRefFrames:1 GapsInFrameNumValueAllowedFlag:1 PicWidthInMbsMinusOne:119 PicHeightInMapUnitsMinusOne:67 FrameMbsOnlyFlag:1 MbAdaptiveFrameFieldFlag:0 Direct8X8InferenceFlag:1 FrameCroppingFlag:1 FrameCropLeftOffset:0 FrameCropRightOffset:0 FrameCropTopOffset:0 FrameCropBottomOffset:4 SarNum:1 SarDen:1} - beta.go:41
    2021/11/22 12:02:10.733266 DEBUG [RTSPPULL1] > write SETUP. - client_command_session.go:539
    2021/11/22 12:02:10.743172 DEBUG [RTSPPULL1] < read response. version=RTSP/1.0, code=200, reason=OK, headers=map[Cseq:[3] Date:[Mon, 22 Nov 2021 12:02:11 GMT] Session:[2249128040;timeout=60] Transport:[RTP/AVP/UDP;unicast;client_port=30000-30001;server_port=10000-10001;ssrc=9789d476;mode="play"]], body= - client_command_session.go:557
    2021/11/22 12:02:10.743207 DEBUG [RTSPPULL1] init conn. lRtpPort=30000, lRtcpPort=30001, rRtpPort=10000, rRtcpPort=10001 - client_command_session.go:449
    2021/11/22 12:02:10.743403 DEBUG [RTSPPULL1] > write SETUP. - client_command_session.go:539
    2021/11/22 12:02:10.746755 DEBUG [RTSPPULL1] < read response. version=RTSP/1.0, code=200, reason=OK, headers=map[Cseq:[4] Date:[Mon, 22 Nov 2021 12:02:11 GMT] Session:[2249128040;timeout=60] Transport:[RTP/AVP/UDP;unicast;client_port=30002-30003;server_port=10002-10003;ssrc=776002e3;mode="play"]], body= - client_command_session.go:557
    2021/11/22 12:02:10.746814 DEBUG [RTSPPULL1] init conn. lRtpPort=30002, lRtcpPort=30003, rRtpPort=10002, rRtcpPort=10003 - client_command_session.go:449
    2021/11/22 12:02:10.747219 DEBUG [RTSPPULL1] > write PLAY. - client_command_session.go:539
    2021/11/22 12:02:10.750828 INFO [RTSPPULL1] lifecycle dispose rtsp ClientCommandSession. session=0xc00012a840, err=nazahttp: read http header failed([RTP-Info: url=rtsp://192.168.1.170:443/rtsp/streaming?channel=4&subtype=0&token=2c86b4d317cf1c5e46beaf8b5dcc9ff20d2c7539c6ef6a041604cc5e6583235d&trackID=1;seq=62394;rtptime=60239,url=rtsp://192.168.1.170:443/rtsp/streaming?channel=4&subtype=0&token=2c86b4d] header.go:45) - client_command_session.go:574
    2021/11/22 12:02:10.750858 DEBUG [NAZACONN1] Close. - connection.go:376
    2021/11/22 12:02:10.750871 DEBUG [NAZACONN1] close once. err= - connection.go:504
    2021/11/22 12:02:10.751120 FATAL assert failed. excepted=, but actual=nazahttp: read http header failed([RTP-Info: url=rtsp://192.168.1.170:443/rtsp/streaming?channel=4&subtype=0&token=2c86b4d317cf1c5e46beaf8b5dcc9ff20d2c7539c6ef6a041604cc5e6583235d&trackID=1;seq=62394;rtptime=60239,url=rtsp://192.168.1.170:443/rtsp/streaming?channel=4&subtype=0&token=2c86b4d] header.go:45) - pullrtsp.go:49

@q191201771
Copy link
Owner

我已经尝试修复了,请用最新代码再测试一下,感谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants