You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to combine a few sets of AudioFileClip's and ImageClip's into one movie. But am having a weird error, I have spent a long time and tried many things to attempt and get it to work.
I have tried:
Creating one combined AudioClip and then adding it to the combined ImageClips instead of adding a bunch of ImageClips that already have audio attached
Different ways of putting the clips together such as .set_audio and using a temp audio file when writing the clip to a file
Testing a similar situation in the console which worked
Searching and searching through moviepy docs and previous questions
I expect this to output an mp4 file that has 3 clips, each one saying hello using tts. The TTS works fine and outputs an mp3 correctly, it works fine when I comment out the set_audio line, but when I combine all of the clips into a single mp4 it has an error.
AttributeError: 'NoneType' object has no attribute 'get_frame'
Not sure what is going on. But you shouldn't close the clips in add_clip, in particular the audio clips. Keep in mind that the clips are not fully read until you run "write_videofiles()" so you can't close them until your final clip is written.
I am trying to combine a few sets of AudioFileClip's and ImageClip's into one movie. But am having a weird error, I have spent a long time and tried many things to attempt and get it to work.
I have tried:
I expect this to output an mp4 file that has 3 clips, each one saying hello using tts. The TTS works fine and outputs an mp3 correctly, it works fine when I comment out the set_audio line, but when I combine all of the clips into a single mp4 it has an error.
Full Error:
https://mystb.in/ulusafajan.rb
None of the objects in the list are None and I am confused why the concatenated clip doesnt have a reader
Any and all help is appreciated! Thanks!
https://stackoverflow.com/questions/55840571/python-moviepy-reader-not-defined-when-writing-video-file
Specifications
The text was updated successfully, but these errors were encountered: