This script takes a video file and outputs a mosaic of frame captures which have been ordered according to hue.
How cool it looks depends on the characteristics of the input file. The more saturated and varied colours, the better!
The composite image is output into a folder named after the video file.
- ffmpeg
- imagemagick
- python-slugify
- Colour Thief (this is really the engine of the script, super cool stuff)
- Make file executable:
chmod +x makerainbow.sh
- Run script:
./makerainbow.sh input_video
英雄 aka Hero (Zhang Yimou, CN 2002):
See more examples here.
- Script should have more error handling! Beware!
- Blend of Bash and Python - refactor to Python at some stage.