RTSPtoWebRTC
RTSPtoWebRTC copied to clipboard
handleRtpPacket how to support mpegts codec?
my rtsp is mpegts stream ,but dont't support this, please help me the log follow
-
- Process exiting with code: 0
-
- API server listening at: 127.0.0.1:10533
-
- Open http://localhost:8080 to access this demo
-
-
OPTIONS rtsp://192.168.0.4:554/main_stream2 RTSP/1.0
-
-
- CSeq: 1
-
-
DESCRIBE rtsp://192.168.0.4:554/main_stream2 RTSP/1.0
-
-
- CSeq: 2
-
- Accept: application/sdp
-
- < v=0
-
- o=- 6242302147 1 IN IP4 192.168.0.4
-
- s=rtsp stream server
-
- i=Mon May 24 14:16:41 2021
-
-
- t=0 0
-
- a=tool:LIVE555 Streaming Media v2017.10.28
-
- a=type:broadcast
-
- a=control:*
-
- a=range:npt=0-
-
- a=x-qt-text-nam:rtsp stream server
-
- a=x-qt-text-inf:Mon May 24 14:16:41 2021
-
-
- m=video 0 RTP/AVP 33
-
- c=IN IP4 0.0.0.0
-
- b=AS:32
-
- a=control:track1
-
-
SETUP rtsp://192.168.0.4:554/main_stream2/track1 RTSP/1.0
-
-
- CSeq: 3
-
- Transport: RTP/AVP/TCP;unicast;interleaved=0-1
-
-
PLAY rtsp://192.168.0.4:554/main_stream2 RTSP/1.0
-
-
- CSeq: 4
-
- Session: A8F99A59
-
- rtsp: dollar at 11 12
-
- rtsp: rtcp block len 52
-
- rtsp: dollar at 11 12
-
- panic: runtime error: invalid memory address or nil pointer dereference
-
- [signal 0xc0000005 code=0x0 addr=0x0 pc=0xf1c852]
-
-
- goroutine 6 [running]:
-
- github.com/deepch/vdk/format/rtsp.(*Stream).handleRtpPacket(0xc0001041a0, 0xc000142584, 0x530, 0x57c, 0x0, 0x0)
-
- C:/Users/xiang/go/pkg/mod/github.com/deepch/[email protected]/format/rtsp/client.go:1039 +0xf2
-
- github.com/deepch/vdk/format/rtsp.(*Client).handleBlock(0xc00012a000, 0xc000142580, 0x534, 0x580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
-
- C:/Users/xiang/go/pkg/mod/github.com/deepch/[email protected]/format/rtsp/client.go:1191 +0x3c5
-
- github.com/deepch/vdk/format/rtsp.(*Client).readPacket(0xc00012a000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
-
- C:/Users/xiang/go/pkg/mod/github.com/deepch/[email protected]/format/rtsp/client.go:1251 +0x2ab
-
- github.com/deepch/vdk/format/rtsp.(*Client).probe(0xc00012a000, 0x0, 0x0)
-
- C:/Users/xiang/go/pkg/mod/github.com/deepch/[email protected]/format/rtsp/client.go:141 +0x87
-
- github.com/deepch/vdk/format/rtsp.(*Client).prepare(0xc00012a000, 0x5, 0x0, 0x0)
-
- C:/Users/xiang/go/pkg/mod/github.com/deepch/[email protected]/format/rtsp/client.go:171 +0x1b8
-
- github.com/deepch/vdk/format/rtsp.(*Client).Streams(0xc00012a000, 0x0, 0x0, 0x0, 0x0, 0x0)
-
- C:/Users/xiang/go/pkg/mod/github.com/deepch/[email protected]/format/rtsp/client.go:180 +0x72
-
- main.rtspConsumer()
-
- c:/webrtc/rtsp-bench/server/main.go:144 +0x1a5
-
- created by main.main
-
- c:/webrtc/rtsp-bench/server/main.go:113 +0x19f
-
- Process exiting with code: 0
-
我也遇到了