![]() The above exception was the direct cause of the following exception: Return self.fl(lambda gf, t: image_func(gf(t)), apply_to)įile "make_demo.py", line 65, in pipelineĬv2.putText(frame, str(next(dfi).word), (0, 50), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 0), 3, cv2.LINE_AA, True) Newclip = t_make_frame(lambda t: fun(self.get_frame, t))įile "/Users/asi/anaconda3/lib/python3.7/site-packages/moviepy/video/VideoClip.py", line 490, in 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. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |