[Mplayer-dev-eng] Matrox dualhead and syncfb.

Felix Bünemann Felix.Buenemann at gmx.de
Wed May 2 09:03:47 CEST 2001


> On Tue, 1 May 2001, Felix Buenemann wrote:
> 
> > On Dienstag,  1. Mai 2001 23:04 you wrote:
> > > On Tue, 1 May 2001, Felix Buenemann wrote:
> > > > Just did some calculation using your math and think it comes out to
> the
> > > > same result: 1.85/1 / (1280/1024) * 720 = 1066 now split it up so
> screen
> > > > resolution calc can be done by libvo: 1.85/1 * 720 = 1332 second
> step is
> > > > 1024/1280 = 0.8 * 1333 = 1066 voila. Now as I do it the other way
> around
> > > > that's 720/1066 = 0.6756 * 576 = 389. Now if I look at what mplayer
> > > > -aspect 1.85:1 does: "VO: [sdl] 720x576 => 720x389  YV12".
> > > > So do you see something incorrect in this? Or have I missed
> calculating
> > > > for proper screen res in second way? (looking at it 720x389 looks
> very ok
> > > > -> very round flashlight in the matrix [no egg])
> > > > (I'm getting slightly confused =)
> > >
> > > 	So, the problem is that I get the wrong version from your email??
> > > Just pasted from mplayer output:
> > >
> > > Aspect: Destination: 720x368
> > > Aspect: X: 1.850000
> > > Aspect: Y: 1.000000
> > > VO: [fbdev] 720x368 => 720x389  BGR32
> > >
> > Erm, 720x368? DVD-res is 720x576, how do you get those values?
> 
> 	Nope, it's not a DVD, it's a DivX, but I suppose that aspect
> should work independently of image properties, shouldn't it? Although
> maybe it doesn't have a clear meaning for non-standard images. I don't
> really know...
That DivX already has correct aspect itself (contrary to anamorphic dvds
that are streched to 720x576). SO only thing left for you is calculating of the
Screen aspect, which has to be done by the vo plug: so if your screen has an
aspect of 4:3 (divx is lets's say 640x272 [2.35:1]) and your res is 1280x1024
you have to do 1280[screenwidth]/640[videowidth] * 272[videoheight] = 544
now scale this properly for screen: screenfactor = 1280[screenwidth] /
screenaspect [4:3 -> 1.33333] ---> screeresheight [1024] / screenfactor [960] *
dest_videoheight [544] = 580 so your final video should be displayed as 1280x580
pixel when screen res is 1280x1024and screen aspect (screen aspect !=
resolution aspect can ie. be 45cm:33cm) is 4:3 (1,33333:1).

Hope you got it, we have to care for screen res aswell as physical screen
dimensions to get proper aspect!
> 
> 	- german
> 

-- 
Best Regards,
   Felix

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng



More information about the MPlayer-dev-eng mailing list