Skip to content

Video reference

Submit structured video jobs to POST https://api.splixir.com/v1/jobs. Pass kind: "video" or omit kind and use namespaced video.* operation names. Inspect source streams before submitting with POST /v1/probe, see Pricing and limits for rates, or explore interactive schemas in the REST API reference.

mp4, mov (qt), webm, mkv (matroska), avi, ts (m2ts, mts), flv, m4v, 3gp (3gpp), and ogv (ogg).

  • Video containers (4): mp4, mov, mkv, webm
  • Streaming: hls (fMP4 segments with a signed playlist URL)
  • Thumbnails and clips: jpeg, png, webp, gif
  • Audio extraction: mp3, m4a, aac, flac, opus, wav
  • Subtitle extraction: srt, vtt, ass

Transcodes keep every audio track, embedded subtitle track, and chapter by default. Verification compares the output track list with the input and fails the job when a track goes missing. The job report lists audio tracks, subtitle tracks, HDR format, and chapter count for both input and output.

Plan Max video size Max video duration Operations per job
Free 500 MiB 5 minutes 10
Basic 2 GiB 30 minutes 10
PAYG (Starter, 10x), Pro, Scale 5 GiB 60 minutes 10
PAYG (20x, 30x), Studio 10 GiB 120 minutes 10
Codec 420_8bit 420_10bit Containers
h264 Supported Not supported mp4, mov, mkv
hevc Supported Supported mp4, mov, mkv
av1 Supported Supported mp4, mov, mkv, webm

chromaTier: "420_10bit" requires codec: "hevc" or "av1". webm outputs require codec: "av1" and audioCodec: "opus" or "none".

540p, 720p, 1080p, 1440p, 4k, 8k.

You can pass either resolution or explicit width (64 to 7680) and height (64 to 4320), not both.

  1. Upload large local videos with multipart uploads, or pass a public HTTPS video URL.
  2. Send POST https://api.splixir.com/v1/jobs with kind: "video", input, operations, and optional priority: "flex" or callbackUrl.
  3. Track updates with webhooks or GET /v1/jobs/:id, then download from output.downloadUrl.
Type Purpose
transcode Encode video codec, container, chroma tier, and audio track
resize Scale to a resolution tier or exact pixel bounds
crop Crop by pixel region or aspect ratio
trim Trim start, end, or duration
fps Set target frame rate (cfr or vfr_cap)
rotate Rotate by 90-degree increments or auto-orient from metadata
speed Adjust playback speed with optional pitch preservation
watermark Render text or image watermark overlay
deinterlace Deinterlace interlaced sources
audio Strip, normalize, adjust volume, or extract audio
thumbnail Extract a still frame (must be last operation)
clip Generate an animated WebP or GIF clip (must be last operation)
strip_metadata Strip container metadata tags
captions Burn styled ass, srt, or vtt subtitles onto video
compose Overlay, picture-in-picture, or stack multiple visual inputs
concat Stitch multiple clips in inputs sequentially
mux Replace or mix a separate audio input track onto video
chapters Set chapters, or generate them from concat inputs
extract_subtitles Extract one subtitle track as a file (must be last operation)
storyboard Render a tiled frame contact sheet (must be last operation)
Field Type Notes
codec string h264, hevc, av1 (required)
container string mp4, mov, mkv, webm
chromaTier string 420_8bit, 420_10bit (default 420_8bit)
quality string draft, balanced, best (default balanced)
crf integer 14 to 40
maxBitrateKbps integer 100 to 200000
audioCodec string aac, opus, copy, none (default aac)
audioBitrateKbps integer 32 to 512
hdr string preserve, hdr10, or sdr (default keeps the source)

Set output format to hls with an mp4 transcode to package the encode as fMP4 HLS. The delivered downloadUrl is a signed playlist. Segments load through the same signed link.

