You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written a function that creates a bunch of video clips and then finally combines them into one.
`
def process_video(self):
"""
This combines the text and audio into a video
"""
intermediate_clips = list()
n = len(self.audio_paths)
first_clip = self.make_first_clip()
last_clip = self.make_last_clip()
for i in range(1, n - 1):
self.current_index = i
intermediate_clips.append(self.make_sliding_video_clip())
intermediate_clips.append(self.make_video_clip())
self.current_index = 0
final_clips = [first_clip] + intermediate_clips + [last_clip]
final_clip = concatenate_videoclips(final_clips, method='compose')
final_clip.write_videofile('final.mp4', fps=60, codec='mpeg4')
`
However, the resulting clip has some audio glitches.
Here is the resulting video. https://www.youtube.com/watch?v=QYURIo3dWPk. If you watch it, you will realize there are a couple of glitches at the end of the clips. Doesn't happen all the time but sometimes.
Any ideas on how to avoid those glitches?
The text was updated successfully, but these errors were encountered:
keikoro
added
audio
Related to AudioClip, or handling of audio in general.
video
Related to VideoClip and related classes, or handling of video in general.
labels
Feb 10, 2024
I have written a function that creates a bunch of video clips and then finally combines them into one.
`
def process_video(self):
`
However, the resulting clip has some audio glitches.
Here is the resulting video. https://www.youtube.com/watch?v=QYURIo3dWPk. If you watch it, you will realize there are a couple of glitches at the end of the clips. Doesn't happen all the time but sometimes.
Any ideas on how to avoid those glitches?
The text was updated successfully, but these errors were encountered: