<p>Use</p>

<pre><code>ffmpeg -i movie.mkv -strict -2 -vf "subtitles=subtitle.srt:force_style='FontName=ubuntu,fontsize=30,BorderStyle=3,OutlineColour=&amp;H80000000',scale=720:-1" -qscale:v 3  Movie.avi
</code></pre>

<p>See Style <a href="http://fileformats.wikia.com/wiki/SubStation_Alpha#Fields" rel="nofollow noreferrer">Fields</a> and <a href="http://fileformats.wikia.com/wiki/SubStation_Alpha#Data_types" rel="nofollow noreferrer">Data Types</a> for tag info and color syntax.</p>

CC BY-SA 3.0
2016-12-14T16:34:29.623Z
2016-12-14T16:34:29.623Z
Gyan
<p>Hey guys how can I add box around subtitle like on picture with ffmpeg
here is mi current command</p>

<pre><code>ffmpeg -i movie.mkv -strict -2 -vf "subtitles=subtitle.srt:force_style='FontName=ubuntu,fontsize=30',scale=720:-1" -qscale:v 3  Movie.avi
</code></pre>

<p><a href="https://i.sstatic.net/D8RpT.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/D8RpT.png" alt="enter image description here"></a></p>

<ffmpeg><filter><linux>
Add semi-transparent box around subtitle
Slobodan Vidovic
# Add semi-transparent box around subtitle

(Asked by: username_0 on 2016-12-14)

Hey guys how can I add box around subtitle like on picture with ffmpeg
here is mi current command
ffmpeg -i movie.mkv -strict -2 -vf "subtitles=subtitle.srt:force_style='FontName=ubuntu,fontsize=30',scale=720:-1" -qscale:v 3  Movie.avi

**Tags:** ffmpeg, filter, linux


---

## 1 answers

### Answer by username_1 on 2016-12-14. Score: 3 | Accepted answer

Use
ffmpeg -i movie.mkv -strict -2 -vf "subtitles=subtitle.srt:force_style='FontName=ubuntu,fontsize=30,BorderStyle=3,OutlineColour=&H80000000',scale=720:-1" -qscale:v 3  Movie.avi

See Style Fields and Data Types for tag info and color syntax.


---

