h.264
Compress
Efficient x264 compression with CRF balancing for web-optimized delivery.
FFmpeg Core
Leverages the full power of FFmpeg for robust multi-format handling.
Thumbnails
Automatic WebP thumbnail extraction returned via custom HTTP headers.
API Keys
Secure access via X-API-Key validation against local JSON storage.
Implementation Guide
# Compress video via CURL
curl -X POST https://voc.tx.lk/ \
-H "X-API-Key: YOUR_KEY" \
-F "video=@movie.mp4" \
--output "compressed.mp4"
# Response headers include:
# X-Original-Size: bytes before compression
# X-Compressed-Size: bytes after compression
# X-Video-Thumbnail-WebP: base64 WebP (if < 10 KB)
Accepted formats
MP4 · MOV · AVI · WebM · MKV · 3GP · FLV · OGV
Max file size: 500 MB · Output: H.264 / AAC MP4