安装Streamlink:
sudo -H pip install streamlink
Run Code Online (Sandbox Code Playgroud)
将流发送至cvlc --fullscreen:
streamlink --player="cvlc --no-video" "https://www.youtube.com/freecodecamp/live" best
Run Code Online (Sandbox Code Playgroud)
就我个人而言,我需要的只是音频--no-video。
为了节省带宽,您可以worst使用best.