Skip to content

LebToki/ScriptGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

63 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ScriptGen - Professional SRT Generator for Video Editors

🎬 Convert scripts to frame-accurate SRT subtitles for Filmora, Premiere Pro, DaVinci Resolve, and CapCut. Free, browser-based subtitle generator with glassmorphic UI.

✨ New CapCut Integration Features

🎬 CapCut Mode

  • Mobile-optimized settings: Automatically adjusts timing for CapCut's mobile editing workflow
  • Smart defaults: Optimizes WPM, minimum duration, and block length for mobile viewing
  • One-click activation: Toggle CapCut mode for instant optimization

🎨 CapCut Templates

  • Standard: Clean, professional subtitles for any content
  • Social Media: Engaging subtitles with emojis for TikTok, Instagram, YouTube Shorts
  • Educational: Informative and clear subtitles for tutorials and explainers

🎭 CapCut Styles

  • Default: Standard subtitle formatting
  • Bold: Emphasized text for important content
  • Italic: Subtle emphasis and style variation
  • Highlight: Code-style highlighting for technical content

πŸ“± CapCut Preview

  • Real-time preview: See how subtitles will look in CapCut
  • Timeline visualization: Interactive timeline with progress indicator
  • Template preview: Live preview of selected template and style
  • Mobile-optimized: Designed to match CapCut's mobile interface

πŸš€ CapCut Workflow Integration

  • Automatic optimization: When CapCut mode is enabled, timing settings are automatically adjusted
  • Template selection: Choose from pre-designed templates optimized for mobile viewing
  • Style customization: Customize font size, color, and text formatting
  • Preview controls: Play, pause, and stop subtitle preview

🎯 Key Features

πŸ“ Smart Script Processing

  • Automatic chunking: Intelligently splits scripts into optimal subtitle blocks
  • Punctuation-aware: Respects natural pauses and sentence structure
  • Customizable timing: Fine-tune words per minute, minimum duration, and pause padding
  • Frame-accurate alignment: Optional frame-perfect timing for professional editors

🎬 Multi-Editor Support

  • Filmora: Optimized for Filmora's subtitle system
  • Premiere Pro: Professional-grade timing and formatting
  • DaVinci Resolve: Frame-accurate subtitles for color grading workflows
  • CapCut: Mobile-optimized subtitles with templates and styles

🎨 Advanced Timing Controls

  • Frame rate alignment: 23.976, 24, 25, 29.97, 30, 50, 59.94, 60 FPS support
  • Start offset: Add delay to all subtitles
  • Subtitle gap: Control minimum spacing between subtitles
  • Block length: Customize maximum characters per subtitle block

πŸ“Š Real-time Statistics

  • Word count: Live word count as you type
  • Character count: Character count for precise timing
  • Estimated duration: Real-time duration calculation
  • Subtitle count: Preview subtitle block count

πŸ’Ύ Flexible Export

  • Custom paths: Export to any server-accessible directory
  • Batch processing: Process multiple scripts efficiently
  • Recent files: Quick access to recently generated files
  • Download & copy: Multiple export options for convenience

πŸš€ Quick Start

  1. Paste your script in the text area
  2. Set your timing preferences (WPM, minimum duration, pause padding)
  3. Choose your editor (Filmora, Premiere, DaVinci, or CapCut)
  4. For CapCut users: Enable CapCut mode and select your template/style
  5. Click "Generate SRT" to create your subtitle file
  6. Preview, copy, or download your subtitles

🎨 CapCut-Specific Workflow

For CapCut Users:

  1. Enable CapCut Mode: Toggle the switch for automatic optimization
  2. Select Template: Choose from Standard, Social Media, or Educational
  3. Customize Style: Adjust font size, color, and text formatting
  4. Preview: Use the timeline preview to see how subtitles will appear
  5. Generate: Create CapCut-optimized subtitles

CapCut Template Examples:

Standard Template:

This is a clean, professional subtitle
Perfect for any type of content

Social Media Template:

πŸ”₯ This is an engaging subtitle πŸŽ‰
Perfect for TikTok and Instagram

Educational Template:

πŸ“Œ This is an informative subtitle
Perfect for tutorials and explainers

πŸ›  Technical Features

🎯 Precision Timing

  • Sub-second accuracy: Frame-perfect timing for professional workflows
  • Punctuation detection: Smart pause detection at commas, periods, and other punctuation
  • Customizable padding: Fine-tune pause duration for natural flow
  • Minimum duration enforcement: Ensures subtitles are readable

πŸ“± Mobile Optimization

  • Touch-friendly interface: Optimized for mobile and tablet use
  • Responsive design: Works perfectly on all screen sizes
  • CapCut integration: Specialized features for mobile video editing
  • Fast processing: Quick generation even on mobile devices

πŸ”§ Advanced Options

  • Frame rate alignment: Perfect synchronization with video frame rates
  • Start offset: Add delay for intro sequences or outros
  • Gap control: Prevent subtitle overlap and ensure clean transitions
  • Block length: Optimize subtitle readability and timing

πŸ“‹ System Requirements

  • Modern browser (Chrome, Firefox, Safari, Edge)
  • JavaScript enabled
  • No installation required - runs entirely in your browser
  • Server-side processing for advanced features (PHP backend)

🎨 UI Features

🌌 Glassmorphic Design

  • Modern aesthetic: Beautiful glassmorphic UI with subtle animations
  • Dark theme: Easy on the eyes for long editing sessions
  • Responsive layout: Perfect on desktop, tablet, and mobile
  • Accessibility: Keyboard navigation and screen reader support

🎯 User Experience

  • Real-time feedback: Instant validation and error messages
  • Progress indicators: Clear status updates during processing
  • Toast notifications: Non-intrusive success and error messages
  • Collapsible sections: Clean interface with expandable advanced options

πŸ”§ Configuration

Basic Settings

  • Words per minute: 0.5-10 WPM (default: 3)
  • Minimum duration: 0.5-10 seconds (default: 1.5)
  • Pause padding: 0-2 seconds (default: 0.5)

Advanced Settings

  • Frame rates: 23.976, 24, 25, 29.97, 30, 50, 59.94, 60 FPS
  • Start offset: 0-3600 seconds
  • Subtitle gap: 0-1000 milliseconds
  • Block length: 100-1000 characters

CapCut Settings

  • Templates: Standard, Social Media, Educational
  • Styles: Default, Bold, Italic, Highlight
  • Font size: 12-24px
  • Color: Full color picker support

πŸš€ Performance

  • Fast processing: Sub-second generation for most scripts
  • Memory efficient: Handles large scripts without performance issues
  • Progressive enhancement: Works with or without JavaScript
  • Server optimization: Efficient backend processing

πŸ“ˆ Recent Updates

v2.0.0 - CapCut Integration

  • Complete CapCut workflow: End-to-end CapCut subtitle generation
  • Template system: Pre-designed templates for different content types
  • Style customization: Font size, color, and text formatting options
  • Real-time preview: Interactive timeline and subtitle preview
  • Mobile optimization: Touch-friendly interface and mobile-specific features

Previous Updates

  • Enhanced UI: Glassmorphic design with improved accessibility
  • Advanced timing: Frame-accurate alignment and professional controls
  • Multi-editor support: Optimized for Filmora, Premiere, and DaVinci
  • Batch processing: Efficient handling of multiple scripts
  • Recent files: Quick access to previously generated subtitles

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ™ Acknowledgments

  • Video editors worldwide for their feedback and suggestions
  • Open source community for inspiration and support
  • CapCut users for driving the development of mobile-optimized features

Made with ❀️ by 2TInteractive

About

An open-source, lightweight tool to convert plain text scripts into CapCut-compatible .SRT subtitle files with accurate timing and formatting.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors