Skip to content

Instantly share code, notes, and snippets.

@bitcity
Last active October 4, 2021 06:21
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitcity/d57440ca4240525439c1 to your computer and use it in GitHub Desktop.
Save bitcity/d57440ca4240525439c1 to your computer and use it in GitHub Desktop.
Average frame colors of a movie into a single image
ffmpeg -i <your movie file> -vf scale=1:1 <output folder>/%06d.png
convert +append <output folder>/* out.png
mogrify -scale x50\! out.png
Credit : https://www.reddit.com/r/dataisbeautiful/comments/3rb8zi/the_average_color_of_every_frame_of_a_given_movie/cwmn4q2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment