Code Monkey home page Code Monkey logo

trailer-maker's Introduction

Trailer Maker

What is it?

It's a small program that generates trailers from a video file.

How does it work?

It cuts parts from within the video of a specified cut length at various timestamps. Then, the cut parts are glued together.

How can I generate a trailer?

  1. Clone the project to your local repository
  2. run "sbt assembly"
  3. Run the following command:

java -jar trailer-maker.jar -f -d 15000 -l 1000 -s 3000 --preserve -o

What are the available options?

  • -f: input file [required]
  • -d: duration in milliseconds of the generated trailer [required]
  • -l: cut length in millisecond of each parts of the trailer [required]
  • -o: output path
  • -s: start time in the original video in milliseconds
  • --preserve: preserve the original file name
  • --prepend-length: prepend the duration to the name of the generated trailer

Are there required dependencies?

Yes, you will need java and ffmpeg installed on your environment.

Is there another way?

Yes, you can go to trailermaker.io to generate your trailer

Any way to reach out to you?

You can message me on Github or go to /r/trailermaker on reddit.

trailer-maker's People

Contributors

alexandrelanglais avatar

Stargazers

 avatar

Watchers

 avatar

trailer-maker's Issues

Create a GUI

It could be nice to have a GUI for the console application, maybe in a new project?

Add watermark

User should be able to specify a text as watermark to place in one of the corners of the generated trailer.

Option could be something like --watermarktext "some text" --watermark-position "bottom-left" --watermark-size "a font size eg. 12 or 14"

Program not working if there are spaces in the file path

Command

trailer-maker -f "/home/alex/a file name.avi" -d 5000 -l 2000
will fail with error
Exception in thread "main" java.lang.IllegalArgumentException: step cannot be 0
This is because the comandline used doesn't handle so well spaces

Allow music over trailer

It could be great to have the possibility to:

  • replace the original video sound with music
  • OR keep the video sound and add a music playback over it

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.