Spaces:
Build error
Build error
Commit
·
92fa81d
1
Parent(s):
6ac357b
trying something
Browse files- scripts/init.sh +7 -2
- scripts/stream.sh +5 -3
- start.sh +1 -1
scripts/init.sh
CHANGED
@@ -7,8 +7,13 @@ mkdir -p $WEBTV_AUDIO_STORAGE_PATH
|
|
7 |
echo "creating the playlists.."
|
8 |
echo "ffconcat version 1.0" > list_a.txt
|
9 |
echo "ffconcat version 1.0" > list_b.txt
|
10 |
-
echo "
|
11 |
-
echo "
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
echo "create the named pipes.."
|
14 |
mkfifo video.pipe
|
|
|
7 |
echo "creating the playlists.."
|
8 |
echo "ffconcat version 1.0" > list_a.txt
|
9 |
echo "ffconcat version 1.0" > list_b.txt
|
10 |
+
echo "ffconcat version 1.0" > audio_list_a.txt
|
11 |
+
echo "ffconcat version 1.0" > audio_list_b.txt
|
12 |
+
|
13 |
+
echo "file 'list_b.txt'" >> list_a.txt
|
14 |
+
echo "file 'list_a.txt'" >> list_b.txt
|
15 |
+
echo "file 'audio_list_b.txt'" >> audio_list_a.txt
|
16 |
+
echo "file 'audio_list_a.txt'" >> audio_list_b.txt
|
17 |
|
18 |
echo "create the named pipes.."
|
19 |
mkfifo video.pipe
|
scripts/stream.sh
CHANGED
@@ -8,12 +8,14 @@ while true; do
|
|
8 |
echo "--- video list_a.txt ---"
|
9 |
cat list_a.txt
|
10 |
|
11 |
-
echo "--- audio_list_a.txt ---"
|
12 |
-
cat audio_list_a.txt
|
13 |
fi
|
14 |
sleep 1
|
15 |
((COUNT++))
|
16 |
echo "Trying to create the final stream.."
|
17 |
-
ffmpeg -y -nostdin -re -f concat -safe
|
|
|
|
|
18 |
echo "Final stream got interrupted, will try again in 1 sec"
|
19 |
done
|
|
|
8 |
echo "--- video list_a.txt ---"
|
9 |
cat list_a.txt
|
10 |
|
11 |
+
#echo "--- audio_list_a.txt ---"
|
12 |
+
#cat audio_list_a.txt
|
13 |
fi
|
14 |
sleep 1
|
15 |
((COUNT++))
|
16 |
echo "Trying to create the final stream.."
|
17 |
+
ffmpeg -y -nostdin -re -f concat -safe O -i "list_a.txt" -loglevel error -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/webtv
|
18 |
+
# ffmpeg -y -nostdin -re -f concat -safe O -i "list_a.txt" -i "audio_list_a.txt" -loglevel error -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/webtv
|
19 |
+
|
20 |
echo "Final stream got interrupted, will try again in 1 sec"
|
21 |
done
|
start.sh
CHANGED
@@ -11,7 +11,7 @@ node ./media-server.js &
|
|
11 |
sleep 1
|
12 |
|
13 |
# background process that creates an audio stream from audio files
|
14 |
-
bash scripts/audio.sh &
|
15 |
|
16 |
# background process that creates a video stream from video files
|
17 |
bash scripts/video.sh &
|
|
|
11 |
sleep 1
|
12 |
|
13 |
# background process that creates an audio stream from audio files
|
14 |
+
# bash scripts/audio.sh &
|
15 |
|
16 |
# background process that creates a video stream from video files
|
17 |
bash scripts/video.sh &
|