Update helpers.py
Browse files- helpers.py +1 -1
helpers.py
CHANGED
@@ -121,7 +121,7 @@ def cut_video(input_video, output_video, cut_ranges):
|
|
121 |
# Load the video clip
|
122 |
video_clip = VideoFileClip(input_video)
|
123 |
# Cut and concatenate the specified ranges
|
124 |
-
cut_clips = [video_clip.
|
125 |
final_clip = concatenate_videoclips(cut_clips)
|
126 |
# Write the result to a new video file
|
127 |
final_clip.write_videofile(output_video, codec="libx264", audio_codec="aac")
|
|
|
121 |
# Load the video clip
|
122 |
video_clip = VideoFileClip(input_video)
|
123 |
# Cut and concatenate the specified ranges
|
124 |
+
cut_clips = [video_clip.subclipped(start, end) for start, end in cut_ranges_cleaned]
|
125 |
final_clip = concatenate_videoclips(cut_clips)
|
126 |
# Write the result to a new video file
|
127 |
final_clip.write_videofile(output_video, codec="libx264", audio_codec="aac")
|