I am trying to merge multiple audio files, one by one. After the merging process is completed for around 100 files, I see that the output audio obtained has volume issues. The volume of the output audio is very very low at the start for around 20 mins and increases gradually as the audio duration increases. The input files are of proper volume and this behavior is not expected. The below code snippet is being used:
'''
from moviepy.editor import concatenate_audioclips, AudioFileClip
def concatenate_audio_moviepy(audio_clip_paths, output_path):
"""Concatenates several audio files into one audio file using MoviePy
and save it to output_path."""
clips = [AudioFileClip(c) for c in audio_clip_paths]
final_clip = concatenate_audioclips(clips)
final_clip.write_audiofile(output_path)
'''
Expected Behavior
The audio volume in the output should be same as input
Actual Behavior
I am trying to merge multiple audio files, one by one. After the merging process is completed for around 100 files, I see that the output audio obtained has volume issues. The volume of the output audio is very very low at the start for around 20 mins and increases gradually as the audio duration increases. The input files are of proper volume and this behavior is not expected. The below code snippet is being used: ''' from moviepy.editor import concatenate_audioclips, AudioFileClip def concatenate_audio_moviepy(audio_clip_paths, output_path): """Concatenates several audio files into one audio file using MoviePy and save it to
output_path
.""" clips = [AudioFileClip(c) for c in audio_clip_paths] final_clip = concatenate_audioclips(clips) final_clip.write_audiofile(output_path) '''Expected Behavior
The audio volume in the output should be same as input
Specifications