# Re-transcode a video
`POST https://octopus.livepush.io/streams/{stream_id}/videos/{video_id}/retranscode`
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.
- **Tag:** Videos
- **Operation ID:** `retranscodeVideo`
- **Authentication:** Bearer token required
- **Docs:** https://developers.livepush.io/videos/re-transcode-a-video/

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `stream_id` | string | yes | Unique identifier of the stream. |
| `video_id` | string | yes | Unique identifier of the video. |


### Request body

`application/json` (required)

- `encoding_preset_id` (string)
- `encoding_preset` (string)


```json
{
  "encoding_preset_id": "string",
  "encoding_preset": "string"
}
```


### Example request

```bash
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"
  }'
```


### Responses


#### 200 — Success.

- `success` (boolean)


```json
{
  "success": true
}
```


#### 401 — Response


#### 404 — Not found for this account.

