[smpeg] Newbie

Chunky Kibbles chunky at icculus.org
Mon Feb 9 17:31:13 EST 2004


On Mon, Feb 09, 2004 at 03:21:51PM -0700, Steven Webb wrote:
> Actually, it's an X thing and a linux kernel thing.  SMPEG dumps tons of
> video to the screen as fast as possible - DRI is the "Direct Rendering
> I<something>".  8)

Infrastructure

> In your /etc/X11/XF86Config-4 file make sure there's a line in the
> "Module" section that says:
> 
> Load "dri"
> 
> Add that line and re-start X.  Should be good-to-go unless you're running
> a super-old version of X, your kernel doesn't support DRI or your video
> card is a very old one.
> 
> There is a DRI FAQ here: http://dri.sourceforge.net/doc/DRIbeginner.html

You don't need dri for smpeg to play movies - smpeg, actually, is just
rendering to an SDL surface, which glmovie initialises as an OpenGL
screen, and then just dumps frames to the screen.

You /do/, however, need DRI for most openGL stuff in X4 and above. It
basically provides a faster channel for you to get stuff from userspace
onto a graphics card. [the nvidia drivers don't use it, because they
completely sidetrack the whole issue by skipping the X layers and
shoehorning stuff straight into their kernel driver]

Gary (-;

> On Mon, 9 Feb 2004, Chunky Kibbles wrote:
> 
> > Date: Mon, 9 Feb 2004 17:17:40 -0500
> > From: Chunky Kibbles <chunky at icculus.org>
> > Reply-To: smpeg at icculus.org
> > To: smpeg at icculus.org
> > Subject: Re: [smpeg] Newbie
> >
> > On Mon, Feb 09, 2004 at 05:09:10PM -0500, Manuel Arguelles wrote:
> > > thanx :)
> > >
> > > now I'm getting this error:
> > > Xlib:  extension "XFree86-DRI" missing
> > > is this a module of XFree or something? I can't find it :(
> >
> > Guh. glmovie requires [you guessed it!] openGL. Either set up openGL
> > on the box you're developing on, or you can change the init code like:
> >
> > Index: glmovie.c
> > ===================================================================
> > RCS file: /cvs/cvsroot/smpeg/glmovie.c,v
> > retrieving revision 1.7
> > diff -u -b -B -u -r1.7 glmovie.c
> > --- glmovie.c   3 Jan 2004 03:49:50 -0000       1.7
> > +++ glmovie.c   9 Feb 2004 22:16:27 -0000
> > @@ -40,7 +40,7 @@
> >      /* Grab the mouse and input and set the video mode */
> >      SDL_ShowCursor(0);
> >      //SDL_WM_GrabInput(SDL_GRAB_ON);
> > -    screen = SDL_SetVideoMode(640, 480, 0, SDL_OPENGL); //|SDL_FULLSCREEN);
> > +    screen = SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN);
> >      if ( !screen ) {
> >         fprintf( stderr, "glmovie: Couldn't set 640x480 GL video mode: %s\n", SDL_GetError());
> >          SDL_Quit();
> >
> > Gary (-;
> >
> > > ----- Original Message -----
> > > Chunky Kibbles wrote:
> > > > On Mon, Feb 09, 2004 at 05:00:38PM -0500, Manuel Arguelles wrote:
> > > > > Ok, what about the compilation/linking flags? (please don't tell me
> > > > > to get them from the Makefile) :p
> > > >
> > > > For which bit?
> > > > It requires SDL, so at a guess I'd say your project needs:
> > > > CFLAGS+=`sdl-config --cflags` `smpeg-config --cflags`
> > > > LDFLAGS+=`sdl-config --ldflags` `smpeg-config --ldflags`
> > > >
> > > > Just a thought
> > > > Gary (-;
> > > >
> > > >
> > >
> > >
> >
> 
> --
> EMAIL: (h) steve at badcheese.com  WEB: http://badcheese.com/~steve
>        (w) swebb at rap.ucar.edu
>            stevewebb at mail.com



More information about the smpeg mailing list