Python Module: Streamlink(not complete)

项月亮
1 min readMar 20, 2019

Basic Usage

$ streamlink [URL] --player [PATH_OF_PLAYER]

Streamlink perfectly support mpv, MPlayer, VLC.

Proxy Setting

$ streamlink --http-proxy=[LOCAL_ADRESS]:[LOCAL_PORT]$ streamlink --http-proxy "http://user:pass@10.10.1.10:3128/" --https-proxy "socks5://10.10.1.10:1242"  # HTTP Proxy and HTTPS Proxy$ streamlink --http-proxy "socks4a://10.10.1.10:1235" --https-proxy "socks5h://10.10.1.10:1234"             # socks5 and socks4

Plugins

$ streamlink --plugins$ streamlink --plugin-dirs [DIRECTORY] # load plugins from this          directory

Player

$ streamlink --player=/path/to/vlc <url> [stream]$ streamlink --player "vlc --file-caching=5000" <url> [stream] # set up player cache

File output options

-o [FILENAME]--output [FILENAME]

e.g.

$ streamlink  --http-proxy=127.0.0.1:1087 http://play.afreecatv.com/rani1010/211964003 worst --player /usr/local/bin/mpv

Reference

Streamlink Documentation

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response