ffmpeg does not allow None as fps argument #2125
Labels
bug
Issues that report (apparent) bugs.
lib-FFmpeg
Issues pertaining to dependency FFmpeg.
needs-more-info
Waiting for submitter's reply, feedback, updates,...
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,
~~~~~~~~^~~~~
TypeError: must be real number, not NoneType
Steps to Reproduce the Problem
I am not familiar with the fps fancy stuff
but i found out that the none is not allowed for ffmpeg as fps
Thatfore i added the code in the function ffmpeg_write_video
After that it worked
Specifications
The text was updated successfully, but these errors were encountered: