Release ttml2ssa - provide better looking subtitles for your addons
#1
Ttml2ssa is a library for Kodi which can help you provide better looking subtitles for your addons.

Even though Kodi is a great software it allows very little customization of subtitles (SRT format), you can mainly only change the color, that's all. Subtitles usually look better on other media players.

However Kodi also supports subtitles in SSA/ASS format, which are more customizable, for example you can add a shadow, set an outline color... It's also possible to place the subtitles on the top of the screen.

Ttml2ssa is a library that can convert TTML/XML/DFXP/VTT/SRT subtitles used by Netflix, HBO, Disney+, Prime Video and other stream services to the SSA/ASS format (it can also convert to SRT and VTT). It provides a configuration dialog where the user can select the font size, colors, shadow and many other things. This configuration is shared by all addons that use the ttml2ssa library, so the user only has to set up his preferences in one place.

Another benefit: subtitles will be displayed on top of the screen when necessary (just like the official apps of Netflix, Disney+ and others do).

Ttml2ssa can also perform some cosmetic changes so the subtitles style is the same among different services.

Using the library is quite easy, it only requires a few lines of code to convert and save a subtitle.

As demonstration there's available a Kodi repository with modified versions of the Netflix, Amazon VOD, Disney+ and hbogoeu(*) addons with support for ttml2ssa: https://github.com/Paco8/kodi-repo

(*) The support for ttml2ssa in hbogoeu is only available for Nordic/Spain.

More info: https://github.com/Paco8/ttml2ssa
Reply
#2
I can understand people wanting a better/different display of subtitles, and your tool is one of them.
We recently got a large PR for an overhaul of Kodi's handling of subtitles, so upcoming changes are in the pipeline slowly but surely.
Not sure if this will also be backported for upcoming Kodi 19.x releases, but it will be for Kodi 20 for sure.
Reply
#3
Interesting. Currently I convert most of my add-ons subs to vtt for better support in kodi. But maybe I should be looking into converting to ass instead.

Also you mention an issue with Disney+ subs. Have you opened a GitHub issue about this? Is it the same in kodi 19?
Reply
#4
The problem of subtitles disappearing on Disney+ was reported here: https://forum.kodi.tv/showthread.php?tid...pid2977632
You replied there that the problem was fixed on Kodi 19.
Reply

Logout Mark Read Team Forum Stats Members Help
ttml2ssa - provide better looking subtitles for your addons0