Video.write_videofile('video.mp4', fps=FPS, codec='libx264', audio_codec='aac', temp_audiofile='temp-audio.m4a', remove_temp=True, audio_bitrate='256k') video = t_audio(AudioFileClip('asdf.m4a')) I have tried specifying different audio bitrates, but it still raise an exception. I cannot isolate what exactly is causing this error because it happens rarely.
I am occasionally receiving the following error when attempting to write a m4a (aac) audio file to a video using write_videofile with the moviepy library.