Repository navigation
V0.1.1
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 zoomwave_motion- Smooth flowing waveelastic_bounce- Playful rubber band bounceearthquake- Violent shake effect
Music/Rhythm Styles (3)
beat_pulse- Pulse to the beatsound_wave- Visual audio waveformrhythm_bounce- Bounce to rhythm
Creative/Artistic Styles (6)
glitch- Digital glitch effectretro_vhs- 80s VHS aesthetichologram- Futuristic projectiongraffiti- Street art stylehandwritten- Personal handwriting- Plus existing
neon
Cinematic Styles (4)
cinematic_fade- Elegant film fadenoir_typewriter- Detective story style- Plus existing
minimal,subtitle_classic
Animation Styles (6)
slide_down- Elegant descentflip_in- 3D flip animationrotate_in- Spinning entranceblur_focus- Camera focus effect- Plus existing
bounce,slide_up,typewriter
3D/Perspective Styles (3)
perspective_3d- Dramatic 3D tiltdepth_blur- Depth of field effectfloating- Dreamy floating motion
Special Effects (4)
fire- Burning flame effectlightning- Electric flashparticles- Magical explosionspotlight- 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.9Animation 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 = 5Gradient Effects
config.styling.gradient_enabled = True
config.styling.gradient_start = "#FF00FF"
config.styling.gradient_end = "#00FFFF"
config.styling.gradient_angle = 45Position 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 = 80Background Control
config.styling.background_color = "#000000"
config.styling.background_opacity = 0.8
config.styling.background_padding = 15
config.styling.background_radius = 10Emphasis 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
-
src/uace/config.py- Added 40+ new style presets to enum
- Added 60+ new configuration parameters
-
src/uace/styling/presets.py- Added 24 new preset implementations
- Added 11 new animation styles
- Total: ~1,200 lines of new code
-
src/uace/styling/__init__.py- Updated exports for all new presets
-
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 textzoom_punch- Explosive zoomsearthquake- Violent shakeselastic_bounce- Playful bounces
3. Sound-Synced Styles β
beat_pulse- Pulse with beatsound_wave- Audio visualizationrhythm_bounce- Bounce to rhythmkaraoke- Word-level sync
4. Highly Customizable β
- 80+ configuration parameters
- Override ANY style property
- Mix and match effects
- Create infinite variations