Releases: uizaio/nginx-rtmp-module
Releases · uizaio/nginx-rtmp-module
Fix an error while mapping tier and bw limit configuration
Update time of session in ngx_rtmp_stat_module
Update time of session in stream when drop stream over bandwidth.
rename node_meta_video to node_rtmp_meta_video
2.0.4.6 Update ngx_rtmp_stat_module.h
Drop client metric, add framerate into video duration metric
- 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
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
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
Fix: do not clean init.mp4 while streaming is running
Limit ingest bandwidth
Limit ingest bandwidth
Add dvr fragment length and gop size
We add 2 options for live streaming:
- DVR fragment length
- gop size of each live streaming fragment
fix can not build
fix can not build