-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Tutorial
RTMP is a proprietary protocol developed by Adobe (Macromedia) for use in flash player. Until 2009 it had no public specification. A number of third-party RTMP-related products started in that period were based on the results of reverse engineering. In 2009 RTMP specification has been published which made developing such applications easier. However the spec is not full and misses significant issues concerning streaming H264.
The module has been tested on Linux x86-family platforms. However it should work on FreeBSD too.
Buuilding is pretty obvious. Just cd to nginx source directory and configure nginx this way:
./configure --add-module=/path/to/nginx-rtmp-module
HLS support is provided by a separate module. To add HLS use the following configure line:
./configure --add-module=/path/to/nginx-rtmp-module --add-module=/path/to/nginx-rtmp-module/hls
Then make
and make install
.
iPhone requires H264 stream to be encoded with baseline profile. If not follow this rule the video will be jerky.
To watch RTMP stream in browser one should either develop flash application for that or use one of available flash players. The most popular players which are proved to have no problems with the module are:
Old versions of JWPlayer (<=4.4) supported capturing video from webcam. You can find that version in test/ subdirectory. However audio is not captured by this version of player. Recent free versions of JWPlayer have no capture capability at all.