VideoHelp Forum


Try NordVPN to access Netflix or other streaming services from any country and also surf safe!
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. Member TeNSoR's Avatar
    Join Date
    Mar 2014
    Location
    Hungary, Debrecen
    Search PM
    Hello!

    How can I create this translucent effect on the subtitle? Thanks in advance!
    Image Attached Thumbnails Click image for larger version

Name:	vlcsnap-error118.png
Views:	121
Size:	800.9 KB
ID:	46514  

    Quote Quote  
  2. Using .ssa there's an AlphaLevel you can adjust.

    [V4 Styles]
    Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold,
    Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding

    https://forum.videohelp.com/threads/389018-How-to-make-opaque-box-of-subtitles-semi-transparent
    Quote Quote  
  3. Member TeNSoR's Avatar
    Join Date
    Mar 2014
    Location
    Hungary, Debrecen
    Search PM
    Originally Posted by videobruger View Post
    Using .ssa there's an AlphaLevel you can adjust.

    [V4 Styles]
    Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold,
    Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding

    https://forum.videohelp.com/threads/389018-How-to-make-opaque-box-of-subtitles-semi-transparent
    Thank you! I will try it!
    Quote Quote  
  4. Originally Posted by TeNSoR View Post
    Hello!

    How can I create this translucent effect on the subtitle? Thanks in advance!
    Many ways - for example by creating translucent solid area overlay. This depend on tool used by you to process video. For example in ffmpeg you can use dedicated https://ffmpeg.org/ffmpeg-filters.html#drawbox .
    Quote Quote  
  5. Member TeNSoR's Avatar
    Join Date
    Mar 2014
    Location
    Hungary, Debrecen
    Search PM
    Originally Posted by pandy View Post
    Originally Posted by TeNSoR View Post
    Hello!

    How can I create this translucent effect on the subtitle? Thanks in advance!
    Many ways - for example by creating translucent solid area overlay. This depend on tool used by you to process video. For example in ffmpeg you can use dedicated https://ffmpeg.org/ffmpeg-filters.html#drawbox .
    Thanks for that! but I will be grateful if you give me an example because I'm not familiar with ffmpeg
    Quote Quote  
  6. Did you mean full frame width translucent background box? Or does BG box width matter to you?

    ffmpeg drawbox will make a permanent box that does not toggle with the subs. ie. if people don't speak, no subs, there will be a translucent empty box the whole time. Or does that matter to you ?
    Quote Quote  
  7. Member TeNSoR's Avatar
    Join Date
    Mar 2014
    Location
    Hungary, Debrecen
    Search PM
    Originally Posted by poisondeathray View Post
    Did you mean full frame width translucent background box? Or does BG box width matter to you?

    ffmpeg drawbox will make a permanent box that does not toggle with the subs. ie. if people don't speak, no subs, there will be a translucent empty box the whole time. Or does that matter to you ?
    No, I want to make the subtitle appears with the translucent box not permanent, if possible.
    Quote Quote  
  8. Originally Posted by TeNSoR View Post
    No, I want to make the subtitle appears with the translucent box not permanent, if possible.
    https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo
    https://trac.ffmpeg.org/wiki/HowToConvertSubtitleToASS
    Quote Quote  
  9. If you follow those links you'd end up on the Aegisub forum which I think had the answer but the forum is down.

    Basically, you can create an ASS subtitle. And for each line of "real" subtitle you need a second line that looks something like this:
    {\p1\pos(640,715)}m 0 0 l 1280 0 l 1280 50 l 0 50 l 0 0
    1280 is the width of the box(=width of your video if you want the box to span it completely), 50 the height. 640 is video width divided by two. 715 is the bottom edge of box measured from the top of the video.

    There is a script to automate this: https://github.com/Majid110/MasafAutomation
    Download:
    MasafAutomation.lua (right-click, save as. Put into folder Aegisub\automation\autoload)
    utf8.lua (right-click, save as. Put into folder Aegisub\automation\include)

    Then do:
    1. open video file in Aegisub (you can click Audio->Close Audio to make the audio waveform/spectrum disappear)
    2. load subtitle
    3. click File->Properties and set correct video resolution and YCbCr Matrix (usually "TV.709" for HD and "TV.601" for SD resolution video)
    4. click Automation->Masaf->Add backgrounds. This will make the script add one line of background.
    5. now edit the line created in step 4 so it fits your subtitles
    6. to edit the opaqueness edit the style "TextBackground". (edit its primary color's alpha level)
    7. click Automation->Masaf->Add backgrounds again to copy the created background line to every real subtitle line
    8. click File->Save subtitles as to save as an .ass file.
    9. Now you can use the .ass file how you want. E.g. add into mkv container (you can put fonts in attachments) using mkvtoolnix. If your player doesn't like ASS format you can hardcode using e.g. HandBrake (open the mkv, select the subtitle track, tick "burn-in", then encode).
    Last edited by sneaker; 19th Aug 2018 at 06:30.
    Quote Quote  
  10. Member TeNSoR's Avatar
    Join Date
    Mar 2014
    Location
    Hungary, Debrecen
    Search PM
    Originally Posted by sneaker View Post
    If you follow those links you'd end up on the Aegisub forum which I think had the answer but the forum is down.

    Basically, you can create an ASS subtitle. And for each line of "real" subtitle you need a second line that looks something like this:
    {\p1\pos(640,715)}m 0 0 l 1280 0 l 1280 50 l 0 50 l 0 0
    1280 is the width of the box(=width of your video if you want the box to span it completely), 50 the height. 640 is video width divided by two. 715 is the bottom edge of box measured from the top of the video.

    There is a script to automate this: https://github.com/Majid110/MasafAutomation
    Download:
    MasafAutomation.lua (right-click, save as. Put into folder Aegisub\automation\autoload)
    utf8.lua (right-click, save as. Put into folder Aegisub\automation\include)

    Then do:
    1. open video file in Aegisub (you can click Audio->Close Audio to make the audio waveform/spectrum disappear)
    2. load subtitle
    3. click File->Properties and set correct video resolution and YCbCr Matrix (usually "TV.709" for HD and "TV.601" for SD resolution video)
    4. click Automation->Masaf->Add backgrounds. This will make the script add one line of background.
    5. now edit the line created in step 4 so it fits your subtitles
    6. to edit the opaqueness edit the style "TextBackground". (edit its primary color's alpha level)
    7. click Automation->Masaf->Add backgrounds again to copy the created background line to every real subtitle line
    8. click File->Save subtitles as to save as an .ass file.
    9. Now you can use the .ass file how you want. E.g. add into mkv container (you can put fonts in attachments) using mkvtoolnix. If your player doesn't like ASS format you can hardcode using e.g. HandBrake (open the mkv, select the subtitle track, tick "burn-in", then encode).
    Thank you so much! sneaker! that's so informative, I will try it
    Quote Quote  



Similar Threads