jbilcke-hf HF staff commited on
Commit
ef3ecd5
·
1 Parent(s): 6bf0e52

let's create an *official* Twitch channel

Browse files
Files changed (2) hide show
  1. scripts/stream3_twitch.sh +9 -0
  2. start.sh +1 -0
scripts/stream3_twitch.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ COUNT=0
4
+
5
+ echo "Starting FFMPEG live stream of channel 3 to Twitch"
6
+ while true; do
7
+ # Note: for now we also use channel 1 for audio!
8
+ ffmpeg -y -nostdin -re -f concat -safe 0 -i channel_3_video.txt -stream_loop -1 -safe 0 -i channel_1_audio.txt -loglevel error -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -shortest -f flv rtmp://cdg02.contribute.live-video.net/app/$WEBTV_TWITCH_API_KEY
9
+ done
start.sh CHANGED
@@ -37,6 +37,7 @@ sleep 1
37
  # bash scripts/stream1.sh &
38
  bash scripts/stream2.sh &
39
  bash scripts/stream3.sh &
 
40
 
41
  sleep 1
42
 
 
37
  # bash scripts/stream1.sh &
38
  bash scripts/stream2.sh &
39
  bash scripts/stream3.sh &
40
+ bash scripts/stream3_twitch.sh &
41
 
42
  sleep 1
43