Skip to content

Releases: uizaio/nginx-rtmp-module

Fix an error while mapping tier and bw limit configuration

04 Apr 10:30
addc4bc
Compare
Choose a tag to compare

Bugfix:
#24 Fix a bug when mapping the value of transcode_limit_bandwidth with tier

Update time of session in ngx_rtmp_stat_module

24 Mar 10:14
a34264c
Compare
Choose a tag to compare

Update time of session in stream when drop stream over bandwidth.

rename node_meta_video to node_rtmp_meta_video

05 Mar 10:34
9fc0dbd
Compare
Choose a tag to compare
2.0.4.6

Update ngx_rtmp_stat_module.h

Drop client metric, add framerate into video duration metric

05 Mar 03:47
6ef022b
Compare
Choose a tag to compare
  • Since we're not using client rtmp for playback, we will drop all metrics related to client side
  • Add FPS into video meta duration for reporting purpose

Limit ingest video by bandwidth

26 Feb 08:54
Compare
Choose a tag to compare

How to config:

application live {
            live on;
            transcode on;
            transcode_path /tmp/live;
            transcode_nested on;
            transcode_fragment 2;
            transcode_playlist 30m;
            transcode_format fmp4;
            transcode_fragment_naming timestamp;
            transcode_cleanup on;
            transcode_dvr on;
            transcode_dvr_path /tmp/dvr;
            notify_method get;
            transcode_hide_stream_key on;
            # transcode_gop 12;
	    transcode_limit_bandwidth 1000 2000;
	    notify_method get;
	    on_publish http://localhost:8080/auth;
        }

1000 is for tier 1
2000 is for tier 2
Unit is kbs, 1000 ~ 1000kbs video bitrate

Allow limit ingest bandwidth

17 Feb 03:10
Compare
Choose a tag to compare

Allow limit ingest bandwidth
We use transcode_limit_bandwidth param to limit, each input for tier.
For example:

worker_processes 1;
error_log /var/log/nginx/error.log debug;
pid /var/log/nginx/nginx-worker.pid;
events{
	worker_connections  1024;
}
rtmp {
    server {
        access_log /dev/stdout;
        listen 1935;        
        #listen 9100;
        drop_idle_publisher 10s;

        chunk_size 4000;        
        application live {
            live on;
            transcode on;
            transcode_path /tmp/live;
            transcode_nested on;
            transcode_fragment 2;
            transcode_playlist 30m;
            transcode_format fmp4;
            transcode_fragment_naming timestamp;
            transcode_cleanup on;
            transcode_dvr on;
            transcode_dvr_path /tmp/dvr;
            notify_method get;
            transcode_hide_stream_key on;
            # transcode_gop 12;
	    transcode_limit_bandwidth 1000 2000;
	    notify_method get;
	    on_publish http://localhost:8080/auth;
        }
    }
}

http {
	server {
		listen 8080;
		location /auth {
                access_by_lua_block {
                    	ngx.status = ngx.HTTP_OK;
                    	ngx.say("02edee1d-5aaf-470b-965b-42bb59bd1627")
                    	ngx.exit(ngx.HTTP_OK);
                	}
        	}	
	}
}

Fix: do not clean init.mp4 while streaming is running

29 Nov 09:46
Compare
Choose a tag to compare

Fix: do not clean init.mp4 while streaming is running

Limit ingest bandwidth

14 Feb 04:57
Compare
Choose a tag to compare
Pre-release

Limit ingest bandwidth

Add dvr fragment length and gop size

15 Nov 03:19
42ca6a4
Compare
Choose a tag to compare

We add 2 options for live streaming:

  • DVR fragment length
  • gop size of each live streaming fragment

fix can not build

12 Nov 11:08
42ca6a4
Compare
Choose a tag to compare

fix can not build