From aa29f6bacbd79d92f5200816da55badb2c9f190d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz> Date: Thu, 3 Dec 2020 16:01:51 +0100 Subject: [PATCH] Uprava formatu jmena souboru, records --- nginx.conf | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/nginx.conf b/nginx.conf index ccc238f..eb42334 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,6 +17,7 @@ rtmp { on_publish http://pitube:3000/callback/rtmp; on_publish_done http://pitube:3000/callback/rtmp; on_update http://pitube:3000/callback/rtmp; + on_record_done http://pitube:3000/callback/recorder; notify_update_timeout 15s; hls on; @@ -25,7 +26,7 @@ rtmp { recorder all { record all manual; - record_suffix -%y%m%d-%h%m%s.flv; + record_suffix -%Y%m%d-%H%M%S.flv; record_path /records; record_unique on; record_max_size 4000m; @@ -33,16 +34,12 @@ rtmp { recorder audio { record audio manual; - record_suffix -%y%m%d-%h%m%s.audio.flv; + record_suffix -%Y%m%d-%H%M%S.audio.flv; record_path /records; record_unique on; record_max_size 500m; } - - } - - } } @@ -72,6 +69,12 @@ http { add_header Access-Control-Allow-Origin *; } + location /records { + auth_request /callback/record; + alias /records; + add_header Access-Control-Allow-Origin *; + } + location /stat { rtmp_stat all; rtmp_stat_stylesheet static/stat.xsl; -- GitLab