f2443911cc
In preparation for the solution of b/108, we need to consistently use `depot.third_party` for packages that are only packed in the TVL depot and `pkgs` for things that come from nixpkgs. This commit cleans up a huge chunk of these uses in //fun Change-Id: I45a7b392a9749fa7859ff5100dcea415bda807c3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2914 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
19 lines
576 B
Nix
19 lines
576 B
Nix
{ pkgs, ... }:
|
|
|
|
pkgs.writeShellScriptBin "start-tvl-stream" ''
|
|
env LD_LIBRARY_PATH=/run/opengl-driver/lib/ ${pkgs.ffmpeg-full}/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
|
|
''
|