Hello,
why theres no option to change the subtitles font and size ?
it would be amazing if you add this option
Well, 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.
Can we not change font size before burning in? For example set font size of SRT subtitle to 40px before burning it as pixels.
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.
Reopening so we can take another look at this.
@jstebbins I notice various places where the text height is hard coded. Thoughts on making this configurable for soft/CC inputs?
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.
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.
Drop shadows or a simple glow option would be nice too!
I really need the font size option. any updates?
Nope. It's not high on the priorities list so I wouldn't expect it short term unless someone contributes a patch.
I have customized my local version to use some different settings with the
fonts. If you know what you want to change (I didn't like the drop shadow
so I removed it) you can modify the file: /libhb/common.c on line 4649 that
starts with "Style: Default, "....
If you want to change which font is used you have to modify
/libhb/internal.h around line 525 and update the variable HB_FONT_MONO.
After that, just compile the code and use your custom versions.
On Mon, May 1, 2017 at 4:24 PM, jmurch notifications@github.com wrote:
I really need the font size option? any updates?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/HandBrake/HandBrake/issues/146#issuecomment-298436839,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AATiqqWyVxrCmvoi_xaVCLUmF90a4l0xks5r1k2ZgaJpZM4ICuHM
.
Perfect thanks for the really fast response.
Jeff
can you pleas send that customized version so i can change font size really sorry because i cant do something with that code stuff :(
Hi,
I too did not like the current subtitles font size and shadow. it would be really great if subtitle can be customize such as size and transparency percentage and position.
Please consider..
Is this still on the table?
It's still an open ticket although with the lack of interested developers, it's not showing any signs that it''ll appear soon. Unless someone wants to provide patches of course?
What about tags in the SRT file's text to set size and color? VLC supports those, but Handbrake doesn't. https://en.wikipedia.org/wiki/SubRip#Formatting
Funny, I see nothing in that link regarding font size. SRT has no font size tag. HandBrake already supports all the SRT tags listed in that link.
Yeah, I think I pasted the wrong link. The text formatting options are all unofficial, and there's no real standard. SubRip has no font size. VLC and some other things support a size attribute in SRT like this: <font size="16px">phrase</font>. Ended up biting the bullet and figuring out how to burn those subtitles in with VLC.
Hi, after following reubenbrown13 comment I could customize font, size and styles. Now I would like to customize line spacing following this blog article : https://www.md-subs.com/line-spacing-in-ssa
{\org(-2000000,0)\fr<value>} Line one, {\r} \N line two.
Sadly I don't have the knowledge to find where in code I can add that line flags. Also depending how the code works maybe it's also needed new code to make those insertions only at begining and end of the first line of a two line subtitle.
Can somebody help?
Many thanks .
I changed the Style to fit my taste. If anyone likes it, feel free to use.
(Please note I use it only with external Hebrew SRT subtitle files).
"Style: Default,%s,%d,&H00FFFFFF,&H00FFFFFF,&H000F0F0F,&H800F0F0F,0,0,0,0,70,70,0,0.00,1,2,2,2,10,10,10,0\r\n"#define HB_FONT_SANS "Arial"Patches are fine, please do not distribute unofficial binaries, especially here.
Wow, you are fast to catch 👍
Hello bradleysepos, can U send me links to instructions on how to make a 'Patch' for 'hb.dll'?
git diff > mychanges.txt
`~/HandBrake$ git diff
diff --git a/libhb/common.c b/libhb/common.c
index 16085bb44..b986de28e 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -4820,7 +4820,7 @@ int hb_subtitle_add_ssa_header(hb_subtitle_t *subtitle, const char *font,
"\r\n"
"[V4+ Styles]\r\n"
"Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding\r\n"
- "Style: Default,%s,%d,&H00FFFFFF,&H00FFFFFF,&H000F0F0F,&H000F0F0F,0,0,0,0,100,100,0,0.00,1,2,3,2,20,20,20,0\r\n";
+ "Style: Default,%s,%d,&H00FFFFFF,&H00FFFFFF,&H000F0F0F,&H800F0F0F,0,0,0,0,70,70,0,0.00,1,2,2,2,10,10,10,0\r\n";
subtitle->extradata = (uint8_t*)hb_strdup_printf(ssa_header, w, h, font, fs);
if (subtitle->extradata == NULL)
diff --git a/libhb/internal.h b/libhb/internal.h
index cc3bf7f19..67949d9ed 100644
--- a/libhb/internal.h
+++ b/libhb/internal.h
@@ -524,7 +524,7 @@ void hb_chapter_dequeue(hb_chapter_queue_t q, hb_buffer_t *b);
/ Font names used for rendering subtitles */
#if defined(SYS_MINGW)
#define HB_FONT_MONO "Lucida Console"
-#define HB_FONT_SANS "sans-serif"
+#define HB_FONT_SANS "Arial"
#else
#define HB_FONT_MONO "monospace"
#define HB_FONT_SANS "sans-serif"
urwe@urwe10:~/HandBrake$`
At present, the subtitles of SRT settings are not in the TV security line, and need to be improved!
Can we not change font size before burning in? For example set font size of SRT subtitle to 40px before burning it as pixels.
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.
I agree. This would be a very well welcomed feature.
Nightly builds support ASS subtitles, so you can set the font-size in the .ass file.
Ass does not support recording to video after adding.(Add extra subtitles)
We hope to open the SSA default interface of SRT conversion. Currently, the default subtitle is not in the TV security line, and Chinese is ugly.
Netflix's video resource is SRT subtitles. I don't want to extract subtitles and convert them to ass subtitles, so the sub operation time will double. It seems that SRT font is converted to SSA by default. The default format of the above comment SSA can be modified. I hope this interface can be independent. I can modify it in the operation interface. I can't speak English or program. Please help me.
Nightly builds support ASS subtitles, so you can set the font-size in the .ass file.
Thank you for adding support for .ass files! Using Subtitle Edit (Options > Settings > ASS/SSA Style) I can now fully customize font, size, color, placement, etc. of open captions (hard subs) that HandBrake renders with very little effort.
Hello.
It would be probably easier to implement font size and color setting, in command line version of Handbrake first.
And font name if possible.
Or for gui version to read setup from local settings.ini.
Thanks.
Edit:
You can also edit HandBrakeCLI.exe using hex editor such as HxD. Make backup of HandBrakeCLI.exe first.
Look for "H00FF", without quotes, and replace colors with the values you want.
Example:
Style: Default,%s,%d,&H00FFFFFF,&H00FFFFFF,&H000F0F0F,&H000F0F0F,0
change to:
Style: Default,%s,34,&H0000FFFF,&H0000FFFF,&H000F0F0F,&H000F0F0F,1
This will change font size to 34, primary and secondary color to yellow ( first two numbers: &H0000FFFF,&H0000FFFF), and set text to bold (last number 0 to 1)
.ass formatting:
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,28,&Hffff,&Hffff,&H0,&H0,1,0,0,0,100,100,0,0,1,1,0,2,10,10,10,0
Hey,
I think that if there was a simple settings file that could be edited in a text editor and that that handbrake could load that file on runtime, it would solve at least a lot of the immediate needs for doing new UI.
@jstebbins , @bradleysepos - do you see this as something more feasible?
edit: nevermind, i'm stupid. my issues are all caused by VLC's default sub font. carry on!
Most helpful comment
Can we not change font size before burning in? For example set font size of SRT subtitle to 40px before burning it as pixels.