Preface
Recent projects require streaming media playback, the backend provides three kinds of streaming data (Rtsp,rtmp,hls), in different scenarios may be used in different ways to play, you need to adapt to support all streaming data playback. Spent a period of time studying, here and share with you, there are some lingering problems to see if we have a good way. RTSP Brief Introduction
This protocol stream data in front of the play, there is no pa
: This article describes how to build an rtmp VOD system for nginx development (3). For more information about PHP tutorials, see. 1:/create multimedia/rtmp in the/usr/local/nginx/html/Directory
2: copy the file 1. flv to the Directory
3: open usr/local/nginx/conf/nginx. conf and modify it as follows:
Rtmp {# Rtmp
Overview: TCP Establish a connection. rtmp shook hands. • The client and server agree on setting up an rtmp connection. • Create RTMP streams • The client and server agree on play or publish. • The client begins transmitting data to the server. • Message structure Brief tcp establish a connection TCP three times handshake rtm
Tags: rtmpMac is currently only available by manually installing1. Download Nginx Here is recommended to go to the official website. At the same time do not under the latest. I did not find the file in the Nginx conf on git because it was not finished downloading or the file on Git is incomplete.2. Download Nginx-rtmp-module This git is downloaded just fine3. Installation actually nginx-rtmp-module the auth
Configuration referenceHttps://github.com/simple-rtmp-server/srs/wiki/v2_CN_LowLatencyLatency Impact factorsEncoders: Different encoders (free or open source), the delay is also different.Streaming Media server: SRS2Streaming protocol: For example: RTMP is real-time high, http_flv is also high-real-time, HLS is not, the official said 60s can tolerate ...Player: VLC is slower than Ffplayer and player.Network
session identifier)s = (session name)i = * (Session information)u = * (URI description)E = * (email address)p = * (phone number)c = * (connection information-if included in all media, this field is not required)b = * (Bandwidth information)One or more time descriptions (see below):z = * (Time zone Adjustment)k = * (encryption key)A = * (0 or more session property rows)0 or more media descriptions (as shown below)Time descriptionT = (Session activity time)R = * (0 or more repetitions)Media descr
= * (Session information)u = * (URI description)E = * (email address)p = * (phone number)c = * (connection information-if included in all media, this field is not required)b = * (Bandwidth information)One or more time descriptions (see below):z = * (Time zone Adjustment)k = * (encryption key)A = * (0 or more session property rows)0 or more media descriptions (as shown below)Time descriptionT = (Session activity time)R = * (0 or more repetitions)Media descriptionm = (media name and transport add
The F value contains an rtmp video stream address. Pay attention to the format, rtmp: // ip/live (stream address)/livestream (instance name)[Note] for multi-level directories, for example, the address is rtmp: // localhost/vod/AB/c. Two modifications are required for playing in ckplayer:1. Modify ckplayer. js and ckplayer. ck. pm_spac = '|'; change to ck.
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, T
About the use of rtmpdump, many of the applications in the Windows platform, Thor has to do a series of analysis, but Raytheon is mainly based on the Windows platform. The main task of this article is to migrate the project from the simplest librtmp example: Release H.264 (H.264 through Rtmp) to the Linux system, while fixing some problems and adding a description.
Before using the project, there should be a rtmp
: This article mainly introduces the nginx Reverse proxy TCP to fetch the RTMP stream. if you are interested in the PHP Tutorial, refer to it. Nginx Reverse proxy TCP, get RTMP stream
I. descriptionNginx only supports HTTP reverse proxy by default. to support TCP reverse proxy, you must add the tcp proxy module nginx_tcp_proxy_module.
II. raw materials1. nginx_tcp_proxy_module:Wget https://github.com/yaowe
command:HG Clone Http://hg.nginx.org/nginxAfter the download is successful, the Nginx source folder is created in the mercurial installation directory.Iii. adding dependent resource bundlesIn the Nginx source code to create the Objs\lib folder, where this name is only the convention of the custom, can not be the two names. And the downloaded Nginx-rtmp-module-master, OpenSSL, Pcre, zlib respectively extracted under the Lib folder.The above actions ca
Nginx builds one of the streaming media servers supporting http and rtmp protocolsPurpose:Enable Nginx to support flv and mp4 files and RTMP live and on-demand video;Enable the rtmp hls FunctionMATERIALS:HTTP Live Streaming (HLS) is an HTTP-based Streaming media network transmission protocol proposed by Apple.HLS only requests basic HTTP packets. Unlike the real-
command:HG Clone Http://hg.nginx.org/nginxAfter the download is successful, the Nginx source folder is created in the mercurial installation directory.Iii. adding dependent resource bundlesIn the Nginx source code to create the Objs\lib folder, where this name is only the convention of the custom, can not be the two names. And the downloaded Nginx-rtmp-module-master, OpenSSL, Pcre, zlib respectively extracted under the Lib folder.The above actions ca
1, the project needs to use FFmpeg push rtmp stream to Crtmpserver, and then live./usr/bin/ffmpeg-re-loop 1-i tmp/234.jpg-r 10-f flv rtmp://127.0.0.1:8085/live/phone-2342, download Crtmpserver source code, official website (http://www.rtmpd.com/) often not go, to GitHub downloadHttps://github.com/j0sh/crtmpserver3, need to install CMake and then compile.Yum Install CMakeCD Crtmpserver/builders/cmakeCMake.Ma
Previous open-Source Videocore improvements: 1) added a beauty filter; 2) added the librtmp to replace the original too simple rtmpclient;Later listen to friends said, in Videocore above OpenGL modification, add new filter More trouble, iOS filter best to calculate gpuimage.I decided to the multi-filter open-source gpuimage to achieve the rtmp live streaming push;Implementation of the scenario:1,gpuimagemoviewriter the output of the RGBA video data.By
Android audio and video goes deep into FFmpeg to implement Rtmp-based streaming (with source code download) and ffmpegrtmp
Source Code addressHttps://github.com/979451341/Rtmp1. Configure the RTMP Server
I don't want to post two blogs on mac and windows respectively.
Set up an RTMP server on MACHttps://www.jianshu.com/p/6fcec3b9d644This is on windows, and the
For text chat rooms, as well as multiple screen interaction, we understand a lot more, I know there are two kinds of sockets and XMPP protocol. If we use Red5, a streaming media server based on Flash, in the development of live video, or voice chat rooms, we can use RTMP,RTSP. One, what is the main feature of the Red5 Red5 is similar to the Macromedia Company's FMS, a Java based Open-source streaming media server that provides streaming media ser
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.