Compression & Quality
Control video quality, file size, and encoding speed with advanced compression settings
Control the quality and file size of your processed videos with VideoCascade's advanced compression settings. Balance quality, file size, and processing speed to meet your specific needs.
Compression Quality
The compressionQuality parameter controls video quality on a scale of 1-100:
| Quality | CRF Range | Use Case | File Size | Quality |
|---|---|---|---|---|
| 100 | 15 | Near-lossless, archival | Largest | Excellent |
| 90-99 | 16-18 | High-quality uploads | Large | Excellent |
| 80-89 | 19-21 | Professional content | Medium-Large | Very Good |
| 70-79 | 22-28 | Standard quality | Medium | Good |
| 50-69 | 29-38 | Web streaming | Small-Medium | Acceptable |
| 1-49 | 39-45 | Low bandwidth | Smallest | Poor |
Basic Usage
const response = await fetch('https://api.videocascade.com/v1/videos', {
method: 'POST',
headers: {
'Authorization': 'Bearer vca_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
fileUrl: 'https://example.com/video.mp4',
compressionQuality: 95, // High quality
outputFormat: 'mp4'
}),
});response = requests.post(
'https://api.videocascade.com/v1/videos',
headers={
'Authorization': 'Bearer vca_your_api_key',
'Content-Type': 'application/json',
},
json={
'fileUrl': 'https://example.com/video.mp4',
'compressionQuality': 95,
'outputFormat': 'mp4'
}
)interface CompressionRequest {
fileUrl: string;
compressionQuality: number; // 1-100
outputFormat: 'mp4' | 'mov' | 'avi' | 'webm';
}
const request: CompressionRequest = {
fileUrl: 'https://example.com/video.mp4',
compressionQuality: 95,
outputFormat: 'mp4'
};
const response = await fetch('https://api.videocascade.com/v1/videos', {
method: 'POST',
headers: {
'Authorization': 'Bearer vca_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify(request),
});Quality vs File Size Tradeoffs
Here's an example comparison for a 10-minute 1080p video:
| Quality | CRF | File Size | Quality Description |
|---|---|---|---|
| 100 | 15 | ~2.5 GB | Visually identical to source |
| 95 | 17 | ~1.8 GB | Excellent, no visible loss |
| 90 | 18 | ~1.2 GB | Excellent, professional quality |
| 85 | 20 | ~800 MB | Very good, social media ready |
| 80 | 21 | ~600 MB | Good, web-friendly |
| 70 | 25 | ~400 MB | Good, streaming quality |
| 60 | 32 | ~250 MB | Acceptable, minor artifacts |
| 50 | 35 | ~180 MB | Noticeable compression |
| 30 | 42 | ~100 MB | Poor quality, visible artifacts |
File Size Varies: Actual file sizes depend on video content complexity. High-motion videos compress less efficiently than static content.