Giter Club home page Giter Club logo

hls-vod's Introduction

hls-vod ๐Ÿ“บ

HTTP Live Streaming with on-the-fly encoding of any video file for Apple TV, iPhone, iPad, iPod, Mac Safari and other devices that support HTTP Live Streaming. Also supports Android and normal desktop browsers through the use of mediaelement.js

hls-vod is a server application lets you stream your whole video collection on-demand, regardless of format, to your iOS devices, playable from Safari, working with AirPlay as well. It does this by invoking ffmpeg/VLC on the fly through the command line, and presenting a web based GUI for playback.

Version 1.0 is out with simpler usage ๐ŸŽ‰

Requirements

  • node.js (Tested on >=4)
  • ffmpeg (needs >=v1, must be built with libx264 and libmp3lame) OR VLC
  • Tested on Linux and Mac, but it might work on Windows too.

Installation

npm i -g hls-vod

Running (with ffmpeg, default)

  • Make sure you have node.js and ffmpeg in PATH
  • hls-vod --root-path /path/to/my/videos
  • Or: hls-vod --transcoder-path /path/to/ffmpeg --root-path /path/to/my/videos
  • Browse to http://localhost:4040/

Running (with VLC)

  • Make sure you have node.js and VLC installed and in PATH
  • hls-vod --transcoder-type vlc --root-path /path/to/my/videos
  • Or: hls-vod --transcoder-type vlc --transcoder-path /usr/bin/vlc --root-path /path/to/my/videos
  • Browse to http://localhost:4040/

VLC or ffmpeg ?

hls-vod supports both VLC and ffmpeg as streaming backend. ffmpeg gives the best performance and best format/codec support, in my experience. Thumbs and audio is not implemented for VLC.

Arguments

--root-path PATH - Root path allowed to read files in. Defaults to current directory.

--cache-path PATH - Where to write transcoded video cache. Defaults to OS temp dir.

--transcoder-type vlc|ffmpeg - Defaults to ffmpeg.

--transcoder-path PATH - Will use ffmpeg or vlc in PATH if not specified.

For more arguments run it without arguments: hls-vod

Limitations

  • Currently only supports encoding one stream at a time (only one user at a time).

hls-vod's People

Contributors

itsjw avatar liu58995 avatar mifi avatar mysoogal avatar thomaspedersen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hls-vod's Issues

Network error

When playing a file, in the browser, it will load for a while, then just show "Network error".
It seems that when m3u8 takes too long getting written by ffmpeg, the player will give up loading it.
If you try again the same file a bit later, it works. So something has changed in the way browsers do this lately.

I think we need to implement a mechanism where the browser will not start the video until the m3u8 file exists (and possibly has at least 3 playlist elements).

Stops for next movie

it doesn't go to next content automatically after the current finished up.

For example I have 3 contents in the directory. It only plays the first one that i click then it stops and doesnt go for the next one.

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.