This service transforms videos using FFmpeg compiled to WebAssembly, running on Cloudflare Workers.
To transform media, use the following URL pattern:
/transform/{type}/{mediaKey}?param1=value1¶m2=value2
video - Transforms a video (resize, crop, trim)frame - Extracts a single frame from a videospritesheet - Creates a spritesheet of frames from a videowidth - Output width in pixelsheight - Output height in pixelsfit - How to resize (contain, cover, scale-down)time - Timestamp to start from (e.g., 5s, 1m)duration - Duration of output (for video)quality - Output quality (low, medium, high)audio - Include audio (true/false)format - Output format for images (jpg, png)/transform/video/example.mp4?width=640&height=360&fit=contain
/transform/frame/example.mp4?time=30s&width=1280&height=720&format=png
/transform/spritesheet/example.mp4?time=0s&duration=60s&columns=5&rows=4&width=160&height=90