2012-03-20 00:52:39 +01:00
|
|
|
==nginx-rtmp-module==
|
|
|
|
|
|
|
|
NGINX-based RTMP server
|
|
|
|
|
|
|
|
* Live streaming of video/audio
|
|
|
|
|
|
|
|
* Advanced buffering techniques
|
|
|
|
to keep memory allocations at a minimum
|
|
|
|
level for faster streaming and low
|
|
|
|
memory footprint
|
|
|
|
|
|
|
|
* Works with Flash RTMP clients as well as
|
|
|
|
ffmpeg/rtmpdump/flvstreamer etc
|
|
|
|
(see examples in test/ subdir)
|
|
|
|
|
|
|
|
|
2012-03-20 05:15:09 +01:00
|
|
|
Build:
|
|
|
|
|
|
|
|
cd to NGINX source directory & run this:
|
|
|
|
|
2012-03-20 05:16:04 +01:00
|
|
|
./configure --add-module=<path-to-nginx-rtmp-module>
|
2012-03-20 05:15:09 +01:00
|
|
|
make
|
|
|
|
make install
|
|
|
|
|
|
|
|
|
2012-03-20 00:52:39 +01:00
|
|
|
Example nginx.conf:
|
|
|
|
|
|
|
|
|
|
|
|
rtmp {
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
|
|
|
listen 1935;
|
|
|
|
|
|
|
|
wait_key_frame on;
|
|
|
|
|
|
|
|
chunk_size 128;
|
|
|
|
|
|
|
|
max_buf 1000000;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|