Warlord-K commited on
Commit
b7760c8
1 Parent(s): 171dca9

Change Path

Browse files
Files changed (1) hide show
  1. Videobook/AVCombiner.py +1 -8
Videobook/AVCombiner.py CHANGED
@@ -41,12 +41,5 @@ class AVCombiner:
41
 
42
  # concatenate all the video clips
43
  final_clip = concatenate_videoclips(clips)
44
-
45
- # Create a NamedTemporaryFile to store the video data
46
- with NamedTemporaryFile(suffix=".mp4", delete=False) as video_tempfile:
47
- # Write the video data to the temporary file
48
- final_clip.write_videofile(video_tempfile.name)
49
-
50
- # Copy the temporary file to the output path
51
- shutil.copy(video_tempfile.name, output_path)
52
  return f"{output_path}/{video_tempfile.name}"
 
41
 
42
  # concatenate all the video clips
43
  final_clip = concatenate_videoclips(clips)
44
+ final_clip.write_videofile(output_path + "/final_video.mp4")
 
 
 
 
 
 
 
45
  return f"{output_path}/{video_tempfile.name}"