import_video
Import video files and convert each frame into ASCII art animation with configurable character sets, colors, and frame rate.
Instructions
Import a video file and convert each frame to ASCII art animation. Requires ffmpeg and optional image processing package.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the video file (.mp4, .webm, .mov, .gif) | |
| targetWidth | No | Target width in characters. If omitted, uses canvas width. | |
| targetHeight | No | Target height in characters. If omitted, maintains aspect ratio. | |
| charset | No | Characters to use for brightness mapping (dark to bright) | .:-=+*#%@ |
| colorMode | No | How to apply colors | foreground |
| fps | No | Frames per second to extract | |
| maxFrames | No | Maximum number of frames to import | |
| startTime | No | Start time in seconds | |
| duration | No | Duration in seconds (omit for entire video) |