Safe FFmpeg Command Builder
build_ffmpeg_commandGenerate a shell-safe, ready-to-run FFmpeg CLI command with flag explanations and a matching zero-upload SqueezeVid browser tool URL for common media tasks (compress, convert, to_gif, gif_to_mp4, extract_audio, trim, crop, mute, rotate, change_speed, reverse).
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": {
"operation": "<operation>"
},
"name": "build_ffmpeg_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crf | No | CRF value for 'compress' (14–40, default 26). | |
| fps | No | Frame rate for 'to_gif' (1–30, default 12). | |
| speed | No | Playback speed multiplier for 'change_speed' (0.25–4.0, default 2.0). | |
| width | No | Width in pixels for 'to_gif' (64–1920, default 480). | |
| end_time | No | End timestamp for 'trim' (seconds or HH:MM:SS). | |
| rotation | No | Rotation direction for 'rotate' (default '90_cw'). | |
| crop_rect | No | Crop rectangle 'width:height:x:y' for 'crop' (e.g. '1080:1080:420:0'). | |
| operation | Yes | Media operation to build an FFmpeg command for. | |
| input_file | No | Input filename or path (default 'input.mp4'). | |
| resolution | No | Target resolution for 'compress'. | |
| start_time | No | Start timestamp for 'trim' (seconds or HH:MM:SS). | |
| output_file | No | Optional output filename. | |
| audio_format | No | Output audio format for 'extract_audio'. | |
| output_format | No | Output container format for 'convert'. |