# Ifndef _ h_rtpheader
# DEFINE _ h_rtpheader
/* ++V-version. Recognize the RTP version.P-gap (padding ). When this parameter is set, the data packet contains one or more additional gap groups, which do not belong to the payload.X-extended bit. When setting, after the Fixed Header, set an extension header according to the specified format.CSRC count-the number of the CSRC identifier (after the Fixed Header.M-mark. Mark defined by the profile file. Al
Video
1
90000
ITU-T H.261 video
RFC 4587
32
MPV
Video
1
90000
MPEG-1 and MPEG-2 video
RFC 2250
33
Mp2t
Audio/Video
1
90000
MPEG-2Transport Stream Video
RFC 2250
34
H263
Video
90000
H.263 video, first version (1996)
RFC 3551,RFC 2190
Dynamic
H263-1998
Video
90000
H.263 video, second version (1998)
RFC 3551,RFC 4629,RFC 2190
Dynamic
H263-2000
Video
900
real-time audio and video domain UDP is the kingly
The Transport layer scheme for real-time audio and video interaction on the Internet has two types: TCP (e.g. RTMP) and UDP (e.g. RTP). The TCP protocol provides a relatively reliable guarantee for data transmission between two endpoints, which is achieved through a handshake mechanism. When the data is passed to the receiver, the receiver checks the correctness of the data. The sender only receives t
UDP-based RTP transmission in the complex public network environment, especially 3G, 4G, WiFi network faced with packet loss, disorderly sequence, repetition, jitter and other issues, seriously affect the real-time audio and video interactive effect, even if it is a RTP packet lost, if the receiver does not do processing, will also lead to the appearance of video mosaic, This scheme uses a variety of method
The SIP protocol and some of its applications are worth learning. In this regard, we will explain the configuration of rtp sip today. SIP (Session Initiation Protocol) is usually used for VOIP calls, call establishment, call negotiation, and call termination. it helps two terminals to recognize each other, but it does not process media. When A call is established, it directly transmits media through real-time transmission protocol (
NTP------Network Time ProtocolPTP------Precise Time ProtocolAll know the RTSP protocol, the real data transmission is the RTP protocol to transmit, each RTP packet has a timestamp, (relative timestamp relative timestamp) This timestamp needs to be converted, I need to convert it to the appropriate time to print to each frame displayed by the player.But according to HTTP://STACKOVERFLOW.COM/QUESTIONS/2009499
----------------------------------------------------------------------------------------------------------------------------------
/*Here's a small IPv4 example: it asks for a portbase and a destination andStarts sending packets to that destination.This is a small IPv4 sample program: it requests a starting port and a destination address and then starts sendingSome packages to the target address.*/
# Include "rtpsession. H"# Include "rtppacket. H"# Include "rtpudpv4transmitter. H"# Include "rtp
I wrote an article earlierArticleAnalysis of the format of using RTP for h264 packets: RTP encapsulation of h264. However, it seems that the split and some situations that need attention are not clearly stated, so here we will make a supplement and also serve as our own memo (I don't seem to have a good memory ).
note that the sampling rate of h264 is 90000Hz, so the unit of the timestamp is 1 (s
RTCP RTP protocol format analysis 6: RTCP Sender reportThe sender report consists of three parts, and the fourth part may be extended. Part 1: Header, 8 bytes long, version: 2 bits, RTP version identifier. This version in the RTCP package has the same meaning as that in the RTP package, generally 2 p: fill bit, 1 bit. If set, there are several fill bits at the e
sent to the UDP: // 233.233.233.223: 6666 address.
ffmpeg -re -i chunwan.h264 -vcodec mpeg2video -f mpeg2video udp://233.233.233.223:6666
1.4. Play the MPEG2 bare stream
Specify-vcodec as mpeg2video.
ffplay -vcodec mpeg2video udp://233.233.233.223:6666
2. rtp2.1. send the H.264 bare stream to the multicast address.
The following command sends the H.264 raw stream "Chunwan. h264" to the address RTP: // 233.233.233.223: 264
ffmpeg -re -i chunwan.h26
Today, I found a strange problem. I can call the SIP client of the lower computer by using the Linphone client of the upper computer to work normally, but in turn there is a problem. Packet Capture found that Linphone sent a large number of IP fragmentation data packets, so google knows that when the data found is larger than MTU, it will generate IP fragmentation data packets. I have already split the RTP package? This should not happen normally.
Lin
RTP encapsulation of H.264 (lower)
3. RTP encapsulation implementation
3.1 encapsulation Flowchart
4. RTP solution encapsulation implementation
4.1 Flowchart
5. Summary
Hope you are correct!
6. References
[1] schuzrinne H, casner S, Frederick R, et al. rfc3550 RTP: A transport protocol for r
3.1Three additional packages: Android. Hardware. USB, Android. MTP, and android.net. RTP!
USB, MTP, RTP------- There are three words, all bloody, so people are excited and excited. Why don't you get started with Google?
Android. MTP
Allow connected camera and other devices to directly use PTP (image transfer protocol) MTP (Media transfer protocol ).
Keep the device connected. The upper-layer app can rec
3.1Three additional packages: Android. Hardware. USB, Android. MTP, and android.net. RTP!
USB, MTP, RTP------- There are three words, all bloody, so people are excited and excited. Why don't you get started with Google?
Android. MTP
Allow connected camera and other devices to directly use PTP (image transfer protocol) MTP (Media transfer protocol ).
Keep the device connected. The upper-layer app can rec
There are three different basic loads (single Nal, non-interleaved, interleaved) in RTP of h264)
The application can use the first byte for recognition.
The properties of this session are also described in SDP.
SDP parameters
The following describes how to represent an H.264 stream in SDP:
. "M =" the media name in the row must be "video"
. The encoding name in the "A = rtpmap" line must be "h264 ".
. The clock frequency in the "A = rtpmap" row must
When using RTP to transmit H264 data, when the length of the Nalu is too long to subcontract, here is an example, if you want to know more detailed protocol description can refer to the end of the connection.
Within live555, receive a piece of data at the beginning of each package as follows
7c Bayi E1 427c 1 D 8f7c 1 A7 C87c 1 2d。。。7c 1 6b FB7c 1 2b7c 3b
live555 the above data processing, the resulting data is returned to the user as follows
E1, 7f,
Because of the work exposure to a variety of different audio and video packaging formats, common national standard PS flow, onvif RTP stream and TS flow, and so on, all say good memory than rotten pen, the time to summarize, or in the future can be consulted, because of the level of problems, there may be omissions and problems, please advise one, PES flow
PES flow is the first layer of the original ES stream package, the basic unit of the PES stream
The raw stream data obtained from h264 is. Generally, the bitstream structure is SPS, PPS, I frame, P frame ...... SPS, PPS, I frame, P frame ............ When we use RTP to package h264 data, SPS and PPS can directly send I and P frames without sending them. It also depends on the size of I frame and P frame. If it is smaller than MTU, it can be sent directly with the RTP package. If it is larger than MTU,
Payload Structure:
+ ——————— + ———————-+ ————————————
| Payload Header | Table of Contents | Speech data ....
+ ——————— + ———————-+ ————————————-
Payload Header:
0 1 2 3
+–+–+–+–+
| CMR |
+–+–+–+–+
CMR: (4 bits)
Don't know what to do with ~ ~
Can be replaced with the Nal_unit_type in the NAL head completely
Table of Contents:
0 1 2 3 4 5
+–+–+–+–+–+–+
| F | FT | Q |
+–+–+–+–+–+–+
F: (1 bit)
If the frame is the last frame of this RTP packet, then
The Wgscd-picked Rtp/rtcp (real-time transport protocol/real-time Transport Control Protocol) is based on UDP-derived protocols and adds control over real-time transmission. Commonly used for online transmission of real-time video data, such as remote video surveillance, video-on-demand. There is a book called "Multimedia Network Transmission Protocol" on the structure and principle of the 2 agreements to do a more detailed introduction, as if it wa
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.