Use multiple hls outputs at different resolutions in one job to deliver an adaptive ladder. The job-level downloadUrl then points to a master playlist that lists every delivered rendition by bandwidth and resolution. Each rendition bills as its own video output. Multiple audio tracks become selectable audio renditions, and subtitle tracks become WebVTT subtitle renditions in the master playlist.

HLS delivery is hosted only. Bucket and direct destination outputs reject hls jobs at creation. Playlist and segment links stay signed and expire with the output retention period. Set retainDays on the job when players need the stream for longer. The CLI packages HLS with --hls next to any mp4 transcode.

HDR follows the hdr intent. preserve keeps HDR sources HDR on 10-bit outputs. hdr10 normalizes HLG and untagged HDR to HDR10 with BT.2020 PQ signaling, and requires hevc or av1. sdr tone maps to BT.709. An 8-bit output from an HDR source always tone maps. Dolby Vision input becomes HDR10 or SDR, because re-encoding cannot re-author Dolby Vision dynamic metadata.

Pass an explicit crf when shrinking already-compressed video, because balanced without crf optimizes visual fidelity over smaller file size.

{
"type": "transcode",
"codec": "h264",
"container": "mp4",
"quality": "balanced",
"audioCodec": "aac"
}

Specify resolution or width/height, not both.

Field Type Notes
resolution string 540p, 720p, 1080p, 1440p, 4k, 8k
width integer 64 to 7680
height integer 64 to 4320
fit string inside, cover, contain (default inside)
withoutEnlargement boolean Default true
{ "type": "resize", "resolution": "1080p", "fit": "inside", "withoutEnlargement": true }
  • Region mode (mode: "region", default): left (>= 0), top (>= 0), width (2 to 7680), height (2 to 4320).
  • Aspect mode (mode: "aspect"): aspectRatio (16:9, 9:16, 1:1, 4:5, 4:3, 21:9) and gravity (center, north, south, east, west, default center).
{ "type": "crop", "mode": "aspect", "aspectRatio": "9:16", "gravity": "center" }

endSeconds and durationSeconds are mutually exclusive.

Field Type Notes
startSeconds number >= 0 (default 0)
endSeconds number > startSeconds
durationSeconds number > 0
{ "type": "trim", "startSeconds": 10, "durationSeconds": 60 }
Field Type Notes
targetFps number 1 to 120 (required)
mode string cfr or vfr_cap (default cfr)
{ "type": "fps", "targetFps": 30, "mode": "cfr" }

Specify degrees (90, 180, 270) or autoOrient: true.

{ "type": "rotate", "autoOrient": true }
Field Type Notes
factor number 0.25 to 4.0 (required)
preserveAudioPitch boolean Default true
{ "type": "speed", "factor": 1.5, "preserveAudioPitch": true }

Specify either text or imageUrl, not both.

Field Type Notes
text string 1 to 120 chars
imageUrl string Public HTTPS image URL
position string top-left, top-right, bottom-left, bottom-right, center (default bottom-right)
opacity number 0.05 to 1 (default 0.75)
scale number 0.05 to 0.5 (default 0.15)
marginPx integer 0 to 200 (default 24)
{ "type": "watermark", "text": "Preview", "position": "bottom-right", "opacity": 0.75 }
Field Type Notes
mode string yadif or bwdif (default yadif)
{ "type": "deinterlace", "mode": "yadif" }

action: "extract" must be the last operation in operations.

Field Type Notes
action string strip, normalize, volume, extract (required)
preset string streaming, podcast, broadcast (normalize only)
gainDb number -36 to 36 (required for volume)
format string mp3, m4a, aac, flac, opus, wav (extract only)
{ "type": "audio", "action": "normalize", "preset": "streaming" }

Must be the last operation in operations. Standalone thumbnail jobs cost $0.005 flat.

Field Type Notes
timestampSeconds number >= 0 (default 0)
format string jpeg, png, webp (default jpeg)
width integer 64 to 4096
quality integer 1 to 100
{ "type": "thumbnail", "timestampSeconds": 5, "format": "jpeg", "width": 1280, "quality": 85 }

