curl --request PUT \
--url https://api.gcore.com/streaming/streams/{stream_id}/stop_recording \
--header 'Authorization: <api-key>'
{
"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": "xMbWbUSuvJ8NX2",
"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/2474723/f9767f071a8b7da51c64907f6a830cbb.webp",
"poster_thumb": "https://static.gvideo.co/videoplatform/posters/video/2474723/thumb_f9767f071a8b7da51c64907f6a830cbb.webp",
"screenshot": "https://static.gvideo.co/videoplatform/posters/video/2474723/f9767f071a8b7da51c64907f6a830cbb.webp",
"screenshots": [
"https://static.gvideo.co/videoplatform/thumbnails/2675/2474723_FnlHXwA16ZMxmUr.mp4_1_1080.jpg",
"https://static.gvideo.co/videoplatform/thumbnails/2675/2474723_FnlHXwA16ZMxmUr.mp4_2_1080.jpg"
],
"screenshot_id": -1,
"views": 2000001,
"cdn_views": 30000003,
"projection": "regular",
"sprite": "https://static.gvideo.co/videoplatform/sprites/2675/2474723_FnlHXwA16ZMxmUr.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\n3\n00:00:10,000 --> 00:00:15,000\nxMbWbUSuvJ8NX2_sprite.jpg#xywh=200,0,100,42\n",
"converted_videos": [
{
"id": 25889825,
"name": "vod720p",
"width": 1719,
"height": 720,
"size": 29929272,
"progress": 100,
"status": "complete",
"mp4_url": "https://demo-public.gvideo.io/videos/2675_p0jh5kwH6F0ff2H6/qid3570v1_h264_1267_720.mp4"
},
{
"id": 25889828,
"name": "vod480p",
"width": 1146,
"height": 480,
"size": 20827007,
"progress": 100,
"status": "complete",
"mp4_url": "https://demo-public.gvideo.io/videos/2675_p0jh5kwH6F0ff2H6/qid3573v1_h264_800_480.mp4"
}
]
}
Stop recording a stream.
Stream must be in “recording: true” state for recording to be stopped.
If there was a recording, the created video entity will be returned. Otherwise the response will be empty. Please see conditions and restrictions for recording a stream in the description of method /start_recording
.
curl --request PUT \
--url https://api.gcore.com/streaming/streams/{stream_id}/stop_recording \
--header 'Authorization: <api-key>'
{
"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": "xMbWbUSuvJ8NX2",
"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/2474723/f9767f071a8b7da51c64907f6a830cbb.webp",
"poster_thumb": "https://static.gvideo.co/videoplatform/posters/video/2474723/thumb_f9767f071a8b7da51c64907f6a830cbb.webp",
"screenshot": "https://static.gvideo.co/videoplatform/posters/video/2474723/f9767f071a8b7da51c64907f6a830cbb.webp",
"screenshots": [
"https://static.gvideo.co/videoplatform/thumbnails/2675/2474723_FnlHXwA16ZMxmUr.mp4_1_1080.jpg",
"https://static.gvideo.co/videoplatform/thumbnails/2675/2474723_FnlHXwA16ZMxmUr.mp4_2_1080.jpg"
],
"screenshot_id": -1,
"views": 2000001,
"cdn_views": 30000003,
"projection": "regular",
"sprite": "https://static.gvideo.co/videoplatform/sprites/2675/2474723_FnlHXwA16ZMxmUr.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\n3\n00:00:10,000 --> 00:00:15,000\nxMbWbUSuvJ8NX2_sprite.jpg#xywh=200,0,100,42\n",
"converted_videos": [
{
"id": 25889825,
"name": "vod720p",
"width": 1719,
"height": 720,
"size": 29929272,
"progress": 100,
"status": "complete",
"mp4_url": "https://demo-public.gvideo.io/videos/2675_p0jh5kwH6F0ff2H6/qid3570v1_h264_1267_720.mp4"
},
{
"id": 25889828,
"name": "vod480p",
"width": 1146,
"height": 480,
"size": 20827007,
"progress": 100,
"status": "complete",
"mp4_url": "https://demo-public.gvideo.io/videos/2675_p0jh5kwH6F0ff2H6/qid3573v1_h264_800_480.mp4"
}
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Stream ID
Recording is stopped. Returns the created video entity if there was a recording, or empty response
The response is of type object
.
Was this page helpful?