To publish FLV data using RTMP, you first need to be aware of the FLV encapsulation format. can view: FLV video Encapsulation Format before you run this instance, you need to build a rtmp server and build an environment where Rtmpdump compiles and runs. can refer to:
Nginx build rtmp Streaming Media
belongs to the lower rtmp protocol level. A chunk stream can run on more than one message stream.The message stream ID is not equal under a chunk stream.Messages are cut into small chunks for transmission. The time stamp unit for rtmp is milliseconds. Connection handshake Flowchart: The handshake process: the server and the client each send three packets: C0,C1,
IOS RTMP -based video push streamFirst, the basic introductioniOS live a birth, immediately fiery not, a variety of live platforms springing up, because of this, also led to the rapid development of live broadcasting technology, in the IT industry proficient in live technology monkeys are very valuable. Broadcast technology involves a wide range of knowledge, the most important is probably the following: soft and hard decoding. H264, beauty processing
a user to submit a presentation description to the media server via HTTP or other means. If the representation is multicast, the description contains the multicast address and port number for the media stream, and if the representation is unicast, only the destination address should be provided for security in the presentation description.Invitation to join: A media server can be invited to participate in
As mentioned in the previous article, the RTSP (Real Time Streaming Protocol) method is used to implement live video. However, one drawback of the RTSP method is that if the client needs to be accessed through a webpage, you need to embed an ActiveX control in the page, and ActiveX usually requires a signature for normal use. Otherwise, you need to change the browser settings when using ActiveX, and ActiveX only supports IE kernel browsers, chrome and FireFox require the IE Plug-in to run, which
, the terminal has no output to prove the success of the launch. Otherwise, the reference terminal gives the exception information to check the master configuration file.Access the following address according to the live channel:HTTP//Live server Ip/nclients?app=app application name name= channel nameA return result indicates that the With-http_xslt_module module was successfully installed. The return result is the number of viewers of the current cha
-http_ssl_module make install Problem: is already installed Nginx, how to reconfigure the third-party module, find a write a very comprehensive blog!http://blog.csdn.net/ystyaoshengting/article/details/48436409 How to install nginx Third party module--add-module(./configure --prefix=/Your installation directory --add-module=/third-party module directory)Installation may cause error without installing OpenSSL, you need to execute the command:Yum-y Install OpenSSL Openssl-devel Third, m
the Ts,mp4 format. HTTP does not have a specific stream.
Ii. agreement to realize the open source implementation of RTSP * live.com c/s + http://www.live555.com* Darwin S C + + Http://www.opensource.apple.com/dar winsource/* VLC c c http://www.videolan.org* mplayer c c http://www.mplayerhq.hu * Omsp c/ S C http://streaming.polito.it/* Spook S C Http://www.litech.org/spook/RTMP implementation, non-open FMS, open-source RMTP
rtmp/flv Learning points of attention
1.RTMP and FLV format-friendly compatibility, mainly embodied in the RTMP package playable audio and video streams, when carefully studied, you will find that the RTMP packet in the package of audio and video data flow, in fact, and Flv/tag package the way the video data is the sa
RTMP is a TCP protocol that Flash player receives video from a video server. Adobe has released most of the RTMP protocol, although some details have not been disclosed, but for our own development of a rtmp server is enough, even if not open, many open-source projects have
: This article mainly introduces how to use nginx to build flv and mp4 streaming media servers based on rtmp or http. if you are interested in PHP tutorials, refer to it. Http://itindex.net/detail/48702-nginx-rtmp-http
I. streaming media playback mode1. HTTP
In this way, you need to download the FLV video file and play it locally. Once the FLV video file is downloaded, the server's resources and bandwidth
generally transmits a stream in the Ts,mp4 format. HTTP does not have a specific stream.
II. Implementation of the AgreementThe open source implementation of RTSP* live.com C + + http://www.live555.com * Darwin S C + + http://www.opensource.apple.com/darwinsource/* V LC c c http://www.videolan.org * mplayer c c http://www.mplayerhq.hu * Omsp/s C h ttp://streaming.polito.it/* Spook S C http://www.litech.org/spook/RTMP Implementation, non-open FM
) The HTTP protocol does not have a specific transport stream. (4) HTTP transmission generally requires 2-3 channels, command and data channel separation.Second, the available live stream addressUsually when we do RTMP/RTSP development, we can build our own video server for testing. You can also directly use some of the TV station's live address, save time and effort.Here are some of the video live addresse
Recently in window is a platform to do a function to capture audio and video through Obs, and through the RTMP protocol to its encoded compressed data into its own program, since the OBS software with very powerful game recording and desktop recording functions, as well as input, output audio device data acquisition and mixing function , the current fight fish game Live is also used by this software as a recording tool.OBS software because of the use
to the console. Copy the information and save it as a. SDP text file suffix. It can also be used to receive the RTP stream. After "> test. SDP" is added, you can directly Save the SDP information as text.
2.2. Play the RTP that carries the H.264 bare stream.
[Plain]View plaincopy
Ffplay test. SDP
3. rtmp3.1. send the H.264 bare stream to the rtmp server (flashmedia s
. SDP" is added, you can directly Save the SDP information as text.
2.2. Play the RTP that carries the H.264 bare stream.
ffplay test.sdp
3. rtmp3.1. send the H.264 bare stream to the rtmp server (flashmedia server, red5, etc)
Run the command to send the "Chunwan. h264" of the H.264 bare stream to the rtmp URL where t
1. Installation commandRuby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)" If you want to uninstall RUBY-E after installation, "$ (Curl- Fssl https://raw.githubusercontent.com/Homebrew/install/master/uninstall) "2. Install Nginx first clone Nginx project to local brew tap Homebrew/nginx Installation: Brew Install Nginx-full--with-rtmp-module at this point, the Nginx and rtmp
Push off
Processes: initializing, connecting to servers, sending dataThis part mainly uses the librtmp, because is uses other people to encapsulate the good library, generally relatively simple initialization
Simply call the function
rtmp = Rtmp_alloc ();
Rtmp_init (RTMP);
connecting to a server
The four functions represent: Set the URL, make yourself a sender
) The HTTP protocol does not have a specific transport stream. (4) HTTP transmission generally requires 2-3 channels, command and data channel separation.Second, the available live stream addressUsually when we do RTMP/RTSP development, we can build our own video server for testing. You can also directly use some of the TV station's live address, save time and effort.Here are some of the video live addresse
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.