Thread: mplayer vdpau
View Single Post
Old 09-29-09, 11:33 AM   #1205
Stephen Warren
Stephen Warren's Avatar
Join Date: Aug 2005
Posts: 1,327
Default Re: mplayer vdpau

Originally Posted by danoscar View Post
I have not found any for this. You can get some through X APIs but what I get back is 24hz on a 23.976hz rate. Not good enough. To be able to do really good A/V sync handling you need a resolution of at least micro seconds. nano seconds would be better.
It looks like XF86VidModeGetModeLine should work; it can give you, amongst other things, the pixel clock rate and the total pixels (including blanking) for both H and V, so the VSYNC rate can be calculated almost trivially.

I hope our driver fully implements that API now that I've mentioned it:-)
Stephen Warren is offline   Reply With Quote