diff --git a/Makefile b/Makefile index 0ef089f85875fc28989a89402da64e68f7adf83f..cf8e856a68d7f982be0c3be273366f01aec1d1b1 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ install: pip install --user ffpb stream: - vlc --no-dbus -vv --sout-keep --sout '#gather:std{access=http{mime=video/mp4},mux=ts,dst=:8888/}' --sout-all --loop + vlc --no-dbus -vv --sout-keep --sout '#transcode{vcodec=theo,venc=theora{quality=9},acodec=vorb,channels=2}:gather:std{access=http{mime=video/ogg},mux=ogg,dst=:8888/}' --sout-all --loop cleanup: @echo "Cleaning up outdir" @rm -rfv "${OUT_DIR}" diff --git a/assets/dist/index.html b/assets/dist/index.html new file mode 100644 index 0000000000000000000000000000000000000000..1a4aae9181d9fa7a48f5b53d8d76e26dbce7f928 --- /dev/null +++ b/assets/dist/index.html @@ -0,0 +1,14 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>s3rius radio</title> + </head> + <body> + <video id="video" controls src="/stream" height="598" width="782" type="video/ogg; codecs=theora" autoplay="autoplay"> + Your user agent does not support the HTML5 Video element. + </video> + </body> +</html> + diff --git a/assets/index.html b/assets/index.html new file mode 100644 index 0000000000000000000000000000000000000000..1a4aae9181d9fa7a48f5b53d8d76e26dbce7f928 --- /dev/null +++ b/assets/index.html @@ -0,0 +1,14 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>s3rius radio</title> + </head> + <body> + <video id="video" controls src="/stream" height="598" width="782" type="video/ogg; codecs=theora" autoplay="autoplay"> + Your user agent does not support the HTML5 Video element. + </video> + </body> +</html> + diff --git a/assets/scripts/install.sh b/assets/scripts/install.sh new file mode 100644 index 0000000000000000000000000000000000000000..17fc70a2287e0d795db413c22ccec27fbc977f4e --- /dev/null +++ b/assets/scripts/install.sh @@ -0,0 +1,4 @@ +HELPER_NAME="s3stream_helper" +docker run -v memes_nginx_shared:/shared/ --name "${HELPER_NAME}" alpine true +docker cp ./assets/dist "${HELPER_NAME}:/shared/s3rius_stream" +docker rm "$(docker stop "${HELPER_NAME}")"