Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rzane/dlnanow
Stream video to DLNA-capable devices from the commandline
https://github.com/rzane/dlnanow
Last synced: 18 days ago
JSON representation
Stream video to DLNA-capable devices from the commandline
- Host: GitHub
- URL: https://github.com/rzane/dlnanow
- Owner: rzane
- Created: 2016-05-14T18:33:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-03T02:52:12.000Z (over 5 years ago)
- Last Synced: 2024-08-01T00:55:06.361Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 18
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dlnanow
This is a command-line utility that can be used to stream media files to your DLNA-capable devices (Smart TVs, Xbox One, etc). It supports playback of local video files, videos on the web, and torrents.
Internally, this script simply wraps [castnow](https://github.com/xat/castnow)'s middleware functions for serving content.
## Installation
```sh
$ npm install -g dlnanow
```## Usage
```sh
# start playback of a local video file
$ dlnanow ./myvideo.mp4# play a file from the web
$ dlnanow http://commondatastorage.googleapis.com/gtv-videos-bucket/ED_1280.mp4# start playback of a video over torrent
$ dlnanow# start playback of a video with subtitles
$ dlnanow ./myvideo.mp4 --subtitles# transcode some other video format to mp4 while playback (requires ffmpeg)
$ dlnanow ./myvideo.avi --tomp4
```## Or, as a module
```javascript
var dlnanow = require('dlnanow');// Add some logging
dlnanow.use(function (ctx, next) {
ctx.on('status', function (status) {
console.log(status);
});
next();
});// Enable some castnow plugins
dlnanow.enable('stdin');
dlnanow.enable('torrent');
dlnanow.enable('localfile');
dlnanow.enable('transcode');
dlnanow.enable('subtitles');// Go!
dlnanow.launch(opts, function (err, player, ctx) {
});
```