Page 1 of 1

Resolution compression algorithm

Posted: 08 Jan 2020 23:01
by olinesn
I'm writing to ask how the resolution compression algorithm works. In short, when converting a 1280x1024 video to 640x512 with the scale factor of 0.5, is the resulting video just throwing away 75% of the data, or are the final pixel values some average of the input?

I'm using these videos to train a neural network, and less noisy video is useful. If there scale factor just throws away the data, then it's probably easier to just record the video in the smaller resolution to begin with. If it takes an average of 4 pixels to create one pixel in the smaller video, then I expect the smaller video to be higher quality.

Thanks!

Re: Resolution compression algorithm

Posted: 13 Jan 2020 18:05
by RĂ©mi Denis-Courmont
In most cases, the GPU takes care of down-scaling with whatever algorithm the GPU vendor decided.

If you convert the video, then it'll be using the swscale module, with the algorithm selected in prefs. By default that's bicubic.