One, RTMP, RTSP, HTTP protocolThese three protocols belong to the Application layer protocol in the Internet TCP/IP five layer architecture. Theoretically these three kinds can be used for video broadcast or on-demand. But usually, live broadcast with RTMP, RTSP. And on-demand with HTTP.The following are the characteristics of the following three respectively. The 1,RTM
recording Ffmpeg–i Rtsp://192.168.3.205:5555/test–vcodec Copy Out.avi 7.YUV sequence Playback Ffplay-f rawvideo-video_size 1920x1080 INPUT.YUV 8.YUV sequence turn avi Ffmpeg–s w*h–pix_fmt yuv420p–i input.yuv–vcodec MPEG4 Output.avi Common parameter Description: main parameters: -I set input stream-F Set output format-ss start time video parameter: -B Set video traffic, default to 200KBIT/S-R set frame rate, default to 25-s setting screen width and height-aspect setting screen ratio Example-VN d
height of the display area. The minimum height of the control area is 20px. When the value is greater than or equal to the SWF height, the playlist is automatically hidden. Otherwise, the playlist is displayed.File * (URL): the address of the file to be played. Supports single-file playback (MP3, FLV, rtmp, JPG, SwF, PNG, and GIF) and playback list. JW image rotator only supports listHeight * (number): sets the SWF height. When you insert a SwF image
the server as follows:New_nc.connect ("rtmp:/doc_record/room_01 ");Otherwise, you need to specify the actual server uri (for example, the server runs on myserver.mydomain.com). You can specify the FCS connection as follows:New_nc.connect ("rtmp: // myserver.mydomain.com/doc_record/room_01 ");Note: It is determined that rtmp is followed by a double slash. A singl
Crtmpserver IntroductionIn the first chapter we have briefly explained that Crtmpserver,crtmpserver is an open source rtmp streaming server written by the C + + language, and its corresponding commercial product is naturally an Adobe FMS. Compared with FMS, the function of Crtmpserver can only be called the simplified version of FMS, its function is no FMS so perfect or even far from reaching. Its compatibility with Flash Player is not as natural as t
Author: seven Cow Cloud
Original link: Click to open the link push protocol
Here's a look at what the push protocols are, their status and pros and Cons in the live broadcast field. RTMP WebRTC UDP-based private protocol
1. RTMP
RTMP is the acronym for Real Time Messaging Protocol (Live Message Transfer Protocol). The protocol is based on TCP and is a protocol f
, if you are afraid of trouble directly to find Tool folder in the batch file Startserverservice.bat it, he will help you fix the ground, want to close to find Stopserverservice.bat. ~Manage Servers ~Opened to be managed Oh, point open fms2_console.swf, don't look at him just a SWF, backstage management depend on him, enter your installation time password and user, server address write localhost goodSee, familiar with him.Applications folderYou can build a folder in it, such as Firstapp, all fut
Project home: Https://github.com/ossrs/srs-sea
SRS Server Project: Https://github.com/ossrs/srs
A version that supports the rtmp push stream: Https://github.com/begeekmyfriend/yasea
In the Android version, in particular, the 4.1 introduced Mediacodec to encode the camera's image to achieve live broadcast.
The general Android push to the server, the use of ffmpeg mostly, that is, soft coding, in fact, the use of Android hardware coding will have a bett
to each client.TCP can dynamically adjust the transmission speed and resend the lost packets according to the network bandwidth and congestion, so that the reliability of the data transmission is ensured, but the server resource is expensive, so it is difficult to guarantee the real-time data transmission in the case of large data flow.UDP is an unreliable transfer protocol, in the sending segment, the speed of UDP data transmission is only the speed of data generated by the application, the ab
is as follows:Rtmp: // localhost [: Port]/apname [/InstanceName]Localhost indicates that the server runs on the local computer.Rtmp: // host [: Port]/appname [/InstanceName]Note: The rtmp protocol must be specified. If not specified, Flash Player uses http to connect to the server, causing connection failure.The following code shows how to connect to the application server.My_nc: netconnection = new netconnection ();My_nc.connect ("
1. Successfully downloaded from the local FMS server to the FLV video.Ffplay Rtmp://192.168.6.237/vod/sample2. Successfully use FFmpeg to stream the video to the FMS live mode. Use Ffplay to access this URL.Ffmpeg-re-i sample_1.flv-c:a copy-c:v copy-f flv rtmp://192.168.6.237/live/1ffplay RTMP://192.168.6.237/LIVE/13. Push the audio to the FMS direct modeTurn WAV
1. Why to adjust the output block sizeFirst in the RTMP_CONNECT0 function librtmp is to turn off the Nagle algorithm This TCP option, in order to do this in real time is good, but notice that librtmp the structure of the RTMP member is m_outchunksize, and the default value of 128 is initialized in the Rtmp_init function, then the entire LIBRTMP code does not change the M_outchunksize interface function, and the internal does not change the m_outchunks
1, the company used before:Live: Rtmp+jwplayerOn demand: h5 (MP4 file)Cons: Poor compatibility, seemingly with the system version, browser, browser version is related. There is the rtmp push stream generated files are FLV format, need to transcode into MP4 to on-demand.2, the advantages of srs+flv.js:Of course, compatibility has greatly improved, in the PC-side Google, Firefox can play, mobile phone-side Fi
can be displayed normally, the FMS installation is successful. Video Playback page: C:\Program files\adobe\flash Media Server 3.5\samples\videoplayer\videoplayer.html, this page allows you to test the video for playback FMS has a default rtmp protocol file storage path: C:\Program files\adobe\flash Media Server 3.5\applications\vod\media such as playing sample video files C:\Program Files\adobe\flash Media Server 3.5\applications\vod\media\sample.
platforms found out you were doing so.
Moral aspects of the non-evaluation, single technically feasible, but there are some limitations.
The possible reasons are:
At present, most of the technology of the live platform is using the RTMP (real-time Messaging Protocol) protocol to transmit (host) and receive the live stream (viewer side).
These live platforms also use the HLS (HTTP live Streaming) protocol for live viewing in a mobile WEB e
, UDP may cause packet loss. To avoid this, you can add the-S parameter (for example,-s 320x240) to reduce the resolution.2.4. encoding: H.264, released RTP
The following command is used to obtain the camera data-> encode it as H.264-> encapsulate it as RTP and send it to the multicast address.
ffmpeg -f dshow -i video="Integrated Camera" -vcodec libx264 -preset:v ultrafast -tune:v zerolatency -f rtp rtp://233.233.233.223:6666>test.sdp
Note 1: To increase the encoding speed of libx264, the-pre
important component.
Streaming Media Servers: High-concurrency video servers, live streaming time shifting servers, P2P live broadcast servers, and video interaction application servers video application management: media content management systems, H. 264/MPEG-4 coding tools, set-top box terminal management system, program navigation and publishing system,
Streaming media servers use stream protocols (such as RTP/RTSP, MMS, and rtmp) to transmit vid
(fluorinefx.net) and FlexBuilder3Test environment: IE 8,CHROME,FF + Flash Player one-debug versionFirst, the Test Flow processing service program is writtenFirst, a new Fluorineservice project was created with VS 2008 and the application adapter class was added to determine the legality of the connection when Rtmp was connected AppConnect, that is, only if the rtmp connection Parameters[1] is "000" Connect
Objective: To build a crtmpserver
Streaming and playing rtmp to test server performance
During installation and configuration, record several issues.
Crtmpserver installation process:
1 Yum-y install cmake OpenSSL-devel GCC gcc-C ++ make SVN
2 service iptables stop
3 CD/usr/local/src
4 SVN co -- username Anonymous -- password "" https://svn.rtmpd.com/crtmpserver/branches/1.0 crtmpserver
5 CD crtmpserver/
6 sh cleanup. Sh
7 CD builders/cmake
8 cm
Use nginx to build a Streaming Media Server in ubuntu to implement on-demand video streaming and tung.pdf
First, let's see how to implement on-demand video. On-demand video streaming supports flv files, H264 encoded videos, and ACC-encoded audio mp4 files:Step 1: create a separate directory (because of the large number of software, it is easy to confuse) and download the required software:We need to download nginx, pcre, zlib, openssl, and nginx-rtmp-
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.