Re-transcode a video
POST
https://octopus.livepush.io/streams/{stream_id}/videos/{video_id}/retranscode
Base URL https://octopus.livepush.io — Core Streams & Media APIs
Queues the video for transcoding again, optionally against a different encoding preset. Increments the video's retranscodeCount.
Requires a token with the streams.videos.write scope.
Authorization
Send a valid access token in the Authorization header.
bearerAuth— Bearer token (JWT)
Authorization: Bearer YOUR_API_TOKEN
Try it
Loading the request builder…
POST
https://octopus.livepush.io/streams/{stream_id}/videos/{video_id}/retranscode
— This call changes live data on your account.
Parameters
Path parameters
-
stream_idstring requiredUnique identifier of the stream.example: st_xxxxxxxxxxxxx -
video_idstring requiredUnique identifier of the video.example: vd_xxxxxxxxxxxx
Request body
-
encoding_preset_idstring -
encoding_presetstring
{
"encoding_preset_id": "string",
"encoding_preset": "string"
}
Code samples
curl -X POST 'https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/videos/vd_xxxxxxxxxxxx/retranscode' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"encoding_preset_id": "string",
"encoding_preset": "string"
}'
const response = await fetch('https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/videos/vd_xxxxxxxxxxxx/retranscode', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"encoding_preset_id": "string",
"encoding_preset": "string"
}),
});
if (!response.ok) {
throw new Error(`Livepush API error ${response.status}`);
}
const data = await response.json();
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
}
payload = {
"encoding_preset_id": "string",
"encoding_preset": "string"
}
response = requests.post('https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/videos/vd_xxxxxxxxxxxx/retranscode', headers=headers, json=payload, timeout=30)
response.raise_for_status()
data = response.json()
Responses
Success.
-
successboolean
{
"success": true
}
No response body.
Not found for this account.