BogdanovKirill / RtspClientSharp

Pure C# RTSP client for .NET Standard without external dependencies and with true async nature. I welcome contributions.
MIT License
731 stars 287 forks source link

Question~!! #93

Open ktwon1982 opened 4 years ago

ktwon1982 commented 4 years ago

I has tried to get Image Stream from RTSP protocol using your Code.

VLC Media Player program is OK. your Code program is NG.

Could you help me??

-----VLC Media Player Request packet -------------- -----------------------------------------------------------------------------

SETUP rtsp://192.168.0.195:8551/all/track1 RTSP/1.0 CSeq: 8 Authorization: Digest username="canon", realm="LIVE555 Streaming Media", nonce="ba577436440f3c27bf6fc86fbb40bc85", uri="rtsp://192.168.0.195:8551/all/", response="e3242e5330368042a115708fc213b5c6" User-Agent: LibVLC/3.0.11 (LIVE555 Streaming Media v2016.11.28) Transport: RTP/AVP;unicast;client_port=63136-63137

PLAY rtsp://192.168.0.195:8551/all/ RTSP/1.0 CSeq: 5 User-Agent: RtspClientSharp Session: 83E7329D Range: npt=0.000- Authorization: Digest username="canon", realm="LIVE555 Streaming Media", nonce="e3bd04e5542bb3fa191f3422a4aa256a", uri="rtsp://192.168.0.195:8551/all", response="053019cdca898dbb39e2cd21ffed75cf"

-----Your program Request packet -------------- -----------------------------------------------------------------------------

SETUP rtsp://192.168.0.195:8551/all/track2 RTSP/1.0 CSeq: 4 User-Agent: RtspClientSharp Transport: RTP/AVP/TCP;unicast;interleaved=0-1 Authorization: Digest username="canon", realm="LIVE555 Streaming Media", nonce="760c03b622a1e2b2863c1fcbeb8621a0", uri="rtsp://192.168.0.195:8551/all", response="68b523562dc3c326655d3f12e6cd5600"

PLAY rtsp://192.168.0.195:8551/all/ RTSP/1.0 User-Agent: RtspClientSharp Session: 89E8FA67 Range: npt=0.000- Authorization: Digest username="canon", realm="LIVE555 Streaming Media", nonce="760c03b622a1e2b2863c1fcbeb8621a0", uri="rtsp://192.168.0.195:8551/all", response="b59d0e34282e4ec9c124d1d23f070fd3"  

$..,....D.....nN!..I.7a.............D.....UBX...RTSP/1.0 200 OK CSeq: 5 Date: Fri, Jul 31 2020 10:17:50 GMT Range: npt=0.000- Session: 89E8FA67 RTP-Info: url=rtsp://192.168.0.195:8551/all/track1;seq=0;rtptime=0,url=rtsp://192.168.0.195:8551/all/track2;seq=59492;rtptime=2184667622

vighnu commented 4 years ago

Had the same problem with VLC. Tried the sample code with the below-given link. Well, I guess it has something to do with the VLC setup. rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov