Video Configuration

Global video settings

Video Configuration

The video field defines global video output properties.

Field Definition

interface VideoConfig {
  width: number;       // Width in pixels
  height: number;      // Height in pixels
  fps: number;         // Frames per second
  duration: number;    // Total duration in seconds
  background?: string; // Background color (hex)
}

Example

{
  "video": {
    "width": 1920,
    "height": 1080,
    "fps": 30,
    "duration": 15,
    "background": "#000000"
  }
}

Field Description

FieldTypeRequiredDefaultDescription
widthnumberYes-Video width in pixels
heightnumberYes-Video height in pixels
fpsnumberYes-Frames per second (typically 24, 30, or 60)
durationnumberYes-Total video duration in seconds
backgroundstringNo"#000000"Background color in hex format

Common Resolutions

NameWidthHeightAspect RatioUse Case
1080p1920108016:9Standard HD
720p128072016:9Lower quality HD
4K3840216016:9Ultra HD
Vertical108019209:16TikTok, Instagram Stories
Square108010801:1Instagram Feed, Ads
Twitter120067516:9Twitter Video

Best Practices

  1. Frame Rate: Use 30fps for standard content, 60fps for smooth motion
  2. Duration: Keep videos concise for social media
  3. Resolution: Match target platform requirements