Stream Torrent File With VLC

I didn't think this is possible

This week, I switch from Ubuntu to MacOS and one of the application that I really want to be on my new machince is PopCorn Time. It's an app for streaming movie based on torrent. Typically with torrent, I have to download the whole file to watch it, but with this app I can stream the movie. Even better, it can play on VLC.

So, I was thinking, can I stream torrent directly to VLC without installing PopCorn Time. Turn out the answer is — absolutelly yes!

Prerequisities

  1. Node.js — Framework for the magic app
  2. VLC — Video player we're using to play video
  3. Peerflix — It's a small app that magically convert .torrent file into streamable movie.

To do this, I need to have VLC installed on my machine and the secret tool called peerflix. It's a small app that magically convert .torrent file into streamable movie.

To install this app, all we need is execute this following command:

$ npm install -g peerflix

To start wathing movie, all I need is something like this:

$ peerflix "magnet:?xt=urn:btih:ef330b39f4801d25b4245212e75a38634bfc856e" --vlc

You can read more about peerflix from their repo.