#! /bin/bash
xrandr --output LVDS --scale-from 1280x720
ffmpeg -f x11grab -s 1280x720 -framerate 30 -i :0.0 -vf 'format=nv12,scale=w=1280:h=720' -c:v libx264 -qp:v 26 -bf 0 -tune zerolatency -f mpegts udp://192.168.2.141:1234
xrandr --output LVDS --scale-from 1920x1080
