Skip to main content

Core Parameters

resize
string
Resize the video to specified dimensions. Format: WxH.Common resolutions:
  • resize:1920x1080 - Full HD 1080p
  • resize:1280x720 - HD 720p
  • resize:640x480 - Standard definition (SD)
  • resize:640x360 - Low resolution preview
quality
integer
default:"75"
Control video quality using encoding. Range: 1-100.Quality mapping:
  • quality:100 → CRF 18 (very high quality, large file)
  • quality:85 → CRF 23 (high quality, recommended)
  • quality:75 → CRF 28 (good quality, balanced)
  • quality:50 → CRF 35 (medium quality, smaller file)
  • quality:10 → CRF 45 (low quality, minimum size)

Video Examples

  • HD Optimization
  • Preview Generation
  • Full HD
GET /t/resize:1280x720/quality:80/video.mp4
Convert to 720p HD with high quality encoding.

Supported Video Formats

  • Input Formats
  • Output Format
The system accepts the following video formats as input:
  • MP4 - With H.264 or H.265 codecs
  • MOV - QuickTime format
  • WebM - With VP8 or VP9 codecs

Use Cases

GET /t/resize:1080x1080/quality:85/social.mp4
Create square videos optimized like Instagram and X feeds.
GET /t/resize:640x360/quality:65/video.mp4
Generate low-bandwidth versions for mobile users on slower connections.
GET /t/resize:1920x1080/quality:95/presentation.mp4
Maintain maximum quality for professional presentations and demos.
For videos that will be viewed frequently, consider pre-generating them to use the cached version.

Performance Considerations

Video transformations are significantly more resource-intensive than image operations. Keep these factors in mind:

Processing time

Video processing can take 5-30 seconds depending on original file resolution and quality settings.

Cache efficiency

Cached video transformations are served in under 50ms, making caching essential for performance.

Storage impact

Higher quality settings result in larger file sizes. Balance quality against storage costs.

Bandwidth usage

Consider delivering lower resolutions to mobile devices to reduce bandwidth consumption.
Avoid on-demand video transformations for high-traffic scenarios. Pre-process videos during upload or content ingestion whenever possible.