The simplest FFmpeg-based streamer (taking pushing RTMP as an example) and ffmpegrtmpThis document records a simple FFmpeg-based streamer (simplest ffmpeg streamer ). The streamer is used to push local video data to the Streaming Media Server. The streamer recorded in this article can use streaming media protocols (such as RTMP, HTTP, UDP, TCP, RTP, etc.) to transfer local media files in MOV/AVI/MKV/MP4/FLV
simple-rtmp-server Server Setup1. Server Image Acquisition
GitHub Source Address
git clone https://github.com/winlinvip/simple-rtmp-server.git
CSDN Mirror Address
git clone https://code.csdn.net/winlinvip/srs-csdn.git
Oschina Mirroring
git clone https://git.oschina.net/winlinvip/srs.oschina.git2. Turn off firewalls and selinux or open ports
Shutting down th
1. Compile nginx that can be used in android and add the option -- add-module =/path/nginx-rtmp-module, prepare ffmpeg files and related library files that can be used by shell on android and m3u8 segmenter files.2. Put the compiled nginx files in the data/android. nginx directory of the mobile phone to this directory.3. Compile the configuration file--------------------------------- Nginx. conf start here ---------------------------------------------
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
Standard Specification Learning:
RTMP message structure, including several parts: timestamp: 4 byte, in milliseconds. is flipped when the maximum value is exceeded. Length: The length of the message payload. Type Id:type ID part of the ID range used for rtmp control signaling. There is also a part to use for the upper layer, rtmp is just a pass. This makes
Simple RTMP Server is an open source Rtmp/hls streaming media server written by people in the ROC. Functions are similar to nginx-rtmp-module, enabling the distribution of Rtmp/hls.Reference to the Nginx-rtmp-module: http://blog.csdn.net/redstarofsleep/article/details/450921
Objective
I believe we all know nginx is a very good open source server, use it to do HLS or rtmp streaming media server is a very good choice, so small set up the installation process online, now share to everyone and make a memo. Have the need of friends can refer to study, let's take a look together.
I. Installation of Homebrow
Brow has been installed to skip this step directly.
Execute command
Ruby-e "$ (curl-fssl https://raw.githubuse
Your Nginx already has the RTMP live function, if you also want to count a live channel currently viewing the user volume, you can join the With-http_xslt_module module. The steps are as follows:1. View the original parameters/usr/local/nginx/sbin/nginx-vThe output can be obtained from the original compile-time parameters, such as the author obtained:--user=nginx--group=nginx--with-http_stub_status_module--with-http_gzip_static_module--with-http_ssl_
transport protocol such as UDP.
The RTSP protocol currently supports the following operations:
Retrieving media: allows a user to submit a presentation description to the media server via HTTP or another method. If the representation is multicast, the description contains the multicast address and port number used for the media stream, and if it is unicast, the destination address should only be provided for security in the presentation description.
invitation to join: The media server
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
/1.1, RTSP requests can be handled by proxies, channels, or caches.
RTMP VS tcpudp (2011-08-30 10:57:53) reprint
Tags: topics
Category: Audio and video
1, TCP is a point-to-point protocol, which means that each customer needs to separate client/server links, so that data broadcasts to multiple clients cannot be implemented at the network level. If a data stream must be delivered to multiple clients at the same time, the serve
HTTP (Hypertext Transfer Protocol), RTSP (Real time Streaming protocol live streaming protocol), RTMP (Routing Table Maintenance Protocol Routing Tables Maintenance Protocol) is the application layer protocol, Theoretically all can do live, on-demand, in fact, live more than rtmp and RTSP, on-demand is more use RTSP and HTTP.First, common areas:
HTTP (HTTPS) all data as text processing, widely used
The process of doing a lot of problems, the environment actually needs Nginx can, and then is in the playback of the problem, m3u8 format, Mac direct access to support, Apple system native H5 support m3u8, there is also direct access to mobile phone support! But other PC side does not support, tried a lot of not, finally found a support m3u8 format H5 play (https://github.com/huangyaoxin/hLive download on the line js.css loading OK)!Reference: http://blog.csdn.net/zph1234/article/details/5284622
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
HTTP (Hyper-Text Transfer Protocol), RTSP (Real Time Streaming protocol live Stream Transfer Protocol), RTMP (Routing Table Maintenance Protocol Routing Tables Maintenance Protocolis the application layer protocol, theoretically can do live, on-demand, in fact, live more than rtmp and RTSP, on-demand and more with RTSP and HTTP. First, common areas:
HTTP (HTTPS) all data as text processing, widely
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
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
SRS is a Chinese development of a video server, the use of support rtmp and HLS protocol, can be made into a container, let the client push the stream, or can be combined with ffmpeg own initiative to pull the stream, detailed instructions can view the SRS wiki:Https://github.com/ossrs/srs/wiki/v2_CN_HomeSrs:http://ossrs.net/srs.release/releases/index.htmlSRS Web Player: http://www.ossrs.net/players/srs_player.html?stream=livestreamport=19350#Ffmpeg:h
: 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
Tags: blank import max col Change RTM restart success typesOriginal address: 80063031Recently built a local nginx server based on rtmp, did not expect the first step cloning error: Homebrew/nginx was deprecated. This tap was now the empty as all its formulae were migrated. Specific as follows:The first step is to use:Add Nginx clone to local $ brew tap Homebrew/nginxThe error is as follows:The reason for this is that Homebrew/nginx's git path has chan
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.