Giter Club home page Giter Club logo

clean-movies's Introduction

Movie server with a clean player on the client.

Filters

If you have a movie called Example_Movie.mp4 in your $VIDEO_PATH directory, create a filter named Example_Movie.json in your $FILTER_PATH directory.

Example filter file contents:

[
  {  
    start: 123.25,
    end: 124.1
  },
  {  
    start: 135,
    end: 144,
    note: 'A man moons the camera.',
    rating: 'pg-13',
    category: 's'
  }
]

You can live-edit filters by adding &edit to the URL while watching a movie.

Environment Variables

Optionally create a file named .env for custom environment variables.

VIDEO_PATH="/path/to/videos" # default $HOME/Videos
FILTER_PATH="/path/to/filters" # default $VIDEO_PATH/filters
THUMBS_PATH="/path/to/thumbs" # default $VIDEO_PATH/thumbs

PORT=8888
HOST=localhost

Setup

Install dependencies with npm.
$ npm install
Serve.
$ npm start

TODO

  • Improve accuracy of clean player (currently within ~300ms)
  • Make filters writable from the client (requires editing file for now)
  • Filter filters with a meta-filter (e.g. only filter PG-13 and above content)

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.