ffmpeg provides x11grab driver that can be used to take screenshots.
You can use the following command to take screenshots, you can run it manually on the terminal or using cronjob
export DISPLAY=:1 ffmpeg -f x11grab -video_size 1920x1080 -i $DISPLAY -vframes 1 image.png
If you want to make a thumbnail from a video, you can use
ffmpeg -ss 00:01:00 -i video.mp4 -vframes 1 image.png
You can change 00:01:00 to whatever time you need to generate a thumbnail.
See ffmpeg
Leave a Reply