Skip to content

Subtitle Font/Size/Background #146

Open

Description

@iN4sser

Hello,
why theres no option to change the subtitles font and size ?
it would be amazing if you add this option

Activity

  1. sr55 commented on Apr 8, 2016

    @sr55
    Contributor

    Bitmap based subtitles can't have their font changed as they are images.

    Anything else we support is done on the subtitle itself, or the player it's played back on so there is little need to add this.

  2. dogancelik commented on Dec 11, 2016

    @dogancelik

    Can we not change font size before burning in? For example set font size of SRT subtitle to 40px before burning it as pixels.

  3. reubenbrown13 commented on Dec 31, 2016

    @reubenbrown13

    I agree about having some kind of option to adjust the font before burning into a video. The current choice is much harder to read than the .9 versions. Even having a "bold" option would help.

  4. bradleysepos commented on Dec 31, 2016

    @bradleysepos
    Contributor

    Reopening so we can take another look at this.

  5. added this to the Unscheduled milestone on Dec 31, 2016
  6. bradleysepos commented on Dec 31, 2016

    @bradleysepos
    Contributor

    @jstebbins I notice various places where the text height is hard coded. Thoughts on making this configurable for soft/CC inputs?

  7. jstebbins commented on Dec 31, 2016

    @jstebbins
    Contributor

    I have no objections. But it's a fair amount of work involving all 3 GUI developers. So it's not going to happen over night. Feel free to mark as a 1.1.0 feature. But it may get pushed further out.

  8. stiefelriehmen commented on Jan 26, 2017

    @stiefelriehmen

    For me as a video producer the option of changing the size of burned in subtitles before burning them in, would make my workflow instantly a lot better. I support this motion.

  9. 41 remaining items

  10. AlanTuring42 commented on May 29, 2022

    @AlanTuring42

    That can actually be done through the .srt file. Font face, color and size can be set by html tags like the following:

    1
    00:00:11,444 --> 00:00:14,213
    <font face="Helvetica" size="80" color="#FFFFFF">First line of the subtitle</font>
    

    As for the positioning, you may use the alignment tags. If you don't use any, it'll default to bottom-middle aligned. But different options (such as top left etc.) are possible with a special tag that starts from {\an1} to {\an9} You should add them right before the tag like this:

    1
    00:00:11,444 --> 00:00:14,213
    {\an3} <font face="Helvetica" size="80" color="#FFFFFF">First line of the subtitle</font>
    

    Hope this helps

    That can actually be done through the .srt file. Font face, color and size can be set by html tags like the following:

    1
    00:00:11,444 --> 00:00:14,213
    <font face="Helvetica" size="80" color="#FFFFFF">First line of the subtitle</font>
    

    As for the positioning, you may use the alignment tags. If you don't use any, it'll default to bottom-middle aligned. But different options (such as top left etc.) are possible with a special tag that starts from {\an1} to {\an9} You should add them right before the tag like this:

    1
    00:00:11,444 --> 00:00:14,213
    {\an3} <font face="Helvetica" size="80" color="#FFFFFF">First line of the subtitle</font>
    

    Hope this helps

    That's cool, but how do I do it without manual entry on every single line tho? Is there any quick way to do it for example with regx or something else, I've got like 2000 lines (If it is regx please share your idea tho how to achieve this).

  11. esuvari commented on May 29, 2022

    @esuvari

    That can actually be done through the .srt file. Font face, color and size can be set by html tags like the following:

    1
    00:00:11,444 --> 00:00:14,213
    <font face="Helvetica" size="80" color="#FFFFFF">First line of the subtitle</font>
    

    As for the positioning, you may use the alignment tags. If you don't use any, it'll default to bottom-middle aligned. But different options (such as top left etc.) are possible with a special tag that starts from {\an1} to {\an9} You should add them right before the tag like this:

    1
    00:00:11,444 --> 00:00:14,213
    {\an3} <font face="Helvetica" size="80" color="#FFFFFF">First line of the subtitle</font>
    

    Hope this helps

    That can actually be done through the .srt file. Font face, color and size can be set by html tags like the following:

    1
    00:00:11,444 --> 00:00:14,213
    <font face="Helvetica" size="80" color="#FFFFFF">First line of the subtitle</font>
    

    As for the positioning, you may use the alignment tags. If you don't use any, it'll default to bottom-middle aligned. But different options (such as top left etc.) are possible with a special tag that starts from {\an1} to {\an9} You should add them right before the tag like this:

    1
    00:00:11,444 --> 00:00:14,213
    {\an3} <font face="Helvetica" size="80" color="#FFFFFF">First line of the subtitle</font>
    

    Hope this helps

    That's cool, but how do I do it without manual entry on every single line tho? Is there any quick way to do it for example with regx or something else, I've got like 2000 lines (If it is regx please share your idea tho how to achieve this).

    It might be the case that once you set it on the first line, that becomes the default for the rest of the lines automatically. Haven’t tried it though, you should check.

    Other than that, yeah, regex should be able to detect the timecode pattern and insert the font settings right after. But don’t know how tbh.

  12. moonlightz commented on Aug 28, 2022

    @moonlightz

    I'm looking for the feature of this issue. Lately, I been working with Handbrake because it works fast when encoding files. Today, I needed to burn in subtitles into videos and I find that this simple task is not yet implemented even requested for years. As noted above, most video editors/converters do have some sort of burn in option right from the hat o using some module/extensions.
    I'm not going to use SSA because it's hard to deal with.
    All we need is a simple button that opens a dialog that allows us to set a profile/preset for loading/save, also to change the font name, font style, font size, shadow width, enable/disable black box behide text, fore/background colors and probably not more. Simple.
    I gave up searching a simple way. I ended up using VirtualDub2 32bit and textsub. The problem with textsub is that not utf-8 compatible and it doesnt remember which preset was before. Then I have to deal with options to make the video play nicely everywhen.
    What's the deal with devs? Will we wait more 6 years?
    I will try the tags with handbrake and see if it works.

  13. sr55 commented on Aug 28, 2022

    @sr55
    Contributor

    What's the deal with devs?

    The deal is HandBrake has no paid developers. When individuals contribute code to this project, they do so in their free time.
    All comments such as this this do, is annoy people who might want to contribute to the project discouraging them from investing their time.

    Ultimately, with such a small number of people actively contributing these days, priority calls and interest based calls have to be made. This feature isn't a priority.

    Thus, if someone wants to contribute it, they can get in touch.

  14. damascene commented on Aug 29, 2022

    @damascene

    That is what I get with the example provided above for font size and subtitle burned to video:

    HandBrake Version: 1.3.1 (x86_64)

    1
    00:00:04,059 --> 00:00:18,380
    <font size="10">[Music]</font>
    
    2
    00:00:18,380 --> 00:00:21,669
    {\an3} <font face="Helvetica" size="80" color="#FFFFFF">First line of the subtitle</font>
    
    3
    00:00:21,670 --> 00:00:25,449
    {\an3} <font face="Ubuntu Thin" size="40" color="#FFFFFF">First line of the subtitle</font>

    image

  15. esuvari commented on Aug 29, 2022

    @esuvari

    That is what I get with the example provided above for font size and subtitle burned to video:

    HandBrake Version: 1.3.1 (x86_64)

    1
    00:00:04,059 --> 00:00:18,380
    <font size="10">[Music]</font>
    
    2
    00:00:18,380 --> 00:00:21,669
    {\an3} <font face="Helvetica" size="80" color="#FFFFFF">First line of the subtitle</font>
    
    3
    00:00:21,670 --> 00:00:25,449
    {\an3} <font face="Ubuntu Thin" size="40" color="#FFFFFF">First line of the subtitle</font>

    image

    That's odd, it should work. Try upgrading your version, mine is 1.4.2 and it works there. (I'm on a Mac though.)

    Also try saving your srt file in UTF-8 encode.

    Last of all, you're sure you close the tag with right?

  16. damascene commented on Aug 29, 2022

    @damascene

    @esuvari The same file worked after using version: 1.5.1 (x86_64)

  17. HL--K commented on Oct 12, 2022

    @HL--K

    See this link for a script (AddSubtitleTag.ahk) to automate the inclusion of html tags to your .srt file. You may need to install Autohotkey on your computer if it is not already installed.

  18. changed the title [-]Subtitle Font/Size[/-] [+]Subtitle Font/Size/Background[/+] on Jan 3, 2023
  19. NowDev commented on Mar 31, 2024

    @NowDev

    Bump, really need this.

  20. ilcane87 commented on Dec 6, 2025

    @ilcane87

    Hidden as abuse

    Pretty sure @myaccomplishmentsarefew was using the impersonal "you"...

  21. galad87 commented on Dec 8, 2025

    @galad87
    Contributor

    The first time might have been an error on my part, the second time surely is not.

  22. DigiAngel commented on Mar 1, 2026

    @DigiAngel

    I'll chime in here as well...not sure if this is a "new" issue or falls in here, I'll open a new ticket if needed. I'm using HandBrakeCLI with this command with commit 7fcb6ec version:

    HandBrakeCLI -Z Fast 1080p30 --audio-lang-list eng --first-audio --subtitle-lang-list eng --first-subtitle 
    

    With the above, I get hardcoded subs which work fine:

    Image

    When disabling hardcoded with:

    HandBrakeCLI -Z Fast 1080p30 --audio-lang-list eng --first-audio --subtitle-lang-list eng --first-subtitle  --subtitle-burned=none
    

    I get this when I enable subtitles (using the vlc option):

    Image

    Using mediainfo, both show the Text as the same:

    ID                                       : 3
    Format                                   : VobSub
    Codec ID                                 : mp4s-E0
    Codec ID/Info                            : The same subtitle format used on DVDs
    Duration                                 : 2 h 2 min
    Bit rate mode                            : Constant
    Bit rate                                 : 6 410 b/s
    Frame rate                               : 0.499 FPS
    Stream size                              : 5.62 MiB (1%)
    Language                                 : English
    Default                                  : Yes
    Forced                                   : Yes / No
    Alternate group                          : 3
    Encoded date                             : 2022-05-29 12:07:37 UTC
    Tagged date                              : 2022-05-29 12:07:37 UTC
    Menus                                    : 4
    

    I'm at a loss on what to do next...either no subs at all, or hardcoded..neither is what I'm looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions