Monibuca / plugin-rtsp

rtsp协议实现,接受RTSP推流以及提供拉流转发功能
MIT License
147 stars 70 forks source link

期望支持H265的RTSP流 #6

Closed ourfor-pp closed 2 years ago

ourfor-pp commented 3 years ago

如题

langhuihui commented 3 years ago

基本已经支持了

ourfor-pp commented 3 years ago

@langhuihui 之前都没尝试V3版本,尝试了一下,好像V3的rtsp流,264和265都不能播,控制台也没报错 image image image

附日志

GOROOT=E:\Develop\WorkSpace\go\go1.16.3 #gosetup
GOPATH=E:\Develop\WorkSpace\go #gosetup
E:\Develop\WorkSpace\go\go1.16.3\bin\go.exe build -o E:\Develop\WorkSpace\go\src\monibucaGroup\monibuca\monibuca.exe E:\Develop\WorkSpace\go\src\monibucaGroup\monibuca\main.go #gosetup
E:\Develop\WorkSpace\go\src\monibucaGroup\monibuca\monibuca.exe #gosetup
2021/06/24 17:19:41 install plugin GateWay v3.0.0-20210616163424-37db18ab9df2
2021/06/24 17:19:41 install plugin GB28181 v3.0.0-20210615231904-4528a67e922a
2021/06/24 17:19:41 install plugin HDL v3.0.0-20210615000534-c2fce27753fb
2021/06/24 17:19:41 install plugin TS v3.0.0-20210615000458-7578bc0b3a6e
2021/06/24 17:19:41 install plugin HLS v3.0.0-20210615000624-9d962270da28
2021/06/24 17:19:41 install plugin Jessica 
2021/06/24 17:19:41 install plugin LogRotate v3.0.0-20210306092538-eb6c45576107
2021/06/24 17:19:41 install plugin Record v3.0.0-20210615000709-e02dc36bdda7
2021/06/24 17:19:41 install plugin RTMP v3.0.0-20210618135434-da84270f01d4
2021/06/24 17:19:41 install plugin RTSP 
2021/06/24 17:19:41 install plugin Summary v0.0.0-20210615000407-2786546820de
2021/06/24 17:19:41 install plugin WebRTC v3.0.0-20210615000306-3cd1bac6d63d
2021/06/24 17:19:41 Ⓜ starting m7s  3.0.1
2021/06/24 17:19:41 server gb28181 start at 192.168.3.63:5060
2021/06/24 17:19:41 server gateway start at  :8080 
2021/06/24 17:19:41 Jessica start reuse gateway port
2021/06/24 17:19:41 HDL start reuse gateway port
2021/06/24 17:19:41 server rtmp start at :1935
start udp server at:  :5060
2021/06/24 17:19:41 udp server start listen video port[58200]
2021/06/24 17:19:41 start report summary
2021/06/24 17:21:55 Stream publish: 1
2021/06/24 17:21:55 [OUT]>>>
OPTIONS rtsp://192.168.7.85:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 1
User-Agent: 

2021/06/24 17:21:55 <<<[IN]
RTSP/1.0 200 OK
CSeq: 1
Server: Rtsp Server/3.0
Public: OPTIONS, DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER

2021/06/24 17:21:55 [OUT]>>>
DESCRIBE rtsp://192.168.7.85:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: 

2021/06/24 17:21:55 <<<[IN]
RTSP/1.0 200 OK
CSeq: 2
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://192.168.7.85:554/cam/realmonitor?channel=1&subtype=0/
Cache-Control: must-revalidate
Content-Length: 600
Content-Type: application/sdp

v=0
o=- 2251938240 2251938240 IN IP4 0.0.0.0
s=Media Server
c=IN IP4 0.0.0.0
t=0 0
a=control:*
a=packetization-supported:DH
a=rtppayload-supported:DH
a=range:npt=now-
m=video 0 RTP/AVP 96
a=control:trackID=0
a=framerate:25.000000
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4D0020;sprop-parameter-sets=Z00AIJ2oFAHmm4CAgKAAAH0AABhqEIAA,aO48gAA=
a=recvonly
m=audio 0 RTP/AVP 97
a=control:trackID=1
a=rtpmap:97 MPEG4-GENERIC/48000
a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1188
a=recvonly
2021/06/24 17:21:55 [OUT]>>>
SETUP rtsp://admin:shzd123456@192.168.7.85:554/cam/realmonitor?channel=1&subtype=0/trackID=1 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/TCP;unicast;interleaved=2-3
User-Agent: 

2021/06/24 17:21:55 <<<[IN]
RTSP/1.0 200 OK
CSeq: 3
Session: 53191452261;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=2-3;ssrc=6B309504
x-Dynamic-Rate: 1

2021/06/24 17:21:55 [OUT]>>>
SETUP rtsp://admin:shzd123456@192.168.7.85:554/cam/realmonitor?channel=1&subtype=0/trackID=0 RTSP/1.0
CSeq: 4
Session: 53191452261
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
User-Agent: 

2021/06/24 17:21:55 <<<[IN]
RTSP/1.0 200 OK
CSeq: 4
Session: 53191452261;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=451B553E
x-Dynamic-Rate: 1

2021/06/24 17:21:55 [OUT]>>>
PLAY rtsp://192.168.7.85:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 5
Session: 53191452261
User-Agent: 

2021/06/24 17:21:55 <<<[IN]
RTSP/1.0 200 OK
CSeq: 5
Session: 53191452261
RTP-Info: url=trackID=0;seq=58942;rtptime=486065126,url=trackID=1;seq=21569;rtptime=2549892318

2021/06/24 17:22:18 subscribe :Jessica [::1]:50562,to Stream 1
2021/06/24 17:22:18 1 subscriber [::1]:50562 added remains:1
2021/06/24 17:22:31 1 subscriber [::1]:50562 removed remains:0
2021/06/24 17:22:32 subscribe :Jessica [::1]:50567,to Stream 1
2021/06/24 17:22:32 1 subscriber [::1]:50567 added remains:1
2021/06/24 17:22:55 [OUT]>>>
GET_PARAMETER rtsp://192.168.7.85:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 6
Require: implicit-play
User-Agent: 
Session: 53191452261

2021/06/24 17:22:55 <<<[IN]
RTSP/1.0 200 OK
CSeq: 6
Session: 53191452261
langhuihui commented 3 years ago

还有些小问题,正在修改

wenjian425 commented 2 years ago

还有些小问题,正在修改

还不能支持H265吗

langhuihui commented 2 years ago

H265

v4版本会支持

langhuihui commented 2 years ago

已完成支持