[FFmpeg-user] ffmpeg mapping subtitles and setting subtitle force_style

Monte Zott monte.zott at gmail.com
Thu Jun 13 16:54:08 EEST 2019


Can someone advice me how to set subtitle style while getting the subtitles
from dvdsource and not from file?

e.g. my command looks as follows

ffmpeg -y -i %%a -vf "movie=banaxi_watermark_HD.png, scale=87:31 [wm];
[in][wm] overlay=30:30 [out]" -af apad -t xxxx -g 100 -sc_threshold 0
-aspect 16:9 -s 720x576 -c:v libx264 -profile:v baseline -level 3.0 -refs 3
-crf 1 -muxrate 6000k -maxrate 5400k -minrate 5400k -bufsize 5100k
-x264opts b-pyramid=0:force-cfr:cabac=1:bframes=3 -map 0:v:0 -map 0:a:0
-map 0:a:1 -acodec mp2 -strict -2 -ab 128k -ar 48000 -metadata:s:a:0
language=cze -metadata:s:a:1 language=mon -map 0:5 -scodec dvbsub
-metadata:s:s:0 language=cze

i would like to set the subtitle style (font, font size, font color,
border, outline, ...

ffmpeg -i instagram-sized.mp4 -vf "subtitles=captions.ass:
force_style='OutlineColour=&H80000000,BorderStyle=4,Outline=1,Shadow=0,MarginV=90'"
instagram-subs.mp4

i have also found some optiuon for some DVD subtitles, but that only
mentions some 16 hexa numbers, but i have no clue how that works. what does
which number mean.

ffmpeg -probesize 100M -analyzeduration 120M -palette
"ffffff,000000,ffffff,00ff00,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff"
-i input.vob -filter_complex "[0:v][1:s]overlay" -acodec copy -vcodec
libx264 output.mp4

Can someone advice me how to set the subtitle appearance for dvbsubs that
are mapped (not from filesource).
Thanks
Regards
Oto


More information about the ffmpeg-user mailing list