* Fixed argument precedence and help text.
authorUrban Wallasch <urban.wallasch@freenet.de>
Mon, 3 May 2021 09:53:50 +0000 (11:53 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Mon, 3 May 2021 09:53:50 +0000 (11:53 +0200)
ffpreview.py

index 6212a64c24ca80e69f116a79632ce838708228b3..5036133779aab04c3f6059448fbfa5f640a50d24 100755 (executable)
@@ -101,7 +101,7 @@ cfg.scene_thresh = None
 # parse command line arguments
 parser = argparse.ArgumentParser(
     description='Generate clickable video thumbnail preview.',
-    epilog='The -i, -f and -s options are mutually exclusive, the last one specified wins.'
+    epilog='The -i, -n and -s options are mutually exclusive, -i beats -n beats -s.'
 )
 parser.add_argument('filename', help='input video file')
 parser.add_argument('-c', '--grid_cols', type=int, metavar='N', help='number of columns in thumbnail preview ')
@@ -125,8 +125,11 @@ if args.scene:
     cfg.method = 'scene'
 if args.nskip:
     cfg.frame_skip = args.nskip
+    cfg.scene_thresh = None
     cfg.method = 'skip'
 if args.iframe:
+    cfg.frame_skip = None
+    cfg.scene_thresh = None
     cfg.method = 'iframe'
 
 # prepare thumbnail directory