mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 09:16:19 +00:00
🐛 fix(GenerationContext.py): fix indentation issue in process() method
✨ feat(GenerationContext.py): add support for z-index of moviepy clips to improve video rendering
The indentation issue in the process() method has been fixed. The z-index of moviepy clips has been added to improve the rendering of the video. This allows the clips to be rendered in different layers based on their index, resulting in a more visually appealing video.
This commit is contained in:
@@ -39,7 +39,7 @@ class SimpleCaptioningEngine(BaseCaptioningEngine):
|
||||
punctuations = (".", "?", "!", ",", ":", ";")
|
||||
return text.strip().endswith(tuple(punctuations))
|
||||
|
||||
def get_captions(self) -> list[TextClip]:
|
||||
def get_captions(self):
|
||||
# 3 words per 1000 px, we do the math
|
||||
max_words = int(self.ctx.width / 1000 * 3)
|
||||
|
||||
@@ -78,7 +78,7 @@ class SimpleCaptioningEngine(BaseCaptioningEngine):
|
||||
)
|
||||
)
|
||||
|
||||
return clips
|
||||
self.ctx.index_7.extend(clips)
|
||||
|
||||
@classmethod
|
||||
def get_options(cls) -> list:
|
||||
|
||||
Reference in New Issue
Block a user