Livepush Developers

Videos

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)
headers.txt
Authorization: Bearer YOUR_API_TOKEN

Try it

POST https://octopus.livepush.io/streams/{stream_id}/videos/{video_id}/retranscode — This call changes live data on your account.

Parameters

Path parameters

  • stream_id string required
    Unique identifier of the stream.
    example: st_xxxxxxxxxxxxx
  • video_id string required
    Unique identifier of the video.
    example: vd_xxxxxxxxxxxx

Request body

application/json required

  • encoding_preset_id string
  • encoding_preset string
Example request body response.json
{
  "encoding_preset_id": "string",
  "encoding_preset": "string"
}

Code samples

request.sh
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.

application/json

  • success boolean
Example 200 response response.json
{
  "success": true
}

No response body.

Not found for this account.