From 039806e269380c603404646a319ff4cae3099928 Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Thu, 15 Aug 2024 16:47:16 +0530 Subject: [PATCH] Create rtmp_publisher.sh --- load-testing/rtmp_publisher.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 load-testing/rtmp_publisher.sh diff --git a/load-testing/rtmp_publisher.sh b/load-testing/rtmp_publisher.sh new file mode 100644 index 00000000..21a2bf0d --- /dev/null +++ b/load-testing/rtmp_publisher.sh @@ -0,0 +1,11 @@ +#!/bin/bash +Server=$1 +NoOfClients=$2 + +for (( i=1; i <= $NoOfClients; ++i )) +do + COMMAND="ffmpeg -re -stream_loop -1 -i /Users/yashtandon/Downloads/Video/test.mp4 -codec copy -f flv ${Server}_${i}" + $COMMAND >/dev/null 2>&1 & + echo "running command $COMMAND" + sleep 1 +done