A script that can convert Youtube Annotation into ASS(Advanced SubStation Alpha) subtitles files
Project description
Annotations2Sub
一个可以把 Youtube 注释转换成 ASS(Advanced SubStation Alpha) 字幕文件的脚本
A script that can convert Youtube Annotation into ASS(Advanced SubStation Alpha) subtitles files
pip install Annotations2Sub
usage: Annotations2Sub.py [-h] [-l] [-x 100] [-y 100] [-f Microsoft YaHei] [-d]
[-i invidious-instances.domain] [-p] [-g] [-u] [-v] [-V]
File or videoId [File or videoId ...]
A script that converts Youtube Annotations into ASS(Advanced SubStation Alpha) subtitles file
positional arguments:
File or videoId File path of multiple files to be converted, or multiple
Youtube videoId to be previewed, generated, Annotations file
downloaded from Internet Archive
optional arguments:
-h, --help Show this help message and exit
-l, --embrace-libass Embrace libass's quirks and features, and not specifying
This option will adapt to xy-vsfilter
-x 100, --transform-resolution-x 100
Transform resolution X
-y 100, --transform-resolution-y 100
Transform resolution Y
-f Arial, --font Arial
Specify font
-o File, --output File
Specify the output path of the converted file,
not specifying this option will output the converted
file to the same directory as the converted file
-d, --download-for-archive
Try downloading the annotations file from Internet Archive
-i invidious-instances.domain, --invidious-instances invidious-instances.domain
Specify invidious instances (https://redirect.invidious.io/)
-p, --preview-video Preview video, need mpv(https://mpv.io/) and specify invidious instances
-g, --generate-video Generate video, need FFmpeg(https://ffmpeg.org/) and specify invidious instances
-u, --unstable Enabling Unstable function, can cause some problems
-v, --version Show version
-V, --verbose Show more messages
Example:
Annotations2Sub.py -g HqSzHYxVKws
如果效果不对, 欢迎 issue
If it doesn't work right, feel free to issue
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Annotations2Sub-0.1.52.tar.gz
(37.0 kB
view hashes)
Built Distribution
Close
Hashes for Annotations2Sub-0.1.52-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77ffcd59b842b8b44791a13cd7c41960505ca4e5837d1a07e59a3ecbabbc860d |
|
MD5 | 2001a691d18a790ec3ba8afabecfd23d |
|
BLAKE2b-256 | 377f6dec2eb9967027f3ff2a6b43cdddbb30c8b04575335ee77076f7fbd2ad04 |