Added a new method which returns an ImageSequenceClip instance of an … #2040
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.
Description:
This pull request introduces a new feature to the ImageSequenceClip class in the MoviePy library. The feature adds a from_images_and_times method that enables users to create video clips directly from a list of images and their corresponding durations. This enhancement simplifies video creation, offers greater flexibility, and increases productivity for MoviePy users.
Changes Made:
Added a new method, from_images_and_times, to the ImageSequenceClip class.
Implemented the logic to create a video clip from a list of images and durations.
Enhanced error handling and parameter validation.
Usage Example:
Benefits:
Simplifies video creation from sequences of images.
Offers precise control over frame durations.
Increases productivity by automating video creation tasks.
Testing Done:
Tested the new from_images_and_times method with various image sequences and durations to ensure its correctness and functionality.
Verified that the generated video clips match the expected output.
Closing Remarks:
I kindly request a review and consideration of this pull request. Your feedback and input are invaluable in ensuring the quality and usefulness of this feature. Merging this enhancement will benefit MoviePy users by simplifying their workflow and expanding the capabilities of the library.
Thank you for your time and attention.
Sincerely,
Y M Bhadri Narayana
https://github.com/BhadriNarayana
[email protected]