Skip to main content

A script that can convert Youtube Annotation into ASS(Sub Station Alpha V4) subtitles files

Project description

Annotations2Sub

一个可以把 Youtube 注释转换成 ASS(Sub Station Alpha V4) 字幕文件的脚本

A script that can convert Youtube Annotation into ASS(Sub Station Alpha V4) 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(Sub Station Alpha V4) subtitles file

positional arguments:
  File or videoId       Multiple files that need to be converted or
                        videoId's that need to be previewed or generated
                        for Youtube videos

optional arguments:
  -h, --help            show this help message and exit
  -l, --use-libass      fixes for libass
  -x 100, --transform-resolution-x 100
                        transform resolution X
  -y 100, --transform-resolution-y 100
                        transform resolution Y
  -f Microsoft YaHei UI, --font Microsoft YaHei UI 
                        specify font
  -d, --download-for-archive
                        Try downloading the annotations file from Internet Archive
  -i invidious-instances.domain, --invidious-domain invidious-instances.domain
                        Specify invidious instances
  -p, --preview-video   preview video, need mpv and specify invidious domain
  -g, --generate-video  generate video, need FFmpeg and specify invidious domain
  -u, --unstable        unstable function
  -v, --version         show version
  -V, --verbose         show a lot messages

Example:

Before

Annotations2Sub.py -g HqSzHYxVKws

After


Project details


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.31.tar.gz (23.2 kB view hashes)

Uploaded Source

Built Distribution

Annotations2Sub-0.1.31-py3-none-any.whl (25.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page