1
0
Fork 0
Browse Source

scriptlet to start stream server

master
jebba 12 months ago
parent
commit
b415b9416b
  1. 1
      .gitignore
  2. 27
      start-stream.sh

1
.gitignore vendored

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

27
start-stream.sh

@ -0,0 +1,27 @@ @@ -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"
Loading…
Cancel
Save