|
|
@ -7,7 +7,7 @@ from moviepy.editor import (
|
|
|
|
CompositeAudioClip,
|
|
|
|
CompositeAudioClip,
|
|
|
|
CompositeVideoClip,
|
|
|
|
CompositeVideoClip,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
import reddit.askreddit
|
|
|
|
import reddit.subreddit
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|
from utils.console import print_step
|
|
|
|
from utils.console import print_step
|
|
|
|
|
|
|
|
|
|
|
@ -58,7 +58,7 @@ def make_final_video(number_of_clips):
|
|
|
|
)
|
|
|
|
)
|
|
|
|
image_concat.audio = audio_composite
|
|
|
|
image_concat.audio = audio_composite
|
|
|
|
final = CompositeVideoClip([background_clip, image_concat])
|
|
|
|
final = CompositeVideoClip([background_clip, image_concat])
|
|
|
|
filename = (re.sub('[?\"%*:|<>]', '', ("assets/" + reddit.askreddit.submission.title + ".mp4")))
|
|
|
|
filename = (re.sub('[?\"%*:|<>]', '', ("assets/" + reddit.subreddit.submission.title + ".mp4")))
|
|
|
|
final.write_videofile(filename, fps=30, audio_codec="aac", audio_bitrate="192k")
|
|
|
|
final.write_videofile(filename, fps=30, audio_codec="aac", audio_bitrate="192k")
|
|
|
|
for i in range(0, number_of_clips):
|
|
|
|
for i in range(0, number_of_clips):
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|