This operation creates (or replaces) a video object in Wowza Video by clipping a video or live stream or, clipping and stitching together video or live stream clips.
Create a clip
To create a clip off of an existing video or live stream, send the id
of the video or live stream you want to clip along with the asset_type
, mode
, start
, and stop
parameters.
Create clips and stitch the clips
To create multiple clips and stitch the clips together as one clip, send the id
of the videos or live streams you want to clip along with the asset_type
, mode
, start
, and stop
parameters.
Create a clip and replace the original video
To create a clip and replace the original video with the clip, send the replace_video_id
parameter where replace_video_id
is the video id of the video to be replaced, along with the asset_type
, mode
, start
, and stop
parameters.
Note: The replace option works only with videos and not live streams. The replace_video_id
is specifically a video ID and not a live stream ID.
Caution! Once you replace the original video with the clip, you will no longer be able to retrieve the original video.
object (CreateClipStitch) | |||||||||||||||||||||||||||
|
Success
object (video) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
{- "clipping": {
- "clips": [
- {
- "id": "73a0c613-8972-14cd-9d0c-3c993bddb388",
- "asset_type": "VOD",
- "start": "00:01:20:00",
- "stop": "00:05:25:00"
}
], - "mode": "PRECISE",
- "name": "My video",
- "description": "A new video for my business.",
- "category_id": "<The account's default category>",
- "tags": [
- "foo",
- "bar"
], - "published_at": "2024-05-01T12:33:22Z",
- "published": true,
- "unpublish": false,
- "unpublished_at": "2025-01-01T12:33:22Z",
- "no_ads": true,
- "ad_keywords": "special_ads",
- "replace_video_id": "string"
}
}
{- "video": {
- "id": "73a0c613-8972-14cd-9d0c-3c993bddb388",
- "name": "My video",
- "description": "A new video for my business.",
- "duration_in_ms": 0,
- "unpublish": false,
- "unpublished_at": "2025-01-01T12:33:22Z",
- "published": true,
- "published_at": "2024-05-01T12:33:22Z",
- "tags": [
- "foo",
- "bar"
], - "remote": false,
- "category_id": "<The account's default category>",
- "no_ads": true,
- "ad_keywords": "special_ads",
- "created_at": "2024-05-15T12:33:22Z",
- "updated_at": "2024-05-16T12:33:22Z",
- "state": "PROCESSING",
- "encoding_progress": 0,
- "upload_progress": 0,
- "error_message": "string",
- "deactivated": false,
- "encodings": [
- {
- "audio_bitrate_in_kbps": 2300,
- "audio_channel": 2,
- "audio_codec": "aac",
- "audio_sample_rate": 44100,
- "height": 1080,
- "width": 1920,
- "video_container": "mp4",
- "video_codec": "h264",
- "total_bitrate_in_kbps": 1023,
- "created_at": "2019-08-24T14:15:22Z",
- "size_in_bytes": 8325555
}
], - "shallow_copy": true,
- "shallow_copy_source_id": "string",
- "multiple_audio_tracks": true,
- "audio_only": true,
- "version": 0
}
}