: This often occurs if the frame size passed to VideoWriter does not exactly match the actual dimensions of the frames being written.
28 Dec 2023 — The first of these lines causes the file filename.avi to be written, but the second line doesn't cause filename.mp4 to be written: MP4 files explained: How to open and use - Adobe
: Ensure the FPS argument is passed as a float to avoid initialization errors on some platforms. About the MP4 Format