1. Set the RTSP port number
The RTSP port number is set in the artspconnection. cpp file. First, obtain the port number from the URL. If the port number cannot be read, set it to the default p
LIVE555 Study ii rtsp, RTP/RTCP protocol Introduction
LIVE555 Study ii rtsp, RTP/RTCP protocol Introduction
I. Overview
RTSP (Real-Time Stream Protocol) is a text-based application layer Protocol. RTSP is similar to HTTP in terms of syntax and message parameters.
RTSP is use
methods. If the demonstration is multicast, the demonstration contains the multicast address and port used for continuous media. If the demonstration is only sent to the user through a single broadcast, the user shall provide the destination address for security purposes.Media Server invited to the meeting:A Media Server can be invited to an ongoing meeting, play back the media, or record part or all of it. This mode is very useful in distributed edu
and ports also need to be determined. There are several modes of operation that are distinguished:Unicast:Sends the media to the RTSP request source with the user-selected port number.Multicast, server Select Address:The media server chooses the multicast address and the port, which is the common way of live broadcast or quasi-VOD.Multicast, user Select Address:
load situation can be converted to serve the server, To avoid excessive load concentration on the same server and cause delays.
The difference between RTSP and HTTP (1) Contact: Both use plain text to send messages, and the RTSP protocol syntax is similar to HTTP. RTSP was initially designed to be compatible with parsing code using previously written HTTP prot
resources and start a RTSP session.2 Play and record: Start the data transfer on a stream on which Setup initiates the session and allocates resources.3) PAUSE: temporarily suspend a stream of data transfer without releasing server resources.4) Teardown: Frees the streaming resources on the server and ends the RTSP session.
The SDP protocol is used to describe multimedia sessions. The main function of the
packets, such as using a separate UDP port number. RTCP performs the following four functions:It mainly provides quality feedback on data publishing. It is part of the RTP transmission protocol and is related to the stream and blocking control of other transmission protocols. Feedback directly applies to adaptive encoding control, but the experience of IP multicast shows that it is important to diagnose sending errors when feedback is received from t
time syntaxes.
Continuous Media Stream and ControlStream delivery * is possible. Generally, it does not send continuous streams. In other words, RTSP acts as a multimedia service
Remote Control of Network. The RTSP connection is not bound to a transport layer connection, such as TCP. During the RTSP connection, the RTSP
information can develop the strategy of Session control.The RTCP protocol will control the packagePeriodic sendFor all the connectors, apply the same distribution mechanism as the packet. Low-level protocols provide the multiplexing of data and control packs, such as the use of separate UDP port numbers. RTCP performs the following four functions:The main focus is to provide quality feedback on the data release. is a part of the RTP transport protoco
. The default port for the RTSP protocol is 554, and the default hosting protocol is TCP.
characteristics of the 2.RTSP: (1) Flow control separation: From the control logic, RTSP and FTP similar, control flow and data flow is separate.(2) Extensibility: Because the RTSP pro
Normally, RTSP provide streaming over UDP. By nature, UDP are a better choice as it provides robust streaming capability for media. However, it's unlikely to use UDP for streaming over the Internet.Typically, RTSP provides a UDP way to send RTP streams. Of course, UDP is often a better choice when sending streaming media.However, it is not possible to send a stream using UDP on the Internet. Some issues wit
Server: live555 client: VLC video format: H264
(1) OPTIONS
OPTIONS rtsp://222.201.145.236/slamtv60.264 rtsp/1.0Cseq:2user-agent:libvlc/1.1.11 (LIVE555 streaming Media v2011.05.25)Parsing: This step is where the client asks the server what methods are available. The package describes the address and port where the client requests the file and describes the version
clients and servers can make requests. ? RTSP data is transmitted by another protocol (except for one exception).? RTSP uses ISO 10646 (UTF-8) instead of ISO 8859-1 to match the internationalization of the current HTML.? RTSP contains an absolute URI when using a URI request. The HTTP1 only contains the absolute path in the request, placing the hostname in a sep
1 socket creation, binding, listening to the main function main () after it is started, it will be called (dynamicrtspserver: createnew-> rtspserver: setupoursocket setupstreamsocket) in setupstreamsocket, create, bind, listen to, and set non-blocking mode operations on S-end sockets in TCP. The listening port is 854. after the socket-related operations are completed, new dynamicrtspserver (derived from rtspserver) is executed. Therefore, rtspserver:
are used for RTP packaging and UDP-based transmission. MP2T/RTP/TCP indicates that the TS stream is used for RTP packaging and is based on TCP.User-Agent: ZTE Ltd. co RTSP protocal verion 1.0 guid-2.1.1.100/B519D290-C0EC-EE35-7368-893BE4C0B347
RTSP/1.0 200 OK
Server: zxus-9 1.0
CSeq: 2
Date: Wed, 29 Sep 2010 10:20:38 GMT
Expires: Wed, 29 Sep 2010 10:20:38 GMT
Session: 65565885
Transport: MP2T/RTP/UDP; unic
this class.
Rtppacket
This class is used to handle the RTP packets. it has separate routines for handling the specified ed packets at the client side which is given and you do not need to modify it (but see optional exercises ).
You will need to complete the first constructor of this class to implement RTP-packetization of the video data. The second constructor is used by the client to de-packetize the data. You do not need to modify that.
Videostream
This class is u
description? Of course, it is the information of streaming media. The returned response contains SDP. For example:Describe rtsp: // server. Address: Port/object. sdp rtsp/1.0 \ r \ nCSeq: 1 \ r \ n\ R \ n
-----------------------------------------------------------------------RTSP/1.0 200 OK \ nServer: qtss (IFI)/v88 \
// The following is the RTSP server.1 # include
The above is RTSP server.
Next, we will create RTSP forwarding server B and forward the RTSP stream of server.
1 # include
The code can be obtained in the directory of the gstreamer GST-RTSP-Server Source code examples, but
Recently, When I port the RTSP library to wince, I cannot read the data. To solve the problem, I wrote a small RTSP client protocol learning program to implement basic session protocols, options, describe, setup, play and other protocols to save the read data to the file. The program code is pasted below, which can run on ce and PC. For your sharing.
# Ifdef _ wi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.