Two RTSP Streaming Media data transmission methods (TCP and UDP)

Source: Internet
Author: User

GenerallyRTSPThe implementation of data transmission in the Protocol isUDPTo makeRTSPFor Data TransmissionTCP.DarwinstreamingserverThe server can adapt to the data transmission requests initiated by the client.TCPMethod, or useUDPThe only solution here is the initiation of the client protocol.VLCSupportedRTSP over TCP.

The remaining problems are easy to solve.VLCToTCPTo initiate a connection.

DSSI will not introduce the installation configuration. If you do not understand it, check it online.

Method 1: TCP Transmit media data

My previousArticle(Http://www.cnblogs.com/MikeZhang/archive/2012/09/09/vlcStreamingServer20120909.html).VLCIn additionUDPMedia Data TransmissionRTSPProtocol. In fact, today's demand only needsVLCAdd the following options to the command line parameters:

-- RTSP-TCP

Out-of-the-boxTCPTo access the server, run the following command:

VLC rtsp:// 172.16.1.1/test -- RTSP-TCP

This is one ofRTPData Packets:

We can see thatRTPThe data packet is based onTCP implementation.

Method 2: UDP Transmit media data

AlthoughDSSIs being interactedVLCBy defaultUDPFor media data transmission, but we also need to consider the situation of switching to another streaming media service, so we can add the following parameters for restrictions:

-- No-RTSP-TCP

Out-of-the-boxUDPTo access the server, run the following command:

VLC rtsp:// 172.16.1.1/test -- no-RTSP-TCP

One of the data packetsRTPThe package is as follows:

As shown in the figureRTPIs based onUDP.

Okay, that's all. I hope it will help you.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.