ae_audio
Analyze audio beats, map energy to keyframes, and import SRT/LRC subtitles into After Effects to automate rhythm-synced animation and captions.
Instructions
Audio rhythm & subtitle automation powered by ffmpeg + FFT + SRT/LRC parsing. Actions: list_audio_layers, analyze_beats (multi-band low/mid/high onset & BPM detection + optional marker placement), envelope_keyframes (sparse audio energy keyframes to Slider Control or target property), import_subtitles (.srt / .lrc to Hold-keyframed Text Layer, split layers, or markers).
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": {
"action": "<action>"
},
"name": "ae_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Comp fps fallback for envelope_keyframes (auto-queried if omitted). | |
| band | No | Frequency band focus: low(20-250Hz), mid(250-2500Hz), high(2.5-16kHz), full, or all. | |
| comp | No | Comp name or '@id:N' (defaults to active comp). | |
| font | No | ||
| label | No | ||
| layer | No | Target audio/marker/control layer. | |
| action | Yes | ||
| format | No | ||
| content | No | Inline .srt or .lrc subtitle text. | |
| duration | No | Decode slice duration in seconds. | |
| filePath | No | Path to .srt or .lrc subtitle file. | |
| fontSize | No | ||
| maxValue | No | Maximum mapped output value (default 100). | |
| minValue | No | Minimum mapped output value (default 0). | |
| position | No | ||
| property | No | Optional direct property on 'layer' instead of creating Slider Control. | |
| audioPath | No | Audio/video file path (auto-resolved from comp audio layer if omitted). | |
| fillColor | No | ||
| layerName | No | ||
| startTime | No | Decode slice start time in seconds within audio file. | |
| stepFrames | No | Frame stride for envelope keyframes (default 2). | |
| timeOffset | No | Timeline start offset in seconds (auto-aligned to audio layer startTime when resolved from comp). | |
| applyToComp | No | Apply generated envelope keyframes to AE comp (default true). | |
| sensitivity | No | Onset threshold sensitivity (default 0.5). | |
| applyMarkers | No | Write detected beats directly to comp/layer markers (default false). | |
| subtitleMode | No | How subtitles are imported (default 'text_layer'). | |
| clearExisting | No | Clear existing markers or keyframes before writing. | |
| justification | No | ||
| controllerName | No | Controller null layer name when applying envelope sliders (default CTRL_Audio_Envelope). | |
| minIntervalSec | No | Minimum seconds between detected beats in same band (default 0.15). | |
| simplifyThreshold | No | Skip near-flat intermediate samples within normalized delta. |