Skip to content

Video transcoding

You chain up to 10 video operations per job. Splixir checks keyframes, codecs, containers, and audio-video sync before delivery. See Pricing and limits for rate details and the Video reference for all operation schemas.

Set codec to h264 for universal playback, hevc for smaller mobile files, or av1 for modern streaming efficiency. Tune output with quality (draft, balanced, best), crf (14 to 40), or maxBitrateKbps (100 to 200000).

Terminal window
curl -X POST https://api.splixir.com/v1/jobs \
-H "Authorization: Bearer $SPLIXIR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "video",
"input": "https://cdn.example.com/raw.mp4",
"operations": [
{ "type": "transcode", "codec": "h264", "container": "mp4", "quality": "balanced", "audioCodec": "aac", "audioBitrateKbps": 128 }
],
"output": { "format": "mp4" }
}'

For WebM delivery (container: "webm"), set codec: "av1" and audioCodec to "opus" or "none".

Terminal window
curl -X POST https://api.splixir.com/v1/jobs \
-H "Authorization: Bearer $SPLIXIR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "video",
"input": "https://cdn.example.com/raw.mp4",
"operations": [
{ "type": "resize", "resolution": "720p", "fit": "inside", "withoutEnlargement": true },
{ "type": "transcode", "codec": "av1", "container": "webm", "quality": "balanced", "audioCodec": "opus" }
],
"output": { "format": "webm" }
}'

Use chromaTier to control color depth. Set 420_8bit for standard delivery and 420_10bit for 10-bit output.

Terminal window
curl -X POST https://api.splixir.com/v1/jobs \
-H "Authorization: Bearer $SPLIXIR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "video",
"input": "https://cdn.example.com/raw.mov",
"operations": [
{ "type": "transcode", "codec": "hevc", "container": "mp4", "chromaTier": "420_10bit", "quality": "best", "audioCodec": "aac" }
],
"output": { "format": "mp4" }
}'

Set resolution tiers, frame rate, and auto-rotation

Section titled “Set resolution tiers, frame rate, and auto-rotation”

Combine rotate (autoOrient: true for mobile vertical video), resize (540p, 720p, 1080p, 1440p, 4k, 8k), and fps (cfr for constant frame rate or vfr_cap to cap variable sources).

Terminal window
curl -X POST https://api.splixir.com/v1/jobs \
-H "Authorization: Bearer $SPLIXIR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "video",
"input": "https://cdn.example.com/portrait.mov",
"operations": [
{ "type": "rotate", "autoOrient": true },
{ "type": "resize", "resolution": "1080p", "fit": "inside", "withoutEnlargement": true },
{ "type": "fps", "targetFps": 30, "mode": "cfr" },
{ "type": "transcode", "codec": "h264", "container": "mp4", "quality": "balanced", "audioCodec": "aac" }
],
"output": { "format": "mp4" }
}'

Place thumbnail ($0.005 flat when standalone) or clip (webp or gif, 0.5 to 30 seconds, 5 to 30 fps) as the last operation in operations.

Terminal window
curl -X POST https://api.splixir.com/v1/jobs \
-H "Authorization: Bearer $SPLIXIR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "video",
"input": "https://cdn.example.com/raw.mp4",
"operations": [
{ "type": "thumbnail", "timestampSeconds": 4.5, "format": "webp", "width": 1280, "quality": 85 }
],
"output": { "format": "webp" },
"wait": true
}'

Namespaced operations and multi-output ladders

Section titled “Namespaced operations and multi-output ladders”

You can omit the top-level kind field when you prefix operations with video.. Pass outputs to produce multiple deliverables from one decode pass, such as a 1080p master and a 720p preview.

{
"input": { "url": "https://cdn.example.com/raw.mov" },
"outputs": [
{
"id": "hd",
"operations": [
{ "op": "video.resize", "width": 1920 },
{ "op": "video.transcode", "codec": "h264", "crf": 20 }
]
},
{
"id": "preview",
"operations": [
{ "op": "video.resize", "width": 1280 },
{ "op": "video.transcode", "codec": "h264", "crf": 24 }
]
}
]
}

Pass { "jobId": "...", "output": "..." } inside input or inputs to feed a delivered artifact directly into a follow-up job without downloading or re-uploading.

{
"input": { "jobId": "job_01J...", "output": "hd" },
"operations": [{ "op": "video.thumbnail", "atSeconds": 5, "format": "webp" }]
}
Terminal window
splixir video --from-job job_01J...:hd --thumbnail 5 --thumbnail-format webp -o ./thumb.webp

Captions, compose, concat, and audio muxing

Section titled “Captions, compose, concat, and audio muxing”

Splixir supports multi-track timelines and caption burn-in as structured operations:

  • video.captions: Burn styled srt, vtt, or ass subtitles onto video with font, size, color, outline, and bottom margin controls.
  • video.compose: Overlay a corner watermark image or picture-in-picture video stream with explicit coordinates, scale, opacity, and time windows.
  • video.concat: Stitch two or more video clips from inputs in sequence into one container.
  • video.mux: Replace or mix a separate audio track onto a video stream with volume and offset controls.
Terminal window
splixir video ./intro.mp4 --concat ./main.mp4 -o ./combined.mp4
splixir video ./video.mp4 --mux-audio ./voiceover.wav -o ./dubbed.mp4