Compress & Resize Local Video (Auto GPU / CPU)
media_compress_videoCompress local MP4, MOV, or MKV videos with FFmpeg using GPU acceleration or CPU fallback to reduce file size while keeping footage on disk.
Instructions
Compress a local MP4/MOV/MKV video using local FFmpeg with automatic hardware GPU acceleration (NVENC, Intel QSV, AMD AMF, Apple VideoToolbox, MediaFoundation) or CPU fallback (libx264/libx265). Up to 1080px is Free; >1080px / 4K requires ThisMyOwn PRO.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputPath": "<inputPath>"
},
"name": "media_compress_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crf | No | Quality factor (lower = higher quality; 22-28 recommended) | |
| codec | No | Target video codec: h264 (universal) or hevc (higher compression) | h264 |
| preset | No | medium | |
| maxWidth | No | Optional max width in pixels while keeping aspect ratio | |
| inputPath | Yes | Local video file path | |
| outputPath | No | ||
| acceleration | No | "auto" uses detected GPU encoder with safe CPU fallback; "gpu" forces GPU; "cpu" forces libx264/libx265 | auto |