File: players.rst

package info (click to toggle)
streamlink 8.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,564 kB
  • sloc: python: 51,188; sh: 184; makefile: 152
file content (128 lines) | stat: -rw-r--r-- 4,248 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
Players
=======

Transport modes
---------------

There are three different modes of transporting the stream to the player.

.. list-table::
    :header-rows: 1
    :class: sd-w-100

    * - Name
      - Description
    * - Standard input pipe
      - This is the default behavior when there are no other options specified.
    * - Named pipe (FIFO)
      - See the :option:`--player-fifo` option.
    * - HTTP
      - See the :option:`--player-http` and :option:`--player-continuous-http` options.

.. note::

    Streamlink also allows passing the resolved stream URL through to the player as its first launch argument
    when using the :option:`--player-passthrough` option.

    This does only work if the player has support the specific streaming protocol built in. The player will then do
    all the data fetching on its own while Streamlink will just wait for the player process to end.

    Some streaming protocols like DASH can't be passed through to the player.


Player compatibility
--------------------

This is a list of video players and their compatibility with the transport
modes.

.. list-table::
    :header-rows: 1
    :class: sd-w-100

    * - Name
      - OS
      - License
      - stdin pipe
      - named pipe
      - HTTP
    * - `VLC media player`_
      - :fab:`windows;fa-xl` :fab:`apple;fa-xl` :fab:`linux;fa-xl`
      - GPL2 / LGPL2.1
      - :octicon:`thumbsup;1em;sd-text-success` [1]_
      - :octicon:`thumbsup;1em;sd-text-success`
      - :octicon:`thumbsup;1em;sd-text-success`
    * - `mpv`_
      - :fab:`windows;fa-xl` :fab:`apple;fa-xl` :fab:`linux;fa-xl`
      - GPL2 / LGPL2.1
      - :octicon:`thumbsup;1em;sd-text-success`
      - :octicon:`thumbsup;1em;sd-text-success`
      - :octicon:`thumbsup;1em;sd-text-success`
    * - `MPlayer`_
      - :fab:`windows;fa-xl` :fab:`apple;fa-xl` :fab:`linux;fa-xl`
      - GPL2
      - :octicon:`thumbsup;1em;sd-text-success`
      - :octicon:`thumbsup;1em;sd-text-success`
      - :octicon:`thumbsup;1em;sd-text-success`
    * - `IINA`_
      - :fab:`apple;fa-xl`
      - GPL3
      - :octicon:`thumbsup;1em;sd-text-success` [2]_
      - :octicon:`thumbsdown;1em;sd-text-danger`
      - :octicon:`thumbsdown;1em;sd-text-danger`

.. [1] Some versions of VLC might be unable to use the stdin pipe and
       prints the error message

       VLC is unable to open the MRL 'fd://0'

       Use one of the other transport methods instead to work around this.

.. [2] Requires the ``--stdin`` player argument (:option:`--player-args`)

.. _VLC media player: https://videolan.org/
.. _mpv: https://mpv.io/
.. _MPlayer: https://mplayerhq.hu/
.. _IINA: https://iina.io/


Flatpak players
---------------

While Streamlink doesn't provide a dedicated CLI argument for launching `Flatpak`_ players,
those are still supported by setting :option:`--player=flatpak` and :option:`--player-args="run APPID"`,
where ``APPID`` is the Flatpak identifier string (see the `flatpak run <flatpak-run-manpage_>`_ command man page).

Players like `VLC <flathub-VLC_>`_ or `mpv <flathub-mpv_>`_ are available on `Flathub`_ (unofficial builds, not maintained
by the player's own developers), and are automatically detected when setting the :option:`--title` option.

.. _Flatpak: https://flatpak.org/
.. _flatpak-run-manpage: https://man7.org/linux/man-pages/man1/flatpak-run.1.html
.. _Flathub: https://flathub.org/
.. _flathub-VLC: https://flathub.org/en/apps/org.videolan.VLC
.. _flathub-mpv: https://flathub.org/en/apps/io.mpv.Mpv


Known issues and workarounds
----------------------------

MPlayer tries to play Twitch streams at the wrong FPS
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is a bug in MPlayer, using the MPlayer fork `mpv`_ instead
is recommended.

Youtube Live does not work with VLC
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
VLC versions below 3 cannot play Youtube Live streams. Please update your
player. You can also try using a different player.

Youtube Live does not work with Mplayer
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Some versions of Mplayer cannot play Youtube Live streams. And errors like:

.. code-block:: console

    Cannot seek backward in linear streams!
    Seek failed

Switching to a recent fork such as mpv resolves the issue.