Videos
Change video
Changes parameters of the video to new values.
It's allowed to update only those public parameters that are described in POST method to create a new “video” entity. So it's not possible to change calculated parameters like "id", "duration", "hls_url", etc.
Examples of changing:
- Name: { "name": "new name of the video" }
- Move the video to a new directory: { "directory_id": 200 }
Please note that some parameters are used on initial step (before transcoding) only, so after transcoding there is no use in changing their values. For example, "origin_url" parameter is used for downloading an original file from a source and never used after transcoding; or "priority" parameter is used to set priority of processing and never used after transcoding.
patch/streaming/videos/{video_id}
Path parameters
video_idinteger required
ID of the video to get
Request body
Example request
{
"name": "IBC 2025 - International Broadcasting Convention",
"description": "We look forward to welcoming you at IBC2025, which will take place 12-15 September 2025.",
"origin_url": "https://www.googleapis.com/drive/v3/files/...?alt=media",
"origin_http_headers": "Authorization: Bearer ...",
"priority": 0,
"clip_start_seconds": 137,
"clip_duration_seconds": 60,
"directory_id": 800,
"projection": "regular",
"client_user_id": 10,
"stream_id": 1,
"poster": "data:image/jpeg;base64,/9j/4AA...qf/2Q==",
"screenshot_id": -1,
"auto_transcribe_audio_language": "auto"
}Response
Successful
Example response
{
"id": 70575,
"name": "Coffee Run - Blender Open Movie 720p",
"description": "Fueled by caffeine, a young woman runs through the bittersweet memories of her past relationship. Coffee Run was directed by Hjalti Hjalmarsson and produced by the team at Blender Studio.",
"client_id": 1,
"duration": 184669,
"slug": "FnlHXwA16ZMxmUr",
"status": "ready",
"origin_size": 29260881,
"origin_video_duration": 184669,
"origin_audio_channels": 2,
"origin_height": 804,
"origin_width": 1920,
"created_at": "2024-06-13T12:15:25.000Z",
"updated_at": "2024-07-26T15:30:50.000Z",
"clip_start_seconds": null,
"clip_duration_seconds": null,
"hls_url": "https://demo-public.gvideo.io/videos/2675_FnlHXwA16ZMxmUr/master.m3u8",
"hls_cmaf_url": "https://demo-public.gvideo.io/videos/2675_FnlHXwA16ZMxmUr/master-cmaf.m3u8",
"dash_url": "https://demo-public.gvideo.io/videos/2675_FnlHXwA16ZMxmUr/master.mpd",
"iframe_url": "https://player.gvideo.co/videos/2675_FnlHXwA16ZMxmUr",
"poster": "https://static.gvideo.co/videoplatform/posters/video/10507272/f55b7db5f7a1ea48d713d7e6806bb9c5.jpeg",
"poster_thumb": "https://static.gvideo.co/videoplatform/posters/video/10507272/thumb_f55b7db5f7a1ea48d713d7e6806bb9c5.jpeg",
"screenshot": "https://static.gvideo.co/videoplatform/posters/video/10507272/f55b7db5f7a1ea48d713d7e6806bb9c5.jpeg",
"screenshots": [
"https://static.gvideo.co/videoplatform/thumbnails/2675/2474723_FnlHXwA16ZMxmUr.mp4_2_1080.jpg",
"https://static.gvideo.co/videoplatform/thumbnails/2675/2474723_FnlHXwA16ZMxmUr.mp4_3_1080.jpg"
],
"screenshot_id": -1,
"views": 2000001,
"cdn_views": 30000003,
"projection": "regular",
"sprite": "https://static.gvideo.co/videoplatform/sprites/2675/10507272_sNOwd4luk5mGGf9M.mp4_sprite.jpg",
"sprite_vtt": "1\n00:00:00,000 --> 00:00:05,000\nxMbWbUSuvJ8NX2_sprite.jpg#xywh=0,0,100,42\n\n2\n00:00:05,000 --> 00:00:10,000\nxMbWbUSuvJ8NX2_sprite.jpg#xywh=100,0,100,42\n...\n",
"converted_videos": [
{
"id": 25889825,
"name": "vod720p",
"width": 1719,
"height": 720,
"size": 37651798,
"progress": 100,
"status": "complete",
"mp4_url": "https://demo-public.gvideo.io/videos/2675_FnlHXwA16ZMxmUr/qid3570v3_h264_1566_720.mp4"
},
{
"id": 25889828,
"name": "vod480p",
"width": 1146,
"height": 480,
"size": 20255892,
"progress": 100,
"status": "complete",
"mp4_url": "https://demo-public.gvideo.io/videos/2675_FnlHXwA16ZMxmUr/qid3573v3_h264_800_468.mp4"
}
]
}