Open BreuerChristian opened 4 months ago
Please always include code samples for reproducability and complete logs for errors where applicable (code-formatted text only, no screenshots).
The wording under "Steps to Reproduce the Problem" seems to suggest this was your attempt at a fix, not the original code that resulted in your issue. Either way, this is not how you'd check for the existence of fps
, see the second bullet point in this section in PEP8 ("Comparisons to singletons like None...").
I'm assuming this is a duplicate of #2041 #1986, in which case this issue should be closed in favour of the older one.
Expected Behavior
I combine mp4 and mp3 and get that error
Actual Behavior
File "C:\X\venv\Lib\site-packages\moviepy\video\VideoClip.py", line 300, in write_videofile ffmpeg_write_video(self, filename, fps, codec, File "C:\X\venv\Lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 212, in ffmpeg_write_video with FFMPEG_VideoWriter(filename, clip.size, fps, codec = codec, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\X\venv\Lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 86, in init '-r', '%.02f' % fps,