[Mplayer-users] All non 4:3 movies in -vo sdl starts ungly resized

Ivan Kalvatchev iive at yahoo.com
Wed Sep 5 18:00:31 CEST 2001


I have two files that are not 4:3, one is
matrixbench_hightdivx_ac3.avi from mplayer site. By
default i use SDL, as i can fullscreen when i need. So
when i play matrix... it starts strangely resized with
few pixel more (or less). As most video cards can
enlarge Overlay but not shrink it, and becouse of
little scalle factor the output shows some ugly
doubled lines. Here is some lines from mplayer -v -v
output:

video_out->init(720x576->720x576,flags=0,'MPlayer',0x32315659)
SDL: Using 0x32315659 (YV12) image format
SDL: deactivating XScreensaver/DPMS
SDL: X11 Resolution 800x600
SDL: Opening Plugin
SDL: Using driver: x11
SDL: using hardware-surface
SDL Aspect: src: 720x576 dst: 720x540
SDL Aspect-Destinationres: 675x540 (x: 22, y: 0)
SDL: setting windowed mode
INFO: Video OUT driver init OK!

the second file produce:

video_out->init(352x288->352x288,flags=0,'MPlayer',0x32315659)
SDL: Using 0x32315659 (YV12) image format
SDL: deactivating XScreensaver/DPMS
SDL: X11 Resolution 800x600
SDL: Using driver: x11
SDL: using hardware-surface
SDL Aspect: src: 352x288 dst: 352x264
SDL Aspect-Destinationres: 322x264 (x: 15, y: 0)
SDL: setting windowed mode
INFO: Video OUT driver init OK!

I take a look in vo_sdl.c, and found in init():
#ifdef HAVE_X11
	res = aspect(priv->dstwidth, priv->dstheight,
priv->dstwidth, priv->dstwidth*((float)priv->XHeight /
(float)priv->XWidth));

I don't understand why this should be so?
I see that this should handle with screen aspect and
that it makes some assumptions that are not always
true. 
If this is 16:9 screen patch, then it's wrong. As 16:9
and 4:3 screens have square 1x1 pixel, there is
notthing to worry about, except if 16:9 video mode is
used on 4:3 monitor!
 
Please tell me that in today CVS this bug is fixed,
and don't tell me "Wait for vo2"	


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list