This is a simple script which uses ffmpeg and ImageMagick to create a simple and neat colorful image which reprecents the movie.
- ffmpeg
- ImageMagick
If you do not have these commands, Homebrew makes it easy to install.
- Clone this repository
- Make
movie-barcode
an executable viachmod +x movie-barcode
- Enjoy!
movie-barcode.sh [PATH_TO_MOVIE] [FRAMES_TO_EXRACT=2000]
Movie: Scarface (1983)
movie-barcode.sh "$HOME/Movies/Scarface (1983).mp4" 2000
Music: DMX - I Don't Dance
movie-barcode.sh "$HOME/Downloads/DMX - I Dont Dance.mp4" 2000
--- Movie Barcode Generator ---
Movie: I Don't Dance (Video) - DMX.mp4
Frames: 2000
Movie duration: 230.248333
FPS extraction: 1/.11512416650000000000
1. Extracting frames...
Extraction complete!
2. Resizing images...
Resizing complete!
3. Creating final image...
Movie barcode created (barcode.jpg)!