From 391c4d5fe1a08739c4abae8f99a87533e756c3bf Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 10 Jun 2014 11:50:13 +0200 Subject: [PATCH] set rtmp's record_interval to 5 minutes (restart rtmpd on deploy!) --- config/rtmp.conf.erb | 3 ++- config/settings.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/rtmp.conf.erb b/config/rtmp.conf.erb index 88e7dde8c..8492555b9 100644 --- a/config/rtmp.conf.erb +++ b/config/rtmp.conf.erb @@ -29,7 +29,8 @@ rtmp { record_unique on; record_max_size <%= record_max_size %>; #record_lock on; - + record_interval <%= record_interval %>; + # --- Exec # # live transcode to wave file while recording # # (connection needs to be permitted by rack middleware) diff --git a/config/settings.yml b/config/settings.yml index e22434c8e..92a1ed6ae 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -26,7 +26,8 @@ rtmp: # callback_base must be an absolute url and is used for # notifications `/notify` and authentication `/auth` callback_base: 'http://0.0.0.0:3000/rtmp' - record_max_size: '100M' + record_max_size: 100M + record_interval: 5m authenticate: true worker_processes: 1 errbit: