[FFmpeg-user] Multiline subtitles without thin dark line

Steinar Apalnes steipal at gmail.com
Wed Feb 15 14:21:19 EET 2023


Hi,

I want to create subtitles with multiple text lines using BorderStyle=3 in
order to have the background color adapt to the length of each line. The
problem is that I get a thin dark line between every text line. Is there a
way to avoid this so that all background areas appear uniform and
transparent?
Using BorderStyle=4 is not an option, nor is using a solid black background.

ffmpeg -f lavfi -i mandelbrot=size=1280x720 -filter_complex
"subtitles=sub.srt:force_style='Alignment=0,OutlineColour=&H80000000,BorderStyle=3'"
-c:v rawvideo -f nut - | ffplay -

Thanks
-steinar

[image: sub.jpg]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sub.jpg
Type: image/jpeg
Size: 193739 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20230215/9cb8ec6e/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sub.srt
Type: application/octet-stream
Size: 115 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20230215/9cb8ec6e/attachment.obj>


More information about the ffmpeg-user mailing list