How to change ffmpeg default font size?

Tags
ffmpeg font size, ubuntu

 
Thread Tools Search this Thread
# 1  
Old 06-03-2017
How to change ffmpeg default font size?

Hello,

I have a problem with Greek subtitle font size when I map a subtitle file into a video in ffmpeg.

I ran below code:

Code:
ffmpeg -i video.mp4 -sub_charenc CP1253 -i video_sub.srt -c:v copy -c:a copy \ 
-c:s mov_text -metadata:s:s:0 language=gr mapped_video.mp4

When I play it in VLC, it gives very small subtitle size.

Then I tried to increase subtitle fontsize but no luck.

Code:
ffmpeg -strict -2 -i video.mp4 -sub_charenc CP1253 -vf subtitles=video_sub.srt:force_style='Fontsize=30' \ 
-qscale:v 3 -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=gr mapped_video.mp4

Also tried this one but failed again:

Code:
ffmpeg -strict -2 -i video.mp4 -sub_charenc CP1253 -vf "subtitles=video_sub.srt:force_style='Fontsize=30'" \
-qscale:v 3 -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=gr mapped_video.mp4

As default fontsize in ffmpeg is 16, this time I increased fontsize from 16 to 30 in vf_drawtext.c file, then I reconfigured ffmpeg and replaced new ffmpeg binary file but nothing changed.

PS: I tested below code as -vf is invalid when -c:v copy is selected..
Code:
ffmpeg -strict -2 -i video.mp4 -sub_charenc CP1253 -vf subtitles=video_sub.srt:force_style='Fontsize=30' \ 
-qscale:v 3 -c:v libx264 -c:a copy -c:s mov_text -metadata:s:s:0 language=gr mapped_video.mp4

Could you please explain how I may do this?


Thanks
Boris

Last edited by baris35; 06-03-2017 at 04:21 PM.. Reason: last attempt
# 2  
Old 06-11-2017
Please post your system details.

Thanks.
# 3  
Old 06-11-2017
Hello Neo,
Here you are:
Code:
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

Code:
Linux bv0791 3.13.0-119-generic #166-Ubuntu SMP Wed May 3 12:18:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Kind regards
Boris

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Increase Font size vasuibm Red Hat 1 03-26-2013 10:15 AM
Help with changing font size in konsole NiCe Shell Programming and Scripting 3 10-26-2012 04:23 PM
Running ffmpeg in loop seems to change reading from file Thriceguy Shell Programming and Scripting 2 04-14-2012 02:49 PM
Font Size in shell! nikki1200 Shell Programming and Scripting 4 08-24-2011 05:30 AM
Control font size: Perl shristi Shell Programming and Scripting 0 05-25-2010 08:02 AM
xterm font size and utf8 kerb41 Linux 0 11-27-2009 05:52 AM
Font Size Shazin Shell Programming and Scripting 2 09-25-2009 07:41 AM
change the font size in bash mierdatuti Shell Programming and Scripting 5 01-13-2009 03:48 PM
how to change the font size of shell in $ prompt tsjpraveen AIX 2 12-01-2008 06:24 AM
Font size in VIM ketchera UNIX for Dummies Questions & Answers 1 02-19-2008 11:29 AM
set font size sachin.gangadha UNIX for Dummies Questions & Answers 14 12-13-2007 08:50 PM
How can I enlarged the font size? new_hand UNIX for Dummies Questions & Answers 0 09-10-2005 10:42 AM
font size printing ppass Solaris 1 06-10-2005 06:44 PM
Font size elhefe UNIX for Dummies Questions & Answers 2 11-05-2001 05:18 PM