# biliat
**Repository Path**: eudiwffe/biliat
## Basic Information
- **Project Name**: biliat
- **Description**: Bilibili Archive Tool
- **Primary Language**: C++
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: https://gitee.com/eudiwffe/biliat
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2019-07-18
- **Last Updated**: 2021-08-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Bilibili Archive Tool 2.0
This tool transform bilibili app download file *.blv to *.mp4, and rename file as title_subtitle name.
Below is bilibili app download directory structure:
/home/user/download/bilidown/
├── 33932355
│ ├── 1
│ │ ├── danmaku.xml
│ │ ├── entry.json
│ │ └── lua.flv720.bili2api.64
│ │ ├── 0.blv
│ │ ├── 0.blv.4m.sum
│ │ └── index.json
│ └── 2
│ ├── danmaku.xml
│ ├── entry.json
│ └── lua.flv720.bili2api.64
│ ├── 0.blv
│ ├── 0.blv.4m.sum
│ └── index.json
├── 37235274
│ └── 1
│ ├── danmaku.xml
│ ├── entry.json
│ └── lua.flv720.bili2api.64
│ ├── 0.blv
│ ├── 0.blv.4m.sum
│ └── index.json
└── 38729113
└── 1
├── danmaku.xml
├── entry.json
└── lua.flv720.bili2api.64
├── 0.blv
├── 0.blv.4m.sum
└── index.json
11 directories, 20 files
*.blv is media file;
entry.json file record child directory with TAG "type_tag";
title TAG "title"; subtitle TAG "part";
Below is entry.json data:
{"is_completed":true,"total_bytes":346087287,"downloaded_bytes":346087287,"title":"【助眠】Cham小姐姐:粉色的声音","type_tag":"lua.flv720.bili2api.64","cover":"http:\/\/i1.hdslb.com\/bfs\/archive\/8500ecdcdf35548d7bedc2440dc336e1f0681fb8.jpg","prefered_video_quality":64,"guessed_total_bytes":0,"total_time_milli":2036954,"danmaku_count":1,"time_update_stamp":1563266544729,"time_create_stamp":1563264924863,"avid":33932355,"spid":0,"seasion_id":0,"page_data":{"cid":59425086,"page":1,"from":"vupload","part":"[ASMR 日本語]ピンクの音????ブラッシング etc Pink Sounds for Relaxation _ 音フェチ asmrちゃむ","vid":"","has_alias":false,"weblink":"","tid":174,"width":1280,"height":720,"rotate":0}}
# Compile :
g++ --std=c++11 biliat.cpp -o biliat
# Usages :
-h : show this help
-s DIR : source(origin) bili download dir, NOT NULL
-a move : action - move/copy: delete/copy each dirs when finish
-t TOOL : tool path of ffmpeg(Optional)
-c CMD : tool trans command(Optional)
# Example :
1 : biliat -s download -a move
2 : biliat -s download -a copy -t C:\ffmpeg.exe
3 : biliat -s download -a copy -c copy .mkv