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

rtsp stream stuck on [remuxer] ontracks null #152

Open leecp-dev opened 4 years ago

leecp-dev commented 4 years ago

i try to stream the Dahua IP Camera with URL rtsp://user:password@192.168.xx.xx:554/cam/realmonitor?channel=1&subtype=0

but seen like stuck on init stage

Client paused Client started [mse] Media source opened: open [info] ------------- Info --------------------- [info] License expires at : Sun Jun 28 08:00:00 2020 [info] Requested domain : localhost [info] ----------------------------------------- [client:rtsp] OPTIONS rtsp://192.168.xx.xx:554/cam/realmonitor?channel=1&subtype=0 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 401 Unauthorized CSeq: 1 WWW-Authenticate: Digest realm="Login to 4G057A9PAG82ECC", nonce="0da8f7daba3c280bae3c5f850d6caa1e" [client:rtsp] Digest realm="Login to 4G057A9PAG82ECC", nonce="0da8f7daba3c280bae3c5f850d6caa1e" [client:rtsp] OPTIONS rtsp://192.168.xx.xx:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0 CSeq: 2 User-Agent: SFRtsp 0.3 Authorization: Digest username="admin", realm="Login to 4G057A9PAG82ECC", nonce="0da8f7daba3c280bae3c5f850d6caa1e", uri="rtsp://192.168.xx.xx:554/cam/realmonitor?channel=1&subtype=0", response="a850b48209249cf4f8bb73c62dfd73c3" [client:rtsp] RTSP/1.0 200 OK CSeq: 2 Server: Rtsp Server/3.0 Public: OPTIONS, DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER [client:rtsp] DESCRIBE rtsp://192.168.24.51:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0 Accept: application/sdp CSeq: 3 User-Agent: SFRtsp 0.3 Authorization: Digest username="admin", realm="Login to 4G057A9PAG82ECC", nonce="0da8f7daba3c280bae3c5f850d6caa1e", uri="rtsp://192.168.xx.xx:554/cam/realmonitor?channel=1&subtype=0", response="47ee7df60953e3a71990ed0e27092107" [client:rtsp] RTSP/1.0 200 OK CSeq: 3 x-Accept-Dynamic-Rate: 1 Content-Base: rtsp://192.168.24.51:554/cam/realmonitor?channel=1&subtype=0/ Cache-Control: must-revalidate Content-Length: 427 Content-Type: application/sdp v=0 o=- 2261565366 2261565366 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 98 a=control:trackID=0 a=framerate:15.000000 a=rtpmap:98 H265/90000 a=fmtp:98 profile-id=1;sprop-sps=QgEBAWAAAAMAsAAAAwAAAwB7oAPAgBDljb5JMvTcBAQEAg==;sprop-pps=RAHA8vA8kA==;sprop-vps=QAEMAf//AWAAAAMAsAAAAwAAAwB7vAk= a=recvonly [parser:sdp] Ignored unknown SDP directive: c=IN IP4 0.0.0.0 [client:rtsp] SDP contained 1 track(s). Calling SETUP for each. [client:rtsp] setup track: video [remuxer] ontracks:

i able to try the demo rtsp video

GeneHCT commented 2 years ago

Any updates on this? I am running into similar issue with Dahua NVRs too