video

ittybit video -i input.mp4 -o output.mp4

Converts video between formats, codecs, and resolutions. Smaller files mean faster page loads and lower CDN costs.

Options

FlagValuesDefault
--formatmp4 · webm · movmp4
--codech264 · h265 · vp9 · av1per format
--qualityvery_low · low · medium · high · very_highauto
--widthpixels or "50%"same as input
--heightpixels or "50%"same as input
--fitcontain · cover · fill
--backgroundhex color (e.g. #000000)
--fps1–60same as input
--startseconds
--endseconds
--no-audiostrip audio
--framesinteger

Examples

Make a video work in every browser:

ittybit video -i recording.mov -o web.mp4

Defaults to h264 + AAC in MP4.


Resize and compress:

ittybit video -i 4k.mp4 -o 720p.mp4 --width 1280 --quality medium

Trim a clip:

ittybit video -i long.mp4 -o clip.mp4 --start 10 --end 15

WebM with VP9:

ittybit video -i input.mp4 -o output.webm --format webm --codec vp9

Codec must match container: h264/h265 → mp4/mov, vp9 → webm, av1 → mp4/webm.


Output to S3:

ittybit video -i input.mp4 -o s3://bucket/output.mp4 --connection my-s3

Read from S3 and write back to S3:

ittybit video -i s3://bucket/raw/upload.mov -o s3://bucket/web/video.mp4 --connection my-s3 --quality medium

Cloud

Run on Ittybit infrastructure instead of locally:

ittybit video -i https://example.com/video.mp4 --cloud --quality medium

Requires ITTYBIT_API_KEY. The file is processed remotely and the output URL is returned.

See also