Thread Rating:
  • 1 Vote(s) - 5 Average
Release - Subscene.com with Black Background or Opaque Box
#1
For Hiding foreign Hardsub. Addon Subscene.com with Black Background or Opaque Box is modified version of http://forum.kodi.tv/showthread.php?tid=184854

source code and zip: from https://github.com/ewwink/kodi-addon-sub...background

Demo: https://www.youtube.com/watch?v=9ZXTBHqG6CA


Reply
#2
Thanks this work really good.

Any way to increase font size? ​
Reply
#3
(2017-05-09, 20:28)ElGabo Wrote: Thanks this work really good.

Any way to increase font size? ​

edit ..../service.subtitles.subtitleBackground/resources/lib/srt2ass.py line 40

Code:
Style: SubStyle,Arial,20,&H0300FFFF,.......10,1
20 is font size and 10 is vertical margin
Reply
#4
Tks I will

Enviado mediante Tapatalk
Reply
#5
Does exactly what I need, so Thank you!
Instead of the usual .srt file; this add-on introduced me to .ass files; which are easily editable on linux with aegisub.
Cheers
Reply
#6
Thank you for an amazing feature!

Question, is it possible to make a service out of it? meaning, that you can apply it to any subtitle service?
Reply
#7
yes, you can apply it to any subtitle service, just find the code where .srt will be appended to playlist then convert it.
example:
Code:
from resources.lib.srt2ass import srt2ass
......
for sub in subs:
    sub = srt2ass(sub) # convert .srt to .ass
    listitem = xbmcgui.ListItem(label=sub)
    xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=sub, listitem=listitem, isFolder=False)
Reply
#8
I would really appreciate it when this can be done in Opensubtitles addon
Reply
#9
(2017-06-08, 16:23)ewwink Wrote: yes, you apply it to any subtitle service, just find the code where .srt will be appended to playlist then convert it.
example:
Code:
from resources.lib.srt2ass import srt2ass
......
for sub in subs:
    sub = srt2ass(sub) # convert .srt to .ass
    listitem = xbmcgui.ListItem(label=sub)
    xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=sub, listitem=listitem, isFolder=False)

Thanks a lot, mate. It works well!
Another question I have, Is the color code is ASCII? What code should I use for white subtitle color? and what is the right parameter I need to change to in order to set the subtitles to be at the bottom of the screen instead of the video?
Reply
#10
Hello Ewwink

I was looking for a solution to show a shadow behind subtitles in Kodi because VLC wouldnt work on my Android Mini MX player. Now I found your script here and installed it as add-on to Kodi 17.3 but I can't find where to activate or set it up...Can you help me? Thanks,

Ewoud


Edit:
Also can you make this work with .srt files external or inside .mkv videofiles and edit it like the colour is white and not bold?
Reply
#11
(2017-07-25, 14:21)FuZira Wrote: Thanks a lot, mate. It works well!
Another question I have, Is the color code is ASCII? What code should I use for white subtitle color? and what is the right parameter I need to change to in order to set the subtitles to be at the bottom of the screen instead of the video?
you're welcome. you can create style with subtitle edit or here the color: white -> &H00FFFFFF and yellow -> &H0300FFFF

(2017-07-31, 22:40)Ewoud Wrote: Hello Ewwink

I was looking for a solution to show a shadow behind subtitles in Kodi because VLC wouldnt work on my Android Mini MX player. Now I found your script here and installed it as add-on to Kodi 17.3 but I can't find where to activate or set it up...Can you help me? Thanks,

Ewoud


Edit:
Also can you make this work with .srt files external or inside .mkv videofiles and edit it like the colour is white and not bold?

maybe it can help you to activate subtitle service https://www.youtube.com/watch?v=yPKdDrV8czM
in next release I will try to add that feature.
Reply
#12
Thank you very much!

Can you also release a OpenSubtitles mod with this?
Reply



Subscene.com with Black Background or Opaque Box51