FFMPEG supports desktop capture.
Code: Select all
ffmpeg -video_size 1024x768 -framerate 5 -f x11grab -i :0.0+100,200 -t 30 -y /tmp/output.mp4
This will grab the image from desktop, starting with the upper-left corner at x=100, y=200 with a width and height of 1024⨉768, 5fps to video recording 30 seconds.
Without -t 30
option, press [Q] to exit.
FFMPEG supports streaming server push or HLS streaming(LL-HLS), publish video to Youutube / Streaming / HTTP server is Live Cast.
Detect desktop recording position, Get the current mouse coordinates in bash.
Code: Select all
for((;;)); do
xdotool getmouselocation
sleep 1
done
or by mtpaint screen capture
mtpaint -s