Generate a representative palette of a given video using ffmpeg : ffmpeg -i input.mkv -vf palettegen palette.png