Git Product home page Git Product logo

movie-barcode's Introduction

Movie Barcode

This is a simple script which uses ffmpeg and ImageMagick to create a simple and neat colorful image which reprecents the movie.

Requirements

  • ffmpeg
  • ImageMagick

If you do not have these commands, Homebrew makes it easy to install.

Installation

  1. Clone this repository
  2. Make movie-barcode an executable via chmod +x movie-barcode
  3. Enjoy!

Usage

./movie-barcode [PATH_TO_MOVIE] [FRAMES_TO_EXRACT=2000] [OUTPUT_FILENAME=$MOVIE_BASENAME]

Sample

Movie: Scarface (1983)

./movie-barcode "$HOME/Movies/Scarface (1983).mp4" 2000

Movie Barcode of Scarface

Would output a file named Scarface_(1983).mp4.jpg in the same directory as the movie-barcode executable.

Music: DMX - I Don't Dance

movie-barcode.sh "$HOME/Downloads/DMX - I Dont Dance.mp4" 2000 i_dont_dance.jpg

Movie Barcode of DMX

Would output a file named i_dont_dance.jpg in the same directory as the movie-barcode executable.

Output

--- 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)!

movie-barcode's People

Contributors

brunty avatar gnikyt avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.