VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member spiritgumm's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Trying to add a title to a show. I've tried subtitle and subtitleex with avisynth but I cant get the font to be really bold or have a dropshadow (it provides a complete outline instead). Tried Overlay with two images - text on black background and mask, but it loses the dropshadow. Is there a way to use a text image with a transparent background, and no mask which might cancel out the dropshadow?
    Quote Quote  
  2. * To get a bolder font, try font="Arial Black" or some other heavy font you may have on your system.

    * To get a dropshadow, call Subtitle twice:
    Code:
    Colorbars(width=320, height=200)
    Subtitle("Subtitle", x=54+4, y=54+4, size=56, font="Arial Black", text_color=$0, halo_color=$0) ## note offset x & y
    Subtitle("Subtitle", x=54, y=54, size=56, font="Arial Black", text_color=color_wheat, halo_color=$0)
    Image
    [Attachment 43571 - Click to enlarge]


    * to get a wider halo, create a white-on-black mask and use MaskTools' mt_expand:
    Code:
    BlankClip(Last, pixel_type="YV24", color=color_black)
    Subtitle("Subtitle", x=54, y=54, size=56, font="Arial Black", text_color=color_white)
    ColorYUV(levels="TV->PC") ## for Overlay: want full-range masks
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128")
    Image
    [Attachment 43572 - Click to enlarge]

    Image
    [Attachment 43573 - Click to enlarge]


    Putting it all together,
    Code:
    Colorbars(width=320, height=200)
    O=Last
    BlankClip(Last, pixel_type="YV24", color=color_black)
    Subtitle("Subtitle", x=54, y=54, size=56, font="Arial Black", text_color=color_white)
    ColorYUV(levels="TV->PC")
    Text=Last
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128").Blur(0.2)
    mt_expand(chroma="-128")
    Halo=Last
    
    O
    Overlay(BlankClip(O, color=color_black), mask=Halo.mt_expand(chroma="-128")) #, x=2, y=2)
    Overlay(BlankClip(O, color=color_wheat), mask=Text)
    Image
    [Attachment 43574 - Click to enlarge]
    Quote Quote  
  3. Member spiritgumm's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    The dropshadow trick using two subtitles is a good idea. However, I cant find a bolder font version anywhere online, so it has to be manipulated with photoshop and added as an overlay...
    I can adopt your suggestion by creating two overlays - the dropshadow, and the text over it. Just abit annoying to have to create 4 images, etc, etc.
    Last edited by spiritgumm; 1st Nov 2017 at 15:52.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!