Skip to content

Commit

Permalink
Create rtmp_publisher.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yashtandon113 authored Aug 15, 2024
1 parent ef53a61 commit 039806e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions load-testing/rtmp_publisher.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
Server=$1
NoOfClients=$2

for (( i=1; i <= $NoOfClients; ++i ))
do
COMMAND="ffmpeg -re -stream_loop -1 -i /Users/yashtandon/Downloads/Video/test.mp4 -codec copy -f flv ${Server}_${i}"
$COMMAND >/dev/null 2>&1 &
echo "running command $COMMAND"
sleep 1
done

0 comments on commit 039806e

Please sign in to comment.