Hello!
How can I create this translucent effect on the subtitle? Thanks in advance!
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 13 of 13
Thread
-
-
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 -
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 .
-
-
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 ? -
-
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.
-
-
@sneaker
@ sneaker
Hi. Im trying to make bigger the opaque box but give me error on load of automatization, can you help me? -
Subtitle Edit can also do this: https://www.nikse.dk/subtitleedit/help#assa_bg_box
Note that you can set a simple opaque box up with just style (not full width though) -
Hi, I have put MasafAutomation in folder Aegisub\automation\autoload, but when I open Aegisub, the following error message is shown. Can you fix this issue or show me how to edit the file so that it can work? I don't know about coding but can copy-paste a solution into NotePad++. My OS is Windows 11.
[Attachment 79750 - Click to enlarge]
Similar Threads
-
Create Plain Text Transcript From Incremental SRT Subtitle
By adamlogan in forum SubtitleReplies: 2Last Post: 21st Jun 2018, 03:30 -
How to create a 'highlighted' subtitle to cover over hardcoded subs
By cinesimon in forum SubtitleReplies: 6Last Post: 5th Jun 2015, 00:26 -
How to auto create time and date subtitle?
By zaerdy in forum SubtitleReplies: 9Last Post: 20th May 2015, 09:51 -
Add Avisynth translucent color bars?
By lordsmurf in forum EditingReplies: 4Last Post: 24th May 2014, 19:59 -
EasySub, a web application to create subtitle
By Titoine in forum SubtitleReplies: 4Last Post: 22nd May 2014, 08:00