summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html11
-rwxr-xr-xstream1
2 files changed, 12 insertions, 0 deletions
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..bbc95ee
--- /dev/null
+++ b/index.html
@@ -0,0 +1,11 @@
1<html>
2 <head>
3 <title>livestream: live.mpd</title>
4 </head>
5 <body>
6 <video>
7 <source src="live.mpd" />
8 Your browser does not support the video tag.
9 </video>
10 </body>
11</html>
diff --git a/stream b/stream
index d4b3317..0514e89 100755
--- a/stream
+++ b/stream
@@ -7,6 +7,7 @@ hostname=$(cryptonomic hostname)
7dashname=dash 7dashname=dash
8dashdir=$srvdir/public_html/$dashname 8dashdir=$srvdir/public_html/$dashname
9sudo mkdir -p "$dashdir" 9sudo mkdir -p "$dashdir"
10install -m0644 index.html -t "$dashdir"
10sudo chown "$USER:$GROUP" "$dashdir" 11sudo chown "$USER:$GROUP" "$dashdir"
11printf '%s\n' "https://$hostname/$dashname/live.mpd" 12printf '%s\n' "https://$hostname/$dashname/live.mpd"
12./ffmpeg.sh "$dashdir" 13./ffmpeg.sh "$dashdir"