chore(fun): //fun/tvl -> //fun/streamTVL
Otherwise this is confusing because //web/tvl is now a thing.
This commit is contained in:
parent
cb62e87b77
commit
97c7ebf758
1 changed files with 0 additions and 0 deletions
19
fun/streamTVL/default.nix
Normal file
19
fun/streamTVL/default.nix
Normal file
|
|
@ -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
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue