From: Urban Wallasch Date: Wed, 26 May 2021 18:41:52 +0000 (+0200) Subject: * Subtitle rendering only works, when processing the video file from the start. X-Git-Tag: v0.4~17 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=ee30573036587535d5dd0af0fad37272e37e0817;p=ffpreview.git * Subtitle rendering only works, when processing the video file from the start. --- diff --git a/ffpreview.conf.sample b/ffpreview.conf.sample index e89ffee..1e542e2 100644 --- a/ffpreview.conf.sample +++ b/ffpreview.conf.sample @@ -99,7 +99,8 @@ customvf=scdet=s=1:t=12 # Add rendered captions from specified subtitle stream. Stream numbering # starts at 0, set to -1 to disable. If the specified stream is not found, -# this setting is silently ignored. +# this setting is silently ignored. Also, this setting only works when +# start time is zero, i.e. the video is processed from the beginning. addss=-1 # EOF diff --git a/ffpreview.py b/ffpreview.py index fc4b1a1..e91af94 100755 --- a/ffpreview.py +++ b/ffpreview.py @@ -1824,7 +1824,7 @@ def make_thumbs(vidfile, thinfo, thdir, prog_cb=None): else: # iframe flt = 'select=eq(pict_type,I)' flt += ',showinfo,scale=' + str(cfg['thumb_width']) + ':-1' - if thinfo['addss'] >= 0: + if thinfo['addss'] >= 0 and not cfg['start']: flt += ',subtitles=' + fff_esc(vidfile) + ':si=' + str(thinfo['addss']) cmd.extend( ['-vf', flt, '-vsync', 'vfr', os.path.join(thdir, pictemplate)] ) eprint(2, cmd)