{
  "name": "Pyscenedetect Wrapper",
  "description": "CLAMS app wraps PySceneDetect and performs shot boundary detection on input videos",
  "app_version": "v5",
  "mmif_version": "1.2.0",
  "analyzer_version": "0.7.0",
  "app_license": "Apache2",
  "analyzer_license": "BSD-3",
  "identifier": "http://apps.clams.ai/pyscenedetect-wrapper/v5",
  "url": "https://github.com/clamsproject/app-pyscenedetect-wrapper",
  "input": [
    {
      "@type": "http://clams.ai/vocabulary/type/VideoDocument/v2",
      "required": true
    }
  ],
  "output": [
    {
      "@type": "http://clams.ai/vocabulary/type/TimeFrame/v6",
      "properties": {
        "label": "shot",
        "timeUnit": "frame"
      }
    }
  ],
  "parameters": [
    {
      "name": "mode",
      "description": "pick a scene detector algorithm, see http://scenedetect.com/projects/Manual/en/latest/cli/detectors.html",
      "type": "string",
      "choices": [
        "content",
        "threshold",
        "adaptive"
      ],
      "default": "content",
      "multivalued": false
    },
    {
      "name": "threshold",
      "description": "threshold value to use in the detection algorithm. Note that the meaning of this numerical value differs for different detector algorithms.",
      "type": "number",
      "default": 27,
      "multivalued": false
    },
    {
      "name": "pretty",
      "description": "The JSON body of the HTTP response will be re-formatted with 2-space indentation",
      "type": "boolean",
      "default": false,
      "multivalued": false
    },
    {
      "name": "runningTime",
      "description": "The running time of the app will be recorded in the view metadata",
      "type": "boolean",
      "default": true,
      "multivalued": false
    },
    {
      "name": "hwFetch",
      "description": "The hardware information (architecture, GPU and vRAM) will be recorded in the view metadata",
      "type": "boolean",
      "default": false,
      "multivalued": false
    },
    {
      "name": "tfSamplingMode",
      "description": "Sampling mode for TimeFrame annotations. Has no effect when the app does not process TimeFrames. \"representatives\" uses all representative timepoints if present, otherwise skips the TimeFrame. \"single\" uses the middle representative if present, otherwise extracts an image from the midpoint of the start/end interval (midpoint is calculated by floor division of the sum of start and end). \"all\" uses all target timepoints if present, otherwise extracts all images from the time interval.",
      "type": "string",
      "choices": [
        "representatives",
        "single",
        "all"
      ],
      "default": "representatives",
      "multivalued": false
    }
  ]
}