Skip to content

nirbheek/youtube-ass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code to download and convert Youtube XML annotations to ASS format
http://en.wikipedia.org/wiki/SubStation_Alpha#Advanced_SubStation_Alpha

Details about the ASS file format can be found at:
* http://www.matroska.org/technical/specs/subtitles/ssa.html
* http://moodub.free.fr/video/ass-specs.doc

This conversion script tries to maintain:

* Correct timing and text
* Font colour and background colour (can be improved)
* Positioning and width of subtitle text around the video

Positioning is hard to translated into ASS format because it uses Margins
instead of x/y and there's very little control over vertical spacing.

TODO:
* Support languages other than English
* Try to use ASS Picture Event lines to create transparent text boxes
* Use ffmpeg to mux the audio/video/subtitle streams into mkv
* What about automatic captions?
* More that I'm forgetting.

Released under the CC-0 License

No code references were used while writing this parser, hence it's free of
derivative licensing problems.

Created for use by youtube-dl:
* ytdl-org/youtube-dl#90

About

Converts YouTube XML Annotations to ASS subtitles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages