This is a program designed to process videos downloaded from Bilibili, extracting them into a more human-readable and player-friendly format.
You can build the program yourself or use my pre-built binary listed in the Release
page.
-
Ensure you have Zig installed on your system. Follow the instructions on the official website.
-
Use the following command to build the program:
zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux
-
Copy the generated binary
zig-out/bin/bilibili_extract
to your Termux environment. You can use tools likeadb
or internet sync for this step.
If you prefer not to build it yourself, you can use a pre-built binary provided by the developer.
-
Ensure
ffmpeg
is installed on your system, as the program uses it to combine audio and video streams. Install it using:pkg install ffmpeg
-
Download the video from Bilibili and locate the download directory. For example:
/storage/emulated/0/Android/data/com.bilibili.app.in/download/
-
Run the following command to extract the video:
bilibili_extract /storage/emulated/0/Android/data/com.bilibili.app.in/download/ /storage/emulated/0/Movies/bilibili_extracted
This will process the downloaded Bilibili videos and save them in the specified output directory in a more accessible format.his will process the downloaded Bilibili videos and save them in the specified output directory in a more accessible format.