Skip to content
This repository was archived by the owner on Mar 22, 2026. It is now read-only.

Version 1.0.3: Hello World, MoviePy 2.0!

Choose a tag to compare

@mdev34-lab mdev34-lab released this 10 Dec 15:44
· 10 commits to main since this release
b6957f3

Changelog

Version 1.0.3 (main.py)

Added Features

Major Updates

  • Library Upgrade:
    • The project has been updated to use MoviePy 2.0, bringing enhanced performance and new features.

Other Adjustments

  • Emotion Clip Adjustments:
    • The height of the emotion clip is now reduced by an additional 50 pixels when resizing, providing better visual alignment.
    • The calculation of video_width and character_width is now based on the dimensions of the first clip in the self.clips list, ensuring accurate positioning of emotion clips.
  • Recursive character image lookup
    • The script automatically retrieves the character images inside the character folder instead of hardcoding the characters
  • Statics folder no longer required:
    • The statics folder is no longer needed since the script now automatically creates the white background.

Bug Fixes

  • Undefined Variables:
    • Resolved the issue of video_width being undefined by extracting it from the background clip dimensions during the script processing.

Performance Improvements

  • Export Settings:
    • Added a preset='ultrafast' option to the write_videofile method to improve the speed of video rendering, which can be beneficial during development and testing phases.

Code Refactoring

  • Method Updates:
    • Updated the add_emotion_clip and add_espeech_clip methods to use the new logic for calculating video_width and character_width.
    • Refactored the way emotion clips are resized and positioned, ensuring that margins are applied correctly.

Logging Enhancements

  • Debug Logging:
    • Improved logging for debugging purposes, particularly in the export_final_video method, to log the duration of each clip before exporting.