notes/Create Image Grid from Video-LxhWGeTt.sh
#!/bin/bash


dir="/tmp/$RANDOM"
mkdir "$dir"
cd "$dir"

#Download example video
youtube-dl "https://youtu.be/5zsVn_vZ9zE" -o video

#convert video to jpg at 10 frames per minute (6/60)
ffmpeg -i video.* -vf fps=6/60 img%03d.jpg

#Create Grid
montage -geometry 320x160 *.jpg output.png

#Display output image

display output.png

#clean up
rm -fr "$dir"

syntax highlighted by Code2HTML, v. 0.9.1