From 97c7ebf7581e87ff23804fd7f2441646386fda3c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 21 Apr 2020 03:03:42 +0100 Subject: chore(fun): //fun/tvl -> //fun/streamTVL Otherwise this is confusing because //web/tvl is now a thing. --- fun/streamTVL/default.nix | 19 +++++++++++++++++++ fun/tvl/default.nix | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 fun/streamTVL/default.nix delete mode 100644 fun/tvl/default.nix (limited to 'fun') diff --git a/fun/streamTVL/default.nix b/fun/streamTVL/default.nix new file mode 100644 index 0000000000..da7c00ce4b --- /dev/null +++ b/fun/streamTVL/default.nix @@ -0,0 +1,19 @@ +{ depot, ... }: + +depot.third_party.writeShellScriptBin "start-tvl-stream" '' + env LD_LIBRARY_PATH=/run/opengl-driver/lib/ ${depot.third_party.ffmpeg}/bin/ffmpeg \ + -vsync 0 \ + -hwaccel cuvid \ + -init_hw_device cuda=0 -filter_hw_device 0 \ + -f x11grab \ + -video_size 1920x1080 \ + -framerate 60 \ + -thread_queue_size 256 \ + -i :0.0+0,0 \ + -filter:v "format=nv12,hwupload,scale_npp=w=1280:h=720:interp_algo=lanczos" \ + -c:v h264_nvenc \ + -preset:v llhq \ + -rc:v cbr_ld_hq \ + -an \ + -f flv rtmp://tazj.in:1935/tvl +'' diff --git a/fun/tvl/default.nix b/fun/tvl/default.nix deleted file mode 100644 index da7c00ce4b..0000000000 --- a/fun/tvl/default.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ depot, ... }: - -depot.third_party.writeShellScriptBin "start-tvl-stream" '' - env LD_LIBRARY_PATH=/run/opengl-driver/lib/ ${depot.third_party.ffmpeg}/bin/ffmpeg \ - -vsync 0 \ - -hwaccel cuvid \ - -init_hw_device cuda=0 -filter_hw_device 0 \ - -f x11grab \ - -video_size 1920x1080 \ - -framerate 60 \ - -thread_queue_size 256 \ - -i :0.0+0,0 \ - -filter:v "format=nv12,hwupload,scale_npp=w=1280:h=720:interp_algo=lanczos" \ - -c:v h264_nvenc \ - -preset:v llhq \ - -rc:v cbr_ld_hq \ - -an \ - -f flv rtmp://tazj.in:1935/tvl -'' -- cgit 1.4.1