A script that takes a video and creates a hue-ordered mosaic of frame captures.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
.gitignore
README.md
examples.md
fixfilename.py
makerainbow.sh
purple_splendour.md
sortcolour.py

README.md

rainbow-video

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.

Dependencies

To use:

  • Make file executable: chmod +x makerainbow.sh
  • Run script: ./makerainbow.sh input_video

Example

英雄 aka Hero (Zhang Yimou, CN 2002):
Hero (2002) image mosaic

See more examples here.

⚠ Caveats & to-dos

  • Script should have more error handling! Beware!
  • Blend of Bash and Python - refactor to Python at some stage.