Installations
npm install movie-color-strip
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
14.15.0
NPM Version
6.10.3
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Developer
lukasbach
Download Statistics
Total Downloads
366
Last Day
1
Last Week
5
Last Month
13
Last Year
61
GitHub Statistics
1 Stars
3 Commits
3 Watching
1 Branches
1 Contributors
Package Meta Information
Latest Version
1.0.0
Package Id
movie-color-strip@1.0.0
Unpacked Size
56.85 kB
Size
19.33 kB
File Count
13
NPM Version
6.10.3
Node Version
14.15.0
Total Downloads
Cumulative downloads
Total Downloads
366
Last day
0%
1
Compared to previous day
Last week
66.7%
5
Compared to previous week
Last month
85.7%
13
Compared to previous month
Last year
-19.7%
61
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
movie-color-strip
CLI tool for generating a color composition of a movies colors, inspired by thecolorsofmotion.com. The tool generates a linear arrangement of color stripes, each strip representing the average of several frames within the movie, ordered by timestamp. The result visualizes the tone and ambience of the movie, as well as its progress.
This image is the result for the last Harry Potter movie. Some segments are easily mappable to specific segments of the movie, such as the orange segment in the middle which was generated from the fire in the room of requirements, or the bright whitish area at the end generated from the segment when Harry met dead Dumbledore at Kings Cross.
More examples are available below.
Contributions
There exist several similar projects already. This project is written as a NPM package, which means you can just run it in your command line with only NodeJS and FFMPEG installed. Additionally, it works on arbitrarily many movies, so you can start a batch of several movies at once and have images generated from all of them. Finally, this project splits the process of computing the colors from an video file, and generating the resulting image, into distinct commands. You can extract the colors from a movie once into a JSON file (which is the long part), and then generate multiple image formats from them with a different command. You can specify the exact dimensions of the image and whether it should be generated horizontally or vertically.
Usage
Install NodeJS and FFMPEG globally. Then, invoke npx movie-color-strip
.
Usage: npx movie-color-strip [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
parse-movie [options]
generate-image [options]
help [command] display help for command
First, call npx movie-color-strip parse-movie
to generate color files
from movies. This might take a significant amount of time (~30 minutes per movie).
This will be computed for every movie detected by the glob supplied via --movies
(defaults to ./movies/**/*.mkv
).
Usage: npx movie-color-strip parse-movie [options]
Options:
-t, --tmp-dir <directory> Temporary directory for storing image files (default: "./tmp")
-o, --out <filename> Output filename, must be .json (default: "./{moviename}.colors.json")
-n, --name <name> Movie name, will be encoded into json file (default: "{moviename}")
-m, --movies <glob> Glob for finding movies (default: "./movies/**/*.mkv")
-f, --every-frames <frames> How often to grab a frame from the movie, i.e. every n frames. (default: "120")
-h, --help display help for command
Then, call npx movie-color-strip generate-image
to create image files from the resulting
color files.
Usage: npx movie-color-strip generate-image [options]
Options:
-f, --files <glob> JSON Color files glob (default: "./**/*.colors.json")
-w, --width <size> Output image width (default: "800")
-h, --height <size> Output image height (default: "300")
-x, --orientation <size> Output orientation, either "horizontal" or "vertical" (default: "horizontal")
-o, --output <name> Output name, must be .png (default: "./{name}.png")
--help display help for command
Examples
Harry Potter and the Philosophers Stone
Harry Potter and the Chamber of Secrets
Harry Potter and the Prisoner of Azkaban
Harry Potter and the Goblet of Fire
Harry Potter and the Order of the Phoenix
Harry Potter and the Half Blood Prince
Harry Potter and the Deathly Hollows 1
Harry Potter and the Deathly Hollows 2
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/lukasbach/.github/SECURITY.md:1
- Info: Found linked content: github.com/lukasbach/.github/SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/lukasbach/.github/SECURITY.md:1
- Info: Found text in security policy: github.com/lukasbach/.github/SECURITY.md:1
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
11 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-wpg7-2c88-r8xv
- Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9
- Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw
- Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc
- Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh
- Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
Score
2.2
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More