Automatically take screenshots every few seconds from video
A simple trick I’ve used for Facebook and other bits of social media is to take a whole bunch of still images and upload them for people to admire. (it generally works really well)
Make sure you’ve got mplayer installed and you’ll be on your way in no time.
This simple command when run in CLI will create an image every 5 seconds, however because there’s no end specified it will keep taking pictures of the last frame.
To fix this we find the length of the video minus two. For example, our video is 144 seconds long, and subtracting 2 seconds will give us 142 seconds which we then use to inform mplayer when to stop taking shots.
Once this has finished, you will have a directory full of still shots taken every 5 seconds.
Mess around, and play with mplayer as it’s not in abundance of fun tricks!
You can see a demonstration on Dirk Gently Facebook.
If you want to try this trick with MKV files, I found that changing jpeg to png works!