2025-03-14 21:59:59 -06:00
|
|
|
# streamlink
|
|
|
|
|
|
|
|
|
|
> Extracts streams from various services and pipes them into a video player of choice.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://streamlink.github.io/cli.html#command-line-usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Attempt to extract streams from the URL specified, and if it's successful, print out a list of available streams to choose from:
|
|
|
|
|
|
|
|
|
|
`streamlink {{example.com/stream}}`
|
|
|
|
|
|
|
|
|
|
- Open a stream with the specified quality:
|
|
|
|
|
|
|
|
|
|
`streamlink {{example.com/stream}} {{720p60}}`
|
|
|
|
|
|
|
|
|
|
- Select the highest or lowest available quality:
|
|
|
|
|
|
|
|
|
|
`streamlink {{example.com/stream}} {{best|worst}}`
|
|
|
|
|
|
|
|
|
|
- Use a specific player to feed stream data to (VLC is used by default if found):
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`streamlink {{[-p|--player]}} {{mpv}} {{example.com/stream}} {{best}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Skip a specific amount of time from the beginning of the stream. For live streams, this is a negative offset from the end of the stream (rewind):
|
|
|
|
|
|
|
|
|
|
`streamlink --hls-start-offset {{[HH:]MM:SS}} {{example.com/stream}} {{best}}`
|
|
|
|
|
|
|
|
|
|
- Skip to the beginning of a live stream, or as far back as possible:
|
|
|
|
|
|
|
|
|
|
`streamlink --hls-live-restart {{example.com/stream}} {{best}}`
|
|
|
|
|
|
|
|
|
|
- Write stream data to a file instead of playing it:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`streamlink {{[-o|--output]}} {{path/to/file.ts}} {{example.com/stream}} {{best}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Open the stream in the player, while at the same time writing it to a file:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`streamlink {{[-r|--record]}} {{path/to/file.ts}} {{example.com/stream}} {{best}}`
|