Streamedian / html5_rtsp_player

Play RTSP stream from IP camera in browser in this HTML5 player without plugins
Apache License 2.0
2.61k stars 598 forks source link

[transport:ws] [data] close. code: 1006, reason: unknown reason #135

Closed renxuefeng closed 5 years ago

renxuefeng commented 5 years ago

hello I'm building Streamedian Test System Environment:windows10

Log:
Client paused
Client started
[mse] Media source opened: open
[info] ------------- Info ---------------------
[info] License expires at : Invalid expiration time
[info] Requested domain : localhost
[info] -----------------------------------------
[client:rtsp] OPTIONS rtsp://192.168.29.93:554/H264/1/main/av_stream RTSP/1.0
 CSeq: 1
 User-Agent: SFRtsp 0.3

[mse] Media source ended: closed
[mse] Media source closed: closed
[mse] Media source opened: open
[client:rtsp] RTSP/1.0 200 OK
 CSeq: 1
 Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
 Date: Wed, Sep 04 2019 14:40:19 GMT

[client:rtsp] DESCRIBE rtsp://192.168.29.93:554/H264/1/main/av_stream RTSP/1.0
 Accept: application/sdp
 CSeq: 2
 User-Agent: SFRtsp 0.3

[client:rtsp] RTSP/1.0 401 Unauthorized
 CSeq: 2
 WWW-Authenticate: Digest realm="54c41585c95e", nonce="efd2d12442bb4d9026b38c30f0beec3e", stale="FALSE"
 WWW-Authenticate: Basic realm="54c41585c95e"
 Date: Wed, Sep 04 2019 14:40:19 GMT

[client:rtsp] Basic realm="54c41585c95e"
[client:rtsp] DESCRIBE rtsp://192.168.29.93:554/H264/1/main/av_stream RTSP/1.0
 Accept: application/sdp
 CSeq: 3
 User-Agent: SFRtsp 0.3
 Authorization: Basic YWRtaW46YWRtaW45OTk5

[client:rtsp] RTSP/1.0 200 OK
 CSeq: 3
 Content-Type: application/sdp
 Content-Base: rtsp://192.168.29.93:554/H264/1/main/av_stream/
 Content-Length: 479

 v=0
 o=- 1567608019871997 1567608019871997 IN IP4 192.168.29.93
 s=Media Presentation
 e=NONE
 b=AS:5050
 t=0 0
 a=control:rtsp://192.168.29.93:554/H264/1/main/av_stream/
 m=video 0 RTP/AVP 96
 c=IN IP4 0.0.0.0
 b=AS:5000
 a=recvonly
 a=x-dimensions:1920,1080
 a=control:rtsp://192.168.29.93:554/H264/1/main/av_stream/trackID=1
 a=rtpmap:96 H265/90000
 a=Media_header:MEDIAINFO=494D4B48010200000400050000000000000000000000000000000000000000000000000000000000;
 a=appversion:1.0
[parser:sdp] Ignored unknown SDP directive: e=NONE
[parser:sdp] Ignored unknown SDP directive: b=AS:5050
[parser:sdp] Ignored unknown SDP directive: c=IN IP4 0.0.0.0
[parser:sdp] Ignored unknown SDP directive: b=AS:5000
[client:rtsp] SDP contained 1 track(s). Calling SETUP for each.
[client:rtsp] setup track: video
[remuxer] ontracks:
[transport:ws] [data] close. code: 1006, reason: unknown reason 

system event viewer image

How can I solve it?

renxuefeng commented 5 years ago

莫名其妙好了

smellycat-tong commented 3 years ago

我也碰到这个问题了,一直在ontracks不动了,请问是什么原因啊

victorgrenke commented 3 years ago

Html5 does not support a=rtpmap:96 H265/90000

Need use h264

чт, 31 дек. 2020 г., 10:47 smellycat-tong notifications@github.com:

我也碰到这个问题了,一直在ontracks不动了,请问是什么原因啊

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Streamedian/html5_rtsp_player/issues/135#issuecomment-752833506, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFIYKL2UYTSLRKV2J7VZ7TSXPX3JANCNFSM4ITN5EHQ .