![]() ![]() Simply making the box taller to compensate will suffice, but will look ugly because the subtitles baseline remains static: the single line subtitles will have more padding on the top than the bottom. This may be useful if you want the box to span the width.ĭownside is that you have to account for line breaks or word wrapping for long subtitles. The drawbox filter can be used to create a background box. Matroska (mkv) track extraction windows GUI tool. Thanks to sup and wm4 for the BorderStyle suggestion. Aegisub is a subtitle editor, focusing on the Advanced SubStation Alpha (ASS) format. Note that BorderStyle=4 is a non-standard value, so it may not work properly in all players. This will fill the bounding box background of each subtitle event. In the Style line change the value corresponding with BorderStyle to 4. ![]() Click on the shadow color to adjust the Alpha of the shadow color to your desired transparency level.Įdit the ASS file in a text editor. The alpha settings of the shadow will control the transparency of the background box.Changing the Outline and Shadow sizes to 0.If your subtitles contains multiple lines, due to auto-wrapping of long lines or an intentional line break, the backgrounds will overlap and potentially look ugly as shown below: See SubStation Alpha (ASS) style fields for formatting options. This will work with any text based subtitles supported by FFmpeg because the filter will automatically convert them to ASS. ffmpeg -i input -filter_complex "subtitles=subs.ass:force_style='OutlineColour=&H80000000,BorderStyle=3,Outline=1,Shadow=0,MarginV=20'" output If you want hardsubs you can use the subtitles filter to add the transparent background with the force_style option. Now you can use the AAS file to make hardsubs or softsubs with ffmpeg. Adjust the value of the Alpha box to change transparency. Under Colors click the color under Outline or Shadows.Experiment with the Outline and Shadow values. Another subtitle editor that allows for converting into different formats (and comes with tons of features) is Aegisub.Under Current Script choose Default, then press the Edit button.You may also need to adjust the offset (the adjacent setting). Go to Tools > Preferences > Subtitles/OSD > Dual Subtitles (at the very bottom) > Align and change it to anything but unset. ![]() First, you need to turn them on, overall. The easiest way to do this is with aegisub. Making it work seems to currently be a bit more fiddly than with MPV. d2v files (indexed DVD VOBs) if the correct plugin is supplied. ASS subtitles can have a semi-transparent background for the text. Versatile, supports loading almost all common formats as well as. ![]()
0 Comments
Leave a Reply. |