Go to file
2012-03-23 21:41:31 +04:00
doc implement ext timestamp fix to make flash client recognize 32-bit timestamps 2012-03-22 01:00:52 +04:00
test implemented cmd module - a layer for amf0 call dispatching 2012-03-23 21:29:22 +04:00
AUTHORS improved frame timing & added meta files 2012-03-20 03:52:39 +04:00
config implemented cmd module - a layer for amf0 call dispatching 2012-03-23 21:29:22 +04:00
LICENSE improved frame timing & added meta files 2012-03-20 03:52:39 +04:00
ngx_rtmp.c implemented cmd module - a layer for amf0 call dispatching 2012-03-23 21:29:22 +04:00
ngx_rtmp.h implemented cmd module - a layer for amf0 call dispatching 2012-03-23 21:29:22 +04:00
ngx_rtmp_access_module.c implemented cmd module - a layer for amf0 call dispatching 2012-03-23 21:29:22 +04:00
ngx_rtmp_amf0.c implemented applications 2012-03-23 16:03:32 +04:00
ngx_rtmp_amf0.h implemented applications 2012-03-23 16:03:32 +04:00
ngx_rtmp_cmd_module.c implemented cmd module - a layer for amf0 call dispatching 2012-03-23 21:29:22 +04:00
ngx_rtmp_cmd_module.h implemented cmd module - a layer for amf0 call dispatching 2012-03-23 21:29:22 +04:00
ngx_rtmp_core_module.c implemented applications 2012-03-23 16:03:32 +04:00
ngx_rtmp_handler.c implement ext timestamp fix to make flash client recognize 32-bit timestamps 2012-03-22 01:00:52 +04:00
ngx_rtmp_live_module.c implemented cmd module - a layer for amf0 call dispatching 2012-03-23 21:29:22 +04:00
ngx_rtmp_receive.c added access control 2012-03-21 19:08:59 +04:00
ngx_rtmp_record_module.c implemented cmd module - a layer for amf0 call dispatching 2012-03-23 21:29:22 +04:00
ngx_rtmp_send.c implemented frame dropping 2012-03-18 17:09:19 +04:00
ngx_rtmp_shared.c implemented frame dropping 2012-03-18 17:09:19 +04:00
README added new features to README 2012-03-23 21:41:31 +04:00
TODO implemented cmd module - a layer for amf0 call dispatching 2012-03-23 21:29:22 +04:00

==nginx-rtmp-module==

NGINX-based RTMP server

* Live streaming of video/audio

* Recording published streams in FLV file

* 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)


Build:

cd to NGINX source directory & run this:

./configure --add-module=<path-to-nginx-rtmp-module>
make
make install


RMTP URL format:

rtmp://rtmp.example.com/<app>[/<name>]

<app> -  should match one of application {}
         blocks in config
<name> - interpreted by each application
         can be empty


Example nginx.conf:

rtmp {

    server {

        listen 1935;

        chunk_size 128;

        max_buf 1000000;

        #timestamp_fix off;

        # TV mode: one publisher, many subscribers
        application mytv {

            # enable live streaming
            live on;

            # record flvs to this dir
            record /tmp/av;

            # max flv size
            record_size 3000000;

            #wait_key_frame on;
            
            # publish only from localhost
            allow publish 127.0.0.1;
            deny publish all;

            #allow play all;
        }

        # Many publishers, many subscribers
        # no checks, no recording
        application videochat {

            live on;

        }

    }
}