Skip to content

Commit

Permalink
Create srt_publishers.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yashtandon113 authored Aug 15, 2024
1 parent c9b072e commit fc8a09d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions load-testing/srt_publishers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
file=$1
server=$2
noofclients=$3

for (( i=1; i <= $noofclients; ++i ))
do
COMMAND="ffmpeg -re -stream_loop -1 -i ${file} -codec copy -f mpegts ${server}_${i}"
$COMMAND >/dev/null 2>&1 &
echo "running command $COMMAND"
sleep 1
done

0 comments on commit fc8a09d

Please sign in to comment.