1 | initial version |
I would suggest to use/search for LossLess video codec like Lagarith or Huffman.
Often this codecs aren't available for any platform and have low compression rate... usually about 1/3
Quite old but you might start your selection from here Lossless Video Codecs Comparison ‘2007
Once you have the codec available on both systems you can read/write the video using VideoCapture/VideoWriter
With VideoWriter you have to select right FOURCC, for example:
int codec = CV_FOURCC('L', 'A', 'G', 'S'); //use this for Lagarith lossless codec
int codec = CV_FOURCC('H', 'F', 'Y', 'U'); //use this for Huffman Lossless Codec
//create the video file using your codec
VideoWriter vw(filename,codec,fps,img.size(),1);