Skip to main content
PATCH
/
streaming
/
videos
/
{video_id}
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
video = client.streaming.videos.update(
    video_id=0,
    name="IBC 2025 - International Broadcasting Convention",
)
print(video.id)
{
  "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"
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

video_id
integer
required

Body

application/json
name
string
required
description
string
origin_url
string
origin_http_headers
string
priority
integer
default:0
quality_set_id
integer
clip_start_seconds
integer
clip_duration_seconds
integer
source_bitrate_limit
boolean
default:true
directory_id
integer
poster
string
remote_poster_url
string
remove_poster
boolean
default:false
screenshot_id
integer
default:0
client_user_id
integer
auto_transcribe_audio_language
enum<string>
default:auto
Available options:
disable,
auto,
<language_code>
auto_translate_subtitles_language
enum<string>
default:disable
Available options:
disable,
default,
<language_codes,>
projection
string
share_url
string
custom_iframe_url
string

Response

id
integer
name
string
description
string
client_id
integer
origin_size
integer
origin_video_duration
integer
origin_url
string
duration
integer
slug
string
stream_id
integer
recording_started_at
string
share_url
string
poster
string
poster_thumb
string
screenshot
string
screenshots
string[]
screenshot_id
integer
sprite
string
sprite_vtt
string
ad_id
integer
hls_url
string
hls_cmaf_url
string
dash_url
string
iframe_url
string
custom_iframe_url
string
views
integer
cdn_views
integer
client_user_id
integer
status
enum<string>
Available options:
empty,
pending,
viewable,
ready,
error
error
string
projection
string
converted_videos
object[]