{
  "schemaVersion": "1.0",
  "service": "QuokkaPix",
  "surface": "video",
  "description": "Official browser-local Video recipes. Source media must be selected through the browser file input.",
  "recipes": [
    {
      "schemaVersion": "1.0",
      "id": "trim_video",
      "name": "Trim video",
      "description": "Keep a selected time range.",
      "settings": {
        "tool": "cut",
        "selection": {
          "action": "keep"
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "remove_video_range",
      "name": "Remove video range",
      "description": "Remove a selected middle range.",
      "settings": {
        "tool": "cut",
        "selection": {
          "action": "remove"
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "vertical_9_16",
      "name": "Vertical 9:16",
      "description": "Crop and resize to 1080×1920.",
      "settings": {
        "tool": "crop",
        "crop": {
          "preset": "vertical",
          "width": 1080,
          "height": 1920,
          "fit": "cover"
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "convert_webm",
      "name": "Convert to WebM",
      "description": "Convert the primary tracks to VP9/Opus WebM.",
      "settings": {
        "tool": "convert",
        "convert": {
          "format": "webm"
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "compress_balanced",
      "name": "Balanced compression",
      "description": "Compress at the source resolution with balanced quality.",
      "settings": {
        "tool": "compress",
        "compress": {
          "quality": "medium",
          "resolution": "original",
          "targetMb": ""
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "mute_video",
      "name": "Mute video",
      "description": "Export video without its audio track.",
      "settings": {
        "tool": "audio",
        "audio": {
          "mode": "mute"
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "extract_wav",
      "name": "Extract WAV",
      "description": "Extract the primary audio track as lossless PCM WAV.",
      "settings": {
        "tool": "audio",
        "audio": {
          "mode": "extract",
          "extractFormat": "wav"
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "transcribe_srt",
      "name": "Transcribe for SRT",
      "description": "Create a local timestamped transcript ready for SRT export.",
      "settings": {
        "tool": "transcribe",
        "transcribe": {
          "language": "auto",
          "preferredFormat": "srt"
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "transcribe_vtt",
      "name": "Transcribe for VTT",
      "description": "Create a local timestamped transcript ready for WebVTT export.",
      "settings": {
        "tool": "transcribe",
        "transcribe": {
          "language": "auto",
          "preferredFormat": "vtt"
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "burn_subtitles",
      "name": "Burn subtitles",
      "description": "Transcribe, review and permanently render captions into MP4 video.",
      "settings": {
        "tool": "transcribe",
        "transcribe": {
          "language": "auto",
          "preferredFormat": "srt",
          "burn": {
            "enabled": true,
            "position": "bottom",
            "fontScale": 5,
            "textColor": "#ffffff",
            "style": "box",
            "backgroundColor": "#000000",
            "maxLines": 2
          }
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "youtube_1080p",
      "name": "YouTube 1080p",
      "description": "Prepare a 16:9 MP4 at 1920x1080.",
      "settings": {
        "tool": "crop",
        "crop": {
          "preset": "youtube",
          "width": 1920,
          "height": 1080,
          "fit": "contain"
        },
        "convert": {
          "format": "mp4"
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true,
        "ruleProfile": "youtube.standard-video",
        "qa": {
          "width": 1920,
          "height": 1080,
          "container": "mp4"
        }
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "tiktok_vertical",
      "name": "TikTok vertical",
      "description": "Prepare a full-screen 9:16 MP4 at 1080x1920.",
      "settings": {
        "tool": "crop",
        "crop": {
          "preset": "vertical",
          "width": 1080,
          "height": 1920,
          "fit": "cover"
        },
        "convert": {
          "format": "mp4"
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true,
        "ruleProfile": "tiktok.in-feed-ad-video",
        "qa": {
          "width": 1080,
          "height": 1920,
          "container": "mp4",
          "maxDurationSeconds": 60
        }
      }
    },
    {
      "schemaVersion": "1.0",
      "id": "instagram_reel",
      "name": "Instagram Reel",
      "description": "Prepare a native 9:16 MP4 at 1080x1920.",
      "settings": {
        "tool": "crop",
        "crop": {
          "preset": "vertical",
          "width": 1080,
          "height": 1920,
          "fit": "cover"
        },
        "convert": {
          "format": "mp4"
        }
      },
      "expectedResult": {
        "status": "done",
        "localOnly": true,
        "ruleProfile": "meta.reels-video",
        "qa": {
          "width": 1080,
          "height": 1920,
          "container": "mp4"
        }
      }
    }
  ]
}
