Torgeir Veimo wrote:
Stephen Davies wrote:
To fix this properly I need to get mplayer's frame playback locked to the
frame VSYNC of the video card. (Or, perhaps, lock the video card to
mplayer's frame playback?). I believe that with this done, a Linux box
could give video playback indistinguishable from broadcast.
What are my options? Are there any facilities in Xv/X to sense display
card vsync? Have I missed the obvious fix for this?
Allthough the api might be a bit proprietary, if you have a matrox card,
you can use syncfb which consists of a kernel and a library that allows
you to upload yuv data the gfx card and copy it into the overlay
triggered by the VSYNC interrupt from the gfx card. It works with both
X11 and fb.
http://teletux.sourceforge.net/
Maybe have a look at vidix on the mplayer page too
(http://www.mplayerhq.hu/) - maybe this would be a good start?
Also, I am sure synchronous operation _must_ be built into the XV API
somewhere (although I am not sure where to find documentation on this...).
-justin