MoviePy - Writing audio in vidoutTEMP_MPY_wvf_snd.mp3 EDITĪfter using the suggested moviepy solution, I get a subtitled video with no audio and the error below: Moviepy - Building video vidout.mp4. I understand OpenCV does not work with any audio, but are there any other workarounds? This approach works well in my pipeline, so I'd like to be able to write these frames to a new video but keep audio while using as little additional libraries as possible. This works, but now I don't have any audio. The csv is the same length as the number of frames in the video. This way I loop over all frames and put text for the sentence on every frame within that sentence.
HOW ADD SUBTITLES TO VIDEO ON THE CW FULL
To do so, I created a csv where there is a row for every frame, and every row contains the full sentence during that sentence time chunk. I chunked the words into sentences so that I could display 1 sentence at a time on the screen, like normal subtitles in a movie.