added the speed up

Can't figure out how to work the getenv, it gets an error most of the time. would love help
pull/329/head
Kamushy 3 years ago committed by GitHub
parent c770c1fcca
commit b700d0c9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,6 +6,7 @@ from moviepy.editor import (
concatenate_audioclips,
CompositeAudioClip,
CompositeVideoClip,
vfx,
)
import reddit.subreddit
import re
@ -80,6 +81,8 @@ def make_final_video(number_of_clips):
)
image_concat.audio = audio_composite
final = CompositeVideoClip([background_clip, image_concat])
#speed video up, would prefer to use GETENV
final = final.fx(vfx.speedx, 1.2)
filename = (re.sub('[?\"%*:|<>]', '', ("assets/" + reddit.subreddit.submission.title + ".mp4")))
final.write_videofile(filename, fps=30, audio_codec="aac", audio_bitrate="192k")
for i in range(0, number_of_clips):

Loading…
Cancel
Save