Commit ·
4697873
1
Parent(s): d4de697
Fix NameError: use constant CROSSFADE_DURATION instead of undefined variable
Browse files
modules/story_reels/services/story_creator.py
CHANGED
|
@@ -606,14 +606,14 @@ class StoryCreator:
|
|
| 606 |
|
| 607 |
# Transitions
|
| 608 |
if i > 0:
|
| 609 |
-
clip = clip.crossfadein(
|
| 610 |
|
| 611 |
clips.append(clip)
|
| 612 |
total_video_duration += duration
|
| 613 |
|
| 614 |
# Concatenate clips
|
| 615 |
# method="compose" is safer for crossfades
|
| 616 |
-
video = concatenate_videoclips(clips, method="compose", padding=-
|
| 617 |
|
| 618 |
# Final safety: match video length to audio exactly
|
| 619 |
if abs(video.duration - audio_duration) > 0.1:
|
|
|
|
| 606 |
|
| 607 |
# Transitions
|
| 608 |
if i > 0:
|
| 609 |
+
clip = clip.crossfadein(CROSSFADE_DURATION)
|
| 610 |
|
| 611 |
clips.append(clip)
|
| 612 |
total_video_duration += duration
|
| 613 |
|
| 614 |
# Concatenate clips
|
| 615 |
# method="compose" is safer for crossfades
|
| 616 |
+
video = concatenate_videoclips(clips, method="compose", padding=-CROSSFADE_DURATION)
|
| 617 |
|
| 618 |
# Final safety: match video length to audio exactly
|
| 619 |
if abs(video.duration - audio_duration) > 0.1:
|