Repository navigation
fix(pexels_video): select widest file when API returns quality: null - #972
Open
gauravchahal20 wants to merge 13 commits into
Open
gauravchahal20 wants to merge 13 commits into
gauravchahal20 wants to merge 13 commits into
Conversation
…ce and Fableframe tools
…udio file with Veo and Flow-style continuity
…wire it into longform_video
…lders and a video quality checker
…n Burns to the shot length
…early When playbackRate is set, Remotion's <OffthreadVideo> inner Sequence uses trimAfter directly as timeline frames without dividing by playbackRate, causing slow-motion clips (speed < 1) to stop early and render black for the rest of the scene. The parent scene Sequence already bounds the clip's lifetime, so omitting trimAfter when playbackRate is modified allows the video to play smoothly through the entire scene duration. Fixes OpenMontageInc#855
When running python from a virtual environment without activating the venv, piper binary resides in the venv's bin/Scripts directory and is not on PATH. Resolving piper next to sys.executable before falling back to PATH ensures PiperTTS reports AVAILABLE and executes successfully. Fixes OpenMontageInc#888
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.
Fixes #967
Description
Newer Pexels videos return
quality: nullon all entries ofvideo_files. Previously,PexelsVideo.executeattempted to matchvf.get('quality') == preferred_quality, which failed onnulland fell back tovideo_files[0](the raw API list's lowest resolution rendition, typically 360x640).Changes
video_filesby width descending intosorted_filesbefore searching for quality tags.preferred_quality:preferred_quality == 'hd'(the default): fall back tosorted_files[0](the widest rendition).preferred_quality == 'sd': prefer renditions under 720p (standard definition: 540p, 480p, 360p), falling back to the lowest resolution file if none are below 720p.tests/tools/test_pexels_video.pycovering null-quality fallbacks, explicit quality matching, and error handling.Verification
pytest tests/tools/test_pexels_video.py(5 passed)pytest tests/tools/test_stock_source_adapters.py tests/tools/test_stock_provider_detection.py tests/tools/test_stock_source_stable_id.py(77 passed, 4 skipped)