Infery.ai
← All tools

Convert video format

Video

video.transcode

in: videoout: video

Re-encode a video to a different container/codec.

Pricing

Price
6.25 cr / second

Prices in credits (1 credit = $0.01).

Convert Video Format

Re-encode a video file from one container/codec combination to another.

When to use

  • Compress large videos for web delivery (MOV → MP4 H.264, lower bitrate).
  • Transcode for compatibility (HEVC → H.264 for older browsers).
  • Re-encode for streaming with target bitrate constraints.

Inputs & outputs

Input modalityVideo file (URL)
Output modalityVideo file (GCS URL)
Max input duration30 min
Max input size5 GB

Parameters

ParamRequiredDescription
formatyesOutput container — mp4, webm, mov
codecnoVideo codec — h264, h265, vp9. Defaults to best for format.
bitratenoTarget bitrate as <int>[k|M], e.g. 2M, 500k

Examples

Compress to web-friendly MP4

{
  "type": "video.transcode",
  "input": { "video_url": "gs://infery-prod-media/example/input.mov" },
  "params": { "format": "mp4", "codec": "h264", "bitrate": "2M" }
}

Convert to WebM VP9

{
  "type": "video.transcode",
  "input": { "video_url": "gs://infery-prod-media/example/input.mov" },
  "params": { "format": "webm", "codec": "vp9", "bitrate": "1M" }
}

Pricing

Billed per second of output video. See pricing dashboard for current rates.

Related capabilities

  • video.trim — extract a time range before transcoding
  • video.scale — resize dimensions
  • video.pipeline — chain transcode with other ops in a single execution

Examples

MOV → MP4 H.264

{
  "format": "mp4",
  "codec": "h264",
  "bitrate": "2M"
}

Compress to WebM VP9

{
  "format": "webm",
  "codec": "vp9",
  "bitrate": "1M"
}