golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
578 B
27 lines
578 B
#!/bin/sh -e |
|
|
|
PUBLISHER_COUNT=50 |
|
PUBLISHER_PROTOCOL=tcp |
|
|
|
##################################################### |
|
# publishers |
|
|
|
CONF="" |
|
CONF="${CONF}pprof: yes\n" |
|
CONF="${CONF}paths:\n" |
|
CONF="${CONF} all_others:\n" |
|
echo -e "$CONF" > /source.conf |
|
|
|
/mediamtx /source.conf & |
|
|
|
sleep 1 |
|
|
|
for i in $(seq 1 $PUBLISHER_COUNT); do |
|
ffmpeg -hide_banner -loglevel error \ |
|
-re -stream_loop -1 -i /video.mkv -c copy -f rtsp \ |
|
-rtsp_transport $PUBLISHER_PROTOCOL rtsp://localhost:8554/source$i & |
|
done |
|
|
|
sleep 5 |
|
|
|
go tool pprof -text http://localhost:9999/debug/pprof/profile?seconds=15
|
|
|