Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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) {
});
```