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

Support RTSP without codec #40

Closed
AlexxIT opened this issue Sep 12, 2022 · 1 comment
Closed

Support RTSP without codec #40

AlexxIT opened this issue Sep 12, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@AlexxIT
Copy link
Owner

AlexxIT commented Sep 12, 2022

17:59:12.181 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.3.28:554/ISAPI/Streaming/Channels/101 RTSP/1.0
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
CSeq: 1

17:59:12.230 TRC [rtsp] client response:
RTSP/1.0 401 Unauthorized
Cseq: 1
Www-Authenticate: xxx
Date: Mon, Sep 12 2022 20:59:11 GMT

17:59:12.230 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.3.28:554/ISAPI/Streaming/Channels/101 RTSP/1.0
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
CSeq: 2
Authorization: xxx

17:59:12.252 TRC [rtsp] client response:
RTSP/1.0 200 OK
Cseq: 2
Content-Length: 603
Content-Type: application/sdp
Content-Base: rtsp://192.168.3.28:554/ISAPI/Streaming/Channels/101/

v=0
o=- 1663016351058115 1663016351058115 IN IP4 192.168.3.28
s=Media Presentation
e=NONE
b=AS:5100
t=0 0
a=control:rtsp://192.168.3.28:554/ISAPI/Streaming/Channels/101/
m=video 0 RTP/AVP 96
b=AS:5000
a=control:rtsp://192.168.3.28:554/ISAPI/Streaming/Channels/101/trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter-sets=
m=audio 0 RTP/AVP 0
b=AS:50
a=control:rtsp://192.168.3.28:554/ISAPI/Streaming/Channels/101/trackID=2
a=rtpmap:0 PCMU/8000
a=Media_header:MEDIAINFO=494D4B48010100000400010010710110401F0000000;
a=appversion:1.0
17:59:12.252 TRC [streams] producer:0:0 candidate media="video, sendonly, 96 H264/90000"
17:59:12.252 TRC [streams] match producer:0:0 => consumer:0:0 codec="96 H264/90000"
17:59:12.252 TRC [rtsp] client request:
SETUP rtsp://192.168.3.28:554/ISAPI/Streaming/Channels/101/trackID=1 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
CSeq: 3
Authorization: xxx

17:59:12.258 TRC [rtsp] client response:
RTSP/1.0 200 OK
Cseq: 3
Session: 232819480;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=38cc48a9;mode="play"
Date: Mon, Sep 12 2022 20:59:11 GMT

17:59:12.258 DBG [streams] start producer url=rtsp://admin:1234567890@192.168.3.28:554/ISAPI/Streaming/Channels/101
17:59:12.258 DBG [streams] stop producer url=rtsp://admin:1234567890@192.168.3.28:554/ISAPI/Streaming/Channels/101
17:59:12.258 TRC [rtsp] client request:
TEARDOWN rtsp://192.168.3.28:554/ISAPI/Streaming/Channels/101/ RTSP/1.0
CSeq: 4
Authorization: xxx
Session: 232819480

17:59:12.258 TRC [rtsp] client request:
PLAY rtsp://192.168.3.28:554/ISAPI/Streaming/Channels/101/ RTSP/1.0
CSeq: 5
Authorization: xxx
Session: 232819480

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x767437]
goroutine 75 [running]:
github.com/AlexxIT/go2rtc/pkg/tcp.(*Request).Write(0xa56100?, {0x0, 0x0})
	github.com/AlexxIT/go2rtc/pkg/tcp/textproto.go:108 +0x37
github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Request(0xc000108900, 0xc0001ed810)
	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:171 +0x3fe
github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Play(...)
	github.com/AlexxIT/go2rtc/pkg/rtsp/conn.go:424
github.com/AlexxIT/go2rtc/pkg/rtsp.(*Conn).Start(0xc000108900)
	github.com/AlexxIT/go2rtc/pkg/rtsp/streamer.go:34 +0x71
created by github.com/AlexxIT/go2rtc/cmd/streams.(*Producer).start
	github.com/AlexxIT/go2rtc/cmd/streams/producer.go:82 +0x139
17:59:17.267 DBG [app] arch=amd64 conf_size=387 cwd=/config os=linux
17:59:17.268 INF [rtsp] listen addr=:8554
17:59:17.268 INF [api] listen addr=:1984
17:59:17.269 INF [webrtc] listen addr=:8555
17:59:17.269 INF [srtp] listen addr=:8443
@AlexxIT AlexxIT added the enhancement New feature or request label Sep 12, 2022
@AlexxIT AlexxIT self-assigned this Sep 12, 2022
@AlexxIT AlexxIT mentioned this issue Sep 18, 2022
24 tasks
@AlexxIT
Copy link
Owner Author

AlexxIT commented Oct 5, 2022

Fixed https://github.com/AlexxIT/go2rtc/releases/tag/v0.1-beta.8

@AlexxIT AlexxIT closed this as completed Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant