Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Image-to-Video Generation with Performance Optimizations
New Features
AI Image-to-Video: Integrated fal.ai's Veo 3.1 fast endpoint for converting timeline images to video animations
Unified AI Panel: Added segmented control to switch between Image and Video generation modes
Timeline Integration: Added "Animate with AI" context menu option for image elements
Preview Quality Control: Implemented dynamic quality settings (25%, 50%, 75%, 100%) to reduce memory usage and improve playback performance
Improvements
Project-Specific AI State: AI generation history and results now properly reset when switching/creating projects
Memory Management: Removed generation history storage and implemented aggressive blob URL cleanup to prevent memory leaks
Video Audio Playback: Fixed audio not playing for videos on the timeline by rendering hidden video elements
Toast Notifications: Aligned AI generation toasts with OpenCut's design system
Technical Changes
Added new types for video generation parameters (duration, resolution, aspect ratio)
Created /api/ai/generate-video endpoint
Enhanced video cache pool size for better performance
Added preview quality state management
Improved frame cache invalidation logic
Build Fixes
Added missing @upstash/redis dependency to auth package
Added missing @radix-ui/react-dialog dependency
Removed output: "standalone" to fix Windows symlink permission issues