Spaces:
Configuration error

pirzm1's picture
Clean deployment push
023064b
|
Raw History Blame Contribute Delete
11.4 kB

Agentic Script Examples

Complete, working JSON examples for every mode and feature of the Automated Video Generator pipeline.

Structure

agentic-script-examples/
β”œβ”€β”€ README.md                         ← This file
β”œβ”€β”€ batch-topics.json                 ← Batch topic generation reference
β”œβ”€β”€ modes/                            ← Single-stage execution modes
β”‚   β”œβ”€β”€ 01-download-images.json       Fetch only image assets
β”‚   β”œβ”€β”€ 02-download-videos.json       Fetch only video assets
β”‚   β”œβ”€β”€ 03-download-music.json        Fetch background music
β”‚   β”œβ”€β”€ 04-download-sfx.json          Fetch sound effects
β”‚   β”œβ”€β”€ 05-download-url.json          Download from direct URL
β”‚   β”œβ”€β”€ 06-plan-only.json             Build plan only (dry run)
β”‚   β”œβ”€β”€ 07-voice-edgetts.json         Generate voice via Edge-TTS
β”‚   β”œβ”€β”€ 08-voice-voicebox.json        Generate voice via Voicebox/Kokoro
β”‚   β”œβ”€β”€ 09-clone-voice.json           Clone a voice from reference audio
β”‚   β”œβ”€β”€ 10-render-only.json           Render MP4 from existing workspace
β”‚   β”œβ”€β”€ 11-compose-full.json          Full compose: fetch + voice + render
β”‚   β”œβ”€β”€ 12-apply-advanced.json        Apply advanced FX config only
β”‚   β”œβ”€β”€ 13-rerender.json              Re-render with different settings
β”‚   β”œβ”€β”€ 14-render-gif.json            Render animated GIF output
β”‚   └── 15-render-poster.json         Generate poster/thumbnail image
β”œβ”€β”€ features/                         ← Feature-specific demos
β”‚   β”œβ”€β”€ 01-intro-outro.json           Title card + outro CTA
β”‚   β”œβ”€β”€ 02-caption-themes.json        All 7 caption styles
β”‚   β”œβ”€β”€ 03-presets-video-types.json   Visual presets + video type profiles
β”‚   β”œβ”€β”€ 04-platform-tailoring.json    TikTok / Instagram / YouTube
β”‚   β”œβ”€β”€ 05-transitions-grades.json    Transition + color grade combos
β”‚   β”œβ”€β”€ 06-motion-graphics.json       Zoom, pan, parallax, particles
β”‚   β”œβ”€β”€ 07-per-scene-filters.json     BW, sepia, stabilize, chroma key
β”‚   β”œβ”€β”€ 08-color-grading-advanced.json LUTs, tone curves, color wheels
β”‚   β”œβ”€β”€ 09-audio-processing.json      EQ, compressor, reverb, noise reduction
β”‚   β”œβ”€β”€ 10-multi-persona.json         Multi-speaker dialogue
β”‚   β”œβ”€β”€ 11-local-assets.json          Use own images/videos
β”‚   β”œβ”€β”€ 12-export-options.json        Multi-aspect, quality, poster
β”‚   β”œβ”€β”€ 13-brand-kit.json             Watermark, font, accent color
β”‚   β”œβ”€β”€ 14-ai-verify.json             Vision-based quality gates
β”‚   β”œβ”€β”€ 15-emoji-overlays.json        Emoji, text overlays, CTA buttons
β”‚   β”œβ”€β”€ 16-gpu-quality.json           GPU acceleration + quality tier demo
β”‚   β”œβ”€β”€ 17-silent-mute.json           No music, no SFX, no ducking mode
β”‚   └── 18-localization.json          Multi-language subtitle sidecars
β”œβ”€β”€ single-edits/                     ← Standalone image/video editing reference
β”‚   β”œβ”€β”€ video-editing.json            All 20 agentic:editor commands with CLI examples
β”‚   └── image-editing.json            All 22 agentic:image commands with CLI examples
└── full-demos/                       ← Complete ready-to-render jobs
    β”œβ”€β”€ 01-minimal.json               Shortest possible config
    β”œβ”€β”€ 02-motivational-reel.json     Inspirational Instagram Reel
    β”œβ”€β”€ 03-facts-educational.json     Educational landscape video
    β”œβ”€β”€ 04-product-promo.json         Product showcase
    β”œβ”€β”€ 05-tutorial-howto.json        Step-by-step tutorial
    β”œβ”€β”€ 06-storytelling.json          Narrative with voice cast
    β”œβ”€β”€ 07-kitchen-sink.json          Every feature enabled
    β”œβ”€β”€ 08-multi-aspect-4k.json       Export 4K + all aspect ratios
    β”œβ”€β”€ 09-ai-tech-explainer.json     AI/Tech with GPU, chapters, subtitles
    β”œβ”€β”€ 10-health-wellness.json       Health habits, square format
    β”œβ”€β”€ 11-business-news.json         Business trends with chapters
    β”œβ”€β”€ 12-crypto-blockchain.json     Crypto explainer, high quality
    β”œβ”€β”€ 13-photo-slideshow.json       Image-only slideshow (photos mode)
    └── 14-travel-adventure.json      Travel bucket list, square format

