mirror of
https://github.com/streamlink/streamlink
synced 2024-11-15 03:02:22 +01:00
Release version 1.3.
This commit is contained in:
parent
0b257e9203
commit
8124016735
44
README.md
44
README.md
@ -1,7 +1,6 @@
|
|||||||
Livestreamer
|
Livestreamer
|
||||||
============
|
============
|
||||||
Livestreamer is a CLI program that launches streams from various
|
Livestreamer is a CLI program that launches live streams from various streaming services in a custom video player.
|
||||||
streaming services in a custom video player.
|
|
||||||
|
|
||||||
Currently supported sites are:
|
Currently supported sites are:
|
||||||
|
|
||||||
@ -13,35 +12,47 @@ Currently supported sites are:
|
|||||||
* UStream
|
* UStream
|
||||||
* YouTube
|
* YouTube
|
||||||
|
|
||||||
Note: Justin.tv plugin requires rtmpdump with jtv token support (recent git).
|
|
||||||
|
|
||||||
Livestreamer is compatible with Python version >= 2.6 and >= 3.0.
|
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)
|
||||||
|
|
||||||
|
|
||||||
Installing (Linux, OS X etc)
|
Installing (Linux, OS X etc)
|
||||||
----------
|
----------
|
||||||
Make sure you have Python and Python setuptools then run:
|
Make sure you have at least Python and python-setuptools then run:
|
||||||
|
|
||||||
$ sudo python setup.py install
|
$ sudo python setup.py install
|
||||||
|
|
||||||
|
This should install any missing Python dependencies automatically if they are missing.
|
||||||
|
|
||||||
|
|
||||||
Installing (Windows)
|
Installing (Windows)
|
||||||
--------------------
|
--------------------
|
||||||
1. Install Python
|
1. Install Python
|
||||||
2. Install Python setuptools
|
2. Install Python setuptools
|
||||||
3. Get rtmpdump and unpack it somewhere (rtmpdump-20110925-git-6230845-win32.zip from http://rtmpdump.mplayerhq.hu/ should work)
|
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:
|
4. Add these paths to your Path environment variable:
|
||||||
* [Python path]\
|
* [Python path]\
|
||||||
* [Python path]\scripts\
|
* [Python path]\scripts\
|
||||||
* [rtmpdump path]\ (or specify full path with --rtmpdump option)
|
* [rtmpdump path]\ (or specify full path with --rtmpdump option)
|
||||||
* [VLC/mplayer/other path]\ (or specify full path with --player option)
|
* [VLC/mplayer/other path]\ (or specify full path with --player option)
|
||||||
|
|
||||||
5. Open a command prompt and change directory to livestreamer source, then run:
|
5. Open a command prompt and change directory to livestreamer source, then run:
|
||||||
|
|
||||||
python setup.py install
|
python setup.py install
|
||||||
|
|
||||||
Note: If you want to use VLC be aware there is currently a bug in version 2.0.1/2.0.2
|
This should install any missing Python dependencies automatically if they are missing.
|
||||||
that prevents stdin reading from working. The bug has been fixed in version 2.0.3.
|
|
||||||
|
|
||||||
|
|
||||||
Using
|
Using
|
||||||
@ -51,9 +62,11 @@ Using
|
|||||||
|
|
||||||
Common issues
|
Common issues
|
||||||
-------------
|
-------------
|
||||||
**Issue:** livestreamer errors with "Unable to read from stream" or "Error while executing subprocess" on Twitch/JustinTV streams.
|
**livestreamer errors with "Unable to read from stream" or "Error while executing subprocess" on Twitch/JustinTV streams.**
|
||||||
|
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.
|
||||||
|
|
||||||
**Solution:** 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*. This version contains the necessary code to use 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.
|
**VLC on Windows failes to play with a error message.**
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
Saving arguments AKA config file
|
Saving arguments AKA config file
|
||||||
@ -62,7 +75,8 @@ Livestreamer can read arguments from the file ~/.livestreamerrc (POSIX) or %APPD
|
|||||||
A example file:
|
A example file:
|
||||||
|
|
||||||
player=mplayer
|
player=mplayer
|
||||||
jtv-cookie=_jtv3_session_id=arandomhash
|
gomtv-username=username
|
||||||
|
gomtv-password=password
|
||||||
|
|
||||||
|
|
||||||
Using livestreamer as a library
|
Using livestreamer as a library
|
||||||
|
2
setup.py
2
setup.py
@ -3,7 +3,7 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
from sys import version_info
|
from sys import version_info
|
||||||
|
|
||||||
version = "1.2.0"
|
version = "1.3"
|
||||||
deps = ["pbs", "requests>=0.12.1"]
|
deps = ["pbs", "requests>=0.12.1"]
|
||||||
|
|
||||||
# require argparse on Python <2.7 and <3.2
|
# require argparse on Python <2.7 and <3.2
|
||||||
|
@ -106,6 +106,10 @@ class Livestreamer(object):
|
|||||||
if file:
|
if file:
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def version(self):
|
||||||
|
return __version__
|
||||||
|
|
||||||
__all__ = ["PluginError", "NoStreamsError", "NoPluginError", "StreamError",
|
__all__ = ["PluginError", "NoStreamsError", "NoPluginError", "StreamError",
|
||||||
"Livestreamer"]
|
"Livestreamer"]
|
||||||
|
__version__ = "1.3"
|
||||||
|
@ -35,6 +35,7 @@ parser.add_argument("stream", help="Stream quality to play, use 'best' for highe
|
|||||||
|
|
||||||
parser.add_argument("-h", "--help", action="store_true",
|
parser.add_argument("-h", "--help", action="store_true",
|
||||||
help="Show this help message and exit")
|
help="Show this help message and exit")
|
||||||
|
parser.add_argument("-V", "--version", action="version", version="%(prog)s " + livestreamer.version)
|
||||||
parser.add_argument("-u", "--plugins", action="store_true",
|
parser.add_argument("-u", "--plugins", action="store_true",
|
||||||
help="Print all currently installed plugins")
|
help="Print all currently installed plugins")
|
||||||
parser.add_argument("-l", "--loglevel", metavar="level",
|
parser.add_argument("-l", "--loglevel", metavar="level",
|
||||||
|
Loading…
Reference in New Issue
Block a user