* Fixed regression: quoted commas in ffmpeg filter presets.
authorUrban Wallasch <urban.wallasch@freenet.de>
Wed, 26 May 2021 18:43:04 +0000 (20:43 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Wed, 26 May 2021 18:43:04 +0000 (20:43 +0200)
ffpreview.py

index e91af949433a5a83719bacfa37d3e39270f53eb6..2a888925a30f3b0f40c6dcabc27a368a41de0e0a 100755 (executable)
@@ -1813,16 +1813,16 @@ def make_thumbs(vidfile, thinfo, thdir, prog_cb=None):
     cmd.extend( ['-i', vidfile] )
 
     if cfg['method'] == 'scene':
-        flt = 'select=gt(scene,' + str(cfg['scene_thresh']) + ')'
+        flt = 'select=gt(scene\,' + str(cfg['scene_thresh']) + ')'
     elif cfg['method'] == 'skip':
-        flt = 'select=not(mod(n,' + str(cfg['frame_skip']) + '))'
+        flt = 'select=not(mod(n\,' + str(cfg['frame_skip']) + '))'
     elif cfg['method'] == 'time':
         fs = int(float(cfg['time_skip']) * float(thinfo['fps']))
-        flt = 'select=not(mod(n,' + str(fs) + '))'
+        flt = 'select=not(mod(n\,' + str(fs) + '))'
     elif cfg['method'] == 'customvf':
         flt = cfg['customvf']
     else: # iframe
-        flt = 'select=eq(pict_type,I)'
+        flt = 'select=eq(pict_type\,I)'
     flt += ',showinfo,scale=' + str(cfg['thumb_width']) + ':-1'
     if thinfo['addss'] >= 0 and not cfg['start']:
         flt += ',subtitles=' + fff_esc(vidfile) + ':si=' + str(thinfo['addss'])