following command reads the data from the local camera, encoded as MPEG2, and sent to the UDP: // 233.233.233.223: 6666 address.
[Plain]View plaincopy
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.
[Plain]View plaincopy
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 "Chun
I have written an article "converting FLV stream to standard h264 and ACC in rtmp", link address
Http://www.cnblogs.com/chef/archive/2012/07/18/2597279.html
. The extraction of h264 from rtmp is analyzed.
In flash projects with audio/video interaction, the audio encoding can only be in speex format.
This articleArticleIt is divided into three parts. These are the audio interfaces provided in flex, The speex data in rtmp, and how to convert them to RT
I have been searching for this problem online for a long time. It may take about two weeks. After a large number of searches and searches, I have finally made some progress. Although I still don't understand the principle, I can finally see it. The next step is to make a deeper research, but today we are going to post the receipt, although very few, but it is also a summary of myself. Of course, we would also like to thank our predecessors and Friends of the video forum for their selfless dedica
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 port 554. Code processing is as follows:
Artspconnection: parseurl (const char * colonpos = strchr (host-> c_str (), ':'); If (colonpos! = NULL) {unsigned long X; If (! Parsesingleunsignedlong (colonpos + 1, x) | x> = 65536) {// the RTSP port must be less than 65536 return false;} * Port = X; size_t colonof
media file that needs to be described, defines the type of description that the client understands, and requires the server to describe the media information in the SDP package rtsp/1.0 OK Cseq:3 date:wed, Mar 07 2012 03:48:0 7 GMT content-base:rtsp://222.201.145.236/slamtv60.264/ CONTENT-TYPE:APPLICATION/SDP Content-Length: 527
The first part resolves: this is the message sent back by the server in response to the describe request. The above description describes the specific path and n
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
Q: Why are subcontracting sent?
The reasons for the solution and network bandwidth
Sub-code, the situation is as follows:
else if (n->len>1500) {///Gets the Nalu required to send an int k=0,l=0 with a length of 1400 bytes of RTP packets; k=n->len/1400;//requires k 1400 bytes of RTP packet l=n->len%1400;//the last RTP packet needs to load the number of
original articles, Forbidden reprint. otherwise pursued.
The information parsing of RTP header in WebRTC has been explained before.
Here to explain the WEBRTC in the RTP parsing, here is the main explanation of h264 analysis;
About class implementations and related test files that are relevant in VP8 and VP9,WEBRTC;
Regarding the RTP file parsing of H264, t
RTCP RTP protocol format Analysis 7: RTCP receiver reportRTCP RTP protocol format analysis 6: RTCP Sender report http://www.bkjia.com/net/201311/255254.htmlThe receiver report and the sender report are basically the same, but the package type is constant 201, and there are no five words of the sender information. The remaining area has the same meaning as the SR package.If no sender or receiver is reporte
We often run a concurrentrequestRTP: ReceivingTransactionProcessor on the rcv side, which is mainly used to process data in RCV_TRANSACTIONS_INTERFACE. this concurrentprogram contains many files. More important: identRVCTPRVCTP: $ Header: rvctp. oc120.0.120
We often run a concurrent request RTP: Processing ing Transaction Processor on the RCV side, which is mainly used to process data in RCV_TRANSACTIONS_INTERFACE. this concurrent program contains man
Note that the x:class in XAML is not changed, and the following 2 red parts are consistent.Namespace RTP. Toolkits{Interaction Logic for Cablelosscalwin.xamlpublic partial class Cablelosscalwin:window{Public Cablelosscalwin (){InitializeComponent ();}}}RTP. Toolkits. Cablelosscalwin "Xmlns= "Http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x= "Http://schemas.microsoft.com/winfx/2006/xaml"Titl
.
If the Android power supply is a USB host, use Usbdevice. If the peripheral acts as a USB host, use Usbaccessory. Most of the input device mouse and joystick, camera, hubs, etc. belong to the former, namely Usbdevice.
The latter, usually USB devices as the main controller, providing power, communication with the Android device, that is, usbaccessory.
In addition, to handle the mouse, wheel and trackball input, add two new motion event actions:
1.action_scroll, which describes the posit
Twelve h264 RTP packet Timestamp
Let's take h264 as an example.
Void hsf-videortpsink: dospecialframehandling (unsigned/* fragmentationoffset */, The function first checks whether it is the last packet of a frame. If yes, it marks the 'M' and then sets the timestamp. Where does this timestamp come from? It depends on who calls the function dospecialframehandling (). After searching, it is called by multiframedrtpsink: aftergettingframe1. the paramete
About timestamp issues in RTPTimestamp unit: The unit in which the timestamp is calculated is not a unit of seconds, but a unit that is replaced by the sampling frequency, so that the purpose is to be more precise in the timestamp unit. For example, if an audio sample frequency is 8000HZ, we can set the timestamp unit to 1/8000.Timestamp increment: The time difference (in timestamp units) between adjacent two RTP packets.How do I set the increment bet
I. Jrtplib INTRODUCTIONRTP is the best way to solve the problem of streaming media real-time transmission, and Jrtplib is a C + + language implementation of the RTP library, it is fully compliant with RFC 1889 design, now can run in Windows, Linux, FreeBSD, Solaris, UNIX and VxWorks and many other operating systems. Before you can use Jrtplib, you need to compile it.Two. Platforms and software usedOperating system: Windows 7Software: CMake 3.2.3 + Vis
In the previous article we introduced some basic knowledge of the RTP protocol, below we describe how to use jrtplib this library to transmit H264 encoding.JRTP transmission: OK, here is the example I wrote about sending H264 packets using JRTP, which can be explained in detail. The sending side can also receive RTCP packets sent by the receiving end. #define MAX_RTP_PKT_LENGTH1360#defineH264 96boolcheckerror (intrtperr); classCRTPSender: Publicrtpses
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.