                                "help": "Enter the end time to which an action "
                                        "is to be applied. If both an end time "
                                        "and duration are set, then the end "
                                        "time will be used and the duration "
                                        "will be ignored.\n"
                                        "Default: 00:00:00, in HH:MM:SS."})
  
          argument_list.append({"opts": ('-d', '--duration'),
                                "type": str,
                                "dest": "duration",
 
</s> remove                                       "action is to be applied.\n"
 </s> add                                       "action is to be applied. " </s> remove                                       "video.\n"
 </s> add                                       "video. " </s> remove                               "help": "frame ranges to apply transfer to e.g. "
                                      "For frames 10 to 50 and 90 to 100 use "
                                      "--frame-ranges 10-50 90-100. Files "
                                      "must have the frame-number as the last "
                                      "number in the name!"})
        argument_list.append({"opts": ("-d", "--discard-frames"),
 </s> add                               "help": "frame ranges to apply transfer to e.g. For frames 10 to 50 "
                                      "and 90 to 100 use --frame-ranges 10-50 90-100. Files "
                                      "must have the frame-number as the last number in the name! "
                                      "Frames falling outside of the selected range will be "
                                      "discarded unless '-k' (--keep-unchanged) is selected."})
        argument_list.append({"opts": ("-k", "--keep-unchanged"), </s> remove             "help": "R|Choose which action you want to perform.\n"
 </s> add             "help": "R|Choose which action you want to perform. " </s> remove             "choices": ["ellipse",
                        "facehull",
                        "dfl",
                        #  "cnn",  Removed until implemented
                        "none"],
            "default": "facehull",
            "help": "R|Mask to use to replace faces."
                    "\nellipse: Oval around face."
                    "\nfacehull: Face cutout based on landmarks."
                    "\ndfl: A Face Hull mask from DeepFaceLabs."
                    #  "\ncnn: Not yet implemented"  Removed until implemented
                    "\nnone: No mask. Can still use blur and erode on the edges of the swap box."})
        argument_list.append({"opts": ("-b", "--blur-size"),
                              "type": float,
                              "action": Slider,
                              "min_max": (0.0, 100.0),
                              "rounding": 2,
                              "default": 5.0,
                              "help": "Blur kernel size as a percentage of the swap area. Smooths "
                                      "the transition between the swapped face and the background "
                                      "image."})
        argument_list.append({"opts": ("-e", "--erosion-size"),
                              "dest": "erosion_size",
                              "type": float,
 </s> add             "choices": get_available_masks() + ["predicted"],
            "default": "predicted",
            "help": "R|Mask to use to replace faces. Blending of the masks can be adjusted in "
                    "'/config/convert.ini' or 'Edit > Configure Convert Plugins':"
                    "\nL|components: An improved face hull mask using a facehull of 8 facial "
                    "parts."
                    "\nL|dfl_full: An improved face hull mask using a facehull of 3 facial parts."
                    "\nL|facehull: Face cutout based on landmarks."
                    "\nL|predicted: The predicted mask generated from the model. If the model was "
                    "not trained with a mask then this will fallback to "
                    "'{}'".format(get_default_mask()) +
                    "\nL|none: Don't use a mask."})
        argument_list.append({"opts": ("-w", "--writer"),
                              "action": Radio,
                              "type": str,
                              "choices": PluginLoader.get_available_convert_plugins("writer",
                                                                                    False),
                              "default": "opencv",
                              "help": "R|The plugin to use to output the converted images. The "
                                      "writers are configurable in '/config/convert.ini' or `Edit "
                                      "> Configure Convert Plugins:'"
                                      "\nL|ffmpeg: [video] Writes out the convert straight to "
                                      "video. When the input is a series of images then the "
                                      "'-ref' (--reference-video) parameter must be set."
                                      "\nL|gif: [animated image] Create an animated gif."
                                      "\nL|opencv: [images] The fastest image writer, but less "
                                      "options and formats than other plugins."
                                      "\nL|pillow: [images] Slower than opencv, but has more "
                                      "options and supports more formats."})
        argument_list.append({"opts": ("-osc", "--output-scale"),
                              "dest": "output_scale",
                                      "will be ignored. "
                                "help": "Enter the end time to which an action "
                                        "is to be applied. If both an end time "
                                        "and duration are set, then the end "
                                        "time will be used and the duration "
                                      "will be ignored. "
                                        "Default: 00:00:00, in HH:MM:SS."})
  
          argument_list.append({"opts": ('-d', '--duration'),
                                "type": str,
                                "dest": "duration",
keep keep keep keep replace keep keep keep keep keep
 Convert refactor (#703)

* Separate predict and implement pool

* Add check and raise error to multithreading

Box functions to config. Add crop box option.

* All masks to mask module. Refactor convert masks

Predicted mask passed from model. Cli update

* Intesect box with mask and fixes

* Use raw NN output for convert

Use raw mask for face adjustments. Split adjustments to pre and post warp

* Separate out adjustments. Add unmask sharpen

* Set sensible defaults. Pre PR Testing

* Fix queue sizes. Move masked.py to lib

* Fix Skip Frames. Fix GUI Config popup

* Sensible queue limits. Add a less resource intensive single processing mode

* Fix predicted mask. Amend smooth box defaults

* Deterministic ordering for video output

* Video to Video convert implemented

* Fixups

- Remove defaults from folders across all stages
- Move match-hist and aca into color adjustments selectable
- Handle crashes properly for pooled processes
- Fix output directory does not exist error when creating a new output folder
- Force output to frames if input is not a video

* Add Color Transfer adjustment method

Wrap info text in GUI plugin configure popup

* Refactor image adjustments. Easier to create plugins

Start implementing config options for video encoding

* Add video encoding config options

Allow video encoding for frames input (must pass in a reference video)
Move video and image output writers to plugins

* Image writers config options

Move scaling to cli
Move draw_transparent to images config
Add config options for cv2 writer
Add Pillow image writer

* Add gif filetype to Pillow. Fix draw transparent for Pillow

* Add Animated GIF writer

standardize opencv/pillow defaults

* [speedup] Pre-encode supported writers in the convert pool (opencv, pillow)

Move scaling to convert pool
Remove dfaker mask

* Fix default writer

* Bugfixes

* Better custom argparse formatting 
tools/cli.py