Is swscale broken forever?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
MC_Kubbe
New Cone
New Cone
Posts: 2
Joined: 12 May 2021 16:31

Is swscale broken forever?

Postby MC_Kubbe » 12 May 2021 16:44

I'm one of those guys who liked to use Lanczos, but for the past 10 years swscale it's not working, and workarounds are to much hassle.
So I wonder, will this useless for now option will be removed or fixed?

Lotesdelere
Cone Master
Cone Master
Posts: 9894
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Is swscale broken forever?

Postby Lotesdelere » 13 May 2021 12:58

Which program are you talking about ?


EDIT:
Topic moved from Coffee Corner

MC_Kubbe
New Cone
New Cone
Posts: 2
Joined: 12 May 2021 16:31

Re: Is swscale broken forever?

Postby MC_Kubbe » 13 May 2021 18:45

VLC of course.
There is option for software upscaling under filters tab, with quite a selection, but it seems since version 3 of the program, is left behind not working.

User avatar
rom1v
Developer
Developer
Posts: 36
Joined: 02 Jul 2012 13:37

Re: Is swscale broken forever?

Postby rom1v » 25 May 2021 21:57

Could you post a screenshot of what you do to select your filter?

I can't find any lanczos filter exposed in the interface.

Lotesdelere
Cone Master
Cone Master
Posts: 9894
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Is swscale broken forever?

Postby Lotesdelere » 26 May 2021 12:25

Menu Tools -> Preferences (Show Settings = ALL) -> Video -> Filters -> Swscale
Then on the right panel Lanczos is one of the available filters of Scaling Mode.

User avatar
rom1v
Developer
Developer
Posts: 36
Joined: 02 Jul 2012 13:37

Re: Is swscale broken forever?

Postby rom1v » 27 May 2021 10:33

OK, thanks. Here are more details.

So this options (`--swscale-mode` in command line) defines the scaling mode whenever `swscale` is used.

When is it used? `swscale` is a "video converter", so it is used when the input and output format for a filter don't match for example. It is also used for subpictures (btw I found a bug while investigating: https://code.videolan.org/videolan/vlc/-/issues/25773).

So this option does not request to scale the video using that mode. Such a feature would not be easy to implement: it would require to insert `swscale` as a "video filter", but currently a filter produces an output picture from an input picture, it may not depend on the output size: the scaling is done by the vout (OpenGL for example). Moreover, it could only work with software decoding (so that the picture is available in main memory). And swscale is slow.

User avatar
ChaosDMNS
New Cone
New Cone
Posts: 1
Joined: 26 Sep 2021 07:22
VLC version: 3.0.16
Operating System: Windows 10

Re: Is swscale broken forever?

Postby ChaosDMNS » 26 Sep 2021 07:25

What?? are you sure? there is definitely a big difference when I change the scaling mode in swscale

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

Re: Is swscale broken forever?

Postby Rémi Denis-Courmont » 26 Sep 2021 10:24

If your system has GPU acceleration disabled or unavailable, yes. But on over 99% of systems running VLC, the swscale mode has no effects except for subtitles.
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: No registered users and 20 guests