How to Run

Full pipeline (plan β†’ visuals β†’ voice β†’ render)

All files in features/ and full-demos/ support --file:

npm run agentic:modular pipeline --file input/scripts/agentic-script-examples/full-demos/02-motivational-reel.json

Individual stages (with --file support)

npm run agentic:modular plan     --file input/scripts/agentic-script-examples/full-demos/02-motivational-reel.json
npm run agentic:modular visuals  --file input/scripts/agentic-script-examples/full-demos/02-motivational-reel.json
npm run agentic:modular voice    --file input/scripts/agentic-script-examples/full-demos/02-motivational-reel.json
npm run agentic:modular render   --file input/scripts/agentic-script-examples/full-demos/02-motivational-reel.json

Single-stage mode execution (modes/ folder)

Mode files must be copied into input/scripts/agentic-scripts.json first, then run with the batch runner:

# Copy a mode example into the main file
Copy-Item input/scripts/agentic-script-examples/modes/01-download-images.json input/scripts/agentic-scripts.json -Force

# Then execute
npm run agentic:mode:images
npm run agentic:mode:videos
npm run agentic:mode:music
npm run agentic:mode:sfx
npm run agentic:plan
npm run agentic:mode:voice-edgetts
npm run agentic:mode:voice-voicebox
npm run agentic:mode:advanced

Special modes like GIF rendering and poster generation can be tested with:

Copy-Item input/scripts/agentic-script-examples/modes/14-render-gif.json input/scripts/agentic-scripts.json -Force
# Then run with appropriate mode setting

Copy-Item input/scripts/agentic-script-examples/modes/15-render-poster.json input/scripts/agentic-scripts.json -Force
# Then run with appropriate mode setting

Batch topic generation

# From a list of topics (no JSON file needed)
npm run agentic:generate -- --topics "AI in healthcare,Space exploration,Climate change"

# With GPU and preview mode
npm run agentic:generate:preview -- --gpu --topics "Topic A,Topic B"

# Parallel batch (3 concurrent jobs)
npm run agentic:batch:parallel -- --topics "Topic 1,Topic 2,Topic 3,Topic 4"

Quick test (plan only, no network)

Verify any example file parses correctly:

npm run agentic:modular plan --file input/scripts/agentic-script-examples/full-demos/01-minimal.json

Feature Coverage

