Generate a test pattern file
generate_test_pattern_fileCreate an H.264 test-pattern video with optional stereo reference tone for leader, calibration, or placeholder media; choose color bars or moving test charts.
Instructions
Create a video file with a test pattern and, unless turned off, a reference tone: SMPTE HD colour bars, or ffmpeg's test charts with moving elements and a counter. Use it for leader bars and tone, for calibration, or as placeholder media with visible motion. Output is H.264 (+ AAC stereo tone) in .mp4 or .mov. Returns the new file's duration, frame size, fps, pattern and tone. Use generate_tone_file for tone alone. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.
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": {
"output_path": "<output_path>"
},
"name": "generate_test_pattern_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frame rate in frames per second. Default 30. | |
| tone | No | Include a sine tone on a stereo audio track. Default true. false writes a video without an audio stream. | |
| width | No | Frame width in pixels (even). Default 1920. | |
| height | No | Frame height in pixels (even). Default 1080. | |
| pattern | No | "bars" = static SMPTE HD colour bars (default). "testsrc" = classic test chart with a seconds counter. "testsrc2" = chart with moving elements and a frame counter. | |
| duration | No | Length in seconds. Default 10. | |
| overwrite | No | Replace output_path if it already exists. Default false: an existing file makes the tool fail with FILE_EXISTS. | |
| output_path | Yes | Absolute path of the video to write (.mp4 or .mov). | |
| tone_level_db | No | Tone peak level in dBFS. Default -18 (EBU reference; SMPTE uses -20). | |
| tone_frequency | No | Tone frequency in Hz. Default 1000. | |
| timeout_seconds | No | Stop ffmpeg and fail with TIMEOUT after this many seconds. Default 600. |