Resolution compression algorithm

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
olinesn
New Cone
New Cone
Posts: 1
Joined: 08 Jan 2020 22:57

Resolution compression algorithm

Postby olinesn » 08 Jan 2020 23:01

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!

Rémi Denis-Courmont
Developer
Developer
Posts: 15312
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Resolution compression algorithm

Postby Rémi Denis-Courmont » 13 Jan 2020 18:05

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 37 guests