SDL video support

Hi,

One thing I would like to achieve is video playback within an SDL program.

I have heard about sdl_smpeg, but I didn’t found any docs out there to
help me out with it. Do you know any?

Once I am able to play mpeg-1 (with smpeg) as background within my SDL
"learning" demo, I would like to go a bit forward and provide support
for just any video format out there that Linux can play (more
specifically; anything Kaffeine/Xine or mplayer can play).

Is there a library to achieve that?
Can I plug the mplayer or xine decoders together with SDL?

I believe xine/mplayer provide a framework were you tell them to load a
video clip and, they search and load the right low level decoder (even
w32 ones) for you. I guess they provide a wrapper universal decoder API
to which an SDL program can ask for “frames” (maybe as callbacks?). SDL
translates the frames received into surfaces and that’s it, isn’t it?

Any help / docs / suggestions on this?

Thank you very much,

Jose

Jose Luis Vazquez Gonzalez wrote:

Hi,

One thing I would like to achieve is video playback within an SDL
program.

I have heard about sdl_smpeg, but I didn’t found any docs out there to
help me out with it. Do you know any?

Once I am able to play mpeg-1 (with smpeg) as background within my SDL
"learning" demo, I would like to go a bit forward and provide support
for just any video format out there that Linux can play (more
specifically; anything Kaffeine/Xine or mplayer can play).

Is there a library to achieve that?
Can I plug the mplayer or xine decoders together with SDL?

I believe xine/mplayer provide a framework were you tell them to load
a video clip and, they search and load the right low level decoder
(even w32 ones) for you. I guess they provide a wrapper universal
decoder API to which an SDL program can ask for “frames” (maybe as
callbacks?). SDL translates the frames received into surfaces and
that’s it, isn’t it?

Any help / docs / suggestions on this?

You should probably look into libxine, which does all the decoding work.
For example, Kaffeine is just a frontend to libxine. Mplayer has no such
equivalent, AFAIK.
Go to http://xinehq.de/ there’s some documentation on this.

Stephane