Agent Video Editor

A professional video editing interface with timeline management, playback controls, and clip organization for AI-generated videos.

Features

  • Video Preview: Full-screen video player with overlay controls
  • Timeline Visualization: Visual timeline showing video clips and duration
  • Playback Controls: Play, pause, skip, and seek functionality
  • Clip Management: Add, remove, and organize video clips
  • Export Options: Export videos in multiple formats (MP4, MOV, AVI)
  • Editing Tools: Trim, cut, and arrange video segments
  • Loading States: Visual feedback during video processing
  • Progress Tracking: Real-time playback progress indication

Examples

Basic Usage

Simple video editor with essential controls.

Video Preview

0:12
0:45
Timeline
Intro
Main
Outro
0:000:45
Just now
😊😔

Interactive Demo

Advanced demo with timeline management and clip controls.

Video Preview

0:12
0:45
Timeline
Intro
Main
Outro
0:000:45
Just now
😊😔

Timeline Controls:

Clip Management:

Current video: 0:12 / 0:453 clips

Chat Integration

Example of how the video editor works within a chat conversation:

Video Editing Chat

Showing how the video editor works in a chat context

Can you edit this marketing video for me? I need to trim it and add transitions.
🎬

I'll help you edit your marketing video with professional transitions and trimming.

Video Preview

0:45
2:15
Timeline
Intro
Main Content
Outro
0:002:15
Just now
😊😔

Installation

npx shadcn add "https://agents-ui-kit.com/c/agent-video-editor.json"

API Reference

AgentVideoEditor

PropTypeDefaultDescription
videoUrlstring-URL of the video file
isGeneratingbooleanfalseWhether video is being processed
isPlayingbooleanfalseWhether video is currently playing
currentTimenumber0Current playback time in seconds
durationnumber0Total video duration in seconds
clipsVideoClip[][]Array of video clips
onPlay() => void-Play video callback
onPause() => void-Pause video callback
onSeek(time: number) => void-Seek to time callback
onSkipBack() => void-Skip backward callback
onSkipForward() => void-Skip forward callback
onExport(format?: ExportFormat) => void-Export callback
onCopy() => void-Copy video callback
onEdit() => void-Edit settings callback
onTrim() => void-Trim video callback
onRegenerateResponse() => void-Regenerate callback
classNamestring-Additional CSS classes
timestampstring"Just now"Display timestamp

VideoClip

PropertyTypeRequiredDescription
idstringYesUnique clip identifier
namestringYesClip display name
durationnumberYesClip duration in seconds
startTimenumberYesStart time in timeline
endTimenumberYesEnd time in timeline
thumbnailstringNoClip thumbnail URL

Export Formats

type ExportFormat = "mp4" | "mov" | "avi"

Timeline Features

The timeline provides visual representation of video structure:

  • Clip Visualization: Each clip is shown as a colored segment
  • Duration Scaling: Clips are sized proportionally to their duration
  • Time Ruler: Shows total duration with time markers
  • Interactive Selection: Click clips to navigate or select

Keyboard Shortcuts

  • Space: Play/Pause toggle
  • Left Arrow: Skip backward 10 seconds
  • Right Arrow: Skip forward 10 seconds
  • Home: Jump to beginning
  • End: Jump to end