Skip to content

Commit

Permalink
Merge pull request #303 from ant-media/load-testing-script
Browse files Browse the repository at this point in the history
Load testing script
  • Loading branch information
muratugureminoglu authored Jul 4, 2024
2 parents 6f21263 + f8383c0 commit 0ca6075
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions load-testing/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

11 changes: 11 additions & 0 deletions load-testing/hls_players.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0ca6075

Please sign in to comment.