2023-07-13 10:20:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Set FFMPEG_PATH if it's not already set
|
|
|
|
export FFMPEG_PATH=/usr/local/srs/objs/ffmpeg/bin/ffmpeg
|
|
|
|
|
2023-07-07 20:46:50 +00:00
|
|
|
# Start S3 upload tool
|
|
|
|
cd /usr/local/srs/upload
|
|
|
|
npm start &
|
|
|
|
|
2023-07-08 18:57:17 +00:00
|
|
|
# Clear HLS temp directory if needed
|
|
|
|
if [ -d "/usr/local/srs/hls" ]; then
|
|
|
|
rm -rf /usr/local/srs/hls/*
|
|
|
|
fi
|
|
|
|
|
2023-07-07 20:46:50 +00:00
|
|
|
# Start SRS
|
|
|
|
cd /usr/local/srs
|
|
|
|
./objs/srs -c conf/mysrs.conf
|
2023-07-08 18:57:17 +00:00
|
|
|
|