Skip to main content

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

Project description

Annotations2Sub

一个可以把 Youtube 注释转换成 ASS 字幕文件的脚本

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


usage: Annotations2Sub.py [-h] [-l] [-x 1920] [-y 1080] [-d] [-i invidious.domain] [-p] [-g] File or ID [File or ID ...]

A script that converts Youtube Annotations into .ASS subtitles

positional arguments:
  File or ID            The file to be converted

optional arguments:
  -h, --help            show this help message and exit
  -l, --use-libass      Fixes for libass
  -x 100, --reset-resolution-x 100
                        Reset resolution X
  -y 100, --reset-resolution-y 100
                        Reset resolution Y
  -f, --font            Specify font
  -d, --download-for-invidious
                        Try downloading the ‪‪annotations file from invidious
  -i invidious.domain, --invidious-domain invidious.domain
                        Specify invidious domain
  -p, --preview-video   Preview video(need mpv)
  -g, --generate-video  Generate video (need FFmpeg)

Example:

wget https://github.com/USED255/Annotations2Sub/raw/master/Annotations2Sub.py 

Before

python3 .\Annotations2Sub.py -g e8kKeUuytqA

After


TODO
  • g-0i6MOh7n0

  • 29-q7YnyUmY

  • 去除 invidious

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

Uploaded Source

Built Distribution

Annotations2Sub-0.1.3-py3-none-any.whl (14.6 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