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.
Transcode to H.264, HEVC, or AV1
Section titled “Transcode to H.264, HEVC, or AV1”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).
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" } }'const res = await fetch("https://api.splixir.com/v1/jobs", { method: "POST", headers: { Authorization: `Bearer ${process.env.SPLIXIR_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ 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" }, }),});import osimport requests
res = requests.post( "https://api.splixir.com/v1/jobs", headers={"Authorization": f"Bearer {os.environ['SPLIXIR_API_KEY']}"}, json={ "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"}, },)splixir video https://cdn.example.com/raw.mp4 --codec h264 --container mp4 --quality balanced --audio-codec aac --audio-bitrate 128 -o ./out.mp4Ship AV1 in WebM with Opus
Section titled “Ship AV1 in WebM with Opus”For WebM delivery (container: "webm"), set codec: "av1" and audioCodec to "opus" or "none".
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" } }'const res = await fetch("https://api.splixir.com/v1/jobs", { method: "POST", headers: { Authorization: `Bearer ${process.env.SPLIXIR_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ 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" }, }),});import osimport requests
res = requests.post( "https://api.splixir.com/v1/jobs", headers={"Authorization": f"Bearer {os.environ['SPLIXIR_API_KEY']}"}, json={ "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"}, },)splixir video https://cdn.example.com/raw.mp4 --codec av1 --container webm --audio-codec opus --resolution 720p -o ./out.webmControl 10-bit color
Section titled “Control 10-bit color”Use chromaTier to control color depth. Set 420_8bit for standard delivery and 420_10bit for 10-bit output.
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" } }'const res = await fetch("https://api.splixir.com/v1/jobs", { method: "POST", headers: { Authorization: `Bearer ${process.env.SPLIXIR_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ 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" }, }),});import osimport requests
res = requests.post( "https://api.splixir.com/v1/jobs", headers={"Authorization": f"Bearer {os.environ['SPLIXIR_API_KEY']}"}, json={ "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"}, },)splixir video https://cdn.example.com/raw.mov --codec hevc --container mp4 --chroma 420_10bit --quality best -o ./out.mp4Set 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).
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" } }'const res = await fetch("https://api.splixir.com/v1/jobs", { method: "POST", headers: { Authorization: `Bearer ${process.env.SPLIXIR_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ 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" }, }),});import osimport requests
res = requests.post( "https://api.splixir.com/v1/jobs", headers={"Authorization": f"Bearer {os.environ['SPLIXIR_API_KEY']}"}, json={ "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"}, },)splixir video ./portrait.mov --auto-orient --resolution 1080p --fps 30 --codec h264 --container mp4 -o ./out.mp4Extract thumbnails and animated clips
Section titled “Extract thumbnails and animated clips”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.
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 }'const res = await fetch("https://api.splixir.com/v1/jobs", { method: "POST", headers: { Authorization: `Bearer ${process.env.SPLIXIR_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ kind: "video", input: "https://cdn.example.com/raw.mp4", operations: [ { type: "clip", format: "webp", startSeconds: 10, durationSeconds: 5, fps: 15, width: 640 }, ], output: { format: "webp" }, wait: true, }),});import osimport requests
res = requests.post( "https://api.splixir.com/v1/jobs", headers={"Authorization": f"Bearer {os.environ['SPLIXIR_API_KEY']}"}, json={ "kind": "video", "input": "https://cdn.example.com/raw.mp4", "operations": [ {"type": "clip", "format": "gif", "startSeconds": 10, "durationSeconds": 5, "fps": 15, "width": 640}, ], "output": {"format": "gif"}, "wait": True, },)splixir video ./raw.mov --thumbnail 4.5 --thumbnail-format webp -o ./thumb.webpsplixir video ./raw.mov --clip 10,5 --clip-format gif --clip-fps 15 -o ./preview.gifNamespaced 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 } ] } ]}Chain jobs with output references
Section titled “Chain jobs with output references”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" }]}splixir video --from-job job_01J...:hd --thumbnail 5 --thumbnail-format webp -o ./thumb.webpCaptions, 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 styledsrt,vtt, orasssubtitles 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 frominputsin sequence into one container.video.mux: Replace or mix a separate audio track onto a video stream with volume and offset controls.
splixir video ./intro.mp4 --concat ./main.mp4 -o ./combined.mp4splixir video ./video.mp4 --mux-audio ./voiceover.wav -o ./dubbed.mp4