1 | initial version |
There are lossless (VfW) codecs for Windows that you can install, but I am not sure OpenCV will accept their FourCC. They may also be a bit finicky about the input image format and size.
Alternatively, you might consider saving PNGs (or GIFs for gray images) instead of videos.