From 64494face920fec3cbf0b9ab8bfebbe6ba16776b Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Wed, 26 Jun 2024 02:17:32 +0530 Subject: [PATCH] Create hls_players.sh --- load-testing/hls_players.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 load-testing/hls_players.sh diff --git a/load-testing/hls_players.sh b/load-testing/hls_players.sh new file mode 100644 index 00000000..a6e10424 --- /dev/null +++ b/load-testing/hls_players.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +m3u8_url=$1 +viewers=$2 + +for (( i=1; i <= $viewers; ++i )) +do + COMMAND="ffmpeg -i "$m3u8_url" -codec copy -f null /dev/null" + $COMMAND &>>/dev/null & + echo "running command $COMMAND" + done