Encoding JobsCreate Encoding Job

Create Encoding Job

Add a file encoding job.

curl -X POST "https://api.5centscdn.com/v2/transcoding/jobs/7" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "file": "/uploads/source_clip.mp4",
  "priority": 0,
  "map": "0:v:0 0:a:0 0:s:0"
}'
{
  "result": "example_string",
  "jobid": 123,
  "message": "example_string"
}
POST
/transcoding/jobs/{profileid}
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

path
profileidinteger
Required

ID of the Transcode Profile (fs_transcodeprofiles.id).

Content-Typestring
Required

The media type of the request body

Options: application/json
filestring

Input file relative path.

priorityinteger

Encode job priority. 0 = High, 100 = Lowest.

mapstring

Video/Audio/Subtitle stream selection from input source. Passed as a string value to the encoder.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Path Parameters

profileidinteger
Required

ID of the Transcode Profile (fs_transcodeprofiles.id).

Example:
7

Body

application/json
filestring

Input file relative path.

Example:
/uploads/source_clip.mp4
priorityinteger

Encode job priority. 0 = High, 100 = Lowest.

Example:
0
mapstring

Video/Audio/Subtitle stream selection from input source. Passed as a string value to the encoder.

Example:
0:v:0 0:a:0 0:s:0

Responses

resultstring

success/error

jobidinteger

Video encoding job ID.

messagestring

Error message, only present if an error occurs.