Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement