Create transcoding jobs in bulk
post
/transcoder/jobs/batchSubmit several videos for transcoding in a single request. Useful when processing a whole library at once.
Autorización
Authorization
Authorization*string
Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.
Cuerpo de la petición
application/jsonObligatorio
output*JobOutput
Propiedades (1)
s3*S3Config
Propiedades (6)
endpoint?string | null
S3-compatible endpoint URL (omit for AWS S3)
Rango
length ≤ 512region?string | null
Rango
length ≤ 64bucket*string
Rango
1 ≤ length ≤ 255path?string
Object key (input) or destination key prefix (output)
Rango
length ≤ 1024Por defecto""access_key?string | null
Rango
length ≤ 255secret_key?string | null
Rango
length ≤ 2048outputs*array<OutputSpec>
Rango
items ≥ 1Rangoitems ≤ 20Propiedades (11)
codec?string | null
Valores
"h264""avc""h265""hevc""vp9""av1"height?integer | null
Output height in pixels; 0 keeps the source
Rango
0 ≤ value ≤ 4320crf?integer | null
Rango
0 ≤ value ≤ 63preset?string | null
Valores
"ultrafast""superfast""veryfast""faster""fast""medium""slow""slower""veryslow"bitrate?string | null
Maximum bitrate, e.g. 5M or 800k
Rango
pattern ^\d{1,6}(\.\d{1,3})?[kKmM]?$type*string
Valores
"file""hls""thumbnails""gif"container?string | null
Valores
"mp4""webm""mkv"ladder?array<LadderRung> | null
Rango
items ≤ 12Propiedades (5)
codec?string | null
Valores
"h264""avc""h265""hevc""vp9""av1"height?integer | null
Output height in pixels; 0 keeps the source
Rango
0 ≤ value ≤ 4320crf?integer | null
Rango
0 ≤ value ≤ 63preset?string | null
Valores
"ultrafast""superfast""veryfast""faster""fast""medium""slow""slower""veryslow"bitrate?string | null
Maximum bitrate, e.g. 5M or 800k
Rango
pattern ^\d{1,6}(\.\d{1,3})?[kKmM]?$interval?integer | null
Seconds between thumbnails
Rango
1 ≤ value ≤ 3600duration?integer | null
GIF length in seconds
Rango
1 ≤ value ≤ 60start?string | null
GIF start offset
Rango
pattern ^(\d{1,6}(\.\d{1,3})?|(\d{1,2}:)?\d{1,2}:\d{1,2}(\.\d{1,3})?)$input_defaults?JobInput | null
Propiedades (3)
source*string
Valores
"url""s3"url?string | null
Rango
length ≤ 2048s3?S3Config | null
Propiedades (6)
endpoint?string | null
S3-compatible endpoint URL (omit for AWS S3)
Rango
length ≤ 512region?string | null
Rango
length ≤ 64bucket*string
Rango
1 ≤ length ≤ 255path?string
Object key (input) or destination key prefix (output)
Rango
length ≤ 1024Por defecto""access_key?string | null
Rango
length ≤ 255secret_key?string | null
Rango
length ≤ 2048inputs*array<BatchInputItem>
Rango
items ≥ 1Rangoitems ≤ 1000Propiedades (4)
s3?S3Config | null
Propiedades (6)
endpoint?string | null
S3-compatible endpoint URL (omit for AWS S3)
Rango
length ≤ 512region?string | null
Rango
length ≤ 64bucket*string
Rango
1 ≤ length ≤ 255path?string
Object key (input) or destination key prefix (output)
Rango
length ≤ 1024Por defecto""access_key?string | null
Rango
length ≤ 255secret_key?string | null
Rango
length ≤ 2048url?string | null
Rango
length ≤ 2048path?string | null
Rango
length ≤ 1024out_subpath?string | null
Rango
length ≤ 1024webhook_url?string | null
Rango
length ≤ 2048Respuestas
Successful Response
application/json
batch_id*string
job_ids*array<string>
count*integer