File size: 1,222 Bytes
07ae658
 
 
 
 
36cf416
6457a5e
2feb1a6
36cf416
 
2b32286
36cf416
fb04e43
ba98e69
6457a5e
07ae658
 
f64828c
07ae658
 
 
 
6156cfb
 
 
 
07ae658
78d82f1
fb04e43
07ae658
f1ee3c6
89425e6
07ae658
 
 
 
bc6f13d
 
89425e6
07ae658
36b627a
 
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash

# initialize the stream pipes
bash ./scripts/init.sh

# ------------ UPDATE MUSIC ------------
# echo "skipping new music download"
bash scripts/download_fresh_music.sh

# ---------- CONTENT ALIGNMENT ---------
bash scripts/censorship.sh

# ----------- ARCHIVE OLD, UNINTERESTING VIDEOS -------
# bash scripts/decimate_content.sh

# ------ background processes ---------

# starts the streaming server first, otherwise ffmpeg won't find it
node ./media-server.js &

sleep 1

bash scripts/interpolate.sh &

sleep 1

# background process that creates an audio stream from audio files
bash scripts/audio1.sh &
# bash scripts/audio2.sh &

# [LEGACY] background process that creates a video stream from video files
# bash scripts/legacy_video3.sh &

sleep 1

# background process that sends data to the media server
bash scripts/channel_random.sh &
bash scripts/channel_comedy.sh &
bash scripts/channel_documentary.sh &

# let's disable twitch since it is the same content on loop for now
# bash scripts/channel_random_twitch.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