RTP/RTCP/RTSP/SIP/SDP RelationshipRTP (real-time transport protocol, Transport layer)Real-time Transport Protocol) is a Transport layer protocol for multimedia traffic on the Internet. The RTP protocol details the standard packet format for transmitting audio and video over the Internet. RTP protocols are commonly used in streaming media systems (with the RTCP pr
Play captured h263 RTP video
1. Use ethereal/Wireshark to capture RTP data packets and select the h263 filter condition to save2. Statistics/RTP streams/streams Analysis3. Save payload select to save raw data4. Use ffplay to play ffplay-F h263 File
Play RTP audioHttp://www.ethereal.com/lists/ethereal-users/200401/m
1. Network abstraction layer unit type (NALU)
The NALU header consists of one byte,Its syntax is as follows:
+ --------------- +| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |+-+| F | NRI | type |+ --------------- +
F: 1 bit.Forbidden_zero_bit. The H.264 specification specifies that this digit must be 0.
NRI: 2 bits.Nal_ref_idc. 00 ~ 11. It seems to indicate this naluFor example, 00 NALU decoder can discard it without affecting image playback.
This attribute.
Type: 5 bits.Nal_unit_type. Type of the NALU unit.
is a sequence parameter set (SPS), image parameter set (PPS), enhanced information (SEI).
b. H. Video RTP payload Format
2.1. Network Abstraction Layer Unit type (NALU)
The Nalu header consists of a single byte, which is in the following format:
Description :
F:1 bit. Forbidden_zero_bit. This one must be 0 and set to 1 to indicate a syntax violation in the H.
Nri:2 bit. NAL_REF_IDC, taking 00 ~ 11, indicates the importance of this nalu, indicating t
RTP packet: a packet with an RTP header on the start, that is, RTP packet. Generally, in the bottom layer protocol, a packet contains only one RTP packet, but through some special encapsulation methods, the bottom layer packet can also contain more than one RTP packet.
set (SPS), image parameter set (PPS), and enhancement information (SEI ).
Ii. Detailed explanation of h264 RTP packets --- reprint
H.264 video RTP load format
1. Network abstraction layer unit type (NALU)
The NALU header consists of one byte. Its syntax is as follows:
+ --------------- +| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |+-+| F | NRI | type |+ --------------- +
F: 1 bit.Forbidden_zero_bit. The H.264 specific
the following data information is a sequence parameter set (SPS), image parameter set (PPS), enhanced information (SEI).
Second, H264 RTP package Detailed---reproduced
H. A video RTP payload format
1. Network Abstraction Layer Unit type (NALU)
The Nalu header consists of a byte with the following syntax:
+---------------+|0|1|2|3|4|5|6|7|+-+-+-+-+-+-+-+-+| F| nri| Type |+---------------+
F:1 a bit.Forbidd
5.3.1 RTP Header Extension
The following provides an extension mechanism to allow some implementation requirements to experiment with the new load format-independent feature that carries additional information in the RTP data header. This mechanism is designed for other unscalable implementations to ignore these header extensions.
Note that this header extension is intended for some limited purposes. Most o
RTP
The Protocol is a new protocol proposed by IETF in 1996 for real-time data transmission. The RTP protocol is composed of real-time transport protocol and real-time transport control protocol. RTP provides real-time transmission of continuous media data based on multicast or unicast networks. RTCP
The Protocol is RTP
H. rtppayload format------H. A video RTP payload format1. Network Abstraction Layer Unit type (NALU)The Nalu header consists of a byte with the following syntax:+---------------+|0|1|2|3|4|5|6|7|+-+-+-+-+-+-+-+-+| F| nri| Type |+---------------+F:1 bits (no bit).Forbidden_zero_bit. This one must be 0, as stipulated in the H.Nri:2 a bit.NAL_REF_IDC. taking 00 ~ 11, it seems to indicate the importance of this nalu, such as 00 of the Nalu decoder can dis
Turn from: http://blog.csdn.net/jwybobo2007/article/details/7054140
Network Abstraction Layer Unit type (NALU):
The Nalu header consists of a byte, and its syntax is as follows:
+---------------+|0|1|2|3|4|5|6|7|+-+-+-+-+-+-+-+-+| F| nri| Type |+---------------+
F:1 a bit.Forbidden_zero_bit. The H.264 specification stipulates that this one must be 0.
Nri:2 a bit.NAL_REF_IDC. Taking 00~11 seems to indicate the importance of this nalu, such as a 00 NALU decoder that can discard it without affecti
Last time I talked about the XMPP protocol, this encounters another protocol, RTP. xmpp:http://blog.csdn.net/shinichr/article/details/23832157
Concept:
RTP English name is real-time Stream Protocol, as the name implies a very high real-time protocol. This protocol is similar to the HTTP protocol, which is plain text to send the message, the difference is that RTP
The reprinting of jrtp is described in detail.
I have been studying RTP for several days. I will summarize it today.For the establishment of the jrtplib environment, see my previous summary. Now I will mainly talk about how to learn example under jrtplib3.71.I. sample is a simple IPv4 column that implements RTP data transmission on the local machine.1. initialization.We know that
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 with UDP is the following are some problems when
Use of open-source RTP-jrtplib (2)I have been studying RTP for several days. I will summarize it today. For the establishment of the jrtplib environment, see my previous summary. Now I will mainly talk about how to learn example under jrtplib3.71. I. sample is a simple IPv4 column that implements RTP data transmission on the local machine. 1. initialization. We k
stream.
(4) The streaming media server uses the RTP/UDP protocol to transmit audio/video data to the client. Once audio/video data arrives at the client, the audio/video client program can play the output.
It should be noted that in stream transmission, two different communication protocols, RTP/udp and RTSP/tcp, are used to establish a connection with the Streaming Media Server, this is to redirect the se
Session. begindataaccess (); If (session. gotofirstsource () {do {rtppacket * packet; while (packet = session. getnextpacket ())! = 0) {cout
For the establishment of the jrtplib environment, I can refer to my previous summary. Now I will mainly talk about how to learn example under jrtplib3.71. I. sample is a simple IPv4 column that implements RTP data transmission on the local machine. 1. initialization. We know that
Session. begindataaccess (); If (session. gotofirstsource () {do {rtppacket * packet; while (packet = session. getnextpacket ())! = 0) {cout
For the establishment of the jrtplib environment, I can refer to my previous summary. Now I will mainly talk about how to learn example under jrtplib3.71. I. sample is a simple IPv4 column that implements RTP data transmission on the local machine. 1. initialization. We know that
Original link: http://blog.csdn.net/yu_yuan_1314/article/details/8963673
The timestamp field in the RTP package is the synchronization information that describes the time of the packet, and is the key to recovering the data in the correct chronological order. The timestamp value gives the sampling time of the first byte of the data in the packet. In order to calculate the playback time of each data stream and synchronize processing, only the timestam
You need to set the timestamp unit (timestamp) and timestamp increment (timestamp increment) when sending data using Jrtplib. Read some articles on the Internet, carefully wanted to think now just figured out the problem. The RFC3550 description of the timestamp is:
A timestamp (timestamp) 32-bit timestamp reflects the sampling time of the first byte in the RTP packet. (The sampling clock must originate from a timely, monotonically, linearly increme
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.