* Subtitle rendering only works, when processing the video file from the start.
authorUrban Wallasch <urban.wallasch@freenet.de>
Wed, 26 May 2021 18:41:52 +0000 (20:41 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Wed, 26 May 2021 18:41:52 +0000 (20:41 +0200)
ffpreview.conf.sample
ffpreview.py

index e89ffee4664c6298e8c631a7f85a808f4609fc52..1e542e2b15bb1035cea2eb8b8bbbf2de0dde47d3 100644 (file)
@@ -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
index fc4b1a1a6ce0b5b2610d3d9af0d29b68004d60ab..e91af949433a5a83719bacfa37d3e39270f53eb6 100755 (executable)
@@ -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)