Skip to content

Instantly share code, notes, and snippets.

@gpmnsp
gpmnsp / # Screensheetmaker.md
Last active March 21, 2023 21:11
Screensheet maker for Linux bash and Windows CMD.EXE

screensheetmaker

  • Consists of two scripts: make-screens.sh for Linux bash and make-screens.cmd for Windows CMD.EXE.
  • Uses ffmpeg, and montage and convert from Imagemagick package, additionally bc under Linux.
  • Works pretty fast. The approach is to divide the file into N intervals, one for each picture and pick the first keyframe after the midpoint of each interval. This is done quickly with a single run of ffmpeg, given the duration of each interval.
  • Known limitations: Length of the video. The shortest video I've run with success was 30 seconds, though the number of screens was limited (by the number of keyframes in the video).

make-screens.sh

Shell script to make screenshot pages from movies with ffmpeg.