Release - Subscene.com with Black Background or Opaque Box

  Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ewwink Offline
Junior Member
Posts: 21
Joined: Apr 2017
Reputation: 0
Post: #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


(This post was last modified: 2017-08-01 19:35 by ewwink.)
find quote
ElGabo Offline
Junior Member
Posts: 2
Joined: Feb 2016
Reputation: 0
Post: #2
Thanks this work really good.

Any way to increase font size?

Enviado desde mi SM-N920G mediante Tapatalk
find quote
ewwink Offline
Junior Member
Posts: 21
Joined: Apr 2017
Reputation: 0
Post: #3
(2017-05-09 20:28)ElGabo Wrote:  Thanks this work really good.

Any way to increase font size?

Enviado desde mi SM-N920G mediante Tapatalk

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
find quote
ElGabo Offline
Junior Member
Posts: 2
Joined: Feb 2016
Reputation: 0
Post: #4
Tks I will

Enviado mediante Tapatalk
find quote
chatan Offline
Junior Member
Posts: 4
Joined: Sep 2015
Reputation: 0
Post: #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
find quote
FuZira Offline
Junior Member
Posts: 8
Joined: May 2017
Reputation: 0
Post: #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?
find quote
ewwink Offline
Junior Member
Posts: 21
Joined: Apr 2017
Reputation: 0
Post: #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)
(This post was last modified: 2017-08-01 19:13 by ewwink.)
find quote
misa Offline
Fan
Posts: 333
Joined: Mar 2012
Reputation: 8
Post: #8
I would really appreciate it when this can be done in Opensubtitles addon
find quote
FuZira Offline
Junior Member
Posts: 8
Joined: May 2017
Reputation: 0
Post: #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?
(This post was last modified: 2017-07-26 13:40 by FuZira.)
find quote
Ewoud Offline
Junior Member
Posts: 1
Joined: Jul 2017
Reputation: 0
Post: #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?
(This post was last modified: 2017-07-31 22:56 by Ewoud.)
find quote
ewwink Offline
Junior Member
Posts: 21
Joined: Apr 2017
Reputation: 0
Post: #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.
find quote
Patrickos Offline
Junior Member
Posts: 3
Joined: Jun 2017
Reputation: 0
Post: #12
Thank you very much!

Can you also release a OpenSubtitles mod with this?
find quote