From b8c97d14ed81871eef51ba7253982c45258ec538 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sun, 30 Oct 2022 10:06:47 -0400 Subject: Add obs role --- roles/obs/templates/stream-desktop-with-ffmpeg.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 roles/obs/templates/stream-desktop-with-ffmpeg.sh (limited to 'roles/obs/templates/stream-desktop-with-ffmpeg.sh') diff --git a/roles/obs/templates/stream-desktop-with-ffmpeg.sh b/roles/obs/templates/stream-desktop-with-ffmpeg.sh new file mode 100755 index 0000000..273505b --- /dev/null +++ b/roles/obs/templates/stream-desktop-with-ffmpeg.sh @@ -0,0 +1,2 @@ +#!/bin/bash +while true; do ffmpeg -loglevel ${LOG:0} -ar 48000 -f alsa -channels 2 -sample_rate 48000 -i default -re -video_size {{ res_x }}x{{ res_y }} -framerate 25 -f x11grab -i :0.0 -cluster_size_limit 2M -cluster_time_limit 5100 -content_type video/webm -c:v libvpx -b:v 1M -crf 30 -g 125 -deadline good -threads 4 -f webm icecast://{{ icecast_emacsconf_user }}:{{icecast_emacsconf_password }}@live0.emacsconf.org:{{ icecast_port }}/{{ emacsconf_id }}/${1:{{ item.id }}}; sleep 5; done -- cgit v1.2.3