How to take screenshot with ffmpeg
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
1 2 |
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
1 |
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