{
  "slug": "video-cut-segments",
  "name": "gizza-ai/video-cut-segments",
  "version": "0.1.0",
  "title": "Cut a Video into Segments Online — Keep or Remove Windows — gizza.ai",
  "description": "Cut a video to multiple time windows, keep or remove those clips, and export one joined MP4. Runs locally in your browser.",
  "tags": [
    "cut video",
    "trim video",
    "remove section",
    "jump cut",
    "multi trim",
    "join clips",
    "ffmpeg"
  ],
  "category": "video",
  "urls": {
    "page": "https://gizza.ai/tools/video-cut-segments/",
    "markdown": "https://gizza.ai/tools/video-cut-segments/index.md",
    "descriptor": "https://gizza.ai/tools/video-cut-segments/tool.json",
    "deep_link_example": "https://gizza.ai/tools/video-cut-segments/?url=https://example.com/input&segments=0%3A05-0%3A10%0A1%3A30-1%3A45&mode=keep"
  },
  "cli": "gizza tool video-cut-segments 'url=https://example.com/input' 'segments=0:05-0:10\n1:30-1:45' 'mode=keep'",
  "tool": {
    "description": "Cut a video down to multiple time windows from a typed list and join the kept parts into one clip. Provide either url (HTTP/HTTPS) or ref (id from a prior tool call). `segments` is a comma- or newline-separated list of start-end windows (each time SS, MM:SS, or HH:MM:SS, fractions allowed), e.g. '0:05-0:10, 1:30-1:45'. `mode` = keep keeps only those windows and joins them (default); mode = remove cuts them out and keeps the rest. Audio stays in sync (trim+concat). Output is mp4 (re-encoded H.264/AAC).",
    "parameters": {
      "additionalProperties": false,
      "oneOf": [
        {
          "required": [
            "url"
          ]
        },
        {
          "required": [
            "ref"
          ]
        }
      ],
      "properties": {
        "mode": {
          "default": "keep",
          "description": "keep = keep only the listed windows and join them (default); remove = cut the listed windows out and keep everything else.",
          "enum": [
            "keep",
            "remove"
          ],
          "type": "string"
        },
        "ref": {
          "description": "Reference id from a prior tool call. Use either url or ref.",
          "type": "string"
        },
        "segments": {
          "description": "Time windows as a comma- or newline-separated list of start-end, e.g. '0:05-0:10, 1:30-1:45'. Each time is SS, MM:SS, or HH:MM:SS (fractions ok).",
          "type": "string"
        },
        "url": {
          "description": "Video URL (HTTP/HTTPS). Use either url or ref.",
          "type": "string"
        }
      },
      "required": [
        "segments"
      ],
      "type": "object"
    }
  }
}