So I have 7 .mp3
audio files concatenated together
audioFiles = [a for a in glob.glob(audioPath + "**/*.mp3", recursive=True)]
audios = []
for audio in audioFiles:
audios.append(AudioFileClip(audio))
audioClip = concatenate_audioclips([audio for audio in audios])
and 14 .mp4
files concatenated together
files = [f for f in glob.glob(path + "**/*.mp4", recursive=True)]
clips = []
for file in files:
clips.append(VideoFileClip(file))
finalClip = concatenate_videoclips([clip for clip in clips])
Rendering the video looks:
finalClip.audio = audioClip
finalClip.write_videofile("my_concatenation.mp4")
But these video files concatenated together takes only 10 minutes to watch.
The program extends the video clip with 20 minutes. So the video is 30 minute with the audio + video and the video takes 10 minutes so from then minutes the last frame is showing for the last 20 minutes.
How can I tell the program not to stretch the video?