Skip to content
/ dlnanow Public

Stream video to DLNA-capable devices from the commandline

Notifications You must be signed in to change notification settings

rzane/dlnanow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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's middleware functions for serving content.

Installation

$ npm install -g dlnanow

Usage

# 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 <url-to-torrent-file OR magnet>

# start playback of a video with subtitles
$ dlnanow ./myvideo.mp4 --subtitles </local/path/to/subtitles.srt>

# transcode some other video format to mp4 while playback (requires ffmpeg)
$ dlnanow ./myvideo.avi --tomp4

Or, as a module

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

About

Stream video to DLNA-capable devices from the commandline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published