From fc8a09da74d239b5fb32f60a7dca06b6b554e410 Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Fri, 16 Aug 2024 02:28:08 +0530 Subject: [PATCH] Create srt_publishers.sh --- load-testing/srt_publishers.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 load-testing/srt_publishers.sh diff --git a/load-testing/srt_publishers.sh b/load-testing/srt_publishers.sh new file mode 100644 index 00000000..f2f5cbe4 --- /dev/null +++ b/load-testing/srt_publishers.sh @@ -0,0 +1,12 @@ +#!/bin/bash +file=$1 +server=$2 +noofclients=$3 + +for (( i=1; i <= $noofclients; ++i )) +do + COMMAND="ffmpeg -re -stream_loop -1 -i ${file} -codec copy -f mpegts ${server}_${i}" + $COMMAND >/dev/null 2>&1 & + echo "running command $COMMAND" + sleep 1 +done