From 15aa7fa45bf58fdb3c66e9e707871021263a4e99 Mon Sep 17 00:00:00 2001 From: Drugsosos <44712637+Drugsosos@users.noreply.github.com> Date: Sun, 17 Jul 2022 23:29:26 +0300 Subject: [PATCH] removed ffmpeg_extract_subclip --- video_creation/final_video.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index fff83b9..2063bf0 100755 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -12,7 +12,6 @@ from moviepy.editor import ( CompositeAudioClip, CompositeVideoClip, ) -from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip from rich.console import Console from rich.progress import track from attr import attrs @@ -265,11 +264,10 @@ class FinalVideo: verbose=False, threads=multiprocessing.cpu_count(), ) - ffmpeg_extract_subclip( + # Moves file in subreddit folder and renames it + os.rename( "assets/temp/temp.mp4", - 0, - self.video_duration, - targetname=f"results/{subreddit}/{filename}", + f"results/{subreddit}/{filename}", ) save_data(subreddit, filename, title, idx, background_config[2]) print_step("Removing temporary files 🗑")