1 | initial version |
"How can I get the smallest possible video file?"
You can use a lossy codec (Lagarith is a lossless codec) like CV_FOURCC('M','J','P','G').
OpenCV use ffmpeg for reading / writing videos. I think there is some kind of problem between OpenCV and the ffmpeg library used when the OpenCV dll was built ?
If you want to keep a lossless video, one option could be to save the images in a directory (img_1.png, img_2.png, etc.) using a lossless format like png and after use a tool to create a video from images like ffmpeg.
2 | No.2 Revision |
"How can I get the smallest possible video file?"
You can use a lossy codec (Lagarith is a lossless codec) like CV_FOURCC('M','J','P','G').
OpenCV use ffmpeg for reading / writing videos. I think there is some kind of problem between OpenCV and the ffmpeg library used when the OpenCV dll was built built, that's why it returns 0 ? Or maybe ffmpeg can decode Lagarith but not encode in Lagarith ?
If you want to keep a lossless video, one option could be to save the images in a directory (img_1.png, img_2.png, etc.) using a lossless format like png and after use a tool to create a video from images like ffmpeg.