Giter VIP home page Giter VIP logo

video-host's Introduction

VideoHost - filesystem based personal video hosting

You want to host your own videos online to share with friends. You don't want to install a lot of dependancies, manage a database or install new modules on your web server.

You do want to be able to add videos by dropping them into a file tree, and give people a URL to look at your videos with no complications.

You want this.

Setting up

A perlbrew setup is recommended!

$ git clone https://github.com/EatMoreCode/video_host.git
$ cd video_host
$ perl Makefile.PL
$ make
$ make test
$ make install

CPAN coming soon!

Running

There are many ways to deploy Mojolicious apps. Suggested reading: http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT

$ cp lib/VideoHost/video_host.conf SOMEDIR/video_host.conf
$ edit SOMEDIR/video_host.conf
$ MOJO_CONFIG=SOMEDIR/video_host.conf hypnotoad `which video_host`

Open your browser and enjoy.

What? I don't want to install things! I just want to kick the tires!

Gotcha. Try this:

$ git clone https://github.com/EatMoreCode/video_host.git
$ cd video_host
$ morbo script/video_host --listen http://\*:2345

Hit http://localhost:2345 and kick the tires (well, tire).

To play some more, add your own videos under t/testdata (see the next section).

OK, how do I add videos?

Under your video_directory path (in the config) you need to have:

  • one directory per video (name is unimportant - make it meaningful to you)
  • one video file inside that directory called video.mp4
  • one metadata file called metadata.txt
  • (optional) a file called poster.jpg - an image shown before the video is loaded
  • (optional) a webvtt file called tracks.vtt containing captioning information

The metadata.txt file should contain key: value pairs, thus:

title: My lovely video!
date: 2014-10-10

Thanks to

video-host's People

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.