add sub_font to config (#22)

This commit is contained in:
MicrochipQ 2023-10-11 02:07:47 +03:00 committed by GitHub
parent 1adeeabccc
commit 19fed5aa76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,6 +55,7 @@ local config = {
litterbox = true, litterbox = true,
-- Determines expire time of files uploaded to litterbox -- Determines expire time of files uploaded to litterbox
litterbox_expire = '72h', -- 1h, 12h, 24h, 72h litterbox_expire = '72h', -- 1h, 12h, 24h, 72h
sub_font = 'Noto Sans CJK JP',
} }
mpopt.read_options(config, NAME) mpopt.read_options(config, NAME)
@ -251,7 +252,7 @@ encoder.mkargs_video = function(clip_filename)
'--vf-add=format=yuv420p', '--vf-add=format=yuv420p',
'--sub-font-provider=auto', '--sub-font-provider=auto',
'--embeddedfonts=yes', '--embeddedfonts=yes',
'--sub-font=Noto Sans CJK JP', table.concat { '--sub-font=', config.sub_font },
table.concat { '--ovc=', config.video_codec }, table.concat { '--ovc=', config.video_codec },
table.concat { '--oac=', config.audio_codec }, table.concat { '--oac=', config.audio_codec },
table.concat { '--start=', main_menu.timings['start'] }, table.concat { '--start=', main_menu.timings['start'] },