hls-vod-too

当前版本: 2.0.2


hls-vod-too是什么?

用于视频点播编码和流式传输的Node命令行界面
Node CLI for on-demand encoding and streaming of videos

许可协议

MIT

关键词

ffmpeg , http , ipad , iphone , live , ondemand , server , streaming , vlc

安装方式

npm install hls-vod-too@2.0.2

相关网址


hls-vod-too使用说明

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.

hls-vod 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.

Requirements (要求)

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

VLC / ffmpeg ?

ffmpeg gives the best performance and best format/codec support, in my experience. Thumbs and audio is not implemented for VLC.

Installation (安装)

  • git clone ...
  • cd hls-vod
  • npm install

Running (with ffmpeg, default)

  • Make sure you have node.js and ffmpeg (>1.0) in PATH
  • node hls-vod.js --root-path /mnt/videos
  • Browse to http://localhost:4040/

Running (with VLC)

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

Arguments (论据)

--root-path PATH - Root path allowed to read files in.

--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: node hls-vod.js

Limitations (限制)

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

Compiling ffmpeg

You need a fairly recent version

hint: ./configure --enable-libx264 --enable-libmp3lame --enable-gpl --enable-nonfree make -j9 && make install

项目热度

项目信息

分享到

基本信息
开发语言
JavaScript
相关项目
0
相关仓库
0
Watchers
15
Stars
212
Forks
57
版本数量
2
最新发布
2020-10-09
首次发布
2020-12-23
仓库大小
4.72 MB

版本历史
2.0.2
2020-10-09
2.0.1
2020-10-09

贡献者
Mikael Finstad Thomas Pedersen mysoogal