From d6deef93355ed4058c925cdbcec0015c33c99184 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 5 Apr 2021 01:59:32 +0200 Subject: use ffmpeg generic segmenter for rtmp/streamer recording feature as well --- roles/streaming/rtmp/streamer/tasks/main.yml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'roles/streaming/rtmp/streamer/tasks') diff --git a/roles/streaming/rtmp/streamer/tasks/main.yml b/roles/streaming/rtmp/streamer/tasks/main.yml index c5caf471..1715bdf9 100644 --- a/roles/streaming/rtmp/streamer/tasks/main.yml +++ b/roles/streaming/rtmp/streamer/tasks/main.yml @@ -21,21 +21,13 @@ content: "{{ rtmp_streamer_config | combine({'rtmp_base_url': 'rtmp://127.0.0.1/'+rtmp_streamer_app_name}) | to_nice_yaml }}\n" dest: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/config.yml" -- name: enable recording - when: rtmp_streamer_recording_enabled | bool - block: - - name: create recording directory - file: - path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/recordings" - state: directory - owner: app - group: app - - - name: generate recording script - template: - src: record.sh.j2 - dest: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/record.sh" - mode: 0755 +- name: create recording directory + when: rtmp_streamer_recording is defined + file: + path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/recordings" + state: directory + owner: app + group: app - name: install pod manifest vars: @@ -49,6 +41,5 @@ - path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/config.yml" properties: - checksum - ## TODO: add record.sh if recording is enabled include_role: name: kubernetes/standalone/pod -- cgit v1.2.3