Version 8.3.8

Back | 

WsRetranscodeAsset

URL

de.piksel.tech/services/index.php?&mode=json
Use "request" param as post variable for submitting json/xml request payload for all POST requests.

Request Headers

Name

Parameters

  • assetid => assetid of the media asset

    assetfileid => assetfileid to be used as source. Highest rendition assetfile will be used if not specified.

    transcoderProfileId =>transcoderProfileId to be used for encoding

    thumbCount =>Additional thumbs that needs to be generated during the encoding process

    encodeDelta => if set to true will only encode rendition from the profile which doesn't already exist in the given asset

    removeExistingRenditions => remove existing rendition if retranscoding is successful

    isRemoteSource => set to true if using a remote source file

    filename => base64 encoded filename for remote source or url encoded filename for file in ftp. To be set when assetfileid is not set

    callbackurl => url encoded callback url to get notification back on status of the asset retranscode

Request

Re transcodes an existing asset

Request format

{
  "request": {
    "authentication": {
      "app_token": "7cd207c2-6808-11e3-b865-22000a8a28ea",
      "client_token": "d4c1b92c0acb102ba3e10015c5f061d1",
      "user_token": "f277cb9d46e45f67f44de949cdde110f"
    },
    "header": {
      "header_version": 1,
      "api_version": "5",
      "no_cache": true
    },
    "WsRetranscodeAsset": {
      "assetid": 1,
      "callbackurl": "callbackurl",
      "assefileid": 1,
      "transcoderProfileId": 1,
      "thumbCount": 5,
      "encodeDelta": false,
      "removeExistingRenditions": false,
      "isRemoteSource": false,
      "filename": "{filename}"
    }
  }
}

Test Example

{ "request": { "authentication": { "app_token": "#app_token#", "client_token": "#client_token#", "user_token": "#user_token#" }, "header": { "header_version": 1, "api_version": "5", "no_cache": true }, "WsRetranscodeAsset": { "assetid": 1, "callbackurl": "callbackurl", "assefileid": 1, "transcoderProfileId": 1, "thumbCount": 5, "encodeDelta": false, "removeExistingRenditions": false, "isRemoteSource": false, "filename": "{filename}" } } }

Response

Response format

{
  "response": {
    "success": {
      "code": 629,
      "message": "Retranscode Request Created",
      "details": ""
    },
    "WsRetranscodeAsset": {
      "assetid": 1,
      "callbackurl": "callbackurl",
      "assefileid": 1,
      "transcoderProfileId": 1,
      "thumbCount": 5,
      "encodeDelta": false,
      "removeExistingRenditions": false,
      "isRemoteSource": false
    }
  }
}