Update final_video.py

pull/354/head
null3000 3 years ago committed by GitHub
parent eeeaff0a04
commit 232b444251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,6 +12,9 @@ import re
from utils.console import print_step
from dotenv import load_dotenv
import os
from rich.console import Console
console = Console()
W, H = 1080, 1920
@ -47,6 +50,11 @@ def make_final_video(number_of_clips):
audio_concat = concatenate_audioclips(audio_clips)
audio_composite = CompositeAudioClip([audio_concat])
#Get sum of all clip lengths
total_length = sum([clip.duration for clip in audio_clips])
#Output Length
console.log("[bold green] Video Will Be: " + str(total_length) + " Seconds Long")
# Gather all images
image_clips = []
for i in range(0, number_of_clips):

Loading…
Cancel
Save