Hello everyone,
I have been trying in Aegisub to have subtitles with a regular "opaque box" that would be slightly transparent, but to no avail. I am exporting .ssa files and hardcoding them on .mp4 video files with VirtualDubMod. On Aegisub it actually looks fine; I can change the transparency in the Outline and Shadow colors settings. But when I add the .ssa subtitle file in VirtualDubMod with the VSFilter (or TextSub), the opaque box shows completely opaque, without any transparency.
In this post from some time ago, one person says that by adding this: {\bord1\3a&c0\an5} in each dialogue line, we can obtain the transparency. It does indeed give a transparent box behind the subtitles, but there are two problems with it that I can see: First, you would have to add this to every line of dialogue, and two, it overrides the subtitles' position defined in the subtitle style.
I have found a good way to have a transparent box with an editable size here (Masaf Automation script), but unless you add the background line for every dialogue line, the transparent box will show constantly, even when there are no subtitles. Do you know if there is any way to get the transparency of the opaque box on Aegisub to work on VirtualDub, or with any other encoding software?
Thanks in advance.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
You already had it working?
https://forum.videohelp.com/threads/383537-Hardcoding-subtitles-on-a-transparent-box -
Hey sneaker, thank you for making mention of last year's post. Yes, indeed, that was very good - you had helped me make a background image which was semi-transparent. But I was now looking for something more close to the subtitles. You know what, I have found something quite satisfactory this morning. I will copy it here for the sake of others who might come across this thread:
With FFmpeg (the basic Windows Buildup), using the following command line, I have managed to have the transparency being taken into account in hardcoding. Here is the line:
ffmpeg -i input.mp4 -vf "ass=subtitle.ssa" -codec:v libx264 -codec:a ac3 -b:a 160k -preset slow -crf 22 output.avi
Similar Threads
-
Hardcoding subtitles on a transparent box
By victorbireaud in forum SubtitleReplies: 6Last Post: 28th Dec 2019, 06:00 -
Problem with opaque box
By Robzkie in forum SubtitleReplies: 6Last Post: 16th May 2017, 06:14 -
Hardcode subs to MKV/H.264 with semi-transparent opacity
By kodec in forum SubtitleReplies: 5Last Post: 17th Jan 2017, 16:17 -
Opaque Box width
By varun_kapoor in forum SubtitleReplies: 0Last Post: 17th Feb 2014, 11:29 -
Remove semi-transparent colored logo with XLogo?
By Brad in forum RestorationReplies: 0Last Post: 7th Dec 2013, 13:05