Skip to main content

Create Encoding Job

Encoding API converts source video into compressed version in multiple formats and resolutions up to 1080ps.

Once you create the encoding job, then you will able to see the status of encoding job and also more details about encoding jobs in your dashboard.

Create Encoding Job

Body Params#

Property NameTypeDescription
videoIdstringunique id of video file.
videoUrlstringUrl of video where the video is stored.
presetsarrayIt contains an object with the properties of resolutions and format.
thumbnailsarrayIt contains an object with the properties of timestamp, resolutions, formats and filters.
webhookUrlstringIt's URL, where we notify, once encoding is complete.
curl --L --X POST 'https://api.zujonow.com/v1/encoder/jobs' \--header 'Authorization: `your token goes here`' \--header 'Content-Type: application/json' \--data-raw '{    "videoId": "6053115ebba24b4d700c8c49",    "presets": [        {            "resolutions": ["240", "360", "480"],            "format": "hls"        }, {            "resolutions": ["360"],            "format": "mp4"        }    ],    "thumbnails": [        {            "timestamp": "00:00:03",            "resolutions": ["360"],            "formats": ["jpg", "webp"],            "filters": ["none", "blur"]        }    ],    "webhookUrl":"https://<your-website-address>/<path>"}'
  • Response Body
      parameters
    • idstring

      Unique identifier of encoded job.
    • statusstring

      status of encoding job either queued, processing, completed, failed.
    • videoIdnumber

      Unique identifier of video file.
    • videoUrlobject

      Url of video where the video is stored.
    • presetsarray

      It contains an array of object that you provided in body params.
    • thumbnailsarray

      It contains an array of object that you provided in body params.
    • webhookUrlstring

      It's Url, where we notify once encoding is complete.