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