Skip to content

Using zig to extract bilibili downloaded videos.(on elf environment(termux))

License

Notifications You must be signed in to change notification settings

xihale/bilibili_extract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bilibili Download Extractor

Overview

This is a program designed to process videos downloaded from Bilibili, extracting them into a more human-readable and player-friendly format.

Get executable binary

You can build the program yourself or use my pre-built binary listed in the Release page.

Building Yourself

  1. Ensure you have Zig installed on your system. Follow the instructions on the official website.

  2. Use the following command to build the program:

    zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux
  3. Copy the generated binary zig-out/bin/bilibili_extract to your Termux environment. You can use tools like adb or internet sync for this step.

Using Pre-built Binary

If you prefer not to build it yourself, you can use a pre-built binary provided by the developer.

Usage

Prerequisites

  • Ensure ffmpeg is installed on your system, as the program uses it to combine audio and video streams. Install it using:

    pkg install ffmpeg

Steps

  1. Download the video from Bilibili and locate the download directory. For example:

    /storage/emulated/0/Android/data/com.bilibili.app.in/download/
    
  2. 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.

About

Using zig to extract bilibili downloaded videos.(on elf environment(termux))

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages