Skip to content

V0.1.1

Choose a tag to compare

@chigozie-coder chigozie-coder released this 30 Dec 13:09
· 26 commits to main since this release

UACE v0.1.2 Update - Styles & GPU Control

πŸŽ‰ What's New

βœ… GPU Control (Yes, it's implemented!)

# Disable GPU - Run on CPU
config = ProcessingConfig()
config.transcription.gpu = False
config.transcription.compute_type = "int8"  # Faster CPU

# Or from CLI
uace process video.mp4 --no-gpu

🎨 30+ Style Presets Added!

Before: 6 presets
Now: 30+ presets + infinite customization

New Viral/Social Media Styles (5)

  • big_bold - HUGE text that zooms in (72px!)
  • zoom_punch - Explosive word-by-word zoom
  • wave_motion - Smooth flowing wave
  • elastic_bounce - Playful rubber band bounce
  • earthquake - Violent shake effect

Music/Rhythm Styles (3)

  • beat_pulse - Pulse to the beat
  • sound_wave - Visual audio waveform
  • rhythm_bounce - Bounce to rhythm

Creative/Artistic Styles (6)

  • glitch - Digital glitch effect
  • retro_vhs - 80s VHS aesthetic
  • hologram - Futuristic projection
  • graffiti - Street art style
  • handwritten - Personal handwriting
  • Plus existing neon

Cinematic Styles (4)

  • cinematic_fade - Elegant film fade
  • noir_typewriter - Detective story style
  • Plus existing minimal, subtitle_classic

Animation Styles (6)

  • slide_down - Elegant descent
  • flip_in - 3D flip animation
  • rotate_in - Spinning entrance
  • blur_focus - Camera focus effect
  • Plus existing bounce, slide_up, typewriter

3D/Perspective Styles (3)

  • perspective_3d - Dramatic 3D tilt
  • depth_blur - Depth of field effect
  • floating - Dreamy floating motion

Special Effects (4)

  • fire - Burning flame effect
  • lightning - Electric flash
  • particles - Magical explosion
  • spotlight - Stage reveal

🎯 Extreme Customization

60+ new configuration parameters!

Font Control

config.styling.font_size = 80
config.styling.font_weight = "black"
config.styling.font_italic = True
config.styling.letter_spacing = 5
config.styling.line_spacing = 1.5
config.styling.text_transform = "uppercase"

Color Control

config.styling.primary_color = "#FF00FF"
config.styling.secondary_color = "#00FFFF"
config.styling.outline_color = "#000000"
config.styling.shadow_color = "#FF0000"
config.styling.emphasis_color = "#FFD700"

Effects Control

config.styling.glow = True
config.styling.glow_intensity = 15
config.styling.blur = 5
config.styling.shadow_depth = 10
config.styling.shadow_offset_x = 5
config.styling.shadow_offset_y = 5
config.styling.opacity = 0.9

Animation Control

config.styling.animation_duration = 0.3
config.styling.stagger_delay = 0.08
config.styling.scale_start = 0.0
config.styling.scale_end = 1.0
config.styling.scale_overshoot = 1.5
config.styling.rotation_start = -45
config.styling.rotation_end = 0
config.styling.ease_function = "ease_out"

3D Effects

config.styling.perspective = True
config.styling.perspective_depth = 1000
config.styling.rotation_x = 10
config.styling.rotation_y = 20
config.styling.rotation_z = 5

Gradient Effects

config.styling.gradient_enabled = True
config.styling.gradient_start = "#FF00FF"
config.styling.gradient_end = "#00FFFF"
config.styling.gradient_angle = 45

Position Control

config.styling.alignment = "left"  # left, center, right
config.styling.vertical_position = "top"  # top, middle, bottom
config.styling.margin_left = 50
config.styling.margin_right = 50
config.styling.margin_top = 50
config.styling.margin_bottom = 100
config.styling.max_width_percent = 80

Background Control

config.styling.background_color = "#000000"
config.styling.background_opacity = 0.8
config.styling.background_padding = 15
config.styling.background_radius = 10

Emphasis Control

config.styling.auto_emphasis = True
config.styling.emphasis_words = ["AMAZING", "WOW", "INCREDIBLE"]
config.styling.emphasis_scale = 1.3
config.styling.emphasis_animation = "bounce"

πŸ“Š Statistics

Style Presets:

  • Original: 6 presets
  • Added: 24 new presets
  • Total: 30 presets

Configuration Parameters:

  • Original: ~20 styling parameters
  • Added: ~60 new parameters
  • Total: ~80 parameters for full customization

Animation Styles:

  • Original: 9 animation types
  • Added: 11 new animation types
  • Total: 20 animation types

πŸš€ Usage Examples

Example 1: Big Bold on CPU

from uace import CaptionEngine, ProcessingConfig

config = ProcessingConfig()
config.transcription.gpu = False
config.styling.preset = "big_bold"

engine = CaptionEngine(config)
caption = engine.process("video.mp4")

Example 2: Custom Earthquake Style

config = ProcessingConfig.quick(style="earthquake")
config.styling.font_size = 90  # Even bigger!
config.styling.primary_color = "#FF0000"  # Red
config.styling.glow = True
config.styling.glow_intensity = 20
config.styling.perspective = True
config.styling.rotation_y = 15

engine = CaptionEngine(config)

Example 3: Hologram with Gradient

config = ProcessingConfig.quick(style="hologram")
config.styling.gradient_enabled = True
config.styling.gradient_start = "#00FFFF"
config.styling.gradient_end = "#FF00FF"
config.styling.gradient_angle = 90
config.styling.glow_intensity = 25

engine = CaptionEngine(config)

Example 4: Fire Effect (CPU Mode)

config = ProcessingConfig()
config.transcription.gpu = False
config.transcription.compute_type = "int8"
config.styling.preset = "fire"
config.styling.animation_duration = 0.1  # Fast pulse

engine = CaptionEngine(config)

πŸ“ Files Modified

  1. src/uace/config.py

    • Added 40+ new style presets to enum
    • Added 60+ new configuration parameters
  2. src/uace/styling/presets.py

    • Added 24 new preset implementations
    • Added 11 new animation styles
    • Total: ~1,200 lines of new code
  3. src/uace/styling/__init__.py

    • Updated exports for all new presets
  4. New: STYLE_GUIDE.md

    • Complete guide to all 30+ presets
    • Usage examples
    • Customization guide
    • Selection guide by content type

🎯 Key Features

1. GPU Control βœ…

  • config.transcription.gpu = False
  • CLI: --no-gpu
  • Automatic fallback to CPU

2. Those Big Moving Styles βœ…

  • big_bold - 72px huge text
  • zoom_punch - Explosive zooms
  • earthquake - Violent shakes
  • elastic_bounce - Playful bounces

3. Sound-Synced Styles βœ…

  • beat_pulse - Pulse with beat
  • sound_wave - Audio visualization
  • rhythm_bounce - Bounce to rhythm
  • karaoke - Word-level sync

4. Highly Customizable βœ…

  • 80+ configuration parameters
  • Override ANY style property
  • Mix and match effects
  • Create infinite variations