Киноредактор · Редактор
film_editor
Попробуйте три запроса
- Вы указываетеСайт
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Подготовь «Киноредактор / Редактор». Для изменения нужны сайт, тип операции. Покажи объект и ожидаемый эффект до выполнения.
- siteId
- Сайт
- operation
- Тип операции
- projectId
- Параметр
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
На учебной записи подготовь «Киноредактор / Редактор» с параметром operation = timeline. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- operation
- timeline
- visibility
- private
- siteId
- DEMO-101
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Проверь результат «Киноредактор / Редактор» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Save a JSON timeline with selective trims, transitions, sound, real titles/logos, captions and color; preview/render through the existing Video FFmpeg engine; export 16:9, 9:16 and 1:1 to Site Media. Render never regenerates AI scenes. For exact narration generate a private audio asset with site_voiceover, add it to timeline.audio with role voice, and mute scene clips containing unwanted speech. Trim the narration deliberately so it fits the film; audio is not lip sync. Poll with jobId. Use selection analyze with arguments.readEvidence=true, evidenceSource=cloud or video_editor, and range.startMs/endMs to read a fragment without inference. Use the returned edit.in/out in seconds for timeline.clips. Advanced selection uses existing Video Intelligence and may report model unavailable. publish requires a ready exported film, a separately validated Site version containing it, and Release Guard; it never inserts or publishes unrelated draft content implicitly. For a private deliverable use export visibility=private. A clip can use fit=contain to keep both speakers visible in portrait. For an exact spoken quote use quoteEdit from a contiguous timed match. For funded translation/dubbing use timeline selection.operation=localize with arguments.step=voices, translate, status, review, correct or dub. Select language en/ru/es and voice=standard or owner with a registered profileId. Poll status on the same scene, import its derived video asset, render and export. For multi-camera work choose selection.operation=cameras with sceneId as master, referenceSceneId as the other camera and sameEventConfirmed=true. Use step=sync, status, read and rank with startMs/endMs. Review mapping and keep the master soundtrack. Clips support focalPoint (x,y from 0 to 1) for a portrait crop and titles support a contrastBox. Review numeric conflicts before using a price in captions. Shares the canonical Site project. Uses the selected company and existing Video engine. Website publication requires the separate Site MCP publication scope. Large results use hash-bound JSON chunks.
Параметры запроса
- siteId
- Film siteId; preserve returned IDs, revisions and approved budget. обязательно по схеме · string
- projectId
- Film projectId; preserve returned IDs, revisions and approved budget. необязательно · string
- expectedRevision
- Версия, прочитанная перед изменением. необязательно · integer · максимум 9007199254740991
- idempotencyKey
- Стабильный ключ операции, созданный клиентом. необязательно · string
- operation
- Выберите вариант операции из контракта. обязательно по схеме · string · варианты timeline, preview, render, export, publish
- timeline
- Film timeline; preserve returned IDs, revisions and approved budget. необязательно · object
- jobId
- Film jobId; preserve returned IDs, revisions and approved budget. необязательно · string
- aspectRatios
- Film aspectRatios; preserve returned IDs, revisions and approved budget. необязательно · array · до элементов 3
- selection
- Film selection; preserve returned IDs, revisions and approved budget. необязательно · object
- publication
- Film publication; preserve returned IDs, revisions and approved budget. необязательно · object
- visibility
- Access for exported Site Media. Use private for review or delivery. необязательно · string · варианты private, public
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- resultOffset
- JSON result character offset, default 0. необязательно · integer · минимум 0 · максимум 9007199254740991
- resultHash
- Hash returned with a paged result; required after offset 0. необязательно · string
Что вернёт команда
- result
- Canonical film result or hash-bound JSON chunk. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"siteId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Film siteId; preserve returned IDs, revisions and approved budget."
},
"projectId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Film projectId; preserve returned IDs, revisions and approved budget."
},
"expectedRevision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Film expectedRevision; preserve returned IDs, revisions and approved budget."
},
"idempotencyKey": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Film idempotencyKey; preserve returned IDs, revisions and approved budget."
},
"operation": {
"type": "string",
"enum": [
"timeline",
"preview",
"render",
"export",
"publish"
],
"description": "Film operation; preserve returned IDs, revisions and approved budget."
},
"timeline": {
"type": "object",
"properties": {
"aspectRatio": {
"default": "16:9",
"description": "Film aspectRatio; preserve returned IDs, revisions and approved budget.",
"type": "string",
"enum": [
"16:9",
"9:16",
"1:1"
]
},
"resolution": {
"default": "1080p",
"description": "Film resolution; preserve returned IDs, revisions and approved budget.",
"type": "string",
"enum": [
"720p",
"1080p"
]
},
"fps": {
"default": "24",
"description": "Film fps; preserve returned IDs, revisions and approved budget.",
"type": "string",
"enum": [
"24",
"25",
"30"
]
},
"clips": {
"minItems": 1,
"maxItems": 48,
"type": "array",
"items": {
"type": "object",
"properties": {
"sceneId": {
"$ref": "#/$defs/_mcp0"
},
"attemptId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Film attemptId; preserve returned IDs, revisions and approved budget."
},
"in": {
"type": "number",
"minimum": 0,
"maximum": 9007199254,
"description": "Film in; preserve returned IDs, revisions and approved budget."
},
"out": {
"$ref": "#/$defs/_mcp1"
},
"transition": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"cut",
"dissolve",
"wipeleft",
"wiperight",
"slideleft",
"slideright",
"circleopen",
"circleclose",
"smoothleft",
"smoothright",
"fadeblack"
],
"description": "Film type; preserve returned IDs, revisions and approved budget."
},
"duration": {
"type": "number",
"minimum": 0.1,
"maximum": 2,
"description": "Film duration; preserve returned IDs, revisions and approved budget."
}
},
"required": [
"type",
"duration"
],
"additionalProperties": false,
"description": "Film transition; preserve returned IDs, revisions and approved budget."
},
"gainDb": {
"$ref": "#/$defs/_mcp2"
},
"mute": {
"default": false,
"description": "Film mute; preserve returned IDs, revisions and approved budget.",
"type": "boolean"
},
"fit": {
"type": "string",
"enum": [
"cover",
"contain"
],
"description": "cover fills the canvas, contain preserves the full camera frame."
},
"focalPoint": {
"type": "object",
"properties": {
"x": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Horizontal subject position in the source."
},
"y": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Vertical subject position in the source."
}
},
"required": [
"x",
"y"
],
"additionalProperties": false,
"description": "Center of interest in original display coordinates, from 0 to 1. Use with cover."
}
},
"required": [
"sceneId",
"in",
"out",
"gainDb",
"mute"
],
"additionalProperties": false
},
"description": "Film clips; preserve returned IDs, revisions and approved budget."
},
"audio": {
"default": [],
"description": "Film audio; preserve returned IDs, revisions and approved budget.",
"maxItems": 12,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/_mcp3"
},
"asset": {
"$ref": "#/$defs/_mcp12"
},
"role": {
"type": "string",
"enum": [
"music",
"voice",
"effect"
],
"description": "Film role; preserve returned IDs, revisions and approved budget."
},
"in": {
"default": 0,
"description": "Film in; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": 0,
"maximum": 9007199254
},
"out": {
"$ref": "#/$defs/_mcp1"
},
"at": {
"default": 0,
"description": "Film at; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": 0,
"maximum": 600
},
"gainDb": {
"$ref": "#/$defs/_mcp2"
}
},
"required": [
"id",
"asset",
"role",
"in",
"out",
"at",
"gainDb"
],
"additionalProperties": false
}
},
"titles": {
"default": [],
"description": "Film titles; preserve returned IDs, revisions and approved budget.",
"maxItems": 40,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/_mcp3"
},
"text": {
"type": "string",
"maxLength": 1000,
"description": "Film text; preserve returned IDs, revisions and approved budget."
},
"start": {
"type": "number",
"minimum": 0,
"maximum": 600,
"description": "Film start; preserve returned IDs, revisions and approved budget."
},
"end": {
"type": "number",
"minimum": 0,
"maximum": 600,
"description": "Film end; preserve returned IDs, revisions and approved budget."
},
"x": {
"default": 0.08,
"description": "Film x; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": 0,
"maximum": 1
},
"y": {
"default": 0.8,
"description": "Film y; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": 0,
"maximum": 1
},
"fontSize": {
"default": 48,
"description": "Film fontSize; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": 10,
"maximum": 180
},
"color": {
"default": "#ffffff",
"description": "Film color; preserve returned IDs, revisions and approved budget.",
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"contrastBox": {
"type": "boolean",
"description": "Draw a dark translucent backing behind the title."
}
},
"required": [
"id",
"text",
"start",
"end",
"x",
"y",
"fontSize",
"color"
],
"additionalProperties": false
}
},
"logos": {
"default": [],
"description": "Film logos; preserve returned IDs, revisions and approved budget.",
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/_mcp3"
},
"asset": {
"$ref": "#/$defs/_mcp12"
},
"start": {
"type": "number",
"minimum": 0,
"maximum": 600,
"description": "Film start; preserve returned IDs, revisions and approved budget."
},
"end": {
"type": "number",
"minimum": 0,
"maximum": 600,
"description": "Film end; preserve returned IDs, revisions and approved budget."
},
"x": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Film x; preserve returned IDs, revisions and approved budget."
},
"y": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Film y; preserve returned IDs, revisions and approved budget."
},
"width": {
"type": "number",
"minimum": 0.01,
"maximum": 1,
"description": "Film width; preserve returned IDs, revisions and approved budget."
}
},
"required": [
"id",
"asset",
"start",
"end",
"x",
"y",
"width"
],
"additionalProperties": false
}
},
"captions": {
"default": [],
"description": "Film captions; preserve returned IDs, revisions and approved budget.",
"maxItems": 160,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/_mcp3"
},
"text": {
"type": "string",
"maxLength": 1000,
"description": "Film text; preserve returned IDs, revisions and approved budget."
},
"start": {
"type": "number",
"minimum": 0,
"maximum": 600,
"description": "Film start; preserve returned IDs, revisions and approved budget."
},
"end": {
"type": "number",
"minimum": 0,
"maximum": 600,
"description": "Film end; preserve returned IDs, revisions and approved budget."
}
},
"required": [
"id",
"text",
"start",
"end"
],
"additionalProperties": false
}
},
"color": {
"type": "object",
"properties": {
"brightness": {
"default": 0,
"description": "Film brightness; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": -0.3,
"maximum": 0.3
},
"contrast": {
"default": 1,
"description": "Film contrast; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": 0.5,
"maximum": 2
},
"saturation": {
"default": 1,
"description": "Film saturation; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": 0,
"maximum": 2
},
"gamma": {
"default": 1,
"description": "Film gamma; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": 0.5,
"maximum": 2
}
},
"required": [
"brightness",
"contrast",
"saturation",
"gamma"
],
"additionalProperties": false,
"description": "Film color; preserve returned IDs, revisions and approved budget."
},
"targetLufs": {
"default": -16,
"description": "Film targetLufs; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": -30,
"maximum": -10
},
"duckMusic": {
"default": true,
"description": "Film duckMusic; preserve returned IDs, revisions and approved budget.",
"type": "boolean"
},
"beatGrid": {
"type": "object",
"properties": {
"bpm": {
"type": "number",
"minimum": 30,
"maximum": 240,
"description": "Film bpm; preserve returned IDs, revisions and approved budget."
},
"offset": {
"default": 0,
"description": "Film offset; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": 0,
"maximum": 600
},
"snapCuts": {
"default": false,
"description": "Film snapCuts; preserve returned IDs, revisions and approved budget.",
"type": "boolean"
}
},
"required": [
"bpm",
"offset",
"snapCuts"
],
"additionalProperties": false,
"description": "Film beatGrid; preserve returned IDs, revisions and approved budget."
}
},
"required": [
"aspectRatio",
"resolution",
"fps",
"clips",
"audio",
"titles",
"logos",
"captions",
"targetLufs",
"duckMusic"
],
"additionalProperties": false,
"description": "Film timeline; preserve returned IDs, revisions and approved budget."
},
"jobId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Film jobId; preserve returned IDs, revisions and approved budget."
},
"aspectRatios": {
"minItems": 1,
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"enum": [
"16:9",
"9:16",
"1:1"
]
},
"description": "Film aspectRatios; preserve returned IDs, revisions and approved budget."
},
"selection": {
"type": "object",
"properties": {
"operation": {
"type": "string",
"enum": [
"analyze",
"highlights",
"stabilize",
"match_colors",
"localize",
"cameras"
],
"description": "Film operation; preserve returned IDs, revisions and approved budget."
},
"sceneId": {
"$ref": "#/$defs/_mcp0"
},
"referenceSceneId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Film referenceSceneId; preserve returned IDs, revisions and approved budget."
},
"arguments": {
"propertyNames": {
"type": "string"
},
"description": "Film arguments; preserve returned IDs, revisions and approved budget.",
"type": "object",
"properties": {},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
},
"required": [
"operation",
"sceneId"
],
"additionalProperties": false,
"description": "Film selection; preserve returned IDs, revisions and approved budget."
},
"publication": {
"type": "object",
"properties": {
"versionId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Film versionId; preserve returned IDs, revisions and approved budget."
},
"expectedSiteRevision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Film expectedSiteRevision; preserve returned IDs, revisions and approved budget."
},
"releaseGuardId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Film releaseGuardId; preserve returned IDs, revisions and approved budget."
},
"sourcePath": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Film sourcePath; preserve returned IDs, revisions and approved budget."
}
},
"required": [
"versionId",
"expectedSiteRevision",
"releaseGuardId",
"sourcePath"
],
"additionalProperties": false,
"description": "Film publication; preserve returned IDs, revisions and approved budget."
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
],
"description": "Access for exported Site Media. Use private for review or delivery."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable Control request ID. Preserve it after uncertainty."
},
"resultOffset": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "JSON result character offset, default 0."
},
"resultHash": {
"type": "string",
"description": "Hash returned with a paged result; required after offset 0."
}
},
"required": [
"siteId",
"operation",
"requestId"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"propertyNames": {
"type": "string"
},
"type": "object",
"properties": {},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
},
"_mcp0": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Film sceneId; preserve returned IDs, revisions and approved budget."
},
"_mcp1": {
"type": "number",
"minimum": 0,
"maximum": 9007199254,
"description": "Film out; preserve returned IDs, revisions and approved budget."
},
"_mcp2": {
"default": 0,
"description": "Film gainDb; preserve returned IDs, revisions and approved budget.",
"type": "number",
"minimum": -96,
"maximum": 12
},
"_mcp3": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Film id; preserve returned IDs, revisions and approved budget."
},
"_mcp12": {
"oneOf": [
{
"$ref": "#/$defs/_mcp5"
},
{
"$ref": "#/$defs/_mcp9"
},
{
"$ref": "#/$defs/_mcp11"
}
],
"description": "Film asset; preserve returned IDs, revisions and approved budget."
},
"_mcp5": {
"type": "object",
"properties": {
"source": {
"type": "string",
"const": "site",
"description": "Film source; preserve returned IDs, revisions and approved budget."
},
"mediaId": {
"$ref": "#/$defs/_mcp4"
}
},
"required": [
"source",
"mediaId"
],
"additionalProperties": false
},
"_mcp9": {
"type": "object",
"properties": {
"source": {
"type": "string",
"const": "cloud",
"description": "Film source; preserve returned IDs, revisions and approved budget."
},
"fileId": {
"$ref": "#/$defs/_mcp7"
},
"revision": {
"$ref": "#/$defs/_mcp8"
}
},
"required": [
"source",
"fileId"
],
"additionalProperties": false
},
"_mcp11": {
"type": "object",
"properties": {
"source": {
"type": "string",
"const": "video",
"description": "Film source; preserve returned IDs, revisions and approved budget."
},
"assetId": {
"$ref": "#/$defs/_mcp10"
}
},
"required": [
"source",
"assetId"
],
"additionalProperties": false
},
"_mcp4": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Film mediaId; preserve returned IDs, revisions and approved budget."
},
"_mcp7": {
"type": "string",
"allOf": [
{
"$ref": "#/$defs/_mcp6"
},
{
"$ref": "#/$defs/_mcp6"
}
],
"description": "Film fileId; preserve returned IDs, revisions and approved budget."
},
"_mcp8": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Film revision; preserve returned IDs, revisions and approved budget."
},
"_mcp10": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Film assetId; preserve returned IDs, revisions and approved budget."
},
"_mcp6": {
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
}
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Canonical film result or hash-bound JSON chunk."
}
},
"required": [
"result"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
}
}