1
0
Fork 0

scriptlet to start stream server

master
jebba 2021-07-14 22:34:16 -06:00
parent a55e783ae9
commit b415b9416b
2 changed files with 28 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.h265
*.mkv
*.swp

27
start-stream.sh 100755
View File

@ -0,0 +1,27 @@
#!/bin/bash
echo "Should make sure nothing is running..."
echo "Takes 2+ minutes to start"
date
sleep 1
echo "Remove old buffer files"
rm video.h265 video.mkv ; sync
echo "Start encoding..."
./rgb_encoding.py &
sleep 30
echo "Encode to Matroska"
ffmpeg -loglevel quiet -i video.h265 video.mkv &
sleep 60
echo "Serve Matroksa stream"
../mkvserver_mk2/server video.mkv 1>/dev/null 2>/dev/null &
echo "View stream at:"
echo "http://127.0.0.1:8080"