您的位置:首页 > 理论基础 > 计算机网络

VLC RTP Video Streaming over HTTP

2013-10-15 15:16 1636 查看
http://pdn.pelco.com/content/rtp-video-streaming-over-http

 

To display the stream using VLC, we need to configure VLC to use HTTP tunneling.

Launch VLC and set the parameters as follows:

Preference > Input / Codecs > Demuxers > RTP/RTSP

Click to select "Tunnel RTSP and RTP over HTTP". Also set theHTTP tunnel port to
86.



Next, in VLC select File > Open Network to open a stream using the URL returned by the camera. However, there are two important differences: specify RTSP instead of HTTP as the protocol, and do not include the port number
in the URL string.





Next, the camera responds to the POST with RTSP and RTP setup information, and then starts streaming video.

RTSP/1.0 200 OK
CSeq: 2
Date: Thu, Jan 08 1970 22:35:55 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

RTSP/1.0 200 OK
CSeq: 3
Date: Thu, Jan 08 1970 22:35:55 GMT
Content-Base: rtsp://192.168.0.148/stream1/
Content-Type: application/sdp
Content-Length: 596

v=0
o=- 108445472 1 IN IP4 192.168.0.148
s=Session streamed by "Pelco Streaming Server"
i=stream1
t=0 0
a=tool:LIVE555 Streaming Media v2007.07.09
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "Pelco Streaming Server"
a=x-qt-text-inf:stream1
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QAKK0AzlAUAW7ARAAALuAACvyBgAAARKoAAAtxsIvfjAAAAwIlUAAAW42EXvxo,aP48sA==
a=label:pelco.1.1.1
a=extmap:1 http://pelco.com/042010/ext.htm#lowLatency
a=control:track1
RTSP/1.0 200 OK
CSeq: 4
Date: Thu, Jan 08 1970 22:35:55 GMT
Transport: RTP/AVP/TCP;unicast;destination=192.168.0.100;source=192.168.0.148;interleaved=0-1
Session: 138

RTSP/1.0 200 OK
CSeq: 5
Date: Thu, Jan 08 1970 22:35:55 GMT
Range: npt=0.000-
Session: 138
RTP-Info: url=rtsp://192.168.0.148/stream1/track1;seq=39615;rtptime=1666070395

$.......cN..z.]m\A.Hoj..9/..~..........EV\.
..}_)...#...."..*.7%.....~.'..$s.....
..f...5.....\x.v.'....j'n.....Y^.W.7.A.H.!...3.Q...a.8#I....,.../\?n...,7'...e.b.)%.Z+..wHc$%.0.....f.[.Ws..lTi.....x~r.J.P.....2..2...u....X..^5=5.....Y].M.............%.

. . .




Using the information presented here you can start a RTP/RTSP session that uses HTTP to transport the video traffic.

- See more at: http://pdn.pelco.com/content/rtp-video-streaming-over-http#sthash.XeCHaXwM.dpuf
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  VLC RTSP over HTTP