Spaces:
Build error
Build error
File size: 751 Bytes
07ae658 f64828c 07ae658 0b2f8ce 07ae658 0b2f8ce 07ae658 0b2f8ce 07ae658 f64828c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#!/bin/bash
# initialize the stream pipes
bash ./scripts/init.sh
# ------ background processes ---------
# starts the streaming server first, otherwise ffmpeg won't find it
node ./media-server.js &
sleep 1
# background process that creates an audio stream from audio files
# bash scripts/audio1.sh &
# bash scripts/audio2.sh &
# background process that creates a video stream from video files
bash scripts/video1.sh &
bash scripts/video2.sh &
sleep 1
# background process that sends data to the media server
bash scripts/stream1.sh &
bash scripts/stream2.sh &
sleep 1
# here we have the possibility of using multiple workers
# buf if we do that, we will have to split the workload (split the prompts)
WEBTV_WORKER_INSTANCE_ID=1 npm run start |