Livestreamer

  389 downloads
1.7.3 BSD License    
  n/a
CLI program that launches streams from various streaming services in a custom video player

description

download

specifications

Livestreamer is a command-line app that launches streams from various streaming services in a custom video player.

Currently supported sites are:

- Justin.tv/Twitch.tv
- Own3d.tv
- SVTPlay
- UStream
- YouTube

Note: Justin.tv plugin requires rtmpdump with jtv token support (recent git).

Livestreamer is compatible with Python version >= 2.6 and >= 3.0.

Installing (Linux, OS X etc)

Make sure you have Python and Python setuptools then run:

 sudo python setup.py install

Using

 livestreamer --help

Saving arguments AKA config file

Livestreamer can read arguments from the file ~/.livestreamerrc. A example file:

player=mplayer
jtv-cookie=_jtv3_session_id=arandomhash


Using livestreamer as a library

Livestreamer is also a library. Short example:

import livestreamer

url = "http://twitch.tv/day9tv"
channel = livestreamer.resolve_url(url)
streams = channel.get_streams()

stream = streams["720p"]
fd = stream.open()

while True:
 data = fd.read(1024)
 if len(data) == 0:
 break

 # do something with data

fd.close()
READ MORE   
Last updated on September 20th, 2012

0 User reviews so far.

SUBMIT