Skip to main content
curl --request POST \
  --url https://livepeer.studio/api/transcode \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "input": {
    "url": "https://s3.amazonaws.com/bucket/file.mp4"
  },
  "storage": {
    "type": "s3",
    "endpoint": "https://gateway.storjshare.io",
    "bucket": "outputbucket",
    "credentials": {
      "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
      "secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
    }
  },
  "outputs": {
    "hls": {
      "path": "/samplevideo/hls"
    },
    "mp4": {
      "path": "/samplevideo/mp4"
    },
    "fmp4": {
      "path": "/samplevideo/fmp4"
    }
  },
  "profiles": [
    {
      "width": 129,
      "name": "720p",
      "height": 129,
      "bitrate": 401,
      "quality": 22,
      "fps": 1,
      "fpsDen": 2,
      "gop": "<string>",
      "profile": "H264Baseline",
      "encoder": "h264"
    }
  ],
  "targetSegmentSizeSecs": 123,
  "creatorId": {
    "type": "unverified",
    "value": "<string>"
  },
  "c2pa": true
}'