Streamlink

Streamlink is a command-line utility written in Python which allows you to watch online video streams in popular video players, such as VLC, MPlayer or mpv; see Player compatibility for the full list.

This project was forked from Livestreamer, which is no longer maintained.

Support for various streaming services is provided by plugins, which can be easily added if needed. A lot of popular video streaming services are supported out of the box, including Dailymotion, Livestream, Twitch, UStream, YouTube Live and many more; see Plugins for the full list.

Installation

Install the streamlink package or streamlink-gitAUR.

Usage

The package provides a streamlink command-line utility, which is quite easy to use:

$ streamlink -p your_player url stream
  • your_player - name of executable of your media player, for example, vlc. You can also specify a full path if needed: /usr/bin/vlc. By default, VLC will be used if it can be found in its default location.
  • url - URL address of a stream. You can omit protocol (http://) for HTTP URLs.
  • stream - stream to play by given URL. Primarily, you can select the video quality with this option. Use best for highest and worst for lowest quality available. Specific plugins may have additional quality options.

For example:

$ streamlink -p mpv dailymotion.com/embed/video/x1b1h6o worst

See the streamlink (1) man page for the full list of available options.

To save a stream to your HDD

$ streamlink -o ~/$current_time.m2t "STREAM URL" best,high

Twitch

$ streamlink -p player twitch.tv/name_of_channel quality

For example:

 $ streamlink -p vlc twitch.tv/archlinux medium

Available stream qualities are: , , , and mobile.

Troubleshooting

Using VLC as player shows random colors

Try installing the optional dependency .

gollark: I could host a web IRC client of some kind.
gollark: ++tel link apionet #f
gollark: ++tel unlink apionet #e
gollark: Maybe.
gollark: That won't technically operate *forever* without harvesting more stuff.

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.