ffmpeg__export_video
Transcode video files to delivery-grade outputs with codec, quality, and resolution control. Provide input and output paths, set CRF or bitrate, and receive JSON with output path and parameters.
Instructions
Transcode a video to a delivery-grade output with full codec and quality control. @remarks Supports H.264, H.265, and VP9. Use crf for quality-based encoding or bitrate for target-bitrate mode (mutually exclusive; bitrate takes precedence). Returns JSON in stdout with output_path and applied parameters. @param input_path Source video path. @param output_path Destination video path. @param video_codec Output video codec: libx264, libx265, or libvpx-vp9. Default libx264. @param crf Constant Rate Factor for quality-based encoding. Default 23 for H.264, 28 for H.265, 33 for VP9. @param bitrate Target video bitrate (for example 4M). Overrides crf when set. @param preset Encoding speed/compression preset. Default medium. @param profile H.264/H.265 profile (for example baseline, main, high). @param level H.264/H.265 level (for example 4.0, 4.1). @param resolution Output resolution as WxH (for example 1920x1080). Keeps original if omitted. @param audio_bitrate Output audio bitrate. Default 128k. @param pixel_format Output pixel format. Default yuv420p. @param __mcp_response_mode Optional response mode: content (default) or structuredContent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crf | No | ||
| level | No | ||
| preset | No | ||
| bitrate | No | ||
| profile | No | ||
| input_path | Yes | ||
| resolution | No | ||
| output_path | Yes | ||
| video_codec | No | ||
| pixel_format | No | ||
| audio_bitrate | No | ||
| __mcp_response_mode | No | content |