Hi!
I want to save HQ or lossless video using VideoWriter().
Can someone provide the solution?
I succeeded in using some codecs with fourcc(), for example H264, but there is noticeable loss in quality and I don’t know how to adjust compression options…
I am coding in C++ for Windows, if matters.
So far, I found two ways:
Save each frame as PNG and assemble them later with other software.
fourcc(‘R’, ‘G’, ‘B’, ‘A’) option - too big file in the result.
Thanks for reply!
The second one - synthetic data (lots of uniformly colored area).
Tried to play with .set(VIDEOWRITER_PROP_QUALITY, some number) for different codecs (including X264) - found no effect on the final file size… I tried 100, 5, 1, 0.1 – no difference. Am I doing something wrong?