diff options
author | Vincent Ambo <tazjin@google.com> | 2020-04-04T01·06+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-04-04T01·36+0100 |
commit | f8703d12dafc42f632759b5b18b5b2fd00cd203a (patch) | |
tree | 5912bfb60b07cc13099479f7a75b3e46fd8db348 | |
parent | 9b606e2c4eca9f78b0d66b0934144969c1dd1340 (diff) |
feat(fun/tvl): Initial working ffmpeg -> nginx stream command r/612
-rw-r--r-- | fun/tvl/stream.sh | 14 |
1 files changed, 14 insertions, 0 deletions
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 |