Must be the last operation in operations.

Field Type Notes
format string webp or gif (default webp)
startSeconds number >= 0 (default 0)
durationSeconds number 0.5 to 30 (default 5)
fps integer 5 to 30 (default 15)
width integer 64 to 1280
{
"type": "clip",
"format": "webp",
"startSeconds": 10,
"durationSeconds": 5,
"fps": 15,
"width": 640
}
Field Type Notes
removeTags boolean Default true
{ "type": "strip_metadata", "removeTags": true }

Specify exactly one subtitle source (subtitleContent, subtitleUrl, subtitleUploadId, or subtitleJobId). These fields are mutually exclusive.

Field Type Notes
format string ass, srt, or vtt (default ass)
subtitleUrl string HTTPS subtitle file URL
subtitleUploadId string Uploaded subtitle file ID
subtitleJobId string Prior subtitle-producing job ID
subtitleContent string Inline subtitle text (1 to 512000 bytes)
burnIn boolean Default true. Set false to mux the subtitles as a soft track instead of burning them in
fontSize integer 10 to 120
fontName string Optional font family name
primaryColor string Hex color (#RRGGBB)
outlineColor string Hex color (#RRGGBB)
marginV integer Bottom or top vertical margin in pixels (0 to 500)
alignment string bottom, middle, or top (default bottom)
Field Type Notes
layout string pip, side_by_side, stack_vertical, or overlay (default)
overlayInput string Key or index of overlay asset in inputs (default "overlay")
x, y integer/string Offset in pixels or expression
width integer 16 to 7680
height integer 16 to 4320
opacity number 0 to 1 (default 1)
startSeconds number >= 0
endSeconds number >= 0

concat must be the first media operation in operations when combined with downstream transforms.

Field Type Notes
mode string auto, reencode, or stream_copy (default auto)
transition string none or crossfade (default none)
transitionDurationSeconds number 0.1 to 3 (default 0.5)
normalizeAudio boolean Default true
Field Type Notes
audioInput string Key or index of audio asset in inputs (default audio)
replaceAudio boolean Default true
audioDelaySeconds number -30 to 30 (default 0)
audioVolume number 0 to 5 (default 1)
shortest boolean Stop output when shortest stream ends (default true)

Sets chapters on the output, or generates one chapter per concat input. Chapter titles come from each input file name when you set fromConcatInputs. Verification counts the chapters in the finished file.

Field Type Notes
chapters object[] 1 to 200 entries with startSeconds and title; endSeconds is optional
fromConcatInputs boolean Generate one chapter per concat input (default false)
{
"type": "chapters",
"chapters": [
{ "startSeconds": 0, "title": "Intro" },
{ "startSeconds": 95, "title": "Interview" }
]
}

Extracts one embedded subtitle track as its own file. Set the job output format to match. This operation must be last.

Field Type Notes
trackIndex integer 0 to 32 (default 0)
format string srt, vtt, or ass (default srt)
{ "type": "extract_subtitles", "trackIndex": 0, "format": "vtt" }

Renders one tiled image of frames sampled across the video. Pair it with a scrubbing WebVTT you generate from the same interval. This operation must be last.

Field Type Notes
intervalSeconds number 1 to 600 (default 10)
columns integer 1 to 10 (default 5)
format string jpeg, png, or webp (default jpeg)
width integer Cell width 64 to 1280
{ "type": "storyboard", "intervalSeconds": 10, "columns": 5, "format": "jpeg" }

Namespaced operations, multi-output ladders, and job chaining

Section titled “Namespaced operations, multi-output ladders, and job chaining”

Prefix any operation op or type with video. (for example "video.transcode" or "video.captions") to omit top-level kind. Use inputs (an array or keyed object of { url | uploadId | jobId, output? }) for multi-asset operations like compose, concat, and mux. Use outputs (up to 12 outputs) to encode multi-resolution ladders from one job, and reference delivered outputs in downstream jobs with { "jobId": "...", "output": "..." }.