user38298: While using ffmpeg to burn .srt subtitles to mp4 files I'm having an issue with multiple text lines  - background is overlaying each other.
Command I'm using:
ffmpeg -i source_video_path.mp4 -vf "subtitles=srt_source.srt:force_style='OutlineColour=&H80000000,BorderStyle=3,Outline=1,Shadow=0,MarginV=25,Fontname=Arial,Fontsize=10,Alignment=2'" video_destination.mp4

Question is - is it possible to overcome the overlay while still having a transparent background while using .srt format or I need to use .ass format as a fix?

user38298: You can avoid multiple lines overlaying each other by using BorderStyle=4 together with BackColour=&H80000000 which gives a 50% opaque black color background.
Full command would be:
ffmpeg -i source_video_path.mp4 -vf "subtitles=srt_source.srt:force_style='OutlineColour=&H80000000,BorderStyle=4,BackColour=&H80000000,Outline=0,Shadow=0,MarginV=25,Fontname=Arial,Fontsize=10,Alignment=2'" video_destination.mp4



38298: <p>While using <code>ffmpeg</code> to burn <code>.srt</code> subtitles to <code>mp4</code> files I'm having an issue with multiple text lines  - background is overlaying each other.</p>
<p>Command I'm using:</p>
<p><code>ffmpeg -i source_video_path.mp4 -vf &quot;subtitles=srt_source.srt:force_style='OutlineColour=&amp;H80000000,BorderStyle=3,Outline=1,Shadow=0,MarginV=25,Fontname=Arial,Fontsize=10,Alignment=2'&quot; video_destination.mp4</code></p>
<p><a href="https://i.stack.imgur.com/1QIDX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1QIDX.png" alt="enter image description here" /></a></p>
<p>Question is - is it possible to overcome the overlay while still having a transparent background while using <code>.srt</code> format or I need to use <code>.ass</code> format as a fix?</p>
 38298: <p>You can avoid multiple lines overlaying each other by using <code>BorderStyle=4</code> together with <code>BackColour=&amp;H80000000</code> which gives a 50% opaque black color background.</p>
<p>Full command would be:</p>
<pre><code>ffmpeg -i source_video_path.mp4 -vf &quot;subtitles=srt_source.srt:force_style='OutlineColour=&amp;H80000000,BorderStyle=4,BackColour=&amp;H80000000,Outline=0,Shadow=0,MarginV=25,Fontname=Arial,Fontsize=10,Alignment=2'&quot; video_destination.mp4
</code></pre>
<p><a href="https://i.stack.imgur.com/uqgcb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uqgcb.png" alt="enter image description here" /></a></p>
