[Live-devel] RTSP over HTTP ?

J T dogy_dogy at livemail.tw
Fri Jul 25 02:57:53 PDT 2008


Dear All,

I would like to use live555 to capture the Video stream from a IP camera.
I can use IE to get the video stream from the IP camera. But I find there are 
3 HTTP sessions between IE and IP Camera. I would like to use openRTSP on it,
but how to separate 3 different sessions by openRTSP ?


Session 1 : 

>From IE :

GET /server/Access HTTP/1.0
Accept: */*
User-Agent: Client
Host: 192.168.1.2
                                                                                                                             
>From IP Camera :

HTTP/1.1 401 Unauthorized
Server: Tester
Date: Sun Jan  9 22:06:14 2000
WWW-Authenticate: Digest realm="W_camera", domain="Wcam",qop="auth",
nonce="c6e05c50a1a06c08f31c3ac367a9385a", opaque="5ccc069c403ebaf9f0171e9517f40e41",
algorithm="MD5", stale="FALSE"
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
                                                                                                                             
Document Error: Unauthorized
        Access Error: Unauthorized
        when trying to obtain /server/Access
Access to this document requires a User ID


Session 2 :

>From IE : 

GET /server/Access HTTP/1.0
Accept: */*
User-Agent: Client
Host: 192.168.1.2
Authorization: Digest username="admin", realm="W_camera", algorithm="MD5",
nonce="c6e05c50a1a06c08f31c3ac367a9385a", uri="/server/Access", nc=00000001,
cnonce="0a4f113b", opaque="5ccc069c403ebaf9f0171e9517f40e41",
response="4ffba70ec1d53c3252ff06652e1b6efe", qop="auth"
                                                                                                                             
>From IP Camera :

HTTP/1.0 200 OK
Server: Tester
Pragma: no-cache
Cache-control: no-cache
Content-Type: text/html
Connection: keep-alive
                                                                                                                             

Session: 31866
Video MP4V-ES/90000
Audio G.726-32/8000






RTSP/1.0 200 OK
CSeq: 1
Server: Tester/0.1
Date: Sun, 09 Jan 2000 22:06:15 GMT
Session: 31866
                                                                                                                             
RTSP/1.0 200 OK
CSeq: 2
Content-Length: 20
Content-Type: text/parameters
                                                                                                                             
video_framesize: 1
                                                                                                                             
RTSP/1.0 200 OK
CSeq: 3
Content-Length: 21
Content-Type: text/parameters
                                                                                                                             
video_bitrate: 1800
                                                                                                                             
RTSP/1.0 200 OK
CSeq: 4
Content-Length: 23
Content-Type: text/parameters
                                                                                                                             
video_framerate: 3000
                                                                                                                             
RTSP/1.0 200 OK
CSeq: 5
Server: Tester/0.1
Date: Sun, 09 Jan 2000 22:06:22 GMT
Session: 5
                                                                                                                             
RTSP/1.0 200 OK
CSeq: 5
Server: Tester/0.1
Date: Sun, 09 Jan 2000 22:06:22 GMT
Session: 5
                                                                                                                             
Session 3 :
>From IE :

GET /server/output?session=31866 HTTP/1.0
Accept: */*
User-Agent: Client
Host: 192.168.1.2
Authorization: Digest username="admin", realm="W_camera", algorithm="MD5",
nonce="c6e05c50a1a06c08f31c3ac367a9385a", uri="/server/output", nc=00000001,
cnonce="0a4f113b", opaque="5ccc069c403ebaf9f0171e9517f40e41", response="1462e32baf95a981fef0b686ac38caec",
qop="auth"
                                                                                                                             
>From IP Camera :

HTTP/1.0 200 OK
Server: Tester
Pragma: no-cache
Cache-control: no-cache
Content-Type: video/quicktime
Connection: keep-alive
                                                                                                                             

Setup Video Session OK



 
............ Video ..................
                                                                                                                             ............ Video ..................
                                                                                                                             
                                                                                                                             

_________________________________________________________________
下載 Windows Live Messenger 8.5 搶鮮版,多元溝通、盡情分享,和即時傳訊好友線上同樂!— 立即下載
http://get.live.com/zh-cht-tw/betas/messenger_betas


More information about the live-devel mailing list