Skip to content

Generate palettes for your favourite movies (or shows, or any video)

Notifications You must be signed in to change notification settings

kartikay-bagla/movie-palette-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movie Palette Generator

Generate movie palettes from this script.

Example

Movie Palette of Star Wars: Revenge of the Sith Palette for Star Wars: Revenge of the Sith

Usage and setup:

  • Create a virtual environment using python3 -m venv .venv and activate it.
  • Install the requirements using pip install -r requirements.txt.
  • Run python main.py input.mp4 output.png.
  • To view other options, use python main.py --help.

Suggestions for video file:

  • Resize to 720p
  • Set it to 1 frame per second i.e. choose one frame for each second. While this may lead to some loss in information, I don't believe its signifcant. Plus you can set it to whatever you want and see the output for yourself.

FFMPEG command to implement above suggestions:

ffmpeg -i input.mp4 -vf "fps=1,scale=iw/4:ih/4" output.mp4

I used the scale command to scale down the res to a quarter of the original.

About

Generate palettes for your favourite movies (or shows, or any video)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages