1
mirror of https://github.com/streamlink/streamlink synced 2024-11-16 05:03:49 +01:00
streamlink/README.md

121 lines
3.9 KiB
Markdown
Raw Normal View History

2012-01-19 23:29:28 +01:00
Livestreamer
============
2012-09-19 17:56:25 +02:00
Livestreamer is a CLI program that launches live streams from various streaming services in a custom video player.
2012-01-19 23:29:28 +01:00
Currently supported sites are:
* GOMTV.net
* Justin.tv/Twitch.tv
2012-10-04 23:22:46 +02:00
* Livestream.com
* Ongamenet.com
* Own3d.tv
* SVTPlay
* UStream
* YouTube
2012-01-19 23:29:28 +01:00
2012-09-19 17:56:25 +02:00
Dependencies
------------
Livestreamer and it's plugins currently depends on these software:
* Python version >= 2.6 and >= 3.0 (currently CPython and PyPy is known to work)
* python-setuptools or python-distribute
* python-requests (at least version 0.12.1)
* python-pbs
* python-argparse (only needed for Python version < 2.7)
For RTMP based plugins:
* librtmp/rtmpdump (git clone after 2011-07-31 is needed for Twitch/JustinTV plugin)
2012-01-19 23:29:28 +01:00
Installing (Linux, OS X etc)
----------
2012-09-19 17:56:25 +02:00
Make sure you have at least Python and python-setuptools then run:
$ sudo python setup.py install
2012-01-19 23:29:28 +01:00
2012-09-19 17:56:25 +02:00
This should install any missing Python dependencies automatically if they are missing.
2012-01-19 23:29:28 +01:00
Installing (Windows installer)
-----------------------------
1. Download installer from downloads and run it
2. Once installed, open %APPDATA%\livestreamer\livestreamerrc in a text editor and make sure everything is correct
3. Use livestreamer from command prompt
*Note!* Installer has only been tested on Windows 7 (x64) as of now. Also, if you have previously installed manually you may need to remove livestreamer.exe from PYTHONPATH\Scripts.
Installing (Windows manual install)
---------------------------------
1. Install Python
2. Install Python setuptools
2012-09-19 17:56:25 +02:00
3. Get rtmpdump and unpack it somewhere (rtmpdump-20110925-git-6230845-win32.zip from the downloads section should work)
4. Add these paths to your Path environment variable:
* PYTHONPATH\
* PYTHONPATH\Scripts\
* RTMPDUMPPATH\ (or specify full path with --rtmpdump option)
* PLAYERPATH\ (or specify full path with --player option)
2012-01-19 23:29:28 +01:00
5. Open a command prompt and change directory to livestreamer source, then run:
2012-06-18 19:38:05 +02:00
python setup.py install
2012-01-19 23:29:28 +01:00
2012-09-19 17:56:25 +02:00
This should install any missing Python dependencies automatically if they are missing.
2012-01-19 23:29:28 +01:00
Using
-----
$ livestreamer --help
2012-01-19 23:29:28 +01:00
2012-09-26 12:31:33 +02:00
Plugin specific usage
---------------------
Most plugins are straight-forward to use, just pass the URL to the stream and it will work.
However, some plugins are using what could be called a "meta URL" to find the stream for you.
**gomtv**
Passing the URL *gomtv.net* will make the plugin figure out what match is currently playing automatically.
**ongamenet**
To use this plugin the URL *ongamenet.com* must be passed.
2012-01-19 23:29:28 +01:00
Common issues
-------------
2012-09-19 17:56:25 +02:00
**livestreamer errors with "Unable to read from stream" or "Error while executing subprocess" on Twitch/JustinTV streams.**
2012-09-19 18:09:21 +02:00
2012-09-26 12:31:33 +02:00
When building rtmpdump from source it may link with a already existing (probably older) librtmp version instead of using it's
own version. On Debian/Ubuntu it is recommended to use the official packages of *librtmp0* and *rtmpdump* version
*2.4+20111222.git4e06e21* or newer. This version contains the necessary code to play Twitch/JustinTV streams and
avoids any conflicts. It should be available in the testing or unstable repositories if it's not available in stable yet.
2012-09-19 18:09:21 +02:00
**VLC on Windows fails to play with a error message.**
2012-09-26 12:31:33 +02:00
VLC version 2.0.1 and 2.0.2 contains a bug that prevents it from reading data from stdin.
This has been fixed in version 2.0.3.
**Own3d streams fail to play**
Due to a flaw in Own3d's API livestreamer has no way of figuring out if these streams are online or offline
before starting the stream, so if it does not play it's probably offline.
2012-01-19 23:29:28 +01:00
Saving arguments AKA config file
--------------------------------
Livestreamer can read arguments from the file ~/.livestreamerrc (POSIX) or %APPDATA%\livestreamer\livestreamerrc (Windows).
2012-01-19 23:29:28 +01:00
A example file:
player=mplayer
2012-09-19 17:56:25 +02:00
gomtv-username=username
gomtv-password=password
2012-01-19 23:29:28 +01:00
Using livestreamer as a library
-------------------------------
2012-08-24 02:38:16 +02:00
http://livestreamer.readthedocs.org/