0

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

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

4
  • I think, you didn't close the quotes: ...,Outline=2' " ... Mar 12 at 1:50
  • @БаярГончикжапов 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
    Mar 12 at 10:31
  • try FontName=Arial,FontSize=22,PrimaryColour=&H00ffffff,OutlineColour=&H00000000,BackColour=&H7f000000,BorderStyle=1,Shadow=1,Outline=1 Mar 12 at 11:14
  • @БаярГончикжапов The output is looking great and just what I was looking for - thanks for the help!
    – bigboss
    Mar 12 at 12:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.