bilibili

From ArchWiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

bilibili, also known as "哔哩哔哩" or simply "B 站", is a barrage video website in mainland China, the website of Shanghai Oriental Media (Group) Co., Ltd., its predecessor is the video sharing website Mikufans.

Play method

HTML5 play

bilibili already supports HTML5 playback.

Using you-get and mpv

Install you-get and mpv.

First use you-get -u url to get the streaming video address, where url for the video playback page URL, and then use the following command to play the video:

$ mpv --no-ytdl --http-header-fields="referer: https://www.bilibili.com" video_url --audio-file audio_url

stream_url is the streaming media address obtained using you-get.

Tip: After configuring hardware video acceleration, bilibili videos can be played using hardware decoding, thus reducing the CPU usage.

Other methods

Download

Using you-get

Use this command to download (where url is the URL of the video playback page):

$ you-get url

Other methods