[MPlayer-users] svga scaling problem

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Feb 14 15:36:26 CET 2009


On Sun, Dec 28, 2008 at 12:42:03AM +0000, Dave Wood wrote:
> VO: [svga] 720x304 => 720x304 BGRA
> [VO_SVGA] Vid_mode: 36, 1024x768 32bpp.
> 
> It says mode 36 1024x768 but it doesn't fill the width of the screen. It is
> exactly the same size as playing back in 800x600.
> 
> The only way I've found that works is to -vf scale:1024:-2

Uh, that is only the video mode of the display, it says nothing about
the size of the video. Also using -zoom is an easier way to get software
scaling.

> I would much rather this is done in hardware than software since this is a
> slowish T42 laptop. So...

svga BIOS provides no way to scale so how it should be possible. Maybe
you can get it to play at 800x600 so that it uses the display's scaling.

> Does the line [swscaler @ ... mean that it is using software scaling, even
> if I am not applying -vf scale?

No, that is YUV to RGB conversion. Depending what you use for -sws it
might be not much faster than doing scaling though.

> Is there some way of using hardware to scale the image up to max width?
> 
> 
> I have what I think is the correct modeline in /etc/vga/libsvga.config:
> 
> HorizSync 31.5 48.3
> VertRefresh 50 90
> 
> # 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
> Modeline "1024x768_60.00"  64.11  1024 1080 1184 1344  768 769 772 795 -HSync +Vsync

Well, if you want to play a 720x... video without scaling, 800x600 makes far more sense
than 1024x768, assuming your display does scale.
If you're lucky and your card is supported, -vo cvidix is a much faster resolution.

Greetings,
Reimar Döffinger



More information about the MPlayer-users mailing list