Resultat 1 till 10 av 16

Ämne: Gsub i db 800Hd SE

Hybridvisning

Föregående inlägg Föregående inlägg   Nästa inlägg Nästa inlägg
  1. #1
    Seniormedlem
    Reg.datum
    Mar 2011
    Inlägg
    1 292
    Tackad
    139 gånger
    Nedanstående ger radbrytningar, centrerad och vit text med svart skugga


    <sub name="Subtitle_TTX" font="Regular;38" foregroundColor="#DCDCDC" shadowColor="#40101010" shadowOffset="2,2" />
    <sub name="Subtitle_Regular" font="Regular;38" foregroundColor="#DCDCDC" shadowColor="#40101010" shadowOffset="2,2" />
    <sub name="Subtitle_Bold" font="Replacement;38" foregroundColor="#DCDCDC" shadowColor="#40101010" shadowOffset="2,2" />
    <sub name="Subtitle_Italic" font="Regular;38" foregroundColor="#DCDCDC" shadowColor="#40101010" shadowOffset="2,2" />

    HD skins are setup with screen size 1280x720 pixels.
    SD material is sent in 720x576 pixels

    In the skin.xml file the subtitle display in the screen is defined from lower left position (x=0 y=0) of the total screen. To use full width of screen for the subtitles you set the Subtitle Display to 1280 wide. However to make sure you get the SD subtitles in screen you can not set the height above 576 as that actually will push the SD subtitles below the screen.

    Now to the tricky part, centering the subtitles for both SD and HD channels at the same time as you do not want the subtitles to be wider than 4:3 SD channels.

    You achieve this by limiting the with of the Subtitle display to 720 pixels, but as the SD channels uses the center of the 1280 pixels and the subtitle display area starts lower left you have to add half of the difference between 1280 and 720,(1280-720)/2 = 280 to the subtitle display width resulting in 720+280=1000 pixels. This limits the subtitles on the right side of SD 4:3 material. To limit on the left side you set the start position to 140 (half of 280).

    As I also wants some margin (20 pixels on each side) I reduced the subtitle display to 960 pixels wide and a set the start position to 160.

    With above formula I got the following definition for the Subtitle Display in the skin.xml file:

    <screen name="SubtitleDisplay" position="160,120" size="960,576" zPosition="-1" flags="wfNoBorder" backgroundColor="transparent" >
    </screen>

  2. #2
    Seniormedlem
    Reg.datum
    Jul 2009
    Inlägg
    303
    Tackad
    33 gånger
    Ja nu blev det faktiskt läsbart även om inte radbrytningarna kom på rätt ställe, men klart godkänt.

    Justerade lite till:

    <sub name="Subtitle_TTX" font="Prive3;40" foregroundColor="#ffe4b5" shadowColor="#00000000" shadowOffset="3,3" />
    <sub name="Subtitle_Regular" font="Regular;38" foregroundColor="#DCDCDC" shadowColor="#40101010" shadowOffset="2,2" />
    <sub name="Subtitle_Bold" font="Replacement;38" foregroundColor="#DCDCDC" shadowColor="#40101010" shadowOffset="2,2" />
    <sub name="Subtitle_Italic" font="Regular;38" foregroundColor="#DCDCDC" shadowColor="#40101010" shadowOffset="2,2" />

    <screen name="SubtitleDisplay" position="220,120" size="860,576" zPosition="-1" flags="wfNoBorder" backgroundColor="transparent" >
    Senast redigerad av Stefan60 den 2012-03-12 klockan 20:02.
    1x Vu+duo 4K SE 2xS2 2xT2 4TB HDD OpenPli 8.0
    1x Vu+ duo2 4xS2 2TB HDD
    OpenPLi 7.2
    1x DM8000HD 2xS2 1xT 1xTriple S2/C/T2, DVD, 3TB HDD, RG
    B-Display, OpenPLi 8.0
    2x DM800SE, OpenPLi 4.0
    1x DM500HD, OpenPLi 4.0
    1x Vu+Zero, OpenPLi 7.2

Liknande ämnen

  1. Original 800HD eller Clone 800HD SE
    Av mrmomeni i forum Dreambox
    Svar: 5
    Senaste inlägg: 2013-08-06, 14:07
  2. Skillnad på 800HD och 800HD SE
    Av mrmomeni i forum Dreambox
    Svar: 5
    Senaste inlägg: 2011-10-17, 22:18
  3. Svar: 3
    Senaste inlägg: 2010-01-19, 11:49
  4. gSub
    Av Megagrim i forum Dreambox
    Svar: 2
    Senaste inlägg: 2008-08-30, 09:22
  5. gSUB v2.06
    Av kexx i forum Dreambox
    Svar: 2
    Senaste inlägg: 2007-02-12, 19:49

Taggar för det här ämnet

Behörigheter för att posta

  • Du får inte posta nya ämnen
  • Du får inte posta svar
  • Du får inte posta bifogade filer
  • Du får inte redigera dina inlägg
  •  
stöd oss
ComHit.net är en ideell sidan som drivs helt utan reklamintäkter, detta för att du som användare ska slippa all störande reklam och diskutera de saker du är intresserad av.
Skulle man däremot känna att man vill donera en slant för att hjälpa ComHit.net att bli bättre är ni välkomna att donera via länken nedan.

https://www.paypal.me/comhit/
Följ oss