Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BugFix: Fix the alignment of audio duration and video duration after concatenate_videoflips #2201

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

zyw241
Copy link

@zyw241 zyw241 commented Jul 10, 2024

When I use concatenate_videoclips to concatenate my video clips, I find that the concatenated clip's duration property does not align with its audio's duration property when the last video clip to be concatenated has no audio. This will cause much error when using the concatenated clip after, such as clip.subclip will report an ValueError. So I modify the code in concatenate_videoclips to set the audio's duration align with video's duration.

@OsaAjani
Copy link
Collaborator

Can you provide some code triggering the error, I cannot reproduce it.

@OsaAjani OsaAjani merged commit 71eb429 into Zulko:master Jan 30, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants