From f8703d12dafc42f632759b5b18b5b2fd00cd203a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 4 Apr 2020 02:06:30 +0100 Subject: feat(fun/tvl): Initial working ffmpeg -> nginx stream command --- fun/tvl/stream.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 fun/tvl/stream.sh (limited to 'fun/tvl/stream.sh') diff --git a/fun/tvl/stream.sh b/fun/tvl/stream.sh new file mode 100644 index 000000000000..99030ab7698b --- /dev/null +++ b/fun/tvl/stream.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +env LD_LIBRARY_PATH=/run/opengl-driver/lib/ ffmpeg \ + -vsync 0 \ + -hwaccel cuvid \ + -f x11grab \ + -video_size 1920x1080 \ + -framerate 60 \ + -i :0.0+0,0 \ + -vf "scale_npp=1280:720" \ + -c:v h264_nvenc \ + -preset fast \ + -an \ + -f flv rtmp://tazj.in:1935/tvl -- cgit 1.4.1