Skip to main content

transcode

Convert video to a different format or codec.
{ "type": "transcode", "params": { "format": "mp4", "codec": "h264", "resolution": "720p" } }
ParamTypeDescription
formatstringOutput format: mp4, webm, mkv, avi
codecstringVideo codec: h264, h265, vp9, av1
resolutionstringTarget resolution: 480p, 720p, 1080p, 4k
bitratestringTarget bitrate (e.g., “2M”)
crfintegerConstant rate factor (0-51, lower = better quality)

trim

Extract a segment from a video.
{ "type": "trim", "params": { "start": "00:00:10", "end": "00:00:30" } }

thumbnail

Extract a single frame as an image.
{ "type": "thumbnail", "params": { "time": "00:00:05", "width": 640 } }

gif

Convert a video segment to an animated GIF.
{ "type": "gif", "params": { "start": "00:00:00", "duration": 5, "width": 480, "fps": 15 } }

hls

Generate HLS (HTTP Live Streaming) segments for adaptive streaming.
{ "type": "hls", "params": { "segment_time": 6 } }

dash

Generate MPEG-DASH segments for adaptive streaming.
{ "type": "dash", "params": { "segment_time": 4 } }

speed

Change video playback speed.
{ "type": "speed", "params": { "factor": 2.0 } }

rotate_video

Rotate video by 90, 180, or 270 degrees.
{ "type": "rotate_video", "params": { "angle": 90 } }

aspect_ratio

Change video aspect ratio with padding or cropping.
{ "type": "aspect_ratio", "params": { "ratio": "16:9", "mode": "pad" } }

framerate

Change video frame rate.
{ "type": "framerate", "params": { "fps": 30 } }

concat

Concatenate multiple videos into one. Use an array of URLs as input.
{
  "input": ["https://example.com/part1.mp4", "https://example.com/part2.mp4"],
  "operations": [{ "type": "concat" }]
}

burn_subtitles

Burn subtitle file into the video.
{ "type": "burn_subtitles", "params": { "subtitle_url": "https://example.com/subs.srt" } }

subtitle_extract

Extract subtitles from a video file.
{ "type": "subtitle_extract" }

overlay_text

Overlay text on video.
{ "type": "overlay_text", "params": { "text": "Hello World", "x": 10, "y": 10, "fontsize": 24 } }

preview_clip

Generate a short preview clip from a longer video.
{ "type": "preview_clip", "params": { "duration": 15 } }

thumbnail_strip

Generate a strip of thumbnail frames from a video.
{ "type": "thumbnail_strip", "params": { "count": 10, "width": 160 } }

probe

Inspect video file metadata (codec, duration, resolution, bitrate).
{ "type": "probe" }

silence_detect

Detect silent segments in audio/video.
{ "type": "silence_detect", "params": { "threshold": -30, "duration": 1.0 } }

scene_detect

Detect scene changes in a video.
{ "type": "scene_detect", "params": { "threshold": 0.3 } }

black_detect

Detect black frames in a video.
{ "type": "black_detect", "params": { "threshold": 0.1, "duration": 0.5 } }