Skip to content

Commit

Permalink
Create hls_players.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yashtandon113 authored Jun 25, 2024
1 parent b6b9874 commit 64494fa
Showing 1 changed file with 11 additions and 0 deletions.
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 64494fa

Please sign in to comment.