This message discusses issues related to direct graphic
access (e.g. full-screen video) on Linux and other OS’s
using X11.–
Our MPEG/VCD Player (mtv) now has a full-screen mode that uses
^^^^^^^^^^^^^^^^
hardware scaling on Linux. It uses Sam Lantinga’s SDL library
that provide direct graphic access through the XFree86 drivers.
For those interested to look at SDL or to try mtv, there are
links at the end of this message.
It would be nice if the SDL library could also work with
Xi Graphics Accelerated-X server. Jeremy, any chance that
some type of compatibility will exist in the future ?
It would be even better if there was some type of standard library
on Linux (and other Unix’s ?) to provide direct graphic access,
including access to hardware planes, full-screen in various
resolutions, double-buffer/buffer-flipping,
and other hardware acceleration such as color conversion
(YUV to RGB) and accelerated motion compensation, which are
necessary to do real-time MPEG-2 decoding and are now supported
by many graphic chips.
Without such support it will be very difficult to develop
a DVD player for example. If we could do that, we think many more
people would choose Linux for some multimedia-based applications
where the only choice today is Windows. This would be very good
for the Linux industry.
Sam Lantinga did a good job with SDL, but unfortunately SDL still
has some limitations:
-
X11 version only works with XFree86 (and only on Linux)
-
Require that the appropriate resolutions (for MPEG-1 at least
320x240, 352x240, 352x280 and 352x288) be properly configured
in the XFree86 config file. Configuring XFree86 is not always
a trivial thing to do, but we can hope that some better and
more automatic XFree86 configuration tools will become available. -
Requires to run application as root or set-uid root
in order to have access to full-screen mode. I heard
this will be fixed. -
No access to color conversion and accelerated motion
compensation (because there is nothing in the XFree86 driver
to access those features even when available in graphic chips). -
A few bugs, some graphic chips/cards (RIVA128) not well supported,
but all those problems will be solved eventually.
Any effort that would solve those problems and improve multimedia
support for Linux would be welcome!
What would be the best forum/mailing-list/newsgroup
to discuss / work on this type of issues ?
–
Regards, – Tristan Savatier (President, MpegTV LLC)
MpegTV: http://www.mpegtv.com
MPEG.ORG: http://www.mpeg.org
The SDL home page:
http://www.devolution.com/~slouken/SDL/
There is more infos on mtv’s full-screen mode at:
ftp://ftp.mpegtv.com/pub/mpeg/mpegtv/player/doc/README-Fullscreen
The mtv player (an MPEG / VCD player for Linux & Unix)
can be downloaded from our ftpsite:
ftp://ftp.mpegtv.com/pub/mpeg/mpegtv/player