ffkms (363B)
1 #!/usr/bin/env bash 2 3 ffmpeg \ 4 -f kmsgrab \ 5 -thread_queue_size 64 \ 6 -i - \ 7 -vf 'hwmap=derive_device=vaapi,hwdownload,format=bgr0,scale=1280:720' \ 8 -c:v libx264 \ 9 -preset:v superfast \ 10 -tune zerolatency \ 11 -intra-refresh 1 \ 12 -f mpegts \ 13 -b:v 3M \ 14 udp://10.100.0.2:55000 15 16 #-f pulse \ 17 #-i 'alsa_output.pci-0000_26_00.1.hdmi-stereo.monitor' \