File Demonstrates
Full demos
full-demos/13-photo-slideshow Image-only mode (images: true), static photography with Ken Burns, documentary preset
full-demos/14-travel-adventure Travel content vertical, square format, kinetic text, epic cinematic grade
Features
features/17-silent-mute No music + no SFX + no ductrack (sfx: false, noDucking: true, noKenBurns: true, noKinetic: true)
features/18-localization Multi-language subtitle generation with targetLanguages: ["es","fr","hi","ta","de"]
Modes
modes/14-render-gif Render GIF output mode (animated preview)
modes/15-render-poster Render poster/thumbnail from rendered video

Single Editing Operations

The single-edits/ folder contains reference files for the standalone video and image editing CLIs that operate on individual media files (not the full pipeline).

Video Editing (npm run agentic:editor)

20 commands for single-video operations using bundled ffmpeg-static:

Command Description Quick Example
trim Cut video by timecode --input clip.mp4 --start 00:05 --end 00:30
speed Change playback speed 0.25x–4x --rate 2.0
extract-audio Pull audio track as MP3/WAV --output audio.mp3
replace-audio Replace video audio --audio new_audio.mp3
mute Remove audio track --output silent.mp4
split Split at timestamp --at 00:15 --output-prefix part
merge Concatenate videos --files "a.mp4,b.mp4"
crop Crop to aspect ratio --preset 9:16
resize Scale dimensions --width 1080 --height 1920
rotate Rotate/flip --angle 90
loop Loop N times --count 3
overlay-text Burn text caption --text "Hello" --position bottom-left
overlay-image Image watermark --image logo.png --position top-right
extract-frame Save frame as image --at 00:10 --output frame.png
thumbnail Generate poster frame (no extra flags)
blur Blur region --region 100:200:300:400
adjust Brightness/contrast/saturation --brightness 0.1 --contrast 1.2
reverse Reverse playback (no extra flags)
info Show metadata (no extra flags)
concat-scene Extract workspace scene --job job_123 --scene 3

Full reference: single-edits/video-editing.json

Image Editing (npm run agentic:image)

22 commands for single-image operations:

Command Description Quick Example
convert Change format --format webp --quality 90
resize Scale dimensions --width 1080 --height 1920
crop Crop region --region 100:100:800:800
rotate Rotate/flip --angle 90 or hflip
adjust Color adjust --brightness 0.1 --contrast 1.2
blur Gaussian blur --sigma 5
text Burn caption text --text "Hello" --position center --font-size 48
emoji Burn emoji sticker --emoji "πŸŽ‰" --size 64
watermark Logo overlay --watermark logo.png --opacity 0.7
tint Brand color overlay --color "#7C3AED" --opacity 0.3
vignette Edge darkening --strength 0.5
border Colored border --width 10 --color white
enhance Denoise + sharpen (no extra flags)
grayscale Black and white (no extra flags)
sepia Vintage tone (no extra flags)
pixelate Mosaic effect --block-size 16
compress Reduce file size --quality 50
face-blur Privacy blur region --region 200:150:180:220
round-corners Rounded edges --radius 20
merge Overlay images --overlay overlay.png --opacity 0.8
info Show metadata (no extra flags)
flip Horizontal/vertical flip --direction hflip

Full reference: single-edits/image-editing.json

Complete Coverage Map

All 48 files verified working (2026-07-29):

  • CLI flags covered: --topic, --title, --orientation, --format, --images, --gpu, --quality, --intro, --outro, --transition, --preset, --sfx, --no-ducking, --no-ken-burns, --no-kinetic, --renderer, --backend, --verbose
  • Modes covered: plan, visuals, voice, render, download-images, download-videos, download-music, download-sfx, download-url, clone-voice, render-gif, render-poster, rerender, apply-advanced, compose
  • All CLI flags from agentic-run.ts now have at least one example

Field Reference

Every field is documented in docs/AGENTIC_SCRIPT_FORMAT.md or input/scripts/AGENTIC_SCRIPT_FORMAT.md.