Every AgiCloud workspace comes preloaded with the tools needed to create images, slides, and audio tracks and assemble complete MP4 videos—either programmatically through your agents or visually in the Video plugin timeline.
Media tools preinstalled on the server
All agents (Claude Code, OpenCode, Cursor, Codex, and agy) have these command-line and Python tools ready in their system PATH, with nothing extra to install:
| Tool | What it does |
|---|---|
ffmpeg and ffprobe |
Format conversions, trimming, concatenating clips, audio and voice mixing, subtitles, resizing, and inspecting generated media streams. |
Python with moviepy and pillow (/opt/video-tools, already in PATH) |
Programmatic video editing: slides with crossfades (vfx.FadeIn / vfx.FadeOut), title cards, overlays, synced audio, and image generation or retouching. |
| DejaVu and Liberation fonts | Preinstalled TrueType fonts (/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf and /usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf) for crisp text on frames and slides. |
Step 1: How to split the work across agents
The most effective way to produce a video or narrated presentation in AgiCloud is to combine the strengths of different agents (for example, coordinated from a Lead conversation):
- agy (Antigravity): great at generating and editing images, writing and reading two-voice dialogues, and preparing presentations and slides.
- Claude Code (or another coding agent): assembles everything using
ffmpeg,moviepy, or the Video plugin tools—controlling scene order, clip durations, fades, background music, and subtitles. - Files, Video, or Shared Browser section: to preview the resulting
.mp4file right away (or inspect a live web page alongside the agent) and download it to your phone or computer.
Step 2: Run the complete programmatic example (scripts/video-check.py)
AgiCloud includes a ready-to-run reference script at scripts/video-check.py, which shows both you and your agents how to build and verify a video in seconds:
- Open a Terminal (or ask an agent in Chat) and run:
python3 scripts/video-check.py - The script performs four steps automatically:
- Slides with Pillow: draws three
1280×720slides using the DejaVu/Liberation fonts ("Uno: l'idea", "Due: il montaggio", "Tre: il risultato"); - Sample voices with
ffmpeg: generates two 3-second.wavaudio clips in sequence (standing in for a two-voice dialogue); - Assembly with MoviePy: joins the 2-second image clips with 0.5s fade-in and fade-out effects (
vfx.FadeIn(0.5),vfx.FadeOut(0.5)), attaches the combined audio track, and exportsprova.mp4(libx264+aacat 24 fps); - Verification with
ffprobe: checks that the output file has both a1280×720video stream and an audio stream of the expected duration, printingOK: .../prova.mp4.
- Slides with Pillow: draws three
- For a real video project, an agent can reuse this exact pattern by replacing the
slidesandvoiceslists with the images and voice tracks created by agy.
Two important rules for MoviePy scripts:
- MoviePy temporary audio file: during
write_videofile, MoviePy writes a temporary audio file into the current working directory. Working inside a writable project folder is fine; otherwise, always passtemp_audiofile_path=pointing to a writable output folder (just likescripts/video-check.pydoes).- Where to put temporary working files (
$TMPDIR): always place temporary working files in$TMPDIR(which points to/data/tmpon the user's persistent volume in AgiCloud environments), because/tmpin memory is small.
Step 3: Use the Video plugin (visual timeline and shared JSON projects)
Alongside Python scripts, AgiCloud includes the Video plugin, which provides a multi-track visual editor in your browser and four MCP tools for your agents:
- Go to Settings → Plugins, find the Video card, and turn it On (if it is not installed yet, press Install: AgiCloud checks that
ffmpegandMoviePyare ready on the server). - Open the Video section from the main menu to launch the Video Editor:
- Top toolbar: pick an existing project, press New or Create demo project to load a sample timeline with three title cards, upload media with + Upload file, save with Save, or export with Render Video.
- Project settings bar: configure Title, Size (default
1280×720), fps (24), and Duration (s). - Media Library & Uploaded Files: drag and drop or upload video (
.mp4,.mov,.webm,.mkv), audio (.mp3,.wav,.aac,.m4a,.ogg), and image (.jpg,.png,.webp,.gif) files. Click + Aggiungi on any media card to append it to the timeline. - Editing Timeline & Preview: scrub the playhead to preview your timeline in real time (▶ Play / ⏸ Pausa), add tracks or title cards, and click any clip in the timeline to edit its start time, duration, text, background color, and fade-in / fade-out durations.
- Collaborate on the same project with an agent: while the Video plugin is enabled, every agent in Chat automatically receives the
videoMCP server with four tools:video_list_projects: lists saved.video.jsonprojects;video_get_project: reads the JSON structure of a video project;video_save_project: creates or updates tracks and clips in a project;video_render_project: renders the project to.mp4using MoviePy andffmpeg.
- Once rendering finishes, watch the final video right in the top player and download it with the 📥 Download MP4 button.
[Screenshot: Video Editor section showing the preview player, uploaded media library, and multi-track timeline]
Step 4: Keep CPU and disk limits in mind
When generating and rendering videos on your workspace, keep two practical limits in mind:
- CPU usage: video encoding (
libx264) is CPU-intensive. On plans with fewer CPU cores, long or high-resolution videos take longer to render: stick to 720p (1280×720) and short clips for drafts and tests. - Disk quota: video files and uncompressed
.wavaudio files add up quickly. Your available storage is tied to your plan, and workspaces that exceed their disk limit stop running—remember to delete intermediate files or old test renders from the Files section when you are done.
Next step
You have completed the Advanced Level tutorials! Now let's move on to the Expert Level and see how to self-host and secure AgiCloud on your own server: