Add multi-frame continuity support with enhanced features#1
Open
stevemoraco wants to merge 1 commit intomainfrom
Open
Add multi-frame continuity support with enhanced features#1stevemoraco wants to merge 1 commit intomainfrom
stevemoraco wants to merge 1 commit intomainfrom
Conversation
This PR adds comprehensive multi-frame reference support to improve video continuity across segments. ## Key Features ### Multi-Frame Reference System - Support for 1, 8, or 32 reference frames (configurable) - Two extraction strategies: - `evenly_spaced`: Frames distributed across entire video timeline - `end_of_file`: Frames from final moments of previous segment - Cumulative frame extraction from ALL previous segments combined - Animated WebP/APNG format for multi-frame references ### Enhanced Reliability - Exponential backoff retry with 2-hour time limit - Retry on rate limits, server errors, and network failures - No arbitrary retry attempt limit - Intelligent error handling (no retry on moderation blocks) ### Improved Logging - Comprehensive markdown log files with timestamps - Progress tracking at 25% intervals - Detailed segment information and timing - Full prompt logging (no truncation) ### Python 3.9 Compatibility - Pin MoviePy to 1.0.3 - Use `Optional[Path]` instead of `Path | None` - Simplified dependency installation ### Code Quality - Split config into separate cells (imports vs settings) - Removed complex MoviePy fallback logic - Better error messages and debugging info ## Configuration New config variables: ```python REFERENCE_FRAMES_COUNT = 8 # 1, 8, 32, or custom REFERENCE_FRAMES_STRATEGY = "evenly_spaced" # or "end_of_file" REFERENCE_FRAMES_FORMAT = "webp" # or "png" MAX_TOTAL_RETRY_TIME = 7200 # 2 hours ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds comprehensive multi-frame reference support to improve video continuity across segments.
Key Features
Multi-Frame Reference System
evenly_spaced: Frames distributed across entire video timelineend_of_file: Frames from final moments of previous segmentEnhanced Reliability
Improved Logging
Python 3.9 Compatibility
Optional[Path]instead ofPath | NoneCode Quality
Configuration
New config variables:
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com