<p>I am trying to mux in subtitles with ffmpeg, but I am having trouble getting the desired style and output with a reference point being VLC's standard format of showing subtitles matching the look of the subtitles below (when selecting standard.srt files in VLC):</p>
<p><a href="https://i.sstatic.net/ytuMX.png" rel="nofollow noreferrer">VLC standard subtitle format</a></p>
<p>What would be the command to achieve this exact output style for burning subtitles into a video file? I have tried commands looking like this one, but to no avail so far in getting it to match the VLC standard subtitle style:</p>
<p><code>ffmpeg -i input.mkv -vf &quot;subtitles=sub.srt:force_style='FontName=Arial,FontSize=22,PrimaryColour=&amp;Hffffff&amp;,SecondaryColour=&amp;Hffffff&amp;,OutlineColour=&amp;H000000&amp;,BorderStyle=3,Shadow=1,Outline=2&quot; output.mkv</code></p>
<p>I have been trying to extract a style from the VLC settings by tweaking some of the parameters, but no matter what I try to adjust it seems to give an undesired output style or format</p>

CC BY-SA 4.0
2024-03-12T01:50:34.517Z
I think, you didn't close the quotes: `...,Outline=2' " ...`
Баяр Гончикжапов
CC BY-SA 4.0
2024-03-12T10:31:44.067Z
@БаярГончикжапов I got it working and tweaked some of the settings, but I find it hard to impossible to imitate the style of VLC. If someone has some good styling commands or one which achieves the desired VLC look I would be more than happy if someone would share them here
bigboss
CC BY-SA 4.0
2024-03-12T11:14:31.763Z
try `FontName=Arial,FontSize=22,PrimaryColour=&H00ffffff,OutlineColour=&H00000000,BackColour=&H7f000000,BorderStyle=1,Shadow=1,Outline=1`
Баяр Гончикжапов
CC BY-SA 4.0
2024-03-12T12:56:13.457Z
@БаярГончикжапов The output is looking great and just what I was looking for - thanks for the help!
bigboss
<ffmpeg><subtitles>
Ffmpeg command to mux in subtitles matching the style of VLC
bigboss
# Ffmpeg command to mux in subtitles matching the style of VLC

(Asked by: username_0 on 2024-03-11)

I am trying to mux in subtitles with ffmpeg, but I am having trouble getting the desired style and output with a reference point being VLC's standard format of showing subtitles matching the look of the subtitles below (when selecting standard.srt files in VLC):

[VLC standard subtitle format](https://i.sstatic.net/ytuMX.png)

What would be the command to achieve this exact output style for burning subtitles into a video file? I have tried commands looking like this one, but to no avail so far in getting it to match the VLC standard subtitle style:

`ffmpeg -i input.mkv -vf "subtitles=sub.srt:force_style='FontName=Arial,FontSize=22,PrimaryColour=&Hffffff&,SecondaryColour=&Hffffff&,OutlineColour=&H000000&,BorderStyle=3,Shadow=1,Outline=2" output.mkv`

I have been trying to extract a style from the VLC settings by tweaking some of the parameters, but no matter what I try to adjust it seems to give an undesired output style or format

**Tags:** ffmpeg, subtitles

> **Comments:**
> **username_1**: I think, you didn't close the quotes: `...,Outline=2' " ...`  
> **username_0**: @БаярГончикжапов I got it working and tweaked some of the settings, but I find it hard to impossible to imitate the style of VLC. If someone has some good styling commands or one which achieves the desired VLC look I would be more than happy if someone would share them here  
> **username_1**: try `FontName=Arial,FontSize=22,PrimaryColour=&H00ffffff,OutlineColour=&H00000000,BackColour=&H7f000000,BorderStyle=1,Shadow=1,Outline=1`  
> **username_0**: @БаярГончикжапов The output is looking great and just what I was looking for - thanks for the help!  

---

## 0 answers

