From f636dd1ef7593a60aa8c287fb0346045a321cbc5 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Fri, 21 Oct 2022 12:28:07 -0400 Subject: Add captioning tools --- roles/caption/tasks/main.yml | 8 ++++++++ roles/stream/tasks/main.yml | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 roles/caption/tasks/main.yml (limited to 'roles') diff --git a/roles/caption/tasks/main.yml b/roles/caption/tasks/main.yml new file mode 100644 index 0000000..7b6534a --- /dev/null +++ b/roles/caption/tasks/main.yml @@ -0,0 +1,8 @@ +- name: Install packages + package: + name: + - python3-pip + - ffmpeg +- name: Install whisper + ansible.builtin.pip: + name: git+https://github.com/openai/whisper.git diff --git a/roles/stream/tasks/main.yml b/roles/stream/tasks/main.yml index 73040d6..b5ebcda 100644 --- a/roles/stream/tasks/main.yml +++ b/roles/stream/tasks/main.yml @@ -44,6 +44,9 @@ - name: Test by displaying the stream in mpv tags: test-stream-mpv, never local_action: shell mpv http://live0.emacsconf.org:{{ icecast_port }}/emacsconf/{{ icecast_test_track|d(gen) }}.webm +- name: Test by streaming a test pattern + tags: test-stream-pattern, never + local_action: shell ffmpeg -loglevel 32 -f lavfi -i testsrc=duration=10:size=1280x720:rate=30 -f webm icecast://emacsconf:{{ icecast_emacsconf_password }}@live0.emacsconf.org:{{ icecast_port }}/emacsconf/{{ icecast_test_track|d("gen") }}.webm # - name: Set up restream script # template: # src: restream-yt.sh -- cgit v1